For questions about GeoServer's REST API

learn more… | top users | synonyms

0
votes
0answers
7 views

How to programmatically update data in WFS geoserver layer

I am building an application where the user retrieves all the features of a geoserver layer (store: postgres) and display them on a table. For doing this I use the OWSLib (get_feature). Now I need to ...
0
votes
2answers
45 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
25 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
26 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 ...
1
vote
0answers
35 views

500 error when uploading shape file to Geoserver with C#

I receive a 500 internal server error when attempting to PUT a shape file using REST. I can manually import the file, publish and preview it. So the file is fine. Geoserver log: 2016-05-24 12:20:25,...
0
votes
0answers
30 views

How to Publish a shapefiles in GeoServer with same name without deleting it?

I want to publish multiple shapefile (more than 1000) daily(features in shapefile daily varies) in GeoServer using Curl with same name , workspace, stores, and without changing layer name too. Time ...
1
vote
1answer
58 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
42 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
75 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
40 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
38 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
53 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 ...
0
votes
0answers
62 views

GeoServer C# error no such workspace

I am trying to create a program which allows the user to upload their own shapefile into geoserver via the rest api using C#. I used the code from okello in here. However there was a missing function ...
1
vote
1answer
43 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 @...
0
votes
0answers
36 views

GeoServer get data via REST from another webserver

I have a webserver connected to a PostGIS database containing spatial data. I also have set up a GeoServer instance. I would like to do the following: Make a request to the my GeoServer, and pass ...
1
vote
0answers
36 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
121 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
42 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
33 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 ...
0
votes
1answer
260 views

Geoserver REST API delete layer

I´m using Geoserver REST Api to create a layer from a shape file. That shape file needs to be updated on a regular bassis. Since there is no replace function on the REST API, i´m trying to delete the ...
1
vote
1answer
127 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
42 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 ...
1
vote
0answers
46 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 ...
0
votes
0answers
19 views

Set Proxy GeoServer Manager API 1.5.2

I'm new to geoserver manager api, and wanted to know how to set the proxy to use the GeoServerRESTPublisher and GeoServerRESTPublisher classes because my geoserver is remote and my internet ...
1
vote
1answer
212 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 ...
0
votes
0answers
36 views

Transform/Reproject an ImageService with Esri REST Api

I have an image service that was created with a NAD_83 Stateplane Coordinate System. I need to make this match the started Web Mercator. Can I reproject from the REST API? From this reference it ...
3
votes
1answer
155 views

How to get the legends from geoserver

I am using geoserver 2.5.5. I have to get the legends of each category from different link. Now geoserver gives whole legend as a PNG image format using this link http://localhost:8080/geoserver/wms?...
0
votes
2answers
212 views

Add external WFS layer to geoserver using REST API

I am trying to add an external WFS as a datasource to my geoserver via REST API. I already added a new workspace and WFS datasource. Now I want to publish a layer from that WFS on geoserver. The ...
1
vote
1answer
135 views

FileSystemException when using Importer Extension

I am trying to import a Shapefile to Geosever with the Importer Extension. This is the json that I post to .../geoserver/rest/imports: { "import": { "targetWorkspace": { "workspace":...
2
votes
1answer
810 views

Upload KML / GML / GeoJson to Geoserver through Rest API

What is the best option, if any, to upload a vector format like GeoJson, and or GML to Geoserver? The environment from which to upload will be a client web-application, so i cannot use curl. In the ...
1
vote
1answer
90 views

Geoserver layer pyramids in googledrive

is it possible to create pyramid from large rasters and add them with folders to google drive and mount google drive as local drive to geoserver ? i tried to search in internet to find about it and ...
1
vote
2answers
201 views

Can we add features to geoserver layer using REST

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 can we write my own REST API to ...
1
vote
2answers
80 views

Use GeoServer's REST API on feature names with special characters

By default, GeoServer comes preconfigured with some example workspaces, datastores and layers. One of these workspaces is called it.geosolutions. If I try to delete this workspace via cUrl and the ...
1
vote
1answer
85 views

Geoserver CSV - changing the default comma separator

I would like to know if it is possible to change the default comma separator CSV exportation in Geoserver using semicolon i.e. as a separator. Some of the tables that I published have large text ...
1
vote
1answer
251 views

Validate StyledLayerDescriptor (SLD)

What is the best way to validate SLD? I'm using geoserver-manager but i cannot find any method to validate SLD. Even if i publish invalid SLD over geoserver-manager the response is 200 OK but it is ...
1
vote
1answer
149 views

Encoding SLD files

I am creating a SLD file and uploading it though the REST API using C#. This SLD file contains some danish characters, but the end result turns out bad. For a test I save the xml file to disk before ...
1
vote
0answers
45 views

Error in installing gsconfig python library for manipulating a GeoServer instance via the GeoServer RESTConfig API

I like to install gsconfig python libraries I got error like this Collecting gsconfig Downloading gsconfig-0.6.13.tar.gz Traceback (most recent call last): File "<string>", line 20, in <...
0
votes
1answer
90 views

Parameterizing Postgis function in GeoServer's SQL Views

I have a problem when parameterizing a postgis function in sqlviews If i create this sql, all works like a charm attaching this &viewparams=idvia:6753 to the url SELECT ST_Transform(...
2
votes
0answers
56 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
288 views

How to configure a available feature types in GeoServer using python gsconfig

How to configure a available feature types in GeoServer using python gsconfig? I have created work space and data store using gsconfig. Now , how i can configure available layers in a exist data store ...
1
vote
0answers
27 views

Getting GeoServer full datastore layer list by REST [duplicate]

I have installed GeoServer 2.6.1 with an Oracle datastore which has some of the tables of the database published - the others will be published in the near future. The documentation says that It is ...
0
votes
1answer
484 views

GeoServer REST API bug - “The specified coverageName is not supported”

I've encountered a problem with GeoServer REST in both 2.6.2 and 2.5.4 (though not, interestingly, in 2.3.1). When adding a GeoTIFF with a path accessible to GeoServer, the server replies with: The ...
1
vote
0answers
43 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
1answer
208 views

How to update projection of layers in Geoserver using gsconfig

Im using following code to find projection of layer from geoserver.catalog import Catalog cat=Catalog("http:// localhost:8080/geoserver/rest") myResource = cat.get_resources(store='storeName', ...
2
votes
0answers
45 views

wms layer cant see when I zoom

I have read many tipps for the problem "layer bacome cloudy when zoom", but it doesn't work still. Where is the problem in my source? var wms = new OpenLayers.Layer.WMS( "Földrengések", '...
0
votes
0answers
375 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" ...
2
votes
0answers
158 views

geoserver manager tutorial add new WFS layer [closed]

GeoServer Manager is a library to interact with GeoServer 2.x. I want to use it. but I didn't find any appropriate documentation for it. Can anyone help me by some tutorial or example? here is a few ...
4
votes
1answer
364 views

How to create layer group in geoserver with gsconfig?

How can I create layer groups using python gsconfig ?
0
votes
1answer
324 views

How to creat a feature type using rest/ php on geoserver?

I'm trying to create a feature type for a ship in geoserver but when I post the request to the server I get this response: [geoserver.rest] - Trying to create new feature type inside the store, but ...
0
votes
1answer
505 views

Clear resource cache via REST in Geoserver

Is there a way to clear the Geoserver resource cache using REST? Same as "Server status" > "resource cache" > "clear" in the Admin UI.