Fischer, Brian wrote:
Does anyone have an idea why I am getting this warning in the GetCapabilities? I have the projection defined at the map level and in the wms_srs metadata. Do I need to define the full projection and not the epsg code to get rid of the warning?

<Title>*parcelwms*</Title>

- <!--

WARNING: Mandatory mapfile parameter '(at least one of) MAP.PROJECTION, LAYER.PROJECTION or wms_srs metadata' was missing in this context.

* * -->

Full GetCapbilities URL: http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities <http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities>

Mapfile is shown below:

MAP

                NAME 'DouglasOGC'

                SIZE 800 650

                STATUS ON

                EXTENT 285288 5069486 334186 5109721

                UNITS METERS

                FONTSET 'fonts/fontset.list'

                SYMBOLSET 'symbols/symbol.sym'

                CONFIG "PROJ_LIB" "C:\proj\nad"

                IMAGETYPE PNG

                PROJECTION

                "init=epsg:26915"

                END

                WEB

                                IMAGEPATH "/ms4w/tmp/ms_tmp/"

                                IMAGEURL "/ms_tmp/"

                                METADATA

                                  "wms_title" "Douglas County WMS Server"

"wms_conlineresource" "http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&";

                                  "wms_srs" "EPSG:26915"

"wms_abstract" "The Douglas County WMS server has been setup for testing purposes only. The data should not be used for any official decisions"

                                  "wfs_title" "Douglas County WFS Server"

"wfs_onlineresource" "http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&";

                                  "wfs_srs" "EPSG:26915"

"wfs_abstract" "The Douglas County WFS server has been setup for testing purposes only. The data should not be used for any official decisions"

                                END

                END

                LEGEND

                                STATUS ON

                END

                LAYER # Parcel Polygon Layer

                    NAME parcelwms

                    METADATA

                                "wms_title" "parcelwms"

                                'WMS_FEATURE_INFO_MIME_TYPE' 'text/plain'

                                "wfs_title" "parcels"

                                "gml_featureid" "FID"

                                "gml_include_items" "PIN,GIS_ACRES,TAXPAYER"

                    END

                    DATA 'ogc/parcels_utm15'

                    DUMP TRUE

                    STATUS OFF

TYPE LINE
                    CLASS

                      NAME "Parcels"

                      SYMBOL 'plainline'

                      COLOR 153 255 153

                      SIZE 1.5

                    END

  END # Parcels Polygon Layer

END ## end Map

Thanks,

Brian


My guess is that if you add a PROJECTION object to your 'parcelwms' layer the warning will go away. However I agree, the warning statement is misleading.


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to