Questions tagged [arcgis-rest-api]

ArcGIS Server REST API is used to access ArcGIS for Server and ArcGIS Online services

69 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
877 views

How do I determine appropriate Date query syntax for a layer?

I'm writing a web mapping query tool to query Esri mapservice layers by date using the REST API. It has been said that the syntax depends on what kind of database is behind the mapservice layer, as ...
3
votes
1answer
495 views

Not able to query on ArcGIS Server REST query end point

I have a map server published on ArcGIS Server and it has a Poles layer. It has following fields: Now when I am trying to run any query against this layer by passing queries like Owner IS NOT NULL ...
3
votes
0answers
151 views

Uploading Attachment > 10 MB to ArcGIS Online Hosted Feature Service?

Has anyone had success uploading an attachment larger than 10 MBs to an ArcGIS Online hosted feature service? I know that this is not possible via a web browser. I'm trying to upload a video (.mp4)...
3
votes
0answers
223 views

Set the Cache-Control max-age of ArcGIS Server 10.1 tiles to a custom value

Using ArcGIS Server 10.1 I have a cached service. The service is set to allow clients to cache tiles and the images do contain max-age values: Cache-Control private, max-age=86400 However, I would ...
3
votes
0answers
1k views

Can I highlight a selected feature using the ArcGIS REST API only?

I have a .Net web application with embedded maps, using the Arcgis javascript API. For non-interactive maps, I thought I would just make calls using c# to the REST endpoints. This works fine for ...
2
votes
0answers
54 views

Getting colour ramps and other funky styles in the ArcGIS REST API's DrawingInfo or elsewhere

I have some layers with "funky" styling, they contain colour ramps, or hashes across the line (mimicking train tracks), or dashes with different spacings. I'm reading all of these layers from an ...
2
votes
0answers
30 views

Specifying different speeds for different vehicles when using ArcGIS REST API Vehicle Routing Problem service?

I am using ArcGIS REST API Vehicle Routing Problem service. I have several different types of vehicles, such as cars and trucks. There is an optional parameter called "impedance" to specify the travel ...
2
votes
0answers
138 views

Problems using REST API to generate Tile Packages from World Topo (For Export)

Using the python script below it seems that I can request the generation of tile packages from an ESRI ArcMap REST service, and then download the resulting tpk file generated by ESRI. But when I try ...
2
votes
0answers
733 views

ArcGIS JavaScript API: SEC7127: Redirect was blocked for CORS request after submitting geoprocessing job

Using the ArcGIS for JavaScript API 3.19, I'm submitting a job to the ExtractData geoprocessing service at: https://analysis7.arcgis.com/arcgis/rest/services/tasks/GPServer/ExtractData/submitJob The ...
2
votes
0answers
89 views

Improve performance of a stand-alone table join in a Feature Service

I have an mxd with data-driven pages using Feature Layers from ArcGIS for Server (Workgroup Standard) with MS SQL Server Express. The DDP index layer has a join to a stand-alone table. I am ...
2
votes
0answers
259 views

How to delete feature from ArcGIS secured REST end in Android

I am trying to delete feature from secured ArcGIS feature layer using apply edits by passing a graphic array as input, but it is showing me the error unable to complete operation, no adds, updates ...
2
votes
0answers
1k views

ArcGIS server 10.1 REST API queries fail inconsistently

I have a set of map and ESRI feature services running on a 10.1 ArcGIS server with SQL Server back end. When I query the layers for either the geometry or oids using the REST interface, the query only ...
2
votes
0answers
210 views

How do I setup the initial entry point into the ArcGIS Geoservices REST API?

I am trying to implement the ESRI REST API with a non-esri service (MapProxy). I am able to add my service to ArcCatalog 9.3 as an 'ArcGIS Server'. However, none of the sample layers are displayed ...
2
votes
0answers
295 views

Problem with long running services in ArcGIS Server 10.2

I published a lot services for geoprocessing. Most of them are the long running services. Those services manipulate data but user do not wait for the results. When I use REST Submit Job in the web ...
2
votes
0answers
917 views

Multiple Country Codes? - World Geocoding Service (ArcGIS REST API)

Using single field geocoding, (ArcGIS REST API) I am having an issue with the World Geocoding Service when it comes to getting results that include both USA and US territories, like Puerto Rico for ...
2
votes
0answers
333 views

How to check if a GP service (async) has any jobs that are not completed yet?

I am trying to find out a way to tell if a GP service has any jobs that were submitted and are not completed yet. I have noticed that one can see the status of a specific service by using the ArcGIS ...
2
votes
0answers
177 views

returning exceptions to user via AGS REST

I've got a python script that I run as a standalone and as a gp service in AGS (moving to 10.1 now...). For the standalone execution, I'm throwing a custom exception if there is no data found based on ...
1
vote
0answers
39 views

REST End Point Still Showing Old Alias of Updated Field After Publishing

Using ArcGIS 10.6 and ArcGIS Server 10.6. I have changed the Alias of a Feature Class to ObjectID like and it is showing in the attribute table like (After Saving and even re-booting the MXD) but ...
1
vote
0answers
58 views

Edit arcgis-service-properties with REST-API

I want to change the properties of several services via REST-API with C#-HTTP-Client. Something goes wrong here so I tried first with Python. I found the example here on esri page. For convenience I ...
1
vote
0answers
162 views

How to Unregister Replicas that have an invalid data-set information using ARCGIS REST APIs Version(10.2.1)

I am writing an application which will UnRegister replicas that are currently available. I managed to unregester new replicas which have the latest Server Url address stored in the DATASET_INFO field, ...
1
vote
0answers
528 views

How to access a secured ArcGIS REST API using Python and extract the data in the form of Shapefiles or JSON

I have a secured ArcGIS REST API which requires username and password to access it. I am able to access a public service and extract the data in the form of shapefile. Below is my code, import ...
1
vote
0answers
595 views

How to use Esri data in QGIS using ArcGIS REST API Connector (beta)

I'd like to include Esri's aerial images in QGIS maps. I am using QGIS 2.18.3 I have discovered the ArcGIS REST API Connector (beta) http://giswiki.hsr.ch/ArcGIS_REST_API_Connector_QGIS_Plugin ...
1
vote
0answers
47 views

Finding points near other points using ArcGIS Server 10.2 rest API?

I'm using ArcGIS server 10.2. I published my point layer in my admin. I'm going to get json file from that points which are within a fixed distance with any points that I want. Any idea?
1
vote
0answers
372 views

ArcGIS Server Rest API date issue

I am using "date '2015-8-10'" in ArcGIS Server REST API to retreive records from map services. But it returns the error "Fail to Execute". My date is stored as "10-AUG-15". When it is in the right ...
1
vote
1answer
98 views

How to retrieve highlighted dynamic map image in ArcGIS rest API for given polygon geometries?

I am using ArcGIS rest api export map operation in dynamic map service to retrieve png for given extent. I want to highlight specific polygon (already have geometry of polygon) with any colour using ...
1
vote
0answers
49 views

Address Locator fails at REST

I am having trouble publishing my US Address - Dual Ranges Address Locator to our ArcGIS Server. I've created it with a very small sample of 7 streets around my local University just to test, with no ...
1
vote
0answers
358 views

ArcGIS historical traffic data with Impedance attribute of miles

I'm trying to solve a route using an impedance of miles (to get the shortest route) through ArcGIS Sever 10.3.1 rest API. However, I would also like to get the travel time of this route based on ...
1
vote
0answers
210 views

WKID issue when adding raster layer from ArcGIS “mapserver” to QGIS via REST

QGIS docs here describe how to do this. I am trying to add a layer from this MapServer: gps.digimap.gg/arcgis/rest/services/JerseyBaseMap/MapServer When I try the following command from the Python ...
1
vote
0answers
66 views

How do you enable HTTP GET for submitJob for a GPService?

I published a GPService to ArcGIS Server 10.2--the service is a copy of an existing service with a different name. I receive no errors during publishing, however I get 404 errors when attempting to ...
1
vote
0answers
27 views

Does ArcGIS tracking server 10.0 supports rest url?

I'm using ArcGIS Tracking server 10.0 . I know Tracking server 10.1 has web connector but 10.0 version does not. Does ArcGIS tracking server 10.0 supports rest url ? Is it possible to use ...
1
vote
0answers
238 views

Import ARCGIS web dataset contours into Sketchup

My local council has online ARCGIS data sources including 1m elevation contours. I am trying to import these into a sandbox terrain model in sketchup to do some landscape planning. Conceptually I ...
1
vote
0answers
82 views

Deleting features with date attribute before today's date using ArcGIS REST API?

I have a published feature service where road closure information is input to be shared with the public. The data input contains a couple of project date fields. I'd like to use a script that runs on ...
1
vote
0answers
534 views

Query Task Pagination

In the 10.3 REST API they introduced: Supports pagination in a query layer. Use resultOffset and resultRecordCountparameters to page through a query result. I don't see any options to take advantage ...
1
vote
0answers
70 views

With ArcGIS Server's REST API, can I request a non-default symbol size when requesting a legend JSON?

I am using the ArcGIS Server REST API to retrieve legend information for one of our map services. I am requesting that information as a JSON object, so my HTTP request URL looks like this: http://<...
1
vote
0answers
138 views

How to get Set-Cookie header from ArcGIS REST services?

When I call an ArcGIS REST service, I get Cache-Control, Etag, Content-Encoding, Content-Type, Transfer-Encoding and Date headers. But I don't get Set-Cookies header. Is there a way to get this ...
1
vote
0answers
48 views

Using REST Services acquiring limited data from DataBase like LayerDefinition

I am working with ArcGIS Server 10.2 and MS SQL DB. I have a requirement in which i need to retrieve limited data using a query from a bulk data using the same Map Service REST URL which can give me ...
1
vote
0answers
518 views

Programmatically generating and posting web map definitions to ArcGIS Online to create web maps?

I'm using Python to build an ArcGIS Online web map definition JSON string, and then trying to post the configuration to ArcGIS Online to create a web map. I am using an admin account to generate the ...
1
vote
0answers
161 views

Does ArcGIS Directions API take Traffic into consideration when calculating Driving Time?

I'm trying to calculate the Estimated Time of Arrival (ETA) between 2 locations and I need to take traffic into consideration. I found this API call but it isn't clear if it includes traffic in the ...
1
vote
0answers
62 views

How to go about creating a custom tool/adding special functionality for a web app

In my soon to be developed web app, I will have an image service and also a feature service that is essentially an index to the image service, with all kinds of attributes. I would like for the user ...
1
vote
0answers
101 views

Use ArcGIS-server restapi to return geometries as Json objects

I'm very new to ArcGIS-server REST api, but have been using ArcGIS desktop and other web maps for a while. In one of the Buffering example, I found one GP service which takes geometres in as ...
1
vote
0answers
414 views

ArcGIS Server Object Extension (SOE) RestOperation configuration

How would you accept a call to a RestOperation with string and reply back with a json array of the column names in the table holding this information? So, if string is 'owners' then get names of ...
1
vote
0answers
204 views

How to identify parameters sent from ArcMap to geoprocessing service on ArcGIS Server?

I have a question regarding the use of ESRI geoprocessing services and maybe some of you can give me a hint for the following "problem"... I have set up a geoprocessing service which should solve a ...
1
vote
0answers
297 views

ESRI AddFeatures call on rest endpoint with attributes

I can add a line feature via the rest endpoint with my hand crafted call from C#. However, if i add any attributes to the call it will fail and say unable to perform operation. All of the fields in ...
1
vote
0answers
213 views

Is it possible to save multi ring polygons to the ArcGIS server REST API?

I'm trying to insert new polygons that the user has drawn through the addFeatures REST endpoint and I'm getting an error when the user draws a bow-tie and tries to insert it. Is this simply not ...
0
votes
0answers
28 views

Using ArcGIS Geocoding Service in QGIS?

Is there a way to use an ArcGIS Geocoding Server with QGIS? I recently lost access to my ArcMap License, so an alternative would be very helpful. The service in question would be: https://tnmap.tn....
0
votes
0answers
39 views

AGOL REST API: Why do linestrings auto-convert to multilinestrings w/ 0 z elevation?

I'm using the ArcGIS Online REST API to add/delete features from a 3D web layer. I'm able to POST linestrings to the layer. But, seemingly randomly, some (not all) of the linestrings get converted to ...
0
votes
0answers
23 views

Pass coordinates to recenter google map iframe from parent page

Can somebody tell me where my code is wrong? Here is the code block to pass from the parent to the iframe: document.getElementById('street').contentWindow.map.setCenter({lat:latt, lng:lon}); This ...
0
votes
0answers
27 views

Use a map service exposed via ArcGIS REST API as a data source in Data Integration Extension ETL tool

I am trying to use the SpatialETL tool in ESRIs Data Integration Extension to cut out rasters from a map service exposed via a REST URL on the following format http://utility.arcgis.com/usrsvcs/...
0
votes
0answers
25 views

Using REST API to update feature class that is not a published layer

Let me give a bit of a background on what I have: I have 3 published layers using a SQL view as a DataSource. The reason for this is because I have a layer for points, lines, and polygons that all ...
0
votes
0answers
19 views

How to change symbology on layer only available on Esri REST service?

I'm trying to work with a layer I can only find from an Esri REST service and I need to change the color of the layer, as the default blue it comes in doesn't show up well against an already-...