Re: [Geoserver-users] Create layer - REST API issues.

2017-04-18 Thread dimmihel
Hi Patrick, That is a good point; working with curl actually helped. The following works: curl \ http://localhost:8080/geoserver/rest/workspaces/workspace_name/datastores/datastore_name/featuretypes \ --header 'content-type: application/xml' \ --user user:password \ --data \ '\ pub_layer\ layer\

Re: [Geoserver-users] Create layer - REST API issues.

2017-04-14 Thread P O'Toole
DM - >Are you suggesting an issue with the python requests module? I doubt it >because I am able to use the same module (i.e requests) using HTML POST to >create workspaces, and datastores which include underscores in their names >with no problems. > >By the way I am receiving a 400 code and not 4

Re: [Geoserver-users] Create layer - REST API issues.

2017-04-14 Thread Nuno Oliveira
I did it with CURL using the test data shipped with GeoServer, please find a attached my example. Maybe this issue was fixed in GeoServer 12.x (master), give it a try. On 04/13/2017 09:13 PM, dimmihel wrote: Hi Nuno, Thanks for giving this a go; it is frustrating that I am not able to use the

Re: [Geoserver-users] Create layer - REST API issues.

2017-04-13 Thread dimmihel
Hi Nuno, Thanks for giving this a go; it is frustrating that I am not able to use the underscore in feature type creation in my Geoserver versions. Are you suggesting an issue with the python requests module? I doubt it because I am able to use the same module (i.e requests) using HTML POST to c

Re: [Geoserver-users] Create layer - REST API issues.

2017-04-13 Thread Nuno Oliveira
Hi, Just tried to create a feature type (layer) with an underscore in the name through the REST API and it worked fine, note that I'm using GeoServer master (12-SNAPSHOT) can you try with this version ? Note that 401 HTTP status code means a lack of authorization, REST API requires authenticat

Re: [Geoserver-users] Create layer - REST API issues.

2017-04-13 Thread dimmihel
Using the following data in the POST in the function returns a 401 response: post_data ="""'pub_roads'""" Again not using underscores creates the layer OK. In the GUI there isn't such an issue. Is this a bug in the REST API? D. -- View this message in context: http://osgeo-org.1560.x6.nabbl

[Geoserver-users] Create layer

2017-04-13 Thread dimmihel
Hi, I am using the following python function & the Geoserver REST API to create a layer. def publish_layer(layer_name,store_name,workspace_name,table_name,geoserver_url,user,password): '''(str,str,str,str,str,str) -> response Returns the server response code for publishing a layer using t

Re: [Geoserver-users] Create layer for each band of a Geotiff file

2012-09-11 Thread Martin Davis
Or you can look here: http://docs.geoserver.org/stable/en/user/styling/sld-reference/rastersymbolizer.html#channelselection On Tue, Sep 11, 2012 at 12:23 PM, Andrea Aime wrote: > On Tue, Sep 11, 2012 at 8:07 PM, António Rocha < > antonio.ro...@deimos.com.pt> wrote: > >> Greetings >> I have a Geo

Re: [Geoserver-users] Create layer for each band of a Geotiff file

2012-09-11 Thread Andrea Aime
On Tue, Sep 11, 2012 at 8:07 PM, António Rocha wrote: > Greetings > I have a Geotiff file with 2 bands (band 1 and band 2) and I added to > the store.- Now I want to generate 2 layers one for each band. Is it > possible using this geotiff or I need to generate 2 Geotiff files (one > with each band

[Geoserver-users] Create layer for each band of a Geotiff file

2012-09-11 Thread António Rocha
Greetings I have a Geotiff file with 2 bands (band 1 and band 2) and I added to the store.- Now I want to generate 2 layers one for each band. Is it possible using this geotiff or I need to generate 2 Geotiff files (one with each band)? Thank you Antonio