AW: AW: [mapserver-users] Mapserver Projection Errors
SixDegrees
paulcarlisle at comcast.net
Thu Oct 20 06:37:52 PDT 2011
Thanks for the effort. I will check this when I get back to the office
tomorrow. I would bet heavy money that there's no leading space, but I've
been wrong before.
Eichner, Andreas - SID-NLK wrote:
>
> 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>
>
> <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 .osgeo
>> [mailto:mapserver-users-bounces at .osgeo] Im Auftrag
>> von SixDegrees
>> Gesendet: Donnerstag, 20. Oktober 2011 12:36
>> An: mapserver-users at .osgeo
>> 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 .osgeo
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
> _______________________________________________
> 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-Errors-tp6908527p6912907.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list