<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Espen</div><div><br></div><div>Maybe you can find something in the old API located here <a href="http://svn.osgeo.org/featureserver/trunk/featureserver/doc/API.txt">http://svn.osgeo.org/featureserver/trunk/featureserver/doc/API.txt</a> or in the old doc folder <a href="http://svn.osgeo.org/featureserver/trunk/featureserver/doc">http://svn.osgeo.org/featureserver/trunk/featureserver/doc</a></div><div><br></div><div>If it is not working please let me know</div><div>Michel</div><div><br></div><br><div><div>On Feb 12, 2013, at 1:39 PM, Espen Isaksen <<a href="mailto:espen@espenpost.com">espen@espenpost.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi!<div><br></div><div>Getting objects from Featureserver works fine, but I have not been able to find a good example on how to POST an object. From the demo I see that one can do a WFS insert by using the URL:</div>
<div><br></div><div><table selected="" class="" cellpadding="0" cellspacing="0"><tbody class=" "><tr class=" "><td class=""><span class=" "></span></td><td class=""><code class=""><a href="http://featureserver.org/fs?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=fs_polygon">http://featureserver.org/fs?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=fs_polygon</a><br>
<br>However I want to POST a GeoJSON object so I thought maybe I could do something like this:<br>curl -X POST -d @elveg.json <a href="http://localhost:9000/fs?SERVICE=GeoJSON&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elveg">http://localhost:9000/fs?SERVICE=GeoJSON&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elveg</a><br>
<br>That does not work. It just complains about not finding a layer called 'fs'?<br><br>Is there some documentation on how to POST objects?<br><br>Espen<br><br><br><br></code></td></tr></tbody></table><div><br></div>
-- <br><div><a href="http://www.turkompisen.no/" target="_blank">http://www.turkompisen.no</a></div><a href="http://www.kresendo.no/" target="_blank">http://www.kresendo.no/</a><br><div><a href="http://no.linkedin.com/in/espenisaksen" target="_blank">http://no.linkedin.com/in/espenisaksen</a><br>
<br><br></div>
</div></div>
_______________________________________________<br>FeatureServer mailing list<br><a href="mailto:FeatureServer@lists.osgeo.org">FeatureServer@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/featureserver<br></blockquote></div><br></body></html>