[Featureserver] How to save polylines/linestrings from OL?

Frederik Ramm frederik at remote.org
Tue Oct 14 01:59:50 EDT 2008


Hi,

Christopher Schmidt wrote:
>> If I try to save this to FeatureServer, I get an error message about the 
>> geometry type "LineString" that was created by OpenLayers:
> 
> You skipped the crucial piece of information: specifically, how are you
> trying to 'save this to FeatureServer'?

Not on purpose, sorry ;-)

> My guess is that your default service type is not set, so it is
> defaulting to "JSON" (old, deprecated, maintained for backwards
> compatibility) instead of "GeoJSON" (new hotness, matches OL). You can
> control the default service type via your FeatureSErver config:
> http://svn.featureserver.org/trunk/featureserver/featureserver.cfg shows
> default_service -- or you can simply post to something like
> /scribble/create.geojson, which will force into geojson moe.

Actually I do have

default_service=GeoJSON

in my server config, but I seem to send a POST request to "create.json"! 
Must have copied that from some old example. Thanks for pointing this 
out even though I omitted it ;-)

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"



More information about the Featureserver mailing list