Skip to main content

Questions tagged [geoserver-rest-api]

For questions about GeoServer's REST API

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

GeoServer layer seen on list in web but not in REST API [closed]

I have a GeoServer layer which is coming from PostGIS. When I try to open it, it is giving following error org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor 'public ...
krishna lodha's user avatar
0 votes
0 answers
23 views

Add vector layer from PostGIS table to existing data store using Python geoserver-restconfig

I am trying add a vector layer from PostGIS table to an existing datastore. Does geoserver-restconfig allow this? from geoserver.catalog import Catalog cat = Catalog(service_url=serv_url, username='...
Arun.R's user avatar
  • 1
1 vote
1 answer
44 views

How to get zoom levels of *running* seed commands (gwc)

I have a gwc (Geoserver 2.24.1), running a bunch of seed commands. I know I can use the REST api to get the status of my running commands. Is there a way (preferably using REST) to see the zoomStart/...
GregStef's user avatar
  • 214
0 votes
1 answer
19 views

How to set CQL_FILTER and recalculate layer boundary values through interface calls

Scenario description: GIS data volume is tens of millions and requires the creation of multi-dimensional layers, using WTMS's tile cache for rendering Using the CQL_FILTER condition to filter data ...
user24214434's user avatar
1 vote
1 answer
20 views

Querying GeoServer for workspace-specific local settings

GeoServer lets you set workspace-specific "local" settings: How can I query GeoServer via its REST API to find out if a workspace has this setting enabled and get the settings? /workspaces/{...
bugmenot123's user avatar
  • 10.9k
1 vote
1 answer
31 views

Java API for changing Tile Caching settings in GeoServer

I am looking for Java APIs to change the highlighted part in the image in the Tile Caching tab in the configuration of a layer. This is the tab. This is the filter function that I am interested in. ...
Luigi's user avatar
  • 113
0 votes
0 answers
17 views

Setting ACL with spaces in role names in GeoServer's REST API

I have two roles: ROLE_FOO and ROLE_FOO BAR. If I set ACL for a workspace using the web admin UI the resulting rule in security/layers.properties is workspace.*.r=ROLE_FOO,ROLE_FOO BAR. If I send <...
bugmenot123's user avatar
  • 10.9k
0 votes
0 answers
34 views

Set GeoServer's password encryption to "Strong PBE" via REST API

On GeoServer 2.24.2 I want to set the password encryption to "Strong PBE" via REST API. In the GUI one can navigate "Settings" -> "Security": I do not want to do this ...
bugmenot123's user avatar
  • 10.9k
0 votes
1 answer
37 views

Change GeoServer's "XML User Group Service default" via REST API

On GeoServer 2.24.2 I want to update the default "XML User Group Service default" to use "Digest" password encryption and to recode the existing passwords as I set that setting. In ...
bugmenot123's user avatar
  • 10.9k
0 votes
0 answers
19 views

Changing GeoServer layer name with REST API using curl

I have created a store via the REST API for a GeoTIFF file. A layer is automatically created with the same name as the GeoTIFF file without the extension. I would like to change the layer name to ...
Theuns Heydenrych's user avatar
0 votes
0 answers
15 views

Adding GeoPackages from geoserver-rest [duplicate]

I have a bunch of GeoPackages that I want to load into datastore then publish in GeoServer. Previously I have been just manually adding the datastores which I now want to try to automate some of the ...
William Chow's user avatar
0 votes
0 answers
24 views

How to update GeoWebCache defaults after change gwc-gs.xml without restart GeoServer

I have an app, which need to change GWC defaults by changing gwc-gs.xml, but i cant do it without restarting GeoServer. I tried use API gwc/rest/reload and geoserver/rest/reload and geoserver/rest/...
Aruka's user avatar
  • 1
0 votes
1 answer
62 views

Disable WMS service on specific layer through GeoServer REST API

I have a GeoServer feature layer that I would like to publish only through WFS, thus disabling WMS access. In the UI, it is possible to selectively enable/disable services for any given layer, as ...
giob12's user avatar
  • 108
0 votes
0 answers
33 views

How to secure GeoServer resource - /cite/wms/**

Total newbie here. I got tasked to secure the release of our GeoServer instance onto prod. I am looking to secure the url /cite/wms?&service=WMS&request=GetMap&layers=XXXX&styles=&...
Avais's user avatar
  • 1
0 votes
0 answers
16 views

Can not add role with dot (.) in the name via Geoserver REST API

ran into a funny problem. While adding new role in geoserver Via REST Api asks to send the role name in URL itself https://docs.geoserver.org/latest/en/api/#1.0.0/roles.yaml , which essentially makes ...
krishna lodha's user avatar
0 votes
0 answers
35 views

Unable to retrieve vector data types with GeoServer REST API

I am currently working on a project where I need to retrieve data types (e.g., Point, Line, Polygon) using the GeoServer REST API. I've explored the GetCapabilities link, but unfortunately, I couldn't ...
Iroh's user avatar
  • 159
0 votes
0 answers
43 views

Requirement for multiple GeoTIFF layers in a store

I have a folder to which GeoTIFF files would be incoming from a source. So now I have to basically, as and when the file arrives, send the file into a store in GeoServer and publish the layer. I was ...
Shridev's user avatar
0 votes
0 answers
53 views

Connecting to GeoServer REST module

I'm a new starter on GeoServer. I have a requirement where in I have to create a workspace, create a coverage store (GeoTIFF file) and publish it through APIs. I am using Python through the FastAPI ...
Shridev's user avatar
0 votes
0 answers
51 views

GeoServer REST API replace layer

I'm following the steps shown on this page to replace the contents of a layer with new data but I'm having some issues. I can get it to work but only to update existing properties and add new rows - ...
Alex's user avatar
  • 111
0 votes
0 answers
105 views

Status : 500 - b'Failed to find the datastore factory for gpkg, did you forget to install the store extension jar

when i am trying to publish layer using the Geoserver-rest api. geo.publish_featurestore(workspace='demo',store_name='gpkg',pg_table='file_name') but gettting this error Status : 500 - b'Failed to ...
anonymous_1729's user avatar
0 votes
1 answer
84 views

Geoserver Rest API add coverage from existing coveragestore - java.lang.RuntimeException

i got an error when trying to create a new coverage from an existing coveragestore in geoserver with REST api. I first created a new store manually in the web administration interface as i am more ...
Lore_Kni's user avatar
0 votes
1 answer
74 views

Programmatic configuration of authkey and similar to GeoServer

I am using the kartoza/geoserver-docker image link to serve map layers because I wish to gracefully handle server failures and support scaling if needed. My docker container has a persistent store for ...
arkore's user avatar
  • 13
-1 votes
0 answers
25 views

Publishing CSS styles to geoserver in Java is not an SLD [duplicate]

I want to directly upload and publish a CSS format style in Java, but after trying for a while, it has failed.I don't want to manually convert it to SLD format. Has anyone done anything similar or ...
LiuX's user avatar
  • 7
0 votes
1 answer
73 views

Publishing CSS Styles to Geoserver in Java [closed]

I want to directly upload and publish a CSS format style in Java, but after trying for a while, it has failed. How can I do this?
LiuX's user avatar
  • 7
0 votes
0 answers
53 views

GeoServer workspace store change via REST API

Currently the way we have to change the GeoServer workspace of store is: GET call for old_workspace and store POST Call for new_workspace with updated body of 1. by replacing all old_workspace names ...
krishna lodha's user avatar
0 votes
1 answer
37 views

Update GeoServer layer style over the API does not work when styles have the same name

So here's my scenario: I have a working integration that syncs layers and styles to geoserver without issues. This is working for a long time, all the calls succeeds as expected. When I have the ...
George Silva's user avatar
  • 6,300
0 votes
0 answers
47 views

Get FeatureType from GeoServer layer

I am using the gsconfig package in Python to retrieve layers in a geoserver. Now my problem is, I need to know the FeatureType of each layer (Point, Polygon, Linestring) but I am unable to find the ...
blabbath's user avatar
  • 975
0 votes
0 answers
105 views

How to upload Google Earth kml file to Geoserver (via API or python package) without losing any data or style

I have Google Earth Pro Desktop App where I created placemarks, lines, polygons, and applied individual styles to them. However, I am facing difficulties uploading this data to GeoServer using the ...
Hovhannes Asatryan's user avatar
0 votes
0 answers
26 views

How to keep authkey and users in sync for GeoServer

I'm trying to implement https://docs.geoserver.org/stable/en/user/extensions/authkey/index.html , it's working fine but I need to know how can I use either REST API or other type of automation flow so ...
krishna lodha's user avatar
0 votes
0 answers
56 views

GeoServer REST error when enabling coverage store

When I use this GeoServer REST API to enable uploaded GeoTIFF file: http://xxxx:8080/geoserver/rest/workspaces/MyWorkspace/coveragestores/mytif/coverages I receive the following error, any idea how to ...
Bih Cheng's user avatar
  • 101
0 votes
0 answers
119 views

GeoServer publish layer using REST API with custom band name under Coverage Band Detail

I'm trying to publish a existing coverage storage using custom Band name, the information is available from GeoServer GUI here: How do I publish this store through Geoserver REST API with a custom ...
MaxG's user avatar
  • 505
0 votes
0 answers
374 views

Adding COG GeoTIFF image to GeoServer: Lots of reader and projection issues

I'm trying to follow this tutorial: https://docs.geoserver.org/stable/en/user/community/cog/mosaic.html?highlight=install With this GeoTiff: https://noaa-nbm-pds.s3.amazonaws.com/blendv4.1/hawaii/2023/...
Chris Rice's user avatar
0 votes
1 answer
303 views

How create an S3 coverage using the GeoServer REST API?

I am trying to create a coveragestore and coverage for an S3 based COG GeoTIFF. I can successfully create the coveragestore, but cannot figure out how to create a coverage using that coveragestore. I ...
Lisa Stillwell's user avatar
1 vote
1 answer
712 views

GeoServer Exception (Status Code 500) when creating a CoverageStore through geoserver-rest python library

I'm trying to upload a leyer to GeoServer using geoserver-rest python library. I'm using the CoverageStore method to create a Store on the Workspace and subsequently create the Layer. This is the code ...
Jaime Miranda Ramirez's user avatar
1 vote
0 answers
153 views

Add a GeoTIFF layer to layer group via REST API

The layer and layer group are present in the GeoServer. I send a PUT request to http://localhost:8080/geoserver/rest/workspaces/{myworkspace}/layergroups/{mylayerGroup}.json with my json which is an ...
Hossein Ebrahimi's user avatar
0 votes
0 answers
203 views

GeoServer responding with "No such feature type:" on REST PUT request

I have a layer in GeoServer that is pulling data from a PostGIS Store. REST is set-up and worked with GET and PUT commands on a layer using a PostGIS Store with line data, but when a layer is using a ...
Alan Gerow's user avatar
1 vote
1 answer
349 views

Creating CoverageStore in GeoServer through REST API with external option

Following the example from the GeoServer docs link, I tried replicating the same for a GeoTIFF file which is already present in the GeoServer data directory - $GEOSERVER_DATA_DIR/data/raster/test.tif ...
GoutaamT's user avatar
2 votes
1 answer
326 views

Upload shapefile through GeoServer REST API?

I am trying to upload a shapefile to GeoServer over the REST API by using FME. This should be possible with the HTTPCaller! I am using the following option: - HTTP-methode: PUT Upload from data But I ...
Moritz Liebelt's user avatar
0 votes
0 answers
219 views

GeoServer generated Image Mosaic properties missing TimeAttribute

I am using an ImageMosaic store with a granule index stored in a PostgreSQL database. Adding granules and updating the index is done manually and not through GeoServer. GeoServer is accessing the ...
Giannis Tsimarakis's user avatar
3 votes
1 answer
123 views

Add/import a style using REST

I have zipped a sld file and import it with curl -u admin:geoserver -XPOST -H "Content-type: application/zip" --data-binary @C:/GIS/testdata/vk_al.zip http://localhost:8080/geoserver/rest/...
Bera's user avatar
  • 74.3k
0 votes
1 answer
262 views

GeoServer REST API update coverage

I have created a ECW coverage store and a coverage using the GeoServer REST API. Initial I used the srs bounds for the coverage and the preview shows this (what I expected): Now I want to update (PUT)...
Gertwin Groen's user avatar
0 votes
0 answers
131 views

Generate bound for layer group with REST API

Using the geoserver/rest/workspaces/{workspace}/datastores/{datastore}/layergroups/ to generate the Layergroups. How can we generate the bounds for the layer group through API? "bounds": {...
pooja's user avatar
  • 1
0 votes
1 answer
587 views

Securing GeoServer REST and fetching ReactJS

I am in need of protecting REST API with some kind of password and then creating fetch for layers(remove,update,add, get) layers cannot really find detailed documentation with examples. What is the ...
Marin Spudić's user avatar
0 votes
1 answer
593 views

GeoServer REST API - get layergroups

I am writing a small python script to check configuration on my Geoserver. To get a list of layers/services on the geoserver I use: url = 'geoserverIP/geoserver/rest/layers.json' response = requests....
ncica's user avatar
  • 942
0 votes
1 answer
441 views

GeoServer layer style not updating through REST API after deploying on Ubuntu server

I am trying to update the GeoServer layer style using REST API. First I wrote a function to update the layer and SLDon GeoServer and then another function to update the default style of uploaded. this ...
alauddin's user avatar
1 vote
2 answers
380 views

SLD style not imported in geoserver while publishing it through REST API

I am using REST APIs to publish and change the default style of layers published in GeoServer. When I copy the SLD and paste it directly in the GeoServer styles it works fine. but while using REST API ...
alauddin's user avatar
0 votes
1 answer
172 views

Why when I want to add new rule to GeoServer GeoFence via RESTful API I got HTTP 406 error?

I'm trying to create a new rule in GeoServer GeoFence via GeoFence RESTful API, But I got HTTP 406 error, I don't know what thing I'm doing wrong, Because I did based on GeoServer GeoFence Plugin. ...
Navid's user avatar
  • 859
0 votes
0 answers
180 views

Returning the code of GeoServer REST parametric

I want to return my code Python of GeoServer REST API parametric. How can I do that? # Import the library from geo.Geoserver import Geoserver # Initialize the library Password = 'geoserver' ...
ikram's user avatar
  • 1
1 vote
0 answers
218 views

How to get the geometry and SRID in SQL View GeoServer REST API? [closed]

I am trying the create the GeoServer SQL View using GeoServer REST API. Here is my XML configuration file, layer_xml = """<featureType> <name>{0}</name> ...
Tek Kshetri's user avatar
0 votes
1 answer
121 views

How can I refresh the Native Bounding Box

After add new Feature to VectorLayer, I want to refresh Native Bounding Box to seed tile caching. But I'm not found res API.
Hsomething's user avatar

1
2 3 4 5 6