[mapserver-users] Layer must have an EPSG or AUTO projection code

asle asle at benoni.no
Thu Feb 26 02:58:01 PST 2009


Hi,
This was very helpful. I looked at the map file and noticed that QGIS had
not written any 'wms_srs' line. This must be a bug in the Mac OS X version
of QGIS? When I adde that line to every layer it seems to display the map
without errors. Here is one changed layer:

  LAYER
    NAME 'Markslag WMS'
    TYPE RASTER
    CONNECTIONTYPE WMS
    CONNECTION 'http://wms.geonorge.no/skwms1/wms.topo?'
    METADATA
      'wms_name'
'N5000Markslag,N2000Markslag,N1000Markslag,N500Markslag,N250Markslag,N50Markslag'
      'wms_srs' 'EPSG:32632'
      'wms_server_version' '1.1.1'
      'wms_format' 'image/png'
      'wms_style' ',,,,,'
    END
    METADATA
      'wms_title' 'Markslag WMS'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=utm'
    'zone=32'
    'ellps=WGS84'
    'datum=WGS84'
    'units=m'
    'no_defs'
    ''
    END
  END

/asle

Rahkonen Jukka wrote:
> 
> Hi,
> 
> Just for clarification, are you trying to connect to some external WMS
> service and cascade it through Mapserver?
> And the WMS layers that fail look something like this:
> 
> LAYER
>   NAME "prov_bound"
>   TYPE RASTER
>   STATUS ON
>   CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"
>   CONNECTIONTYPE WMS
>   METADATA
>     "wms_srs"             "EPSG:42304"
>     "wms_name"            "prov_bound"
>     "wms_server_version"  "1.1.1"
>     "wms_format"          "image/gif"
>   END
> END
> 
> What do you actually mean with "I have exported from QGIS. All layers are
> shape files."?
> 
> -Jukka Rahkonen-
> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/Layer-must-have-an-EPSG-or-AUTO-projection-code-tp2388793p2388992.html
Sent from the Mapserver - User mailing list archive at Nabble.com.




More information about the MapServer-users mailing list