[Featureserver] Getting Started - Cannot upload data

Christopher Schmidt crschmidt at metacarta.com
Sun Feb 3 08:49:18 EST 2008


On Sun, Feb 03, 2008 at 08:24:41AM +0000, Rob Dunfey wrote:
> Hi,
> 
> I've just installed feature server on my web server, but don't know how to
> upload data.  I tried the example on the main web page:
> 
> http://featureserver.org/
> 
> curl -d @myfile.kml http://example.com/featureserver.cgi/layer/create.json

Although this is, as you poiunted out, a lack of CGI support, ther'es
something important here: '.json' and '.kml' don't match, and they must.
(Otherwise you'll get a parse error as the json parser tries to parse
KML.)


> but it won't work.  I get the following back at the command line...
> 
> C:\Program Files\curl-7.17.1>curl -d @test.kml
> http://gisconsultancy.com/feature
> server/featureserver.cgi/layers/create.json
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>406 Not Acceptable</title>
> </head><body>
> <h1>Not Acceptable</h1>
> <p>An appropriate representation of the requested resource
> /featureserver/featur
> eserver.cgi/layers/create.json could not be found on this server.</p>
> <hr>
> <address>Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7a
> mod_auth_passthrough/2
> .1 mod_bwlimited/1.4 Server at gisconsultancy.com Port 80</address>
> </body></html>
> 
> I can't see any resource on the server that represents layers/create.json,
> I'm not sure if I am supposed to. Any ideas much appreciated.
> 
> Rob

> _______________________________________________
> Featureserver mailing list
> Featureserver at openlayers.org
> http://featureserver.org/mailman/listinfo/featureserver


-- 
Christopher Schmidt
MetaCarta



More information about the Featureserver mailing list