Questions tagged [geoserver-rest-api]

For questions about GeoServer's REST API

1
vote
1answer
143 views

Changing Declared SRS

I am using PostGIS with geoserver. I have been able to publish a shapefile.zip as a layer. The problem is, even though there is a .prj in the zip file, the Declared SRS in Geoserver is EPSG:404000 I ...
1
vote
2answers
465 views

Web request to upload shapefile to GeoServer

I have been trying to publish a zipped up shapefile to GeoServer. For background, I am using DotSpatial to create a Line shapefile based on uploaded points. Once I have created the shapefile, I ...
0
votes
1answer
153 views

Is it possible to retrieve the data directory path via the REST API?

I'm writing a client for the GeoServer REST API and I want to create a data store for a directory of shapefiles. Since the REST API does not offer this functionality (only stand-alone shapefiles can ...
1
vote
0answers
167 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 ...
5
votes
1answer
980 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 ...
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 ...
1
vote
0answers
328 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
1answer
317 views

Creating image pyramid datastore using GeoServer REST API?

I am trying to automate the geoserver configuration process and I am using curl and the geoserver REST API. I am able to create workspaces and for instance a WMS datastore, but I am not able to ...
3
votes
1answer
382 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-...
1
vote
1answer
81 views

EPSG:3785 not populated in Geoserver

I have a shapefile that I have posted to geoserver using the REST api. I have set the coordinate system to EPSG:3785 as indicated below. When looking at geoserver this is what I get when looking at ...
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 ...
0
votes
1answer
191 views

Geomesa accumulo CURD data operations using WFS geoserver

I have created geomesa accumulo datastore and can query features using command line. Now i want to perform data operations using Open Geospatial Consortium's (OGC) Web Feature Service (WFS) for ...
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 ...
2
votes
0answers
624 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 ...
0
votes
1answer
97 views

How to use GeoServer in my LAMP stack with weekly data updates

I need to make a Web GIS and weekly update all my data. Currently I'm working on localhost with this work flow: PostgreSQL (db with csv and shape) GeoServer (to take data from db) Qgis (get the ...
0
votes
0answers
161 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: ...
1
vote
1answer
295 views

Is there any way to get the SQL View parameter list via REST API?

I have a view SQL layer with some parameters. I need to use the REST API to guess these parameters and show to the user in the interface to he/she fill the values before submit. Going to rest/...
3
votes
2answers
858 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, ...
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 ...
1
vote
1answer
667 views

Adding a new Shapefile to GeoServer through REST API

I'm trying to interact with GeoServer's REST API using PHP's cURL and I'm having an issue when uploading a new Shapefile... This is my uploadShapefile method: public function uploadShapefile($zip, $...
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 ...
2
votes
2answers
377 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
957 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
294 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....
1
vote
1answer
664 views

My geoserver layer is not updated always correctly. Old features are still displayed in different zoom levels

It would be great to get an advice on this topic as its something it troubles me regularly in different projects. I always find it hard to work efficiently with geoserver and geowebcache when it ...
0
votes
1answer
93 views

get geotiff info like width, height, pixel size with Geoserver REST API

I want read information for certain layer (not tile) like the ones read from gdalinfo. How can I get these info with the rest api?
2
votes
1answer
228 views

Having Trouble Setting Up a GeoServer REST Service — Maven Missing Artifact

I'm trying to follow the tutorial found in the GeoServer Developer Manual found here. Unfortunately to someone without much GeoServer and without any Maven experience, I'm having a hard time wrapping ...
3
votes
0answers
461 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/...
2
votes
1answer
455 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 ...
1
vote
1answer
870 views

Update the geometry of a point through WFS-T

I am trying to change a point geometry in a postgis table through geoserver. I use python Requests in order to make the POST request. My xml looks like this: xmlstr = """<wfs:Transaction service="...
0
votes
2answers
896 views

Using Geotools or GeoserverManager to add a layer using just an URL

Lets say I have just an URL to a Layer in OpenLayers format: http://www.geoservicos.ibge.gov.br/geoserver/CREN/wms?service=WMS&version=1.1.0&request=GetMap&layers=HidrogeologiaRegiaoNE ...
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 [...
2
votes
2answers
697 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
819 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
403 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
309 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 ...
1
vote
1answer
838 views

How to call Legend end points of multiple layers published from Geoserver?

I have map services published from ArcGIS server being called from Angular- Leaflet app and we are displaying the legend (controlled through map controls) from https://pxxxx.com/arcgis/rest/services/...
0
votes
1answer
143 views

How to get detailed informations about a layer (SRID, extent, …) in Geoserver REST API?

I'm trying go get detailed informations about a layer using the Geoserver REST API (I'm using Geoserver 2.8.1), but according to the online API documentation, I can only get basic informations such as ...
1
vote
0answers
262 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 ...
3
votes
0answers
186 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 ...
1
vote
1answer
135 views

What causes the error “FeatureType XX does not have lat lng fields named 'Lat' and 'Lon'”

I am using the GeoServer Importer REST API to import some CSV data to an Oracle database(datastore). This is what I do: create an export task: curl -XPOST -H "Content-type: application/json" -d @...
1
vote
0answers
95 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?
2
votes
1answer
481 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
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 ...
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
2answers
2k views

GeoServer REST API delete layer

I'm using GeoServer REST API to create a layer from a shapefile. That shapefile needs to be updated on a regular basis. Since there is no replace function on the REST API, I'm trying to delete the ...
2
votes
1answer
404 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
1answer
226 views

Geoserver NETCDF file store updates

I am looking for a general approach to "refreshing" a NETCDF store using the REST API. I have a NETCDF file that is generated every 24 hours. I need to update the file, but would prefer not having ...
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 ...
1
vote
1answer
805 views

Setting GeoServer's WMS services SRS limitation via REST Api

On the GeoServer admin page, it is possible to restrict the Spatial Reference Systems (SRS) that can be requested in WMS GetMap requests by putting a comma separated list of SRS numbers in the input ...