Hey,
Is it possible to publish a layer through the REST API (GeoServer 2.9.1)?
according to the documentation the POST method is not allowed.
I succeeded creating a workspace and a store but publishing a layers is left now
Thanks,
Mike
Hey,
Is it possible to publish a layer through the REST API (GeoServer 2.9.1)?
according to the documentation the POST method is not allowed.
I succeeded creating a workspace and a store but publishing a layers is left now
Thanks,
Mike
Hi,
take a look at Geoserver REST API examples
http://docs.geoserver.org/latest/en/user/rest/examples/curl.html
there are a few examples about uploading shape file or link a file system file/
directory in geoserver.
Cheers
On venerdì 2 settembre 2016 23:11:18 CEST Mike Abc wrote:
Hey,
Is it possible to publish a layer through the REST API (GeoServer 2.9.1)?
according to the documentation the POST method is not allowed.
I succeeded creating a workspace and a store but publishing a layers is left
now
Thanks,
Mike
--
Saluti.
.Federico C Guizzardi
_
abstract.it
...............................................................................
Registro Imprese di Napoli 788429 / Cap. Soc. 10.000 Euro I.V. Avvertenze
Legali - D. Lgs. 196/03 Tutela dei dati personali. Le informazioni contenute
in questo messaggio e in ogni eventuale allegato sono riservate e ne è vietata
ogni forma di diffusione. Se avete ricevuto questa comunicazione per errore,
Vi preghiamo di informare immediatamente il mittente del messaggio e di
eliminare l'e-mail.
I read the samples and there is no layer publishing example. All the samples
are dealing with creating stores or using existing layers.
According to the documentation, POST method for Layers as a status code 405
(method is not allowed):
<http://osgeo-org.1560.x6.nabble.com/file/n5284207/Capture.jpg>
I'll appreciate your help.
Best regards.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Creating-a-layer-through-REST-API-tp5283840p5284207.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
This discussion might be what you need:
http://gis.stackexchange.com/questions/12970/create-a-layer-in-geoserver-using-rest
Regards,
/julian
-----Oprindelig meddelelse-----
Fra: ccjklppp [mailto:ccjklppp60@anonymised.com]
Sendt: 6. september 2016 10:00
Til: geoserver-users@lists.sourceforge.net
Emne: Re: [Geoserver-users] Creating a layer through REST API
I read the samples and there is no layer publishing example. All the samples are dealing with creating stores or using existing layers.
According to the documentation, POST method for Layers as a status code 405 (method is not allowed):
<http://osgeo-org.1560.x6.nabble.com/file/n5284207/Capture.jpg>
I'll appreciate your help.
Best regards.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Creating-a-layer-through-REST-API-tp5283840p5284207.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
This is what I understand you are looking for, correct me if I misunderstood:
http://docs.geoserver.org/latest/en/user/rest/examples/curl.html#uploading-a-shapefile
Talking about your screenshot, you can't post on rest/layers but you have to
work on a specific store and filename.
In the example I suggest, 'file.shp' is the name you want to call the layer you
upload
http://localhost:8080/geoserver/rest/workspaces/acme/datastores/roads/file.shp
The url may be divided in few parts:
http://localhost:8080/geoserver/rest/workspaces/acme: Acme is the workspace
you want to use, you need to create it manually;
/datastores/roads: roads is the name of the datastore geoserver will create to
keep your file
/file.shp: the name of the featuretype you will see on geoserver
I hope this can help you.
On martedì 6 settembre 2016 00:59:44 CEST ccjklppp wrote:
I read the samples and there is no layer publishing example. All the samples
are dealing with creating stores or using existing layers.According to the documentation, POST method for Layers as a status code 405
(method is not allowed):
<http://osgeo-org.1560.x6.nabble.com/file/n5284207/Capture.jpg>I'll appreciate your help.
Best regards.
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Creating-a-layer-through-REST-API-tp528
3840p5284207.html Sent from the GeoServer - User mailing list archive at
Nabble.com.----------------------------------------------------------------------------
-- _______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Saluti.
.Federico C Guizzardi
_
abstract.it
...............................................................................
Registro Imprese di Napoli 788429 / Cap. Soc. 10.000 Euro I.V. Avvertenze
Legali - D. Lgs. 196/03 Tutela dei dati personali. Le informazioni contenute
in questo messaggio e in ogni eventuale allegato sono riservate e ne è vietata
ogni forma di diffusione. Se avete ricevuto questa comunicazione per errore,
Vi preghiamo di informare immediatamente il mittente del messaggio e di
eliminare l'e-mail.