GEOSERVER Tutorial
Transcript of GEOSERVER Tutorial
![Page 1: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/1.jpg)
Open Source Map Servicewith Goserver 1.7.3 part I
Mr. Chaipat NengcommaEmail: [email protected]: http://emap.wordpress.com
![Page 2: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/2.jpg)
ชัยภัทร เนื่องคาํมา
Content - What’s new feature in Geoserver 1.7.3
- Publish Feature Data
- Publish Raster Data
- OGC Web Map Service
- OGC Feature Service
- OGC Web Coverage Service
- Config Data from Spatial Database
- Tile Caching on GeoWebCach
![Page 3: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/3.jpg)
ชัยภัทร เนื่องคาํมา
What’s new
- Support for ArcSDE rasters
- Support REST(REpresentational State Transfer )
- JDBC Image Mosaic : Store pyramids in a JDBC database
- WFS output in Excel format and CSV
- Directory Based: Loading and configuring multiple shapefiles in one directory
![Page 4: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/4.jpg)
ชัยภัทร เนื่องคาํมา
What’s new
- Build in GeoWebCache: caching WMS tiles
- Fully support SLD, WMS, WCS and WFS
![Page 5: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/5.jpg)
ชัยภัทร เนื่องคาํมา
Download
Download GeoServer ที่ http://geoserver.org/display/GEOS/GeoServer+1.7.3
![Page 6: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/6.jpg)
ชัยภัทร เนื่องคาํมา
Let start
http://localhost:8080/geoserver
PKGIS2009
![Page 7: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/7.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Dataทําการ config ระบบ
ไปที่เมนู Data เพื่อเตรียมขอมลู
PKGIS2009
![Page 8: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/8.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
ทําการสราง Namespace สําหรับ Feature บน GML
PKGIS2009
![Page 9: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/9.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
กําหนด URI สําหรับ Namespace
PKGIS2009
![Page 10: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/10.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
ไปที่เมนู DataStores เพื่อกําหนดไดเรกทอรี่ที่เก็บขอมูล
PKGIS2009
![Page 11: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/11.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
สราง Feature Data Set ใหม
กําหนดชนดิของ Data Type ที่ตองการ
PKGIS2009
![Page 12: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/12.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
กําหนดไดเรกทอรี่ที่เก็บขอมูล shapefile และรูปแบบ encoding
PKGIS2009
![Page 13: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/13.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
ทําการสราง FeatureType
![Page 14: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/14.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
เลือก FeatureType ที่ไดสรางไวใน Dataset ID
![Page 15: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/15.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
กําหนดรายละเอียดเกี่ยวกับสญัลกัษณะ
![Page 16: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/16.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
กําหนดระบบพิกดัภูมิศาสตรและคา BBOX
PKGIS2009
![Page 17: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/17.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
กําหนดรายละเอียดการแสดงผล Feature ใน KML
PKGIS2009
![Page 18: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/18.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
ทําการ Save บันทึกรายละเอียดที่ไดกําหนดมา
![Page 19: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/19.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
ตรวจสอบดผูลลัพธของชั้นขอมูลที่ไดสรางผาน Map Preview
PKGIS2009
![Page 20: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/20.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
เลือกชั้นขอมูลที่ไดสรางคือ emap:province บน Openlayer ผานทาง WMS
PKGIS2009
![Page 21: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/21.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
เลือกชั้นขอมูลที่ไดสรางคือ emap:province บน Google Earth ผานทาง KML Feature Service
PKGIS2009
![Page 22: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/22.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Raster Data
ไปที่เมนู Config>Data>CoverageStore เพื่อทําการสราง coverage layer
PKGIS2009
![Page 23: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/23.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Raster Data
กําหนดชนิดของ Raster Data และสราง Dataset ID
PKGIS2009
![Page 24: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/24.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Raster Data
กําหนดไดเรกทอรี่ที่จัดเก็บขอมูล
![Page 25: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/25.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Raster Data
กําหนดรายละเอียดของระบบพิกัดภูมิศาสตร
![Page 26: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/26.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Raster Data
Set Up รายละเอียด Coverage Service
PKGIS2009
![Page 27: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/27.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Raster Data
เลือก Coverage Dataset ID ที่ไดสรางไว
PKGIS2009
![Page 28: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/28.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Raster Data
ตรวจสอบดผูลลัพธของชั้นขอมูลที่ไดสรางผาน Map Preview
PKGIS2009
![Page 29: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/29.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Raster Data
ผลลัพธที่แสดงบน Openlayer ผาน WMS
PKGIS2009
![Page 30: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/30.jpg)
ชัยภัทร เนื่องคาํมา
Open Geospatial Consortium (OGC) เปนองคกรอิสระไมหวงัผลทางธรุกิจ เกิดจากการรวมกลุมของบริษัทตางๆในภาคอตุสาหกรรมมากกวา 300 แหง ตลอดจนหนวยงานของรฐั ,เอกชน รวมไปถงึมหาวทิยาลยั และองคกรอิสระตางๆ เพื่อกําหนดกรอบมาตรฐานในทํางานรวมกนั กอใหเกิดการทาํงาน แบบ Interoperability สําหรบัเทคโนโลยทีีเ่กี่ยวของกับสารสนเทศเชิงพื้นทีแ่ละเชงิตําแหนง รวมไปถงึการสนับสนนุ สงเสริมการแบงปนขอมลูปรภิูมิในรปูแบบการบรกิารขอมลูปรภิูมิ (Bechler , 2003)
Open Geospatial Consortium (OGC)
![Page 31: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/31.jpg)
ชัยภัทร เนื่องคาํมา
มาตรฐานหลกัทีเ่ปนทีน่ิยมกันใชกันอยางแพรหลายไดแก Web Map Service (WMS) , Web Feature Service (WFS) , Web Coverage Service (WCS) , Style Layer Descriptor (SLD) , Filter Encoding (FE) , Web Map Context (WMC) , Geography Markup Language (GML)
Open Geospatial Consortium (OGC)
![Page 32: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/32.jpg)
ชัยภัทร เนื่องคาํมา
คอืความสามารถของระบบหรอืสวนประกอบของระบบในการแลกเปลีย่นสารสนเทศและขอมลูสําหรบัการทํางานโตตอบกนัระหวางระบบ รวมถงึความ สามารถของระบบในการเขาถงึแหลงขอมลูทีอ่ยูบนระบบทีแ่ตกตางกนัโดยทีไ่มมีการเปลีย่นแปลงหรอืแกไขการทํางานของกลไกลภายในระบบใดระบบหนึง่ การทํางานแบบ Interoperability จะอาศยัการทํางานรวมกันดวยสวนโตตอบ (Interface) และชดุคาํสั่ง ทีเ่ปนมาตรฐาน ซึ่งทกุๆระบบสามารถรองรบัการทํางานในลกัษณะนี ้(Kralidis, 2005)
Interoperability
![Page 33: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/33.jpg)
ชัยภัทร เนื่องคาํมา
OGC Web Service
![Page 34: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/34.jpg)
ชัยภัทร เนื่องคาํมา
Web Map Service (WMS)Web Map Service เปนขอกําหนดมาตรฐานทีใ่ชในการผลติแผนทีจ่าก
ขอมูลปริภมูิเพือ่บริการผูใช โดยผูใชสามารถเรยีกขอมูลแผนทีจ่ากหลายๆแหลงมาซอนทับกันได นอกจากนีย้งัรวมไปถึงการบริการขอมูลเชิงบรรยายทีส่ัมพันธเชงิตําแหนงกับขอมูลปริภมูิ แมขาย Web Map Service (WMS) จะทําการสรางภาพบิตแมป (bitmap) จากขอมูลปริภมูิและทาํการสงภาพบติแมปมายงัผูใชที่อยูทางฝงลูกขาย โดยรปูแบบของภาพบิตแมปไดแก PNG, GIF, JPEG
Web Map Service จะประกอบดวย 3 Operation ไดแก GetCapabilities, GetMap, GetFeatureInfo
![Page 35: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/35.jpg)
ชัยภัทร เนื่องคาํมา
Web Map Service (WMS)Web Map Service เปนขอกําหนดมาตรฐานทีใ่ชในการผลติแผนทีจ่าก
ขอมูลปริภมูิเพือ่บริการผูใช โดยผูใชสามารถเรยีกขอมูลแผนทีจ่ากหลายๆแหลงมาซอนทับกันได นอกจากนีย้งัรวมไปถึงการบริการขอมูลเชิงบรรยายทีส่ัมพันธเชงิตําแหนงกับขอมูลปริภมูิ แมขาย Web Map Service (WMS) จะทําการสรางภาพบิตแมป (bitmap) จากขอมูลปริภมูิและทาํการสงภาพบติแมปมายงัผูใชที่อยูทางฝงลูกขาย โดยรปูแบบของภาพบิตแมปไดแก PNG, GIF, JPEG
Web Map Service จะประกอบดวย 3 Operation ไดแก GetCapabilities, GetMap, GetFeatureInfo
![Page 36: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/36.jpg)
ชัยภัทร เนื่องคาํมา
Config WMS Service
ทําการปรับตั้งคารายละเอียดของ WMS
PKGIS2009
![Page 37: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/37.jpg)
ชัยภัทร เนื่องคาํมา
Config WMS Service
Set Up คา WMS Content และสราง Group Layers
PKGIS2009
![Page 38: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/38.jpg)
ชัยภัทร เนื่องคาํมา
Config WMS Service
สราง Group Layers สําหรับการรวบหลาย layers เขาดวยกัน
PKGIS2009
![Page 39: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/39.jpg)
ชัยภัทร เนื่องคาํมา
Config WMS Service
กําหนดคําอธิบายและรายละเอียดในการอธิบายสําหรับ WMS Service Instant
PKGIS2009
![Page 40: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/40.jpg)
ชัยภัทร เนื่องคาํมา
Config WMS Service
ทดลอง Test คาที่ปรับตั้งผาน WMS Request Client
PKGIS2009
![Page 41: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/41.jpg)
ชัยภัทร เนื่องคาํมา
http://127.0.0.1:8080/geoserver/ows?service=WMS&request=GetCapabilities
WMS: GetCapabilities
PKGIS2009
![Page 42: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/42.jpg)
ชัยภัทร เนื่องคาํมา
http://127.0.0.1:8080/geoserver/wms?HEIGHT=550&WIDTH=357&LAYERS=emap:province&SRS=EPSG%3A4326&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=95.798,4.264,107.192,21.818
WMS: GetMap
PKGIS2009
![Page 43: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/43.jpg)
ชัยภัทร เนื่องคาํมา
http://127.0.0.1:8080/geoserver/wms?bbox=95.7985,4.2330,107.1924,21.78673&info_format=text/plain&request=GetFeatureInfo&layers=emap:province&query_layers=emap:province&width=550&height=250&x=170&y=160
WMS: GetFeatureInfo
![Page 44: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/44.jpg)
ชัยภัทร เนื่องคาํมา
Web Feature Service (WFS)Web Feature Service เปนขอกําหนดมาตรฐานทีใ่ชในการเขาถึงขอมูล
ปริภมูิชนดิเวกเตอรจากผูใหบริการขอมูล โดยผูใชสามารถเขาถึงขอมูลดวยการดาวโหลดขอมูลปริภมูิในรปูแบบเอกสาร XML ผานระบบอินเตอรเนต็
การทํางานของ Web Feature Service สามารถแบงออกไดเปน 2 ประเภทไดแก ฺBasic WFS และ Transaction WFS สําหรับงานวิจัยนีจ้ะกลาวถึงเฉพาะในสวนของ Basic WFS เทานัน้ เนือ่งจากระบบที่ออกแบบเนนทีก่ารเผยแพรและการแลกเปลี่ยนขอมูลปริภมูิ จึงไมมีความจําเปนที่จะตองแกไขเปลี่ยนแปลงขอมูลในสวนของแมขายผูใหบริการขอมูล
Basic WFS จะประกอบดวย 3 Operation ไดแก GetCapability, Describe FeatureType และ GetFeature
![Page 45: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/45.jpg)
ชัยภัทร เนื่องคาํมา
Web Feature Service (WFS)Web Feature Service เปนขอกําหนดมาตรฐานทีใ่ชในการเขาถึงขอมูล
ปริภมูิชนดิเวกเตอรจากผูใหบริการขอมูล โดยผูใชสามารถเขาถึงขอมูลดวยการดาวโหลดขอมูลปริภมูิในรปูแบบเอกสาร XML ผานระบบอินเตอรเนต็
การทํางานของ Web Feature Service สามารถแบงออกไดเปน 2 ประเภทไดแก ฺBasic WFS และ Transaction WFS สําหรับงานวิจัยนีจ้ะกลาวถึงเฉพาะในสวนของ Basic WFS เทานัน้ เนือ่งจากระบบที่ออกแบบเนนทีก่ารเผยแพรและการแลกเปลี่ยนขอมูลปริภมูิ จึงไมมีความจําเปนที่จะตองแกไขเปลี่ยนแปลงขอมูลในสวนของแมขายผูใหบริการขอมูล
Basic WFS จะประกอบดวย 3 Operation ไดแก GetCapability, Describe FeatureType และ GetFeature
![Page 46: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/46.jpg)
ชัยภัทร เนื่องคาํมา
Web Feature Service (WFS)
PKGIS2009
![Page 47: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/47.jpg)
ชัยภัทร เนื่องคาํมา
Web Feature Service (WFS)
PKGIS2009
![Page 48: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/48.jpg)
ชัยภัทร เนื่องคาํมา
Config WFS Service
ทําการปรับตั้งคารายละเอียดของ WFS
PKGIS2009
![Page 49: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/49.jpg)
ชัยภัทร เนื่องคาํมา
Config WFS Service
Set Up คา WFS Content และโหมดการบริการขอมูล
PKGIS2009
![Page 50: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/50.jpg)
ชัยภัทร เนื่องคาํมา
Config WFS Service
สราง Service Description สําหรับ Capabilities DocumentPKGIS2009
![Page 51: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/51.jpg)
ชัยภัทร เนื่องคาํมา
http://127.0.0.1:8080/geoserver/ows?service=WFS&request=GetCapabilities
WFS: GetCapabilities
PKGIS2009
![Page 52: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/52.jpg)
ชัยภัทร เนื่องคาํมา
http://127.0.0.1:8080/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=emap:province&outputFormat=GML2&FEATUREID=province.3
WFS: GetFeature
PKGIS2009
![Page 53: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/53.jpg)
ชัยภัทร เนื่องคาํมา
WFS: GetFeature Advance with Filter Encoding
Support GML2.2 Data Type
Support FE Comparison Operation
PKGIS2009
![Page 54: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/54.jpg)
ชัยภัทร เนื่องคาํมา
WFS: GetFeature Advance with Filter Encoding
Advance Function for Spatial Query
PKGIS2009
![Page 55: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/55.jpg)
ชัยภัทร เนื่องคาํมา
WFS: GetFeature Advance with Filter Encoding
Spatial Query: คนหาจังหวัดที่ intersect บน Point
PKGIS2009
![Page 56: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/56.jpg)
ชัยภัทร เนื่องคาํมา
Web Coverage Service (WCS)Web Coverage Service เปนขอกําหนดมาตรฐานการใหบริการขอมูล
ปริภมูิชนดิราสเตอรหรือขอมูลกริดผานระบบอินเตอรเนต็ โดยขอมูลจะมีลักษณะของคาความสัมพันธแบบสามแกนหรอืมากกวานัน้ เชนขอมูลแบบจําลองความสูง (DEM) มีคาของตําแหนงพิกัด X, Y และคาความสูงภูมิประเทศ ซึ่งจะแสดงอยูในรูปคาสีประจําพกิเซล โดยชนดิของขอมูลที่ใหบริการจะอยูในฟอรแมตมาตรฐาน Geotiff หรือฟอรแมทอื่นๆที่ผูผลิตซอฟทแวรจะเพิม่เติมเขาไป เชน IMG, ECW เปนตน
Web Coverage Service จะประกอบดวย 3 Operation ไดแก GetCapabilities, DescribeCoverage, GetCoverage
![Page 57: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/57.jpg)
ชัยภัทร เนื่องคาํมา
Web Coverage Service (WCS)Web Coverage Service จะประกอบดวย 3 Operation ไดแก
GetCapabilities, DescribeCoverage, GetCoverage
![Page 58: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/58.jpg)
ชัยภัทร เนื่องคาํมา
Config WCS Service
ทําการปรับตั้งคารายละเอียดของ WCS
PKGIS2009
![Page 59: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/59.jpg)
ชัยภัทร เนื่องคาํมา
Config WCS Service
Set Up คา WCS Content และโหมดการบริการขอมูล
PKGIS2009
![Page 60: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/60.jpg)
ชัยภัทร เนื่องคาํมา
Config WCS Service
ตดิตั้ง Raster Plug-in ใหกับ Geoserver
PKGIS2009
![Page 61: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/61.jpg)
ชัยภัทร เนื่องคาํมา
http://127.0.0.1:8080/geoserver/ows?service=WCS&request=GetCapabilities
WCS: GetCapabilities
PKGIS2009
![Page 62: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/62.jpg)
ชัยภัทร เนื่องคาํมา
http://127.0.0.1:8080/geoserver/ows?service=WCS&request=DescribeCoverage&version=1.0.0&identifiers=emap:Khon_kane_4326
WCS: DescribeCoverage
ผลลัพธ XML อธบิายรายละเอียดของ Coverage
PKGIS2009
![Page 63: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/63.jpg)
ชัยภัทร เนื่องคาํมา
http://127.0.0.1:8080/geoserver/ows?service=WCS&version=1.0.0&request=GetCoverage&CRS=EPSG:4326&width=3084&height=2977 &format=TIFF&COVERAGE=emap:Khon_kane_4326&bands=3,2,1&resx=100&resy=100 &bbox=102.8038,16.4090,102.8322,16.4368
WCS: GetCoverage
ผลลัพธ ภาพ Geotif ของ CoveragePKGIS2009
![Page 64: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/64.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Spatial Database
ตรวจสอบฐานขอมูล Geometry บน Postgresql
WKB
PKGIS2009
![Page 65: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/65.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Spatial Database
ไปที่เมนู DataStores เพื่อกําหนดไดเรกทอรี่ที่เก็บขอมูล
PKGIS2009
![Page 66: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/66.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Spatial Database
สราง Feature Data Set ใหม
กําหนดชนดิของ Data Type ที่ตองการ
PKGIS2009
![Page 67: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/67.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Spatial Database
ทําการสราง FeatureType
![Page 68: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/68.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Spatial Database
เลือก FeatureType ที่ไดสรางไวใน Dataset ID
![Page 69: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/69.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Spatial Database
กําหนดการเชื่อมตอกับฐานขอมูล
PKGIS2009
![Page 70: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/70.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Spatial Database
ทําการ Save บันทึกรายละเอียดที่ไดกําหนดมา
![Page 71: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/71.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Feature Data
ตรวจสอบดผูลลัพธของชั้นขอมูลที่ไดสรางผาน Map Preview
PKGIS2009
![Page 72: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/72.jpg)
ชัยภัทร เนื่องคาํมา
Publishing Spatial Database
เลือกชั้นขอมูลที่ไดสรางคือ pk:province บน Openlayer
Geometry Data From Database
Attribute Data From Database
PKGIS2009
![Page 73: GEOSERVER Tutorial](https://reader035.fdocuments.net/reader035/viewer/2022081801/546a44cab4af9feb6b8b4878/html5/thumbnails/73.jpg)
ชัยภัทร เนื่องคาํมา
คาํถาม ?