Questions tagged [geoserver-rest-api]

For questions about GeoServer's REST API

Filter by
Sorted by
Tagged with
7
votes
1answer
1k views

GeoServer automate “reload feature type”

Using GeoServer, if you add a feature type bound to a SQL table that is empty, when you then populate that table no data shows up in layer preview. Clicking the "reload feature type" button corrects ...
6
votes
1answer
1k views

Is there a way to import GeoJSON into GeoServer using some extension without using PostGIS?

Is there a way to import GeoJSON into GeoServer using some extension. I do not want to import to PostGIS, or intermediately convert to shapefiles because that looses the styles but may be that is ...
5
votes
1answer
780 views

Geoserver Extension access restriction with proxy nginx

I have installed Geoserver on my server. And I have proxy server(installed nginx) to access Geoserver. location /geoserver { proxy_pass http://127.0.0.1/geoserver/; } http://mydomain.com/...
5
votes
1answer
2k views

Creating Coveragestore GeoTIFF using REST API

I need to create a layer by uploading a GeoTIFF file. After reading Adding a new Coveragestore in a certain Workspace by REST and Programming Geoserver 2.0.2 to add a raster data store and layer ...
4
votes
1answer
3k views

How to get the legends from geoserver

I am using geoserver 2.5.5. I have to get the legends of each category from different link. Now geoserver gives whole legend as a PNG image format using this link http://localhost:8080/geoserver/wms?...
4
votes
1answer
940 views

How to create layer group in geoserver with gsconfig?

How can I create layer groups using python gsconfig ?
4
votes
3answers
1k views

Creating new GeoServer user through rest api?

I've tried posting this xml: <user> <userName>Jim</userName> <password>password</password> <enabled>true</enabled> </user> to these ...
4
votes
1answer
3k views

Upload KML / GML / GeoJson to Geoserver through Rest API

What is the best option, if any, to upload a vector format like GeoJson, and or GML to Geoserver? The environment from which to upload will be a client web-application, so i cannot use curl. In the ...
4
votes
1answer
715 views

Data Security for Geoserver - Users errantly seeing Workspaces not assigned to them

I'm having trouble with Data Security in my Geoserver 2.5 application. Let me preface my situation. I am using Geoexplorer composer which is making GeoServer API calls through ows and wms. I have ...
3
votes
1answer
259 views

Geoserver - How to set up a workspace when creating a new image mosaic using gsconfig?

I want to automate the process of creating workspaces and image mosaics by using gsconfig. First I defined the list of new work spaces to be created. f_workspace = list(set(lst_fold).difference(set(...
3
votes
1answer
2k views

How to delete a GeoServer coveragestore using REST API?

I was wondering if there is any example of using REST API with curl to delete a coverage store? I looked at the examples at the boundless website http://docs.geoserver.org/2.5.x/en/user/rest/examples/...
3
votes
2answers
2k views

Creating Workspace, Data Store and Layer via GeoServer REST API?

I'm trying to automate the process of setting up a Workspace, PostGIS Data Store and Layer in GeoServer using the GeoServer REST API. Using the excellent answer in Create a Layer in GeoServer using ...
3
votes
2answers
934 views

Add new style using REST api in geoserver

I have worked with geoserver rest api and it is great, The only problem is that I have no idea how to post content of my sld using api, I have this code public void AddNewStyle(String styledata, ...
3
votes
2answers
1k views

can we update imagemosaic layer with geoserver rest api?

I am new to GIS and geoserver. I am trying to add and modify imagemosaic layers to geoserver with geoserver rest api. Actually I could add the layers. But I have modify them with rest api while adding ...
3
votes
1answer
132 views

Geoserver gwc rest api - how can I edit config

Is there a way to change geoserver gwc-gs.xml through a rest interface? I want to be able to set cacheLayersByDefault to false.
3
votes
1answer
279 views

GeoServer Rest does not load band definitions for Coverage

I am running into the a problem with creating a coverage with GeoServer REST API. Somehow when creating the coverage it does not load the band definitions. I tried several thing but so far nothing ...
3
votes
1answer
404 views

Updating existing GeoServer ImageMosaic with GeoTIFF using REST API

While trying to update an existing ImageMosaic in GeoServer using the REST API, following the documentation (provided here http://docs.geoserver.org/stable/en/user/rest/examples/curl.html#uploading-...
3
votes
1answer
332 views

How to choose workspace when uploading SLD to Geoserver with the REST API

I have 200+ SLD's I would like to upload to Geoserver using the REST API. I successfully uploaded an SLD using the gsconfig Python module. However, I would like to be able to set the workspace when ...
3
votes
0answers
180 views

Geoserver+postgis: how to complete creating database via REST API?

I'm using geoserver 2.13.1 with postgres 9.5 and postgis 2.4.2. I am trying to use REST api to create workspace (works) and in it a datastore of postgis type. I have already prepared a template ...
3
votes
1answer
387 views

Geoserver REST: Change/create style via PUT/POST only possible when user is assigned admin role

I am fairly new to Geoserver REST API and security settings, so please excuse me if I am missing the absolute obvious here. I am running Geoserver 2.11.2 running on Tomcat 7 on a Win7 64bit system. I ...
3
votes
0answers
474 views

Geoserver ImageMosaic index is not updating with cURL

I am successfully adding a new ImageMosaic of GeoTiffs with the Geoserver REST API curl -v -u admin:geoserver -XPUT -H "Content-type: text/plain" -d "file://D:/tifdirectory" "http://localhost:8088/...
3
votes
0answers
191 views

Problem with setting style for a specific layer

I'm trying to publish a layer using a geoserver rest library (geoserver manager), but nothing works. First I tried this piece of code: String srs = "EPSG:29193"; GSFeatureTypeEncoder feature = new ...
3
votes
1answer
821 views

How to get layers from a specific store of geoserver using python gsconfig?

I'm using gsconfig python library to acess geoserver rest, my question is how can i get layers from a specific store ? I'm tried as follow: from geoserver.catalog import Catalog cat=Catalog("http://...
2
votes
3answers
2k views

How to use the GeoServer REST api to get a PNG representation of a layer?

Does anybody know if I can retrieve by REST service in GeoServer an raster representation of layer? Just like in for ex. ArcGIS REST Api: When I send: MapServer/export?dpi=96&transparent=true&...
2
votes
2answers
1k views

405 Method not Allowed on uploading a shapefile via REST API on GeoServer

I'm using PHP cURL to upload a Shapefile to GeoServer. It works fine in a development server. But when I deploy to Stage server and I try the same I get: 405 Method Not Allowed The requested ...
2
votes
1answer
411 views

Geoserver ReST update ImageMosaic

I am currently experimenting with the GeoServer ReST-API andy trying to update the configuration parameters of an ImageMosaic Coveragestore. I've been using Python 2.7 with the requests package as ...
2
votes
1answer
807 views

Geoserver REST API: Duplicate layer name

Using the web admin page, I created two layers in different workspace but with the same name: In the admin view I see something as this Workspace Store Layer Name WK1 PostGIS1 ...
2
votes
1answer
1k views

GeoServer - set declared SRS with rest api

I am using a c# application that creates and update featuretypes in Geoserver via REST. I need to set the declared srs, but I couldn't find how to do so.
2
votes
1answer
213 views

Problem with GeoServer modifying a style when uploading an SLD via the REST API

I have an SLD called my_data.sld (created in QGIS 3.2.x) with looks like this: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:xlink="...
2
votes
1answer
76 views

Enabling tile caching for layer?

I published around 1000 layers in geoserver without enabling tile caching for layer. How to check a cache is enabled for a layer or not? How to enable tile caching (check box) for a layer under ...
2
votes
1answer
284 views

Difference between outcome of REST query through browser and through cURL

I am working with the geoserver rest interface to automate the config of all layers, stores etc. One thing I noticed was that when using a browser and navigating to a layer the outcome is something ...
2
votes
2answers
289 views

REST GeoServer services for anonymous users gives me 404 status

I am trying to access to a REST service by an anonymous user on GeoServer 2.9.4. I modified my resp.properties file to allow anonymous role free access to GET: /**;GET=IS_AUTHENTICATED_ANONYMOUSLY ...
2
votes
2answers
390 views

Add time dimension to vector layer in geoserver REST

I'm trying to create a layer from a PostGIS table with REST api, I can create the layer but couldn't add the time dimension. I can configure the dimension in the interface and I did try to get the ...
2
votes
1answer
878 views

HTTP 500 error when uploading shapefile to GeoServer with C#

I receive an HTTP 500 internal server error when attempting to PUT a shapefile using REST API. I can manually import the file, publish and preview it. So the file is fine. GeoServer log: 2016-05-24 ...
2
votes
1answer
315 views

Get layer's “Feature Type Details” using geotools

I'm trying to do something like this: Check Geometry Type of a Shapefile Using GeoTools? ... but getting from a layer (Shapefile source) in Geoserver. In short, how can I get the data from this ...
2
votes
1answer
717 views

How to configure a available feature types in GeoServer using python gsconfig

How to configure a available feature types in GeoServer using python gsconfig? I have created work space and data store using gsconfig. Now , how i can configure available layers in a exist data store ...
2
votes
1answer
130 views

Geoserver - PostGIS : WFS-Transaction update exception error-Parsing failed for Point:

I tried to perform a transaction update, but it failed with this exception message: <owsExceptionReport.xsd"> <ows:Exception exceptionCode="NoApplicableCode"> <ows:...
2
votes
1answer
166 views

Unable to set remote store for geoserver

I can not set remote store for my geoserver. Technically, I have two servers. Geoserver is installed on one server and data (rasters) is stored on another server. Data itself is reachable through url. ...
2
votes
1answer
114 views

Why Geoserver GWC REST put tiles into strange folders?

I make a GWC layer, and cache it using web interface. It puts the generated tiles in folders like: gwc\temp3_layer_013D0001B7ED\EPSG_900913_11 After I want to reseed this layer using Geoserver REST ...
2
votes
1answer
69 views

Geoserver feature type details duplicate Oracle DB users

I have two users in a Oracle DB user_1 and user_2. This issue occurs when I create a two tables by user_1 its show one table as user_1.table_1 and the second table as user_2.table_2. I'm not sure why ...
2
votes
1answer
1k views

Geoserver gives “schema does not exist” after creation using REST interface

Getting started with Geoserver (version 2.10.2) I run into the following problem. Using the REST interface I create a workspace, a datastore and a featuretype. They show up in the Geoserver web ...
2
votes
1answer
1k views

Creating Store in GeoServer workspace using REST API?

I'm building a PHP class to interact with my GeoServer. I'm following the limited Documentation, this GeoServer REST API with PHP post and also this great advice. I've successfully created/deleted a ...
2
votes
1answer
303 views

Adding metadata link to layer.resource in GeoServer with Python gsconfig?

I'm parsing layers from a catalog and I would like to edit metadata links directly from the code. Until now, I tried: cat = Catalog("http://localhost:8080/geoserver/", XX, YYY) layers = cat....
2
votes
1answer
468 views

Geoserver 2.9 Rest API cURL Set SRS for Directory of Shapefiles

I'm automating the publishing of layers in Geoserver 2.9. I've had good luck with getting my GeoTIFFs to publish nicely, despite having garbage for incoming SRS info. With the GeoTIFFs, I POST a ...
2
votes
2answers
743 views

Update programmatically BBOX of WMS Geoserver layer

I create programmatically a layer in PostGIS and Geoserver. I give the option to the user to choose the geometry and the attributes and then I create the table in PostGIS and add it in an existing ...
2
votes
1answer
411 views

Geoserver WMTS Layer Gridset and ArcMap

Does anyone know what would cause ArcMap to allow a user to add a WMTS layer service using the epsg:4326 and not a custom one that uses epsg:3857? How does one create a grid set that would render ...
2
votes
2answers
682 views

how to set default style from particular workspace using gsconfig?

I'm able to set default style for any layer using below code cat = Catalog("http://localhost:8080/geoserver/rest", "admin", "geoserver") layer = cat.get_layer("layer_name") layer._set_default_style(...
2
votes
1answer
518 views

problem in geoserver rest api

I want to user geoserver rest api in netbeans. i create new Maven Web Application project: and then edit pom.xml like following: add repository: <dependency> <groupId>it....
2
votes
2answers
2k views

How we can get output for os.system() in python?

I wrote the following command in Geoserver rest-api using curl: cmd=curl -v -u admin:geoserver -XGET -H "Accept: text/xml" http://localhost:8080/geoserver/rest/workspaces/myworkspace/datastores/...
2
votes
1answer
53 views

Adding existing style while publishing a new layer in GeoServer using REST API

I have a function which publishes a layer in GeoServer with the REST API. Now I want to add an existing style in the layer while publishing it. Anyone has any idea where I write the style name or ...