[Featureserver] Service type does not support adding features
Christopher Schmidt
crschmidt at metacarta.com
Mon Oct 22 00:21:18 EDT 2007
On Sun, Oct 21, 2007 at 08:07:44PM -0600, John Cartwright wrote:
> Thanks for your prompt reply Chris. I seem to still be missing
> something though:
>
> echo '{"id":1, "geometry":{"type":"Point", "coordinates":[0,5]}}' |
> curl -d @- http://localhost/cgi-bin/featureserver-1.10/
> featureserver.cgi/all
>
> An error occurred: 'all.json'
Something doesn't match here. Either your "/all" is actually
"/all.json", or something else is wrong.
The pieces of a request are:
/endpoint.cgi/ <- main endpoint
/endpoint.cgi/layername <- main layer interface. Defaults to
default_service. 'scribble' is included by
default.
/endpoint.cgi/layername/1.format <- feature number 1, in format identified by
format.
/endpoint.cgi/layername/all.format <- all features, in format identified
by format.
When posting, the '1.format' style results in *replacing* a feature, whereas
anything else results in *creating a new* feature.
Sorry if my previous email was confusiong, but you probably want:
/featureserver.cgi/scribble/all
or
/featureserver.cgi/scribble/all.json
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Featureserver
mailing list