Hello,
I am using the REST API GeoServer 2.1-RC1 and wondering if there is any operation to create a new layer in REST API.
We have a custom datastore developed using the “org.geotools.data.DataStoreFactorySpi” and installed in GeoServer. I managed to create this datastore successfully and looking for some thing in REST API to create the layers ?
–
Regards,
Krishna Rajendra A.
On Fri, Feb 18, 2011 at 4:52 PM, Krishna Rajendra Alapati <krishna.alapaty@anonymised.com> wrote:
Hello,
I am using the REST API GeoServer 2.1-RC1 and wondering if there is any operation to create a new layer in REST API.
We have a custom datastore developed using the “org.geotools.data.DataStoreFactorySpi” and installed in GeoServer. I managed to create this datastore successfully and looking for some thing in REST API to create the layers ?
Documentation here:
http://docs.geoserver.org/latest/en/user/restconfig/rest-config-api.html
There should be all you need to create a resource and then a layer on top of it.
If you have doubts about the xml file contents just configure one by hand using the GUI
and then see how the feature type and layer have been setup by making get calls
to the corresponding rest urls
Cheers
Andrea
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 333 8128928
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
Hi Andrea,
Thanks for the reply I have gone through the API reference and not found any operation for creating a new layer. However here is my requirement.
I have custom datastore which has already some features in it. I have to publish all the existing features in this datastore and create layers/layergroups, so that I can use the WMS from openlayers to see the map and browse all the published features.
Any help would really be appreciated . Thanks
On 19 February 2011 11:20, Andrea Aime <andrea.aime@anonymised.com> wrote:
On Fri, Feb 18, 2011 at 4:52 PM, Krishna Rajendra Alapati <krishna.alapaty@anonymised.com> wrote:
Hello,
I am using the REST API GeoServer 2.1-RC1 and wondering if there is any operation to create a new layer in REST API.
We have a custom datastore developed using the “org.geotools.data.DataStoreFactorySpi” and installed in GeoServer. I managed to create this datastore successfully and looking for some thing in REST API to create the layers ?
Documentation here:
http://docs.geoserver.org/latest/en/user/restconfig/rest-config-api.html
There should be all you need to create a resource and then a layer on top of it.
If you have doubts about the xml file contents just configure one by hand using the GUI
and then see how the feature type and layer have been setup by making get calls
to the corresponding rest urls
Cheers
Andrea
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 333 8128928
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
–
Regards,
K.
Hi Krishna,
You should be able to more or less follow the postgis example from the examples section. Depending on how your datastore behaves that is.
- First add the datastore itself
http://docs.geoserver.org/stable/en/user/restconfig/rest-config-examples-curl.html#adding-a-postgis-database
- Add the feature type that the datastore offers
http://docs.geoserver.org/stable/en/user/restconfig/rest-config-examples-curl.html#adding-a-postgis-table
After that your feature type should be published as a layer as long as no errors occur.
-Justin
On Mon, Feb 21, 2011 at 3:48 AM, Krishna Rajendra Alapati <krishna.alapaty@anonymised.com> wrote:
Hi Andrea,
Thanks for the reply I have gone through the API reference and not found any operation for creating a new layer. However here is my requirement.
I have custom datastore which has already some features in it. I have to publish all the existing features in this datastore and create layers/layergroups, so that I can use the WMS from openlayers to see the map and browse all the published features.
Any help would really be appreciated . Thanks
On 19 February 2011 11:20, Andrea Aime <andrea.aime@anonymised.com> wrote:
On Fri, Feb 18, 2011 at 4:52 PM, Krishna Rajendra Alapati <krishna.alapaty@anonymised.com> wrote:
Hello,
I am using the REST API GeoServer 2.1-RC1 and wondering if there is any operation to create a new layer in REST API.
We have a custom datastore developed using the “org.geotools.data.DataStoreFactorySpi” and installed in GeoServer. I managed to create this datastore successfully and looking for some thing in REST API to create the layers ?
Documentation here:
http://docs.geoserver.org/latest/en/user/restconfig/rest-config-api.html
There should be all you need to create a resource and then a layer on top of it.
If you have doubts about the xml file contents just configure one by hand using the GUI
and then see how the feature type and layer have been setup by making get calls
to the corresponding rest urls
Cheers
Andrea
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 333 8128928
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
–
Regards,
K.
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.