際際滷

際際滷Share a Scribd company logo
Open Source Map Service
with Goserver 1.7.3 part I
Mr. Chaipat Nengcomma
Email: pk_a1977@hotmail.com
Web: http://emap.wordpress.com
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
                                    ??????? ???????????
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
                           ??????? ???????????
What¨s new
 - Build in GeoWebCache: caching WMS tiles
 - Fully support SLD, WMS, WCS and WFS




                         ??????? ???????????
Download

Download GeoServer ???
http://geoserver.org/display/GEOS/GeoServer+1.7.3




                            ??????? ???????????
Let start




                         009
                       2
                    GIS
                  PK



            http://localhost:8080/geoserver


                  ??????? ???????????
Publishing Feature Data
                                                ?????? config ????




                                    009
                                  2
                               GIS
                             PK

                                       ????????? Data ?????????????????

                          ??????? ???????????
Publishing Feature Data


                                         009
                                       2
                                    GIS
                                  PK


              ??????????? Namespace ???????
              Feature ?? GML



                          ??????? ???????????
Publishing Feature Data



                                      009
                                    2
                                 GIS
                               PK

               ?????? URI ??????? Namespace




                          ??????? ???????????
Publishing Feature Data



                                                       009
                                                   IS2
                                                PKG

          ????????? DataStores ?????????????????????
          ?????????????


                          ??????? ???????????
Publishing Feature Data




     ????? Feature Data Set ????

                            009
                        IS2
                     PKG

           ????????????? Data Type ??????????
                          ??????? ???????????
Publishing Feature Data



                                               009
                                           IS2
                                        PKG



              ?????????????????????????????
              shapefile ????????? encoding

                          ??????? ???????????
Publishing Feature Data




 ??????????? FeatureType




                          ??????? ???????????
Publishing Feature Data




         ????? FeatureType ???????????????? Dataset ID


                          ??????? ???????????
Publishing Feature Data




??????????????????????????????????
                           ??????? ???????????
Publishing Feature Data



                                       009
                                     2
                                  GIS
                                PK




?????????????????????????????? BBOX
             ?
                           ??????? ???????????
Publishing Feature Data




                      009
                    2
                 GIS
               PK

????????????????????????? Feature ?? KML


                          ??????? ???????????
Publishing Feature Data




            ?????? Save ??????????????????????????????



                          ??????? ???????????
Publishing Feature Data




                                                      009
                                                  IS2
                                               PKG


????????????????????????????????????????
???? Map Preview
                             ??????? ???????????
Publishing Feature Data



                                                            009
                                                        IS2
                                                     PKG


????????????????????????????? emap:province
?? Openlayer ??????? WMS

                               ??????? ???????????
Publishing Feature Data




                                                            009
                                                        IS2
                                                     PKG

????????????????????????????? emap:province
?? Google Earth ??????? KML Feature
Service
                               ??????? ???????????
Publishing Raster Data



                                     009
                                   2
                                GIS
                              PK


 ????????? Config>Data>CoverageStore ????????
 ???????? coverage layer

                         ??????? ???????????
Publishing Raster Data



                                                  009
                                              IS2
                                           PKG


 ????????????? Raster Data ???????? Dataset ID


                         ??????? ???????????
Publishing Raster Data




                  ????????????????????????????????

                         ??????? ???????????
Publishing Raster Data




            ?????????????????????????????????????
                                      ?
                         ??????? ???????????
Publishing Raster Data



                                        009
                                      2
                                   GIS
                                 PK




  Set Up ?????????? Coverage Service


                         ??????? ???????????
Publishing Raster Data



                009
              2
           GIS
         PK


   ????? Coverage Dataset ID ??????????????



                           ??????? ???????????
Publishing Raster Data




                                                          009
                                                      IS2
                                                   PKG


????????????????????????????????????????
???? Map Preview
                             ??????? ???????????
Publishing Raster Data



              009
            2
         GIS
       PK




                  ???????????????? Openlayer ???? WMS
                         ??????? ???????????
Open Geospatial Consortium (OGC)
    Open Geospatial Consortium (OGC) ????????????????????????
????????? ?????????????????????????????????????????????
                             ?        ?
??????? 300 ???? ???????????????????? ,????? ????????
??????????? ??????????????????? ????????????????????????
????????????? ??????????????????? ??? Interoperability ???????
????????????? ????????????????????????????????????????????? ?????
                                            ?
?????????????? ??????????????????????????????????????????
??????????????????? (Bechler , 2003)

                             ??????? ???????????
Open Geospatial Consortium (OGC)
    ??????????????? ????????????????????????????????????? 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)




                              ??????? ???????????
Interoperability
       ???????????????????????????????????????????
??????????????????????????????????????????????????????
           ?
??????????? ??????????? ?????????????????????????
??????????????????????????????????????????????????????????
             ?            ?                   ?          ?
????????????????????????????????????????????? ???          ?
????????? Interoperability ???????????????????????????????
?????? (Interface) ????????????? ???? ?????????? ????????????
???????????????????????????????? (Kralidis, 2005)

                            ??????? ???????????
OGC Web Service




                  ??????? ???????????
Web Map Service (WMS)
         Web Map Service ??????????????????????????????????????????
                                                    ?                 ?
??????????????????????????? ?????????????????????????????????????????????
          ??            ?         ?                       ?
????????????? ?????????????????????????????????????????????????????????
                          ??                                  ?
??????????????????????? ??????? Web Map Service (WMS) ????????????????
                      ?
?????? (bitmap) ?????????????????????????????????????????????????????????????
                                ?
??????? ??????????????????????????? PNG, GIF, JPEG
       Web Map Service ???????????? 3 Operation ?????? GetCapabilities,
GetMap, GetFeatureInfo


                                  ??????? ???????????
Web Map Service (WMS)
         Web Map Service ??????????????????????????????????????????
                                                    ?                 ?
??????????????????????????? ?????????????????????????????????????????????
          ??            ?         ?                       ?
????????????? ?????????????????????????????????????????????????????????
                          ??                                  ?
??????????????????????? ??????? Web Map Service (WMS) ????????????????
                      ?
?????? (bitmap) ?????????????????????????????????????????????????????????????
                                ?
??????? ??????????????????????????? PNG, GIF, JPEG
       Web Map Service ???????????? 3 Operation ?????? GetCapabilities,
GetMap, GetFeatureInfo


                                  ??????? ???????????
Config WMS Service




                                   009
                               IS2
                            PKG



    ?????????????????????????????? WMS
                       ??????? ???????????
Config WMS Service



                        009
                      2
                   GIS
                 PK




 Set Up ??? WMS Content ???????? Group Layers
                        ??????? ???????????
Config WMS Service

                                               009
                                           IS2
                                        PKG




 ????? Group Layers ????????????????? layers ????
 ???????
                        ??????? ???????????
Config WMS Service


                                                   009
                                               IS2
                                            PKG




   ???????????????????????????????????????
   ??????? WMS Service Instant

                      ??????? ???????????
Config WMS Service




                                                      009
                                                    2
                                                 GIS
                                               PK




   ????? Test ?????????????????? WMS Request Client
                         ??????? ???????????
WMS: GetCapabilities
 http://127.0.0.1:8080/geoserver/ows?service=WMS
 &request=GetCapabilities



                                                 009
                                               2
                                            GIS
                                          PK



                        ??????? ???????????
WMS: GetMap
http://127.0.0.1:8080/geoserver/wms?HEIGHT=550&WI
DTH=357&LAYERS=emap:province&SRS=EPSG%3A
4326&FORMAT=image/png&SERVICE=WMS&VERSI
ON=1.1.1&REQUEST=GetMap&BBOX=95.798,4.264,10
7.192,21.818
                                                     009
                                                 IS2
                                              PKG



                        ??????? ???????????
WMS: GetFeatureInfo
http://127.0.0.1:8080/geoserver/wms?bbox=95.7985,4.233
0,107.1924,21.78673&info_format=text/plain&request=G
etFeatureInfo&layers=emap:province&query_layers=em
ap:province&width=550&height=250&x=170&y=160




                          ??????? ???????????
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         ??????? ???????????
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         ??????? ???????????
Web Feature Service (WFS)




              009
          IS2
       PKG


                     ??????? ???????????
Web Feature Service (WFS)




                        009
                      2
                   GIS
                 PK



                     ??????? ???????????
Config WFS Service




                                               009
                                             2
                                          GIS
                                        PK

    ?????????????????????????????? WFS
                        ??????? ???????????
Config WFS Service




                 009
               2
            GIS
          PK


 Set Up ??? WFS Content ??????????????????????
                       ??????? ???????????
Config WFS Service




                                   009
                                 2
                              GIS
                            PK
????? Service Description ??????? Capabilities Document



                         ??????? ???????????
WFS: GetCapabilities
 http://127.0.0.1:8080/geoserver/ows?service=WFS
 &request=GetCapabilities



                                009
                              2
                           GIS
                         PK




                        ??????? ???????????
WFS: GetFeature
http://127.0.0.1:8080/geoserver/wfs?request=GetFeature
&version=1.1.0&typeName=emap:province&outputFor
mat=GML2&FEATUREID=province.3




                                009
                            IS2
                         PKG


                          ??????? ???????????
WFS: GetFeature Advance with Filter Encoding
               Support FE Comparison Operation




                        009
                    IS2
                 PKG



              Support GML2.2 Data Type
                       ??????? ???????????
WFS: GetFeature Advance with Filter Encoding



                                           9
                                        00
                                    IS2
                                  KG
                                 P




            Advance Function for Spatial Query

                       ??????? ???????????
WFS: GetFeature Advance with Filter Encoding




                  Spatial Query: ??????????????? intersect
                  ?? Point
             009
         IS2
      PKG


                        ??????? ???????????
Web Coverage Service (WCS)
         Web Coverage Service ??????????????????????????????????????
???????????????????????????????????????????????????? ???????????????????
     ?
????????????????????????????????????????? ??????????????????????????
                                              ?
(DEM) ????????????????????? X, Y ??????????????????????? ??????????????? ?
???????????????????? ??????????????????????????????????????????????????
Geotiff ??????????????????????????????????????????????????? ???? IMG, ECW
                                                ?
???????
       Web Coverage Service ???????????? 3 Operation ??????
GetCapabilities, DescribeCoverage, GetCoverage

                                 ??????? ???????????
Web Coverage Service (WCS)
       Web Coverage Service ???????????? 3 Operation ??????
GetCapabilities, DescribeCoverage, GetCoverage




                                ??????? ???????????
Config WCS Service




                   009
                 2
              GIS
            PK

    ?????????????????????????????? WCS
                        ??????? ???????????
Config WCS Service




                            009
                        IS2
                     PKG



 Set Up ??? WCS Content ??????????????????????
                       ??????? ???????????
Config WCS Service




                 009
               2
            GIS
          PK


       ??????? Raster Plug-in ?????? Geoserver

                         ??????? ???????????
WCS: GetCapabilities
 http://127.0.0.1:8080/geoserver/ows?service=WCS
 &request=GetCapabilities




             009
         IS2
      PKG


                        ??????? ???????????
WCS: DescribeCoverage
http://127.0.0.1:8080/geoserver/ows?service=WCS&request=DescribeC
overage&version=1.0.0&identifiers=emap:Khon_kane_4326




                 009
             IS2
          PKG

               ??????? XML ??????????????????? Coverage

                              ??????? ???????????
WCS: GetCoverage
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




                 009
             IS2
          PKG
                         ??????? ??? Geotif ??? Coverage
                                ??????? ???????????
Publishing Spatial Database
                                              WKB



                          009
                        2
                     GIS
                   PK



              ???????????????? Geometry ??
              Postgresql
                        ??????? ???????????
Publishing Spatial Database



                                   009
                               IS2
                            PKG

          ????????? DataStores ?????????????????????
          ?????????????


                         ??????? ???????????
Publishing Spatial Database


                                        009
                                    IS2
                                 PKG
     ????? Feature Data Set ????




           ????????????? Data Type ??????????
                         ??????? ???????????
Publishing Spatial Database




 ??????????? FeatureType




                        ??????? ???????????
Publishing Spatial Database




         ????? FeatureType ???????????????? Dataset ID


                         ??????? ???????????
Publishing Spatial Database




                              009
                            2
                         GIS
                       PK




      ??????????????????????????????
                        ??????? ???????????
Publishing Spatial Database




            ?????? Save ??????????????????????????????



                        ??????? ???????????
Publishing Feature Data




                                              009
                                          IS2
                                       PKG

????????????????????????????????????????
???? Map Preview
                             ??????? ???????????
Publishing Spatial Database

                                                           009
                                                       IS2
                                                    PKG


                           Geometry Data From Database
    Attribute Data From Database


????????????????????????????? pk:province ?? Openlayer
                              ??????? ???????????
?????? ?

   ??????? ???????????

More Related Content

Geoserver 85