[mapserver-users] GRID - how to display labels not in degrees

Alexandre Dube adube at mapgears.com
Thu Jun 21 08:33:31 PDT 2012


Stephen,

   I think a doc and example update would do the trick :
     https://github.com/mapserver/mapserver/issues/4353

Regards,

Alexandre


On 12-06-20 03:18 PM, Stephen Woodbridge wrote:
> There is still a bug because with bad settings is crashes and this 
> should be bugged, please.
>
> Thanks,
>   -Steve W
>
> On 6/20/2012 3:16 PM, Alexandre Dube wrote:
>> Hey Jeff,
>>
>>    Yes, it worked without setting any interval, but that made me realize
>> my mistake.  The interval values are in degrees when using 4326, so
>> switching to 900913 they must be in meters.  Setting them to more proper
>> values, such as 1000000 instead of 2 did the trick.  It works fine.
>>
>> Thanks,
>>
>> Alexandre
>>
>>
>> On 12-06-20 02:41 PM, Jeff McKenna wrote:
>>> On 12-06-20 2:30 PM, Alexandre Dube wrote:
>>>> Hi,
>>>>
>>>>    Using the [GRID] object, I'm able to do a GetMap request using
>>>> &SRS=EPSG:900913 to display a the grid correctly reprojected, but the
>>>> coordinates displayed (labels) are in degrees.  When switching the 
>>>> layer
>>>> PROJECTION from 4326 to 900913, the request throws a 504 error.
>>>>
>>>>    How can I display them in 900913 ?
>>>>
>>>>    See the attached image and layer definition.  I'm using MapServer
>>>> 6.0.1.
>>> Hello Alexandre,
>>>
>>> If I was in this situation I would:
>>>
>>> - try to duplicate it with an easy shp2img command (I can locally, 
>>> using
>>> gmap75 mapfile and setting the projection of the grid layer to 3978
>>> instead of 4326)
>>> - then, once you get that crash with that easy command (yup I get the
>>> crash with MS 6.0.3), I would start to comment all those parameters in
>>> your actual GRID object
>>> - for me, I found that once I commented the M*INTERVAL parameters I was
>>> able to get a valid map image with grid lines nicely labelled in meters
>>>
>>> I think there is a ticket/issue here so I think it would be nice to
>>> package a little test case that throws this crash.
>>>
>>> Happy first day of summer!  (or the best 5-à-7 day of the year!)
>>>
>>> -jeff
>>>
>>>
>>>
>>>
>>
>>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Alexandre Dubé
Mapgears
www.mapgears.com



More information about the mapserver-users mailing list