Hi I have loaded the shp file using the curl as given here
http://docs.geoserver.org/stable/en/user/rest/examples/curl.html
but problem is the layer is automatically created with same name as the shp
filename. By appending the "?configure=none" at end of URL I have managed to
stop the auto publishing of layer. Now when I upload a shp file, a store is
created in geoserver.
But when I try to create a layer, I have to use the layer name in curl
command which is same as shp filename.
but if I create the layer from geoserver GUI, I can change the name of the
layer and layer is published with that name. How can I do that using cURL.
Any help..
Regards
Pankaj Bansal
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Publish-a-shp-file-layer-with-name-different-from-filename-tp5092501.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Anyone having any idea please.
Regards
Pankaj Bansal
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Publish-a-shp-file-layer-with-name-different-from-filename-tp5092501p5092934.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hello,
I guess the only way is to send the REST POST with the full list of properties you need to customize for your layer.
If this still doesn’t work, you need to make two REST steps, POST for the insert and PUT for the update.
···
Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 331 6233686
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
On Thu, Dec 5, 2013 at 2:58 PM, pankaj123 <pankaj.bansal.jiit@anonymised.com> wrote:
Anyone having any idea please.
Regards
Pankaj Bansal
–
View this message in context: http://osgeo-org.1560.x6.nabble.com/Publish-a-shp-file-layer-with-name-different-from-filename-tp5092501p5092934.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users