AW: AW: [mapserver-users] Mapserver Projection Errors

Eichner, Andreas - SID-NLKM Andreas.Eichner at sid.sachsen.de
Thu Oct 20 05:04:31 PDT 2011


 
I can trigger the message be a leading space. Replacing the original config:

   PROJECTION
       'init=epsg:31468'
   END

by the equivalent string from the epsg definition file:

 PROJECTION
   "+proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=bessel +datum=potsdam +units=m +no_defs"
 END

all works well, but with a leading space:

 PROJECTION
   " +proj=tmerc +lat_0=0 +lon_0=12 +k=1 +x_0=4500000 +y_0=0 +ellps=bessel +datum=potsdam +units=m +no_defs"
 END

it results in the mentioned error:

$ /usr/lib/cgi-bin/ms6 QUERY_STRING="map=/data/Hohlraumkarte/Hohlraumkarte.map&service=WMS&request=GetCapabilities" 
Content-type: text/html

<HTML>
<HEAD><TITLE>MapServer Message</TITLE></HEAD>
<!-- MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
<BODY BGCOLOR="#FFFFFF">
msProcessProjection(): Projection library error. projection not named
</BODY></HTML>

So I guess your script doesn't properly generate the PROJECTION block...

> -----Ursprüngliche Nachricht-----
> Von: mapserver-users-bounces at lists.osgeo.org 
> [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag 
> von SixDegrees
> Gesendet: Donnerstag, 20. Oktober 2011 12:36
> An: mapserver-users at lists.osgeo.org
> Betreff: Re: AW: [mapserver-users] Mapserver Projection Errors
> 
> To summarize the preceding thread contents: Mapfiles are 
> generated using
> python, in turn using the GDAL libraries to extract 
> information like the
> projection needed in the mapfile. Mapfiles are constructed for use in
> response to WMS requests. QGis initially makes a WMS GetCapabilities
> request, and this is what is producing the errors in the 
> Mapserver logfile,
> one error per layer. This isn't specific to QGis; I get the 
> same errors when
> I send my own GetCapabilities request through a browser. The 
> returned XML
> does not contain any errors, and layers that have projections 
> that differ
> from the top-level mapfile projection - for example, a layer 
> with projection
> for UTM Zone 38N, with the mapfile set for epsg:4326 - have 
> bounding boxes
> that have been correctly re-projected into the map's projection. If I
> replace the layer's Proj.4-style multi-argument string with
> "init=epsg:xxxx", where xxxx is the layer's epsg code, no 
> errors are thrown.
> Errors only arise when the multi-argument form of the 
> projection string is
> used, even when it is equivalent to the epsg code projection.
> 
> 
> Eichner, Andreas - SID-NLK wrote:
> > 
> > I think spaces at the end are not a problem. How is GDAL 
> involved here?
> > How do you generate the map files? And how is map file generation
> > related to QGIS?
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at .osgeo
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> > 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/Mapserver-Projection-Er
> rors-tp6908527p6912415.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 



More information about the MapServer-users mailing list