Questions tagged [rest]

Representational State Transfer (REST). The name "Representational State Transfer" is intended to evoke an image of how a well-designed Web application behaves: a network of web pages (a virtual state-machine), where the user progresses through the application by selecting links (state transitions), resulting in the next page (representing the next state of the application) being transferred to the user and rendered for their use.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

QGIS 3 connection to ArcGIS Online via ArcGIS REST service connection hanging

Have been successfully accessing the ArcGIS World Imagery via an ArcGIS REST Server connection using the URL: http://server.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer for the past ...
user avatar
  • 73
0 votes
2 answers
45 views

reading geometries from a web service in python

I have some code that connects to a gis server, esr rest service, and returns the geometries of the features on that layer. I can pick html, json, geojson, kmz, and pdf as returns and I can export the ...
user avatar
  • 1,159
1 vote
0 answers
24 views

Connect A 3rd Party API to ArcGIS Online [closed]

I am making a REST API that provides lat-long coordinates. I would like to create a pipeline to feed this API into an ArcGIS Online map. Is this doable? I am a programmer. Can ArcGIS online parse a ...
user avatar
0 votes
0 answers
20 views

Loading map onto GeoServer using JavaScript REST API [duplicate]

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 ...
user avatar
0 votes
0 answers
69 views

Layers not shown on potree

I'm trying to use my las files in potree I've tried to convert them potree converter 1.7 and 2.1 then I deployed them in Apache and also tried Xampp but none of those worked When I try on potree 1.7 I ...
user avatar
1 vote
3 answers
217 views

Adding vector layer feature from REST API URL (HTTPS) in QGIS

I'm simply trying to import this feature directly into QGIS 3.16.3-Hannover as a new vector layer: https://api3.geo.admin.ch/rest/services/api/MapServer/find?layer=ch.swisstopo.swissboundaries3d-land-...
user avatar
  • 6,698
0 votes
1 answer
165 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> ...
user avatar
2 votes
0 answers
32 views

REST API table.export to Google Drive

I tried to export a table data to google drive with REST API. The response showed succeeded but I didn't see the file in my Google Drive folder. When I tried export to Google Cloud, it worked. I don't ...
user avatar
4 votes
1 answer
168 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 ...
user avatar
  • 4,707
1 vote
1 answer
52 views

How to add WMS to QGIS or any client

I'm trying to get this dataset. It's a bit confusing with the proxy on the front of it. Seems like QGIS does not like the domain infront of the ArcGIS Server. http://gismaps.co.sangamon.il.us/tpv/...
user avatar
  • 23
1 vote
1 answer
266 views

How to change the service definition of an ArcGIS Online layer via python?

The help file at https://support.esri.com/en/technical-article/000012383 shows how to (manually) update a layer's definition in ArcGIS Online, in order to increase its maxRecordCount. How can I ...
user avatar
  • 20.5k
1 vote
0 answers
87 views

How to upload layer's metadata in Geonode using REST API?

I want to upload Geonode Metadata to Geonode using a REST API. I have succesfully created my own custom template for my layer at Editing Tools> Wizard>Dataset Attributes, but I would like to do ...
user avatar
  • 11
2 votes
0 answers
229 views

Batch geocode addresses using a REST API (ArcPy, CSV, Server)

My stand-alone Python script tries to geocode a CSV file of addresses. The script successfully geocodes this CSV file when using the *.loc file for this locator but not the published REST API. ArcGIS ...
user avatar
  • 91
3 votes
1 answer
84 views

Unable to select layers for intersect in QGIS

I have a series of buffers around points that I want to intersect with FEMA's National Flood Hazard Layer. My goal is to find out which of the buffered points fall within 1% and 0.2% flood chance ...
user avatar
0 votes
1 answer
252 views

Enable a GeoServer OWS WFS Service via REST

I am trying to activate a GeoServer OWS (WFS) service via the REST interface for a workspace. In the GeoServer admin interface, there are two boxes to tick for enabling a service manually. One in the &...
user avatar
  • 1,073
1 vote
1 answer
40 views

How to get list of xslt files from geoserver using rest api

I am trying to get list of all XML and XSLT files from GeoServer using REST API. I am using path: my_geoserver/geoserver/rest/services/wfs/transforms and code: request_url = server + "/geoserver/...
user avatar
  • 800
-1 votes
1 answer
186 views

Querying a database/REST API

I cannot figure out how to use QGIS to query the database at this link: https://www.ncdc.noaa.gov/swdiws
user avatar
2 votes
2 answers
547 views

Adding a geopackage (gpkg) to GeoServer through REST API

I'm trying to use the REST API to upload a GPKG file (SQLite with vector data) into GeoServer with curl but I always get Error auto-configuring coverage. The (wrong) command I'm currently using is ...
user avatar
  • 51
0 votes
1 answer
270 views

Invoke an HTTP request when AGOL features are edited?

Is it possible to automatically invoke an HTTP request when features are created/updated/deleted in an AGOL feature layer? For example, when a feature is updated, generate an HTTP request with these ...
user avatar
  • 754
2 votes
1 answer
80 views

Opening vector layer via URI with spaces

I try to open a Pelias REST API link that returns GeoJSON with add vector layer (Ctrl+Maj+v) in QGIS. If i try http://localhost:4000/v1/search?text=belgium, it's ok. If i try http://localhost:4000/v1/...
user avatar
  • 995
1 vote
0 answers
74 views

Why does GeoServer (UI) not refresh the layer after a succesfull REST PUT?

I have a layer configuration in Geoserver (space1:my_layer) which I want to change. I change the layer via REST PUT on http://localhost/rest/workspaces/space1/datastores/store1/featuretypes/my_layer ...
user avatar
0 votes
0 answers
60 views

Layer not completely drawing in ArcGIS published service

I am publishing a service and one of my polygon feature layers is not completely drawing when viewing the published data through ArcGIS REST API. All features within this feature class are drawing ...
user avatar
  • 77
0 votes
1 answer
101 views

GeoServer REST API: How to get list of workspaces by username

Is it possible to get list of available workspaces and list of data stores in some workspace for some specific user with GeoServer REST API by sending request with admin user credentials?
user avatar
1 vote
0 answers
197 views

How to optimize API calls for a large dataset using Python?

Objective: Send a list of addresses to an API and extract certain information(eg: a flag which indicates if an address is in a flood zone or not). Solution: Working Python script for small data. ...
user avatar
  • 111
-1 votes
1 answer
39 views

Creating ISO 19115 metadata from REST services

I need to create ISO 19115 metadata from REST services on a webpage. I'm not even sure how to begin on this. Has anyone here done this or similar tasks before?
user avatar
  • 111
2 votes
0 answers
193 views

Exporting QGIS layer as shape through REST API

I would like to export a layer described in QGIS Server project file as Shape through REST API. For example GeoServer's GetFeature accepts outputFormat parameter value shape-zip which in turn returns ...
user avatar
-1 votes
1 answer
175 views

Using iterator in ModelBuilder with layers in REST Service

Is it possible to get an iterator in ModelBuilder to iterate through layers in a REST service? It appears to be possible to extract data from many REST service layers. However, I want to point an ...
user avatar
3 votes
1 answer
772 views

Publishing service using service definition file (sd) through the ArcGIS REST API?

The algorithm I have so far is basically this: Create a sddraft from a mxd file (using arcpy.CreateMapSDDraft(). Stage sddraft into a sd file (using arcpy.StageService_server(). Upload sd file to ...
user avatar
1 vote
1 answer
318 views

SLD space in TTF url fails

Use geoserver rest interface to create a style,param like below url:http://localhost:8080/geoserver/rest/workspaces/qgisImport/styles Content-Type:application/vnd.ogc.se+xml;charset=UTF-8 body: ... &...
user avatar
0 votes
1 answer
315 views

GeoServer REST API for NetCDF in Python

I am trying to programmatically edit the dimension variable in GeoServer for 200+ NetCDF's. This is how I am trying it: from geoserver.catalog import Catalog cat = Catalog("http://localhost:8080/...
user avatar
  • 327
0 votes
1 answer
412 views

Get field value: JSON response from feature service [closed]

I have JavaScript in work order management software: load("nashorn:mozilla_compat.js"); importPackage(java.util) importPackage(Packages.psdi.server) var ctx = new HashMap(); ctx.put("url","https://...
user avatar
  • 754
0 votes
0 answers
99 views

Adding style to a published layer using GeoServer REST API with Node.js [duplicate]

Lets say I have a custom style in GeoServer and after I created a new layer, I want to add the style to that layer. I am using this link for documentation. function editLayerStyle(layerName, body) { ...
user avatar
  • 51
0 votes
1 answer
626 views

ArcGIS REST API query failing with large geometry as input

I am querying different ArcGIS Services passing a polygon as the input geometry to get the features from the service that intersect with it. However, depending on the polygon's geometry I get ...
user avatar
1 vote
2 answers
3k views

How do I use Django REST Framework GIS to query GeoJSON

I am trying to write the view that will return a GeoJSON of my model stored in the database. I would like to create an API so that I can use an AJAX request in a JavaScript file I have. I have not ...
user avatar
  • 63
1 vote
2 answers
491 views

Converting REST Service to file geodatabase feature class?

I'm trying to convert a rest service to a feature class but Python is getting hung up in the middle of the process. Input: import arcpy import urllib import json # Setup arcpy.env.overwriteOutput =...
user avatar
  • 1,933
2 votes
0 answers
400 views

Creating GeoJSON REST service

I'm trying to create a GeoJSON REST service from a PostgreSQL connection. First I fetch GeoJSON as a string from PostgreSQL: import java.util.*; import java.sql.Connection; import java.sql....
user avatar
  • 121
0 votes
0 answers
341 views

ArcGIS Server REST API Query - Where date strings are greater than

I am working with an ArcGIS Sever 10.41 rest service that contains many scientific records. These records have a date field called sample_date but it's stored as a string. See below. sample_date ( ...
user avatar
  • 1,617
1 vote
1 answer
301 views

Modify GeoServer Caching Defaults via REST

I'm working on some shell scripts to configure GeoServer instances using the REST endpoints, but I've become stuck with the GeoWebCache caching defaults. Is there any way to modify the gwc-cs.xml file ...
user avatar
  • 41
1 vote
2 answers
1k views

Adding data from Mongo to GeoServer?

I'm finishing my last degree on informatics but I'm having trouble getting Tiles/Layers. I have a DB on MongoDB - with this Schema (GeoJSON) db.stations.insert({ "name": "station 1", "...
user avatar
0 votes
1 answer
169 views

ArcGIS REST API not enough storage available to complete the operation

I am building a web app for submitting jobs to the Vehicle Routing Problem Solver. I have been testing this app for a while now and I could submit jobs flawlessly before, but as of today I am getting: ...
user avatar
4 votes
3 answers
1k views

Find out ESRI REST URL for web map which is hiding it

I would like to extract the pipeline geometries from https://www.arcgis.com/home/webmap/viewer.html?webmap=a00c3b5cee4e4fe0b238b5e05ed80204 It shows the existing gas & oil pipelines crossing ...
user avatar
1 vote
2 answers
514 views

Unable to Upload shapefile using GeoServer REST API using Java

I am trying to upload shapefiles through GeoServer REST API's. I am not able to create new layer with this following snippet of code. However Create Workspace and style method works fine using this ...
user avatar
2 votes
0 answers
172 views

Selecting features in QGIS via NetworkAPI HTTP POST request

Searching for a way to remotely operate on a running QGIS instance I recently stumbled upon a GSOC 2017 project NetworkAPI which provides a REST interface for QGIS (https://gitlab.com/qgisapi/...
user avatar
0 votes
1 answer
988 views

Using the ArcGIS API for Python with a REST service to search content

I have a public REST service that has several layers and feature classes that I want to access. According to the documentation. Once I have the arcgis package imported, I can inject my outside REST ...
user avatar
  • 1,641
2 votes
1 answer
955 views

Edit ArcGIS Feature Service with QGIS

When I add an ArcGIS feature service in QGIS, the Digitizing Tools become disabled. Is there any way to edit data from ArcGIS Rest Services (Feature Services from ArcGIS Server 10.5.1 like WFS ...
user avatar
4 votes
3 answers
6k views

How to query Overpass API with Postman?

I'm learning Open Street Map in order to try to retrieve a list of all cinemas in the world, in a country or in a city I would like to know if I can do that with a REST query in Postman. On ...
user avatar
1 vote
1 answer
75 views

OpenTripPlanner API Elevation values unclear

I'm using the OpenTripPlanner Planner API to find directions. The API returns XML with the geometry of the line (2D) and the elevation data separately, for example The 2D line geometry is as ...
user avatar
  • 1,061
2 votes
0 answers
142 views

Disable Token Authentication for REST Services in ArcGIS Server

For test purposes I have activated Token Authentication through my ArcGIS Server. Now I want to get back to Windows Authentication and I just simply can't find anywhere clear instructions to disable ...
user avatar
3 votes
1 answer
259 views

Making a RESTful WPS using ZOO Project

I am trying to make a RESTful WPS using ZOO Project. According to the following OGC Papers WPS 2.0 Interface Standard and Web Processing Service for WPS 2.0 and 1.0 respectively, it does seem possible ...
user avatar
0 votes
2 answers
947 views

Can't change the datastore in Geoserver

I want to change the datastore, from oracle to postgres. I have installed the 2.8-SNAPSHOT version I did perform a curl PUT request to change it curl -u user:pass -X PUT http://localhost:8080/...
user avatar
  • 191