[mapserver-users] Mapscript 6.2 / sql plugin bug for multipart geometries

James Perrins james.perrins at gmail.com
Mon Jul 1 05:02:05 PDT 2013


Hi Tamas,

 STAsText() gives:

 MULTIPOLYGON (((95307.4877929688 348969.457519531, 100406.645019531
350051.097167969, 104578.683105469 353836.834960938, 100638.424804688
358626.952636719, 97470.7666015625 360403.932128906, 91289.9697265625
356927.233886719, 91212.7094726563 351982.596191406, 95307.4877929688
348969.457519531)), ((88937.4730077121 336744.12596401, 94689.4077148438
344565.639648438, 89435.73046875 349046.717285156, 88585.8706054688
352523.415527344, 85109.1723632813 351519.036132813, 83795.7529296875
346806.178222656, 85572.7319335938 341784.280761719, 88937.4730077121
336744.12596401)), ((106046.622558594 329808.986328125, 108364.421386719
333362.944824219, 105814.842285156 337766.762695313, 97393.5063476563
339080.182128906, 95462.0073242188 335603.483886719, 97779.8061523438
331354.186035156, 103033.483886719 330967.886230469, 106046.622558594
329808.986328125)))

 Best wishes

James


On 1 July 2013 12:09, Tamas Szekeres <szekerest at gmail.com> wrote:

> James,
>
> Could you provide a sample geometry to reproduce the issue?
>
> Best regards,
>
> Tamas
>
>
>
>
> 2013/7/1 James Perrins <james.perrins at gmail.com>
>
>> Hi,
>>
>> I recently moved from Mapserver 6.0 to 6.21 and have one bit of code
>> which is behaving differently (and I think incorrectly)
>>
>> In 6.0 when a resultCacheObj was returned containing a multipart
>> geometry, oResults.bounds.maxx etc would give the extent of the multipart
>> geometry.
>>
>> In 6.2 this seems to now give the extent of only one part of the
>> multipart geometry (presumably the first / last?)
>>
>> I have worked around this for the moment - but its a definite change from
>> 6.0 and I can't really see it being meant.
>>
>> However I don't know where the error lies - data is coming from SQL using
>> Tamas SQL plugin - so potentially it could be in there - or somewhere in
>> mapserver itself I guess
>>
>> Thanks
>> James
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130701/b3af9d5e/attachment.htm>


More information about the MapServer-users mailing list