Hello,

 

  As few years have passed since the time that I was using mapserver
constantly (before geojson file format started emerging) I would like to ask
if there is any basic difference while creating the map files.

 

It would be of great help if you could provide me an example in the
following map file which loads a shape file. What differences must be done
in order to load the file cemetery.geojson instead of the cemetery.shp?

 

 

MAP

                INCLUDE '../../geomoose_globals.map'

 

                WEB

                                METADATA

                                                'ows_title' 'Cemeteries'

                                                INCLUDE
'../../common_metadata.map'

            'wfs_getfeature_formatlist' 'gml,geojson'

                                END

                END

 

    DEBUG 5

 

 

                LAYER

                                NAME cemeteries

                                GROUP cemeteries

                                STATUS ON

 

                                METADATA

                                                'ows_title' 'cemeteries'

                                                'ows_include_items' 'all'

                                                'gml_include_items' 'all'

                                END

 

                                TYPE POINT

                                DATA './cemeteries.shp'

                                TOLERANCE 4

                                PROJECTION

                                                'init=epsg:4326'

                                END

 

                                CLASS

                                                STYLE

                                                                SYMBOL
'cemetery.png'

                                                                SIZE 13

                                                END

                                END

 

                                TEMPLATE 'dummy'

                END

 

END ## end Map

 

 

Thank you for your help.



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
_______________________________________________
mapserver-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to