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 > [email protected] > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
