Questions tagged [arcgis-rest-api]

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

72 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
884 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
0answers
193 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
237 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
56 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
31 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
165 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
786 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
95 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
288 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
214 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
947 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
348 views

Checking if Geoprocessing 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
185 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
18 views

GeoJSON to ArcGIS JSON using Java

I have an application built in Angular which will invoke a RESTful service in back-end application which in turn will call the ArcGIS REST API. For: a feature will be created in the Angular ...
1
vote
0answers
51 views

Difficulty getting usable response from secured ArcGIS REST API 10.2

I am trying to script the export of subsets of data from an ArcGIS Server to clients based on shapefiles they provide me. Our data are on a somewhat old rest endpoint (10.2). I have tried a variety of ...
1
vote
0answers
117 views

Update Esri SOAP to REST

I'm new to ArcObjects, not a GIS professional so please be patient with my lack of GIS knowledge. I have an .Net Web application with ESRI.ARCGIS.SOAP references, looking to update them with rest. ...
1
vote
0answers
51 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
73 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
184 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
608 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
624 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
48 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
411 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
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
388 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
215 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
67 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
253 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
88 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
560 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
71 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
144 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
534 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
162 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
103 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
421 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
302 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
216 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
7 views

importTiles operation via post request using python requests stopped working seemingly at random, why?

Writing a script to import tiles into an existing tile service on AGOL it was working fine up until the other day and now I get a 400 status code returned when making the request. The only coinciding ...
0
votes
0answers
46 views

No response from addPart operation when trying to upload parts of .tpk to AGOL (Python, requests, ArcGIS REST API)

Trying to automate the updating of a large .tpk on AGOL. When the .tpk is updated on my servers I do the following: Break into parts Call updateItem operation with multipart = true Make a request to ...
0
votes
0answers
37 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 ...
0
votes
0answers
16 views

Retrieve count of unique values in a field grouping by another field in ArcGIS REST

I have a Feature Service hosted on ArcGIS Online, which I am querying through the ArcGIS REST interface. Unfortunately, I cannot share the service but I hope that with the following explanation it ...
0
votes
0answers
11 views

Update AGOL Hosted Feature Layer Data Using REST

I am trying to update a hosted feature layer which is published from a FGDB, using a C# client. In the AGOL UI, there is an option to overwrite all features in the feature layer and the underlying ...
0
votes
0answers
22 views

Unable to enable sync on AGOL via REST api3

I feel I'm doing something fundamentally wrong here - the update doesn't seem to be taking effect (when I look in the console afterwards it's still false). I'm writing a process in C# to update a ...