Questions tagged [geoserver-rest-api]
For questions about GeoServer's REST API
256
questions
-1
votes
0
answers
14
views
Publish CSS styles in Java with GeoServer [duplicate]
I need to use the REST API method to publish CSS styles to the GeoServer style library and bind them to layers, just like directly publishing SLD styles. However, I have not found a solution.
My ...
-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 ...
0
votes
1
answer
34
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?
0
votes
0
answers
14
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 ...
0
votes
1
answer
15
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 ...
0
votes
0
answers
21
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 ...
0
votes
0
answers
52
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 ...
0
votes
0
answers
19
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 ...
0
votes
0
answers
32
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 ...
0
votes
0
answers
33
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 ...
0
votes
0
answers
21
views
GeoServer: How can I set up a user/role so that it can add new layers and apply existing styles to those layers in a specific workspace only?
I've only just started using GeoServer in the last week, so apologies if I'm missing the obvious.
But I have set up GeoServer with a "data loader" user and role. The user has read, write ...
0
votes
0
answers
197
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/...
0
votes
1
answer
130
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 ...
1
vote
1
answer
287
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 ...
1
vote
0
answers
109
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 ...
0
votes
0
answers
102
views
How to publish a vector from GeoServer API
I'm using GeoServer's Python API to automatically create datastores and publish layers when I have new data available.
I'm able to create a datastore and publish a layer with a chosen style for TIFF ...
0
votes
0
answers
128
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 ...
1
vote
1
answer
198
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
...
2
votes
1
answer
189
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 ...
0
votes
0
answers
160
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 ...
2
votes
0
answers
71
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/...
0
votes
1
answer
137
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)...
0
votes
0
answers
94
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": {...
0
votes
1
answer
393
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 ...
0
votes
1
answer
469
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....
0
votes
1
answer
295
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 ...
1
vote
2
answers
252
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 ...
0
votes
1
answer
133
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.
...
0
votes
0
answers
165
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'
...
1
vote
0
answers
169
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>
...
0
votes
1
answer
105
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.
0
votes
0
answers
716
views
Upload shapefile to GeoServer using JavaScript REST API
I am trying to programmatically upload a map into GeoServer as a layer.
The user requirements as such that this data has to be uploaded from memory directly into GeoServer, using JavaScript.
I looked ...
0
votes
1
answer
465
views
Upload GeoJSON to GeoServer using CURL
I tried to upload a zipped shapefile to GeoServer using CURL.
curl -v -u username:password -XPUT -H "Content-type: application/zip" --data-binary @D:\curl\bin\roads.zip https://DOMAIN/...
0
votes
0
answers
112
views
Error publishing PostGIS layer to GeoServer using Python gsconfig library
I am unable to publish a PostGIS table as a GeoServer layer using the gsconfig library. I was able to create a workspace, data store but was unable to publish layers in the store.
While running the ...
0
votes
0
answers
91
views
How to batch upload ECW files to GeoServer
I have about 10000 ECW files. I want to show them as layers in GeoServer, but I need to upload them one by one. How can I upload them in bulk?
Or how can I publish this 10000 ECW satellite images with ...
0
votes
1
answer
1k
views
Create a new Feature Type and / or Layer on GeoServer using REST API
I am trying to create new tables on GeoServer using the REST API. All the layers I want to publish are visible in the feature type section which looks like this:
when I use then 'get' i would also ...
0
votes
1
answer
706
views
How to add CQL_FILTER to WMTS layer on GeoServer?
I have a wmts layer on GeoServer and I tried to add some CQL_FILTER to my request but it's not working. Whatever I added to uri, geoserver always return result but in some cases it shouldn't.
Here's ...
1
vote
1
answer
331
views
405 and 500 errors when creating GeoTIFF layers by GeoServer REST API
I have created a coverage store in GeoServer using the REST API.
http://localhost:8010/geoserver/rest/workspaces/sdwdrnTif_Test/coveragestores?configure=all
<coverageStore>
<name>...
1
vote
1
answer
179
views
GeoServer REST API | Unable to get records more than 100 records
I have deployed GeoServer 2.18.0 under Tomcat 9 on CentOS along with installed Monitor extension as well.
Accessing monitoring data using REST API and getting that data, but only 100 rows I can see.
...
1
vote
1
answer
182
views
Unable to use CURL to update an empty imagemosaic
After creating an empty image mosaic :
curl -v -u admin:geoserver -XPUT -H "Content-type:application/zip"
--data-binary @/services/GeoServer/data_dir/data/MaltaLab/basic.zip http://localhost:...
0
votes
0
answers
39
views
How to use GeoServer REST API to create mbtiles datastore
GeoServer adds support for mbtiles store in support for mbtiles store.
But I try more times and fail. Somebody can give utils or curl command?
This is my curl command in Java
String cmd = "...
0
votes
1
answer
771
views
GeoServer REST API - create layer group and generate bounding box
I would like to create a layer group and generate bounds.
My REST URL: .../geoserver/rest/layergroups
Parameter:
<layerGroup>
<name>map</name>
<mode>NAMED</mode>
...
1
vote
2
answers
165
views
geoserverRestPublisher not publishing sld correcltly
Hi I'am using geoserver manager plugin for publishing my shapefiles and styles through my web application, but the problem is that the style is not publishing correctly.
this is how it should be (...
4
votes
1
answer
304
views
How to extract GeoServer usage details using REST API?
I am using GeoServer 2.19.0 version on CentOS along with monitor extension.
Wanted to fetch certain details on daily basis (such as what are the top 5 map requests ?, How many users accessing ...
2
votes
0
answers
492
views
Multiple instances of GeoServer sharing the same data dir
I'm trying to achieve the following : https://docs.geoserver.geo-solutions.it/edu/en/clustering/clustering/passive/passive.html.
I have 2 instances of GeoServer sharing the same data directory (...
7
votes
1
answer
567
views
Create a parametrized SQL view based layer using geo.Geoserver Python API
I created "by hand" (using GeoServer HTML configuration interface) a layer based on the following SQL view:
SELECT p1.suid, p1.id, p1.geometry, p1.classname, p2.date, COALESCE(p2.percentage, ...
5
votes
1
answer
439
views
Error publishing PostGIS Layer to Geoserver using Python gsconfig
I can't seem to publish a geoserver layer from our postgis database.
When running a basic script it trips on this line:
ft = cat.publish_featuretype(name=tableP, store=ds, native_crs='EPSG:{}'.format(...
1
vote
1
answer
310
views
Creating CoverageView with GeoServer API
Using GeoServer Rest API, I have uploaded a 4 band Geotiff image in a coverage store. But I can't seem to find the right request to create a CoverageView from this geotiff, choosing which band this ...
0
votes
0
answers
88
views
Seeding multiple bounding boxes using GeoWebCache
We have a system with nationwide coverage but only need to seed major cities. I am using the RestAPI but cannot seem to find a way to seed in multiple bounding boxes with a single xml config file. It ...
0
votes
1
answer
565
views
Creating a GeoServer Store from ZIP via REST API and publishing all layers
I'm looking to automate the creation of GeoServer (2.18) Stores and Layer publishing and hitting an issue.
Using:
curl -v -u user:password -XPUT -H "Content-type: application/zip" -d @many-...