Questions tagged [geoserver-rest-api]

For questions about GeoServer's REST API

42 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
41 views

How to set tile image formats for many layers using the Geoserver REST api

I have over 400 layers in my Geoserver layer catalog. I would like to turn on the pbf tile image format option for all of them. see image below: Is there a way of accomplishing this using the ...
3
votes
2answers
220 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
0answers
482 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
193 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 ...
2
votes
0answers
473 views

Geoserver REST API - Change styles on the fly

I'm uploading user-defined rasters to geoserver through its REST API, using the Python requests library. I would like to classify and style the rasters based on users' choices, so the styles should ...
2
votes
0answers
313 views

Geoserver: How to enable REST Authentication filter chain to allow PUT/POST calls

As a followup of this question I am wondering how to enable a certain user to be able to place HTTP PUT/POST calls to /geoserver/rest/styles/ without granting the user admin rights or disabling chain ...
2
votes
0answers
726 views

Importing KML to GeoServer?

Update It appears I cannot upload KML files to GeoServer, even if I use the Importer Web Interface. Using the "Import Data" web interface, I tried to manually add the KML file to GeoServer. I ...
2
votes
0answers
224 views

Problem adding layers with REST Services in GeoServer

This is my first question in this forum and I'm not sure if it is going to be properly structured. I've asked same question in other forum but I did not receive any response. I'll see if I have good ...
2
votes
0answers
80 views

styler plugin opengeo suit sdk

I try to add the gxp styler plugin, to my suit sdk, but I cannot make it work perfectly. I had to set up a digest authentication in geoserver (and the user has to log in to see any layer), and I have ...
1
vote
1answer
27 views

How to secure WMS/WFS request from Geoserver?

Currently anyone can go to inspect-> network and get my rest url and access my data from geoserver, I want to secure my connection (probably by adding proxy server) so that only authenticated persons ...
1
vote
0answers
22 views

Refresh attributes of a feature type with GeoServer REST API

Using a PostGIS database, I have created a datastore and a featuretype. When I add or remove columns to/from the table, I need to update the featuretype accordingly. Fortunately, I can use the ...
1
vote
0answers
88 views

GeoServer S3 Support for GeoTIFF REST-API

I am stuck with S3 Support for GeoTIFF while I add a dataset with the REST-API. I did not find any documentation for the REST-API... so I tried to edit my local API-POST-Call: <coverageStore> ...
1
vote
0answers
102 views

How can I add new ROLES and USERS through REST in GeoServer?

I use GeoServer stable version 2.14.1 and get error messages when trying to add new roles and users via REST. I suspect that the GeoServer REST documentation is buggy. When I call the REST interface ...
1
vote
2answers
157 views

Unable to Upload shapefile using GeoServer REST API using Java

I am trying to upload shapefiles through GeoServer REST API's. I am not able to create new layer with this following snippet of code. However Create Workspace and style method works fine using this ...
1
vote
0answers
39 views

How do I secure a specific workspace in Geoserver REST API?

I want Geoserver rest security setup so that only a specific role can access everything under a specific workspace. This is what my /datadir/security/rest.properties file looks like: /**;GET=ADMIN /*...
1
vote
0answers
95 views

Geoserver REST not showing coverages

I'm using the Geoserver REST Service and I want to know the coverages a particular workspace has. If authenticated, everything is working as expected, I can access the endpoint: MY_GEOSERVER/...
1
vote
0answers
213 views

How to detect when GeoServer contents changed (eg, layer added)?

I'm trying to automate the process of reproducing an existing GeoServer instance in an 'infrastructure as code' scenario. Ideally I'd like the ability to re-publish the contents of an existing ...
1
vote
0answers
337 views

Keeping a GeoServer image mosaic layer current as new geoTIFFs are added to the filesystem

I have an ImageMosaic layer with the time dimension enabled in GeoServer 2.8.x using postgres/postgis as the index store. The system is running CentOS 7, and both GeoServer (jetty variant) and the ...
1
vote
0answers
189 views

Wrong number format when creating SLD from YAML via REST API

In our workflow we are creating style definitions in YAML locally and then upload these styles via GeoServer REST API to the server. A sample YAML file looks like this: name: Test Style title: test ...
1
vote
0answers
281 views

How to send an SLD style to GeoServer using AJAX?

The question title sums it up pretty much, this is the code that I actually have: // Build a XML string from the XML object var xml_string = '<?xml version="1.0" encoding="UTF-8"?>' + (new ...
1
vote
0answers
209 views

Cannot post reseed for secured layers

I am trying to reseed some layers via rest service. The call seems to work and it return OK but nothing happens. When I look into DEBUG logs on the server is see this 2016-06-23 09:08:57,849 DEBUG [...
1
vote
0answers
268 views

Creating a data store from a GetCapabilities WFS URL

I'm coding a geoserver manager with geoserver rest api (version 1.7) and I'm looking for a function that can create a data store from a GetCapabilities WFS URL. Inside Geoserver, I go to "Store - Add ...
1
vote
0answers
98 views

Geoserver API - Move layer to different workspace

Is it possible to move raster layer with coverage store to different workspace using geoserver rest api? I suspect that i can remove layer and publish it again but maybe there is a simpler way?
1
vote
0answers
78 views

Using GeoServer API how can I create multiple layers from same datastore?

The datastore is a connection to a solr core. I can create this just fine. I find when I create a new layer by posting a new featuretype xml, I am forced to name the file the same name as the data ...
1
vote
0answers
53 views

Documentation for Geoserver XML

I'm trying to use Geoserver's RESTful API within limited success. I've found the REST API's documentation, but what I seem to be missing is the documentation that outlines the XML/JSON interface. From ...
1
vote
0answers
169 views

can not use geoserver rest API with geoserver-manager

I want to use rest API of geoserver with geoserver-manager plugin. In netbeans I create a new web application maven project: then in pom.xml file in dependencies I add bellow dependency: <...
1
vote
0answers
36 views

Geoserver - Disallowing unauthenticated user from using getLegendGraphic Service

I created a geoserver rule as ADMIN and *.* for allowing an authenticated admin to see all services and functions. Why does Geoserver allow Geoexplorer to retrieve the legend images for saved maps ...
1
vote
0answers
301 views

Changing user's password and adding users in Geoserver using REST service

I want to change user's password (e.g. for admin user) and create a new one using Geoserver's REST API. Is this possible? I tried to look for some solution in their DOCUMENTATION, but nothing found ...
1
vote
0answers
145 views

How to post an existing shapefile datastore using cURL?

I read geoserver doc, and already Uploaded a shapefile to geoserver using cURL. But I can't change layer name by REST. So I think that there is another way to post a layer. If I can post an existing ...
0
votes
0answers
10 views

How to obtain GeoServer layer's shapefile name using REST API

I have a GeoServer store of type "Directory of Shape Files". I have layers defined in that store corresponding to specific shapefiles. Some of my layers have been renamed. I'm looking for how to ...
0
votes
0answers
13 views

GeoServer REST create TIFF layer from datastore

I am creating a layer from a TIFF data store with the REST API in GeoServer. The command works if I use <coverage> <name>tiffLayer1</name> <title>tiffLayer1</title> <...
0
votes
1answer
24 views

Set 00000 Input Transparent Color with GeoServer Rest API

I need to change parameters (Input Transparent Color) from layers in GeoServer. I have a lot of images to do it. So, I need to do this edit using GeoServer REST API. I did the code below but it doesn'...
0
votes
0answers
59 views

curl REST API to AJAX

I'm trying to make a web application that is able to : 1) Upload raster data to GeoServer so when I use this command on cmd it works curl -u admin:geoserver -v -XPUT -H "Content-type: image/tiff" --...
0
votes
1answer
26 views

Rename store using REST API

So, it appears that I can rename a store name (both DataStores and CoverageStores) from the WebUI (v2.13.2 and 2.15.2) but I cannot do it via the REST API. It returns a 403 error when I do this: curl ...
0
votes
0answers
15 views

Getting an error in Geonode when adding a new layer from a Geopackage store

I am trying to publish a new layer from a Geopackage store which I created using the following code cat = Catalog("http://localhost:8080/geoserver/rest/") geoserver_workspace = cat.get_workspace("...
0
votes
0answers
31 views

Create Image Mosaic with Geoserver RestAPI (gsconfig)

I have a bunch of Landsat images(unzip and one band image) and I want to upload them to my local geoserver. All images have the same EPSG:4326. As you know, Geoserver creates index shapefile for image ...
0
votes
0answers
92 views

Problems with GeoServer REST API via Python and text encoding

I have checked a few other threads talking about GeoServer REST API and encoding, but nothing seemed to work. I have a dataset already uploaded into GeoServer and now I just want to update some of ...
0
votes
1answer
30 views

Creating CoverageStore using REST API from GeoTIFF already in GeoServer DATA_DIR

I have a GeoTIFF already available in GeoServer DATA_DIR, specifically in a subdir named "rice" and I woluld like to publish it as a CoverageStore. What I could understand is that REST API allows to ...
0
votes
1answer
58 views

How to automate generating Directory of spatial files (shapefiles) and publishing contents via REST in GeoServer 2.14

I have a folder containing shape files for a few dozen layers. On my development server, I created a Directory of Spatial files store in my workspace, then published each one, one at a time, with the ...
0
votes
0answers
170 views

How to generate a WMS but not WFS?

I am generating geographical services from a PostgreSQL/PostGIS database in GeoServer using python, more specifically the gsconfig library. I am using commands such these demonstrated in this link: ...
0
votes
0answers
62 views

Accessing Geoserver plugins through the REST API

I am writing Python scripts to automate the creation of Geoserver layers. For this the gsconfig module has been invaluable, but I often need to execute operations that are handled by plugins, most ...
0
votes
0answers
1k views

Changing Style of Layer in GeoServer REST API (PHP)

I would like to change the layer's style via REST. My problem is very similar to here and here. Running the following via curl works: curl.exe -v -u user:password -XPUT -H "Content-type: text/xml" ...