[mapserver-dev] GRID setting in mapfile doesn't work as expected

Jeff McKenna jmckenna at gatewaygeomatics.com
Thu Apr 17 05:20:25 PDT 2014


oops https://github.com/mapserver/mapserver/issues/4356  (morning coffee
not in me yet).

-jeff




On 2014-04-17, 9:11 AM, Jeff McKenna wrote:
> Hi Tamas,
> 
> I think the GRID object is a great under-used feature.  I'd like to
> request that you think about an open issue (MININTERVAL settings causing
> MS to hang) as you tackle the LABELFORMAT issue.
> 
> Thanks,
> 
> -jeff
> 
> 
> 
> 
> On 2014-04-17, 8:23 AM, Tamas Szekeres wrote:
>> I was surprised to see that the GRID option in the layer object still
>> doesn't work quite right due to conceptual problems that have been
>> mentioned several years ago, see for example:
>> https://github.com/mapserver/mapserver/issues/1980
>>
>> In my use case, when I open a map file (with graticule grid) and then
>> draw the map, the grid settings are getting lost because drawlayer
>> closes the layer implicitly and the grid settings are stored in
>> layerinfo (which is the problem primarily).
>>
>> In order to fix this issue how about making the following changes?
>>
>> 1. add graticuleObj to layerObj (mapserver.h)
>> 2. load grid settings to layerObj->graticuleObj instead of layerinfo
>> (mapfile.c)
>> 3. destroy graticuleObj in freeLayer instead of msGraticuleLayerClose
>> 4. Modify the vtable handlers to use layerObj->graticuleObj instead of
>> layerinfo
>> 5. copy the relevant settings of graticuleobj in mapcopy.c
>> 6. Expose graticuleObj in mapscript. (if needed)
>>
>>
>> Best regards,
>>
>> Tamas
>>
>>
> 


More information about the mapserver-dev mailing list