• No results found

ระบบสารสนเทศภ ม ศาสตร ด านส งแวดล อม

N/A
N/A
Protected

Academic year: 2021

Share "ระบบสารสนเทศภ ม ศาสตร ด านส งแวดล อม"

Copied!
18
0
0

Loading.... (view fulltext now)

Full text

(1)

เอกสารประกอบการบรรยาย เอกสารประกอบการบรรยาย 106532 106532 ส สส ส ศ ิศ ส ์ ้ สิ่ศ ิศ ส ์ ้ สิ่ ้้ 106532 106532 ระบบสารสนเทศภูมศาสตรดานสงแวดลอมระบบสารสนเทศภูมศาสตรดานสงแวดลอม

การนําเข ้าข ้อมลคณลักษณะ

การนําเข ้าข ้อมลคณลักษณะ

การนาเขาขอมูลคุณลกษณะ

การนาเขาขอมูลคุณลกษณะ

ในระบบสารสนเทศภมิศาสตร์

ในระบบสารสนเทศภมิศาสตร์

ในระบบสารสนเทศภูมศาสตร

ในระบบสารสนเทศภูมศาสตร

รอง รองศาสตราจารย์ศาสตราจารย์ดรดร. . ชฎาชฎา ณรงค์ฤทธิ์ณรงค์ฤทธิ์

(2)

ความหมาย

„

„

ข้อมูล

ข้อมูลตาราง

ตาราง

(Attribute Data) (Attribute Data) ในระบบสารสนเทศในระบบสารสนเทศ

ภมิศาสตร์ คือ ข้อมลคณลักษณะ

ภมิศาสตร์ คือ ข้อมลคณลักษณะ (Characteristics) (Characteristics) ของข้อมลของข้อมล ภูมศาสตร คอ ขอมูลคุณลกษณะ

ภูมศาสตร คอ ขอมูลคุณลกษณะ (Characteristics) (Characteristics) ของขอมูลของขอมูล ภูมิลักษณ์ของแผนที่

ภูมิลักษณ์ของแผนที่ (Map Features)(Map Features) „ „ ข้ข้ ัั ัั ็ ใ รปต ร็ ใ รปต ร „ „ ขอมูลคุณลกษณะขอมูลคุณลกษณะ จดเกบในรูปตารางจดเกบในรูปตาราง „ „ แถวแถว (Row)(Row) ่่ „

„ แต่ละแถวแทนแต่ละแถวแทน map featuremap feature „ „ แต่ละแถวเรียกแต่ละแถวเรียก recordrecord „ „ คอลัมน์คอลัมน์ „ „ แต่ละคอลัมน์แทนแต่ละคอลัมน์แทน characteristicscharacteristics „ „ แต่ละคอลัมน์เรียกแต่ละคอลัมน์เรียก fieldfield

(3)

3 shape ID point 1

โครงสร้างตาราง

1 2 pointpoint 12 point 3

การนําเข้าข้อมูล

3 point 3 shape ID

Shape

1 3 line 1 line 2 2 line 3 field 1 3 shape ID field

(4)

ประเภทของข้อมูลคุณลักษณะ

„

„ แบ่งตามการเขียนโปรแกรมแบ่งตามการเขียนโปรแกรม „

„ StringStringStringString „

„ IntegerInteger „

„ Floating or Real NumberFloating or Real Number „

„ Floating or Real NumberFloating or Real Number „

„

แบ่งตามระดับการวัด

แบ่งตามระดับการวัด

GIS Application „

„ NominalNominal „

„ OrdinalOrdinal Categorical

„

„ Interval Interval „

(5)

คุณภาพของข้อมูลคุณลักษณะ

ู ุ

„ „ คุณภาพของข้อมูลคุณลักษณะคุณภาพของข้อมูลคุณลักษณะ ขึ้นอยู่กับขึ้นอยู่กับ „ „ ความผิดพลาดจาการตรวจวัดหรือสังเกตข้อมูลความผิดพลาดจาการตรวจวัดหรือสังเกตข้อมูล (Observation Error) (Observation Error) „

„ ข้อมูลล้าสมัยข้อมูลล้าสมัย (Out(Out--ofof--date Data)date Data) „

(6)

แบบจําลองฐานข้อมูล

„ „

ฐานข้อมูล

ฐานข้อมูล

(Database) (Database) คือการเก็บรวบรวมตารางที่มีคือการเก็บรวบรวมตารางที่มี ความสัมพันธ์กันในรปแบบเชิงเลข ความสัมพันธ์กันในรปแบบเชิงเลข (A collection of (A collection of ความสมพนธกนในรูปแบบเชงเลข ความสมพนธกนในรูปแบบเชงเลข (A collection of (A collection of interrelated tables in digital format)

interrelated tables in digital format) „

„ ฐ ข้ฐ ข้ ่ ป็่ ป็ 44 ปรปร ืื „

„ ฐานขอมูลฐานขอมูล แบงเปนแบงเปน 44 ประเภทคอประเภทคอ „

„ Flat File Flat File เป็นการเก็บข้อมูลทั้งหมดไว้ในตารางเดียวเป็นการเก็บข้อมูลทั้งหมดไว้ในตารางเดียว

็ ้ ป็ ั ี่ ็ ้ ป็ ั ี่

„

„ Hierarchical Hierarchical แบ่งการจัดเก็บข้อมูลเป็นระดับทีแตกต่างแบ่งการจัดเก็บข้อมูลเป็นระดับทีแตกต่าง

กัน โดยมีความสัมพันธ์แบบ

กัน โดยมีความสัมพันธ์แบบ oneone--toto--many many ระหว่างระดับระหว่างระดับ ่่ที่ต่างๆ ที่ต่างๆ „ „ Network Network เป็นการเก็บข้อมูลที่ติดต่อข้ามตารางเป็นการเก็บข้อมูลที่ติดต่อข้ามตารางูู „ „ Relational Relational เป็นการเก็บข้อมูลหลายตารางเป็นการเก็บข้อมูลหลายตาราง แต่สามารถแต่สามารถ เชื่อมโยงกันได้โดย เชื่อมโยงกันได้โดย KeyKey เชอมโยงกนไดโดย เชอมโยงกนไดโดย KeyKey

(7)

Flat File Flat File

PIN Owner Zoning P101 Wang Residential (1) P101 Wang Residential (1) P101 Chang Residential (1) P102 S i h C i l (2) P102 Smith Commercial (2) P102 Jones Commercial (2) P103 Costello Commercial (2) P104 Smith Residential (1)

(8)

Hierarchical Hierarchical Zoning 2 1 P101 P104 P102 P103 P101 P104 P102 P103

Wang Smith Smith

Costello Chang

Jones

(9)

Network Network

Zoning Owner

2

1 Wang Chang Smith Jones Costello

(10)

Relational Relational Z i O Zoning Owner Zonecode PIN Parcel

(11)

Normalization

„ „ Normalization Normalization เป็นกระบวนการของการแยกข้อมูลเป็นกระบวนการของการแยกข้อมูล คณลักษณะจากหนึ่งตารางออกเป็นตารางเล็กๆ หลายตาราง คณลักษณะจากหนึ่งตารางออกเป็นตารางเล็กๆ หลายตาราง คุณลกษณะจากหนงตารางออกเปนตารางเลกๆ หลายตาราง คุณลกษณะจากหนงตารางออกเปนตารางเลกๆ หลายตาราง โดยที่ยังคงรักษาความเชื่อมโยงระหว่างตารางข้อมูลเหล่านั้น โดยที่ยังคงรักษาความเชื่อมโยงระหว่างตารางข้อมูลเหล่านั้น ไว้ได้ ไว้ได้ ไวได ไวได „ „ วัตถุประสงค์ของการวัตถุประสงค์ของการ NormalizationNormalization „ „ หลีกเลี่ยงความซํ้าซ้อนของข้อมลในตารางหลีกเลี่ยงความซํ้าซ้อนของข้อมลในตาราง „ „ หลกเลยงความซาซอนของขอมูลในตารางหลกเลยงความซาซอนของขอมูลในตาราง „ „ เพื่อให้แน่ใจว่าข้อมูลคุณลักษณะที่จัดเก็บในตารางเพื่อให้แน่ใจว่าข้อมูลคุณลักษณะที่จัดเก็บในตาราง ป ั ป ี ั้ ป ั ป ี ั้ ต่างๆสามารถแยกรักษาและปรับปรุง อีกทังสามารถ ต่างๆสามารถแยกรักษาและปรับปรุง อีกทังสามารถ เชื่อมต่อกันได้เมื่อจําเป็น เชื่อมต่อกันได้เมื่อจําเป็น

(12)

An Unnormalized Table An Unnormalized Table

PIN Owner Owner Address Sale Date Acres Zone code Zoning P101 Wang 101 Oak St. 1-10-98 1.0 1 Residential P101 Wang 101 Oak St. 1 10 98 1.0 1 Residential

Chang 200 Maple St.

P102 Smith 300 Spruce Rd 10 6 68 3 0 2 Commercial P102 Smith 300 Spruce Rd. 10-6-68 3.0 2 Commercial

Jones 105 Ash St.

P103 C ll 206 El S 3 9 2 2 C i l P103 Costello 206 Elm St. 3-7-97 2.5 2 Commercial P104 Smith 300 Spruce Rd. 7-30-78 1.0 1 Residential

(13)

First Step in Normalization First Step in Normalization

PIN Owner Owner Address Sale Date Acres Zone code Zoning P101 Wang 101 Oak St. 1-10-98 1.0 1 Residential P101 Wang 101 Oak St. 1 10 98 1.0 1 Residential P101 Chang 200 Maple St. 1-10-98 1.0 1 Residential P102 Smith 300 Spruce Rd 10 6 68 3 0 2 Commercial P102 Smith 300 Spruce Rd. 10-6-68 3.0 2 Commercial P102 Jones 105 Ash St. 10-6-68 3.0 2 Commercial P103 C ll 206 El S 3 9 2 2 C i l P103 Costello 206 Elm St. 3-7-97 2.5 2 Commercial P104 Smith 300 Spruce Rd. 7-30-78 1.0 1 Residential

(14)

PIN Sale Date Acres Zone code Zoning P101 1-10-98 1 0 1 Residential

Separate Tables Separate Tables

from the First Step in

from the First Step in P101 1 10 98 1.0 1 Residential

P101 1-10-98 1.0 1 Residential P102 10 6 68 3 0 2 Commercial

from the First Step in from the First Step in Normalization Normalization P102 10-6-68 3.0 2 Commercial P102 10-6-68 3.0 2 Commercial Parcel Table P103 3-7-97 2.5 2 Commercial P104 7-30-78 1.0 1 Residential PIN Owner P101 Wangg P101 Chang P102 Smith

Owner Owner Address Wang 101 Oak St. Address Table P102 Smith P102 Jones P103 Costello g Chang 200 Maple St. Smith 300 Spruce Rd P103 Costello P104 Smith Smith 300 Spruce Rd. Jones 105 Ash St. Costello 206 Elm St Costello 206 Elm St.

(15)

PIN Sale Date Acres Zone code P101 1-10-98 1.0 1

Separate Tables after Separate Tables after

Parcel Table P101 1-10-98 1.0 1 P102 10-6-68 3.0 2 Normalization Normalization PIN Owner Parcel Table P102 10-6-68 3.0 2 P103 3-7-97 2.5 2 PIN Owner P101 Wang P103 3 7 97 2.5 2 P104 7-30-78 1.0 1 P101 Chang P102 Smith P102 Jones

P103 Costello Owner Table

Owner Owner Address Wang 101 Oak St. P104 Smith Chang 200 Maple St.

Smith 300 Spruce Rd.

(16)

ชนิดของความสัมพันธ์

„

„ ฐานข้อมูลเชิงสัมพันธ์ฐานข้อมูลเชิงสัมพันธ์ (Relational Database) (Relational Database) แบ่งตามชนิดแบ่งตามชนิด

ของความสัมพันธ์ออกเป็น

ของความสัมพันธ์ออกเป็น 3 3 ชนิดชนิด คือคือ OneOne--toto--one, Oneone,

One--toto--ของความสมพนธออกเปน

ของความสมพนธออกเปน 3 3 ชนดชนด คอคอ OneOne toto one, Oneone, One toto many

many และและ ManyMany--toto--oneone

One-to-one One-to-manyy

(17)

New Attribute Data Entry FIELD in the Table

C

Attribute Data Classification Creating New Attribute Data

from Existing Data

(18)

การนําเข้าข้อมูลคุณลักษณะ

ู ุ

„ „ กําหนดกําหนด FIELD FIELD ที่จะปรากฏอย่ในตารางข้อมลคณลักษณะที่จะปรากฏอย่ในตารางข้อมลคณลักษณะ „ „ กาหนดกาหนด FIELD FIELD ทจะปรากฏอยูในตารางขอมูลคุณลกษณะทจะปรากฏอยูในตารางขอมูลคุณลกษณะ „ „ จํานวนจํานวน FIELDFIELD „ „ ื่ื่ „ „ ชือชือ FIELDFIELD „ „ ความกว้างความกว้าง FIELDFIELD „ „ ชนิดข้อมูลชนิดข้อมูล „ „ จํานวนทศนิยมจํานวนทศนิยม ((กรณีข้อมูลเป็นตัวเลขกรณีข้อมูลเป็นตัวเลขูู ))

References

Related documents

With best-in-class, productivity-boosting, full-throttle throughput, produce vivid color plastic cards on demand fast—thanks to Zebra’s highly advanced ZXP Series 8 retransfer

Hermeneutic phenomenology is a method of abstemious reflection on the basic structures of the lived experience of human existence. The term method refers to the way or attitude of

[r]

Grid or mesh based numerical methods such as the finite difference methods (FDM) and the finite element methods (FDM) have been widely applied to various areas of computational

It follows that even if we did represent A-presentness in experience, and even if those experiences were best explained by the fact that some things are

2008 ƒ Trading ƒ Performance Measurement ƒ Data Management ƒ Compliance ƒ IT Spending Priorities ƒ Derivatives Management ƒ Portfolio Management ƒ Client Reporting ƒ

complejidad del urbanismo, y éste puede complejidad del urbanismo, y éste puede enfocarse desde diferentes aspectos, la forma y enfocarse desde diferentes aspectos,

Thus, services contracts and construction were not covered initially and procurement by American states was wholly excluded, since these were not covered under the Tokyo Round