[Featureserver] LineString instead of MultiLineString
Alexandre Dube
adube at mapgears.com
Tue Dec 9 15:58:35 EST 2008
Understood. Thanks for the quick answer. I'll go with option (b) : redo
the shp2pgsql with -S parameter.
Still, if anybody has some doc that explains the difference between
Multi or not-Multi geometries to give, that would be appreciated.
Best regards,
Alexandre
Christopher Schmidt wrote:
> On Tue, Dec 09, 2008 at 03:41:08PM -0500, Alexandre Dube wrote:
>
>> Hi list,
>>
>> I see in PostGis.py at line 117 that when a feature geometry type is
>> MultiLineString, it returns LineString instead. Is there a reason for
>> this ? Why doesn't it return MultiLineString ?
>>
>
> No part of FeatureServer 1.12 supported Multi-anythings.
>
> SVN tries to improve this, but incompletely, and is untested.
>
>
>> But, I really wonder why featureserver don't return the correct type
>> of geometry. So before doing anything, I wanted to have some comments
>> about this, please.
>>
>
> Multi geometries are simply not (1.12) or poorly (SVN) supported.
> Patches to the latter are welcome.
>
>
>> Oh, and BTW I use GeoJSON format in OpenLayers and I can see *
>> @requires OpenLayers/Geometry/MultiLineString.js, so I suppose it
>> supports MultiLineString, correct ?
>>
>
> OpenLayers does have support for Multi types. The FeatureServer GeoJSON
> writer does not.
>
> Regards,
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Featureserver
mailing list