[Featureserver] Service type does not support adding features
Christopher Schmidt
crschmidt at metacarta.com
Sun Oct 21 18:20:42 EDT 2007
> 2) echo '{"id":1, "geometry":{"type":"Point", "coordinates":
> [[0,5]]}}' | curl -d @- http://localhost/cgi-bin/featureserver-1.10/
> featureserver.cgi/all.gml
The '.gml' here says "I'm uploading GML." The GML service is output
only. So it fails and complains. If you change the '.gml' to '.json', it
will work.
(Note that the above example is not valid GeoJSON, which is the
default_service in the config as of 1.07. You'd need to drop the extra
'[]' around the coordinates. If you were to do that, you could just do
/all instead of /all.json.)
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Featureserver
mailing list