[Featureserver] Assorted problems

Peter Robins fs at peterrobins.co.uk
Sun Apr 19 06:53:39 EDT 2009


On Saturday 28 Mar 2009, Peter Robins wrote:
> When I try to add features with trunk using curl I get
>
> echo '{"id":1, "geometry":{"type":"Point", "coordinates":[[0,7]]}}' | curl
> -d @-
> http://localhost/cgi-bin/featureserver/featureserver.cgi/scribble/all.json
> An error occurred: Unable to determine bounding box for feature: list index
> out of range.

to answer my own question, contrary to the example on the homepage, there 
should only be 1 lot of brackets around the coordinates:

echo '{"id":1, "geometry":{"type":"Point", "coordinates":[0,7]}}'



More information about the Featureserver mailing list