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
1answer
19 views

Get field value: JSON response from feature service

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://...
0
votes
0answers
11 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) { ...
1
vote
1answer
174 views

Automatically refreshing ArcGIS93Rest layer in OpenLayers?

I finally succeeded to import a gtfs-realtime feed into ArcGIS Server (used gtfsrdb.py and the created a script to automatically, every 30 seconds, to update the geometry of a table with the points). ...
0
votes
1answer
34 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 ...
1
vote
2answers
82 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 ...
0
votes
2answers
54 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 =...
2
votes
0answers
37 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....
1
vote
2answers
127 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 ...
1
vote
1answer
108 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 ...
0
votes
2answers
284 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/...
2
votes
2answers
3k views

How to open REST/JSON service in QGIS?

As the title states I'm trying to open a REST/JSON service in QGIS, but without luck so far. Now I'm wondering if this kind of service is even possible to open in QGIS with current, existing tools. I'...
1
vote
2answers
425 views

Are folders always part of ArcGIS Server REST API service name?

I'm using an ArcGIS REST map service, and my question is how do I construct the URL to the service? Specifically, what relationship is there between the Service Name, the Test Server, and the folder ...
1
vote
1answer
48 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 ...
0
votes
0answers
45 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 ( ...
1
vote
1answer
73 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 ...
1
vote
2answers
206 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", "...
2
votes
3answers
901 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 ...
2
votes
1answer
232 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 ...
0
votes
1answer
63 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: ...
4
votes
3answers
304 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 ...
2
votes
0answers
79 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/...
15
votes
2answers
7k views

Programming Geoserver 2.0.2 to add a raster data store and layer without the UI

I have a directory of raster imagery that will be updated continually. From this imagery, I am making Image Pyramids using the Geotool's PyramidBuilder utility. I need to setup a cron job to ...
0
votes
1answer
292 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 ...
0
votes
1answer
71 views

Projections when using google maps and rest service on openlayers

I am trying to use a rest service on an openlayers map that has 2 google maps layers. The google map layer is set to it's own custom projection (which I had to code into the library by hand, but I ...
1
vote
0answers
103 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 ...
0
votes
1answer
15 views

Implementing RESTful Architecture on ZOO Project? [duplicate]

I read in the WPS 2.0 paper on Open GIS webpage that WPS 2.0 can be implemented with a RESTful architecture. I am working on a project using ZOO WPS. Is there some way to incorporate the RESTful ...
-1
votes
1answer
77 views

Is it possible to publish ArcGIS map tile service without publishing component layers of that tile service?

I have an ArcGIS tile service that covers an area but when I look for the respective mapserver layer for that tile I did not find respective layer in the map server layer published.e.g. For this map ...
2
votes
1answer
473 views

How to push newly added or updated domain values to ArcGIS rest service?

I'm currently using ArcGIS Server 10.4 for my REST service and ArcGIS Online. I have created a domain list and assigned it to a field. All of it works fine. I'm currently using Oracle for my ...
3
votes
2answers
842 views

Is it possible to do a GetFeatureInfo request using WMTS?

I currently have an interactive map with multiple layers based on the WMS protocol, which has been working fairly well. I use GeoServer to serve the layers and OpenLayers for the front-end. My problem ...
0
votes
1answer
99 views

ArcGIS REST API test performance

I need to test the performance of the ArcGIS REST API (Version: 10.51) on the map services I have created. The tester within our team is using swagger but it is not implemented in the ArcGIS REST API. ...
0
votes
1answer
440 views

Creating datastores in GeoServer REST API with external file option

Following the REST API documentation here I should be able to do a PUT request to /workspaces/{workspaceName}/datastores/{storeName}/{method}.{format}. Problem is I cannot get how to do it with an ...
0
votes
0answers
50 views

ArcGIS Server - Get map of all folders, services, layers etc

Is there a way to query a REST service on an ArcGIS server and get JSON object of all folders, services, layers and other resources. I am writing my own queries but it is becoming rather cumbersome ...
3
votes
1answer
1k views

Programmatically get Layer source properties DataType with ArcObjects?

I am trying to access the DataType property of a Layer in the TOC in ArcMap. The layer is added from a web service as an IMapServerRESTLayer. The Data Type property is listed with Layer -> ...
0
votes
2answers
485 views

Generating a token for ArcGIS REST Services in VBA

I am trying to generate a token in Excel VBA to add data to a table on our server. I am using the following code to generate my token: Dim tokenHTTP As Object Set tokenHTTP = CreateObject("MSXML2....
5
votes
2answers
2k views

Adding an external WMS service using REST service with Geoserver

I'm trying to add an External WMS layer to geoserver with a PHP page, using the REST service of Geoserver. I've already read the tutorials for creating the geoserver features (http://docs.geoserver....
4
votes
1answer
5k views

Upload shapefile using GeoServer REST API and C#

I'd like to upload shapefiles using GeoServer REST API and C#. So far, I can create workspaces using the REST API and C#. From GeoServer documentation (specific to cURL), the difference between ...
3
votes
3answers
2k views

Geoserver Configuration Reload

Not quite sure if I should even be doing this. What I am wanting is I will be dynamically generating my SLD file and it looks like when you update the SLD in the geoserver admin it does a reload. So ...
0
votes
1answer
1k views

How can I login in GeoServer from a PHP application?

I'm looking for advice how to login on GeoServer from PHP. I found much tutorial how to work with GeoServer through REST API and cURL: create workspaces, stores, etc. But still can't find how to ...
1
vote
0answers
99 views

ArcGIS Android and Retrofit [closed]

I'm working with Retrofit to connect my application with my API. Retrofit is using Jackson 2+, and ESRI is using Jackson 1.95+ So, I can't figure out how to solve this. I have an application using ...
16
votes
5answers
20k views

Create a Layer in GeoServer using REST

As part of a possible solution to this question i want create a layer in GeoServer via REST that supplies a SQL statement along with a userid. Reading I think i would create a feature type and ...
2
votes
1answer
544 views

Uploading unprojected shapefiles using GeoServer REST API

I have a number of shapefiles that lack the .prj file. I'm able to upload them to GeoServer using the REST API. However, I'm unable to serve them after upload. Which brings me to the question as to ...
4
votes
1answer
240 views

ArcGIS Server - E-Tags

From an ArcGIS Server (9.3.x or 10.x) instance, can anyone confirm if REST HTTP response headers are modified when the data within a layer is updated? For example, if I query a layer at time x and ...
9
votes
4answers
2k views

Use Esri Geoservices REST as backend for Python web framework (Django?)

I would like to know if it's feasible to use an existing Python web framework such as Django/GeoDjango as a frontend to work with Esri's Geoservices REST API? I envision developing a database engine ...
2
votes
1answer
232 views

Full Text Search in ArcSDE

We have a quite large ArcSDE (~120 versioned feature classes & tables, 1M-3M records) which has Oracle or SQL underlying DBMS. This SDE is exposed through a MapService and we use ArcGIS JS API to ...
6
votes
2answers
2k views

why is a gdb query WHERE clause invalid according to the ArcGIS REST API?

Update: This only occurs when the layer being queried has a join. It doesn't matter if it has a join to a different database or not. And the query that fails is not trying to access columns in the ...
2
votes
0answers
231 views

ArcGIS Full-Text search [closed]

I've set up Full-Text searching on a table in my SDE database (ms sql backend). I can perform the full-text commands from SQL queries, but it doesn't seem to work in ArcMap or any rest services. I ...
1
vote
2answers
1k views

How to check if REST plugin is installed for GeoServer

I am having trouble uploading vector files onto GeoServer 2.4 using Import Vector in the QGIS Processing toolbox. After reading around about the 'REST' plus in I went to: http://<companyname)/...
1
vote
0answers
153 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 ...
2
votes
0answers
41 views

Querying a shapefile and returning values? [closed]

I have a lot of experience making maps in ArcMap. I don't have much experience programming or working with APIs. Here's the (simple) problem: I create a shapefile of a region and then load the ...
27
votes
5answers
7k views

ArcGIS REST vs. SOAP API

When is it appropriate to use the ArcGIS Server REST API vs. the SOAP API and vice-versa? What do you see as the advantages of one over the other? For example, the SOAP service can be consumed as a ...