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\
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
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
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
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
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
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
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
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
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
10 matches
Mail list logo