[Geoserver-users] adding a layer in Geoserver using REST API from the POSTGreSQL Table

Hii

I want to add a new feature layer in POSTGReSQL from open layers.
I got the answer from openlayers forum as...

http://osgeo-org.1560.x6.nabble.com/creating-a-new-layer-in-database-td5089934.html

Using openlayers directly you can't do this:
You need to call from openlayers some server-side code (i.e. java or
c# or whatever you wanna use) that, in order:
1. enstablish a connection to postgres db
2. launch a series of sql commands that create a table, fields,
indices and so on
3. call the geoserver rest api and configure geoserver accordingly:

I have created table using the c# code.

Now I want to publish a layer in GeoServer using REST API.

I saw the documentation of GEoSevver. I could not find anything which can
help me do this. I can see the existing layers, workspaces etc. but I cannot
create any layer.

Any help..

Thanks and Regards
Pankaj Bansal

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/adding-a-layer-in-Geoserver-using-REST-API-from-the-POSTGreSQL-Table-tp5090538.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

Have you read and tried this recipe http://boundlessgeo.com/2012/10/adding-layers-to-geoserver-using-the-rest-api/ ? If it does not work for you, tell where it fails and what happens. Describe then also your environment (Geoserver version, jre version...)

-Jukka Rahkonen-

pankaj123 wrote:

Hii

I want to add a new feature layer in POSTGReSQL from open layers.
I got the answer from openlayers forum as...

http://osgeo-org.1560.x6.nabble.com/creating-a-new-layer-in-database-
td5089934.html

Using openlayers directly you can't do this:
You need to call from openlayers some server-side code (i.e. java or c# or
whatever you wanna use) that, in order:
1. enstablish a connection to postgres db 2. launch a series of sql commands
that create a table, fields, indices and so on 3. call the geoserver rest api and
configure geoserver accordingly:

I have created table using the c# code.

Now I want to publish a layer in GeoServer using REST API.

I saw the documentation of GEoSevver. I could not find anything which can help
me do this. I can see the existing layers, workspaces etc. but I cannot create any
layer.

Any help..

Thanks and Regards
Pankaj Bansal

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/adding-a-
layer-in-Geoserver-using-REST-API-from-the-POSTGreSQL-Table-
tp5090538.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription Software experts and
developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ciao,
take also a look here:
http://docs.geoserver.org/latest/en/user/rest/examples/index.html

You can find samples to publish, modify and create new resources in geoserver using curl and much more.
Here is the reference manual:
http://docs.geoserver.org/latest/en/user/rest/index.html

Cheers,
Carlo

···

2013/11/21 Rahkonen Jukka <jukka.rahkonen@anonymised.com>

Hi,

Have you read and tried this recipe http://boundlessgeo.com/2012/10/adding-layers-to-geoserver-using-the-rest-api/ ? If it does not work for you, tell where it fails and what happens. Describe then also your environment (Geoserver version, jre version…)

-Jukka Rahkonen-

pankaj123 wrote:

Hii

I want to add a new feature layer in POSTGReSQL from open layers.
I got the answer from openlayers forum as…

http://osgeo-org.1560.x6.nabble.com/creating-a-new-layer-in-database-
td5089934.html

Using openlayers directly you can’t do this:
You need to call from openlayers some server-side code (i.e. java or c# or
whatever you wanna use) that, in order:

  1. enstablish a connection to postgres db 2. launch a series of sql commands
    that create a table, fields, indices and so on 3. call the geoserver rest api and
    configure geoserver accordingly:

I have created table using the c# code.

Now I want to publish a layer in GeoServer using REST API.

I saw the documentation of GEoSevver. I could not find anything which can help
me do this. I can see the existing layers, workspaces etc. but I cannot create any
layer.

Any help…

Thanks and Regards
Pankaj Bansal


View this message in context: http://osgeo-org.1560.x6.nabble.com/adding-a-
layer-in-Geoserver-using-REST-API-from-the-POSTGreSQL-Table-
tp5090538.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Shape the Mobile Experience: Free Subscription Software experts and
developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
mobile: +39 3371094494
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it