Questions tagged [geoserver-rest-api]

For questions about GeoServer's REST API

Filter by
Sorted by
Tagged with
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 ...
2
votes
1answer
708 views

Selecting service (WMS / WFS) through GeoServer REST API?

Is it possible to select a service (WMS / WFS) through the Geoserver REST-API? I know how to add a workspace through the REST-API, like this curl -v -u admin:geoserver -XPOST -H "Content-type: text/...
2
votes
1answer
882 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 ...
3
votes
0answers
476 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/...
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 ...
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 ...
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 ...
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 ...
2
votes
1answer
132 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
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 ...
1
vote
2answers
2k views

How to set default style of layer using rest api in Geoserver

I want to change the default style of the layer in Geo server using the REST API. For this i have this code: curl -v -u admin:geoserver -XPUT -H "Content-type: text/xml" -d <layer><...
1
vote
1answer
860 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
2answers
941 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 ...
0
votes
0answers
22 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" --...