Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [geoserver-rest-api]

For questions about GeoServer's REST API

1
vote
2answers
106 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 ...
2
votes
1answer
480 views

Error to add store through cURL REST API too geoserver

I have problem with adding raster layer to geoserver automatically. I need, that geoserver add layer without person job, only script action and i saw that it may be done with cURL REST API but, i can'...
0
votes
1answer
17 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
49 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 ...
3
votes
0answers
158 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
460 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
185 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
32 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 ...
2
votes
0answers
402 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
291 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
623 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
212 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
0answers
43 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
71 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
0answers
32 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
87 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
165 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
327 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
173 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
266 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
193 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
261 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
94 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
71 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
52 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
168 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
35 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
298 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
141 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
66 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
0answers
158 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
59 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
995 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" ...