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

0
votes
2answers
703 views

Can we add features to geoserver layer using REST [closed]

As in ArcGIS Online, can we add the features to GeoServer layer though REST API? If yes, can you tell me where i can find the help on this? Or can you tell me how I can write my own REST API to ...
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
657 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
792 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 ...
4
votes
3answers
963 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 ...
3
votes
0answers
447 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/...
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
361 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
926 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
958 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
109 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:...
1
vote
1answer
819 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/...
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><...
0
votes
2answers
868 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 ...