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

learn more… | top users | synonyms

9
votes
3answers
5k views

Programmatic authentication to ArcGIS Server secured layers via RESTful API

I have an ArcGIS 10.1 Server instance exposing secured mapservices on the Internet. My need is to code down a client application (which I am currently building using the 3.3 version of the ArcGIS ...
7
votes
1answer
3k views

Struggling with ArcGIS REST API and tokens

I'm doing my best to secure my AGS (9.3.1) services, but have struggled with tokens. As you can see, my nw account belongs to the agsadmin and agsusers roles: I have assigned these same roles to my ...
6
votes
2answers
4k views

How to navigate the REST endpoints and retrieve Field information programatically

I'm adding a Dynamic Map Service to an ArcGIS Server JavaScript API map, and I need to get hold of each component layer and its fields, so I can run a query. See the sample ArcGIS Server services ...
6
votes
2answers
281 views

Web_Map_as_JSON from latest esri jsapi?

I'm trying to do a print export using arcgis 10.1 and latest esri jsapi. Is there any out of the box way that I can extract out Web_Map_as_JSON from a given webmap? esri.tasks.PrintTask generates a ...
5
votes
0answers
2k views

ArcGIS 10 Rest services regulary stop working

I have a problem with a new installation of ArcGIS Server. The installation is ArcGIS 10 on Windows Server 2008r2 with IIS 7. I have followed this guide to configure the IIS ArcGISServicesAppPool: ...
4
votes
1answer
166 views

How to query nearest date in ArcGIS Server REST?

How to query nearest date (today) in ArcGIS Server REST? Table: ID NAME DATA 1 test 2013-06-01 13:00:00 2 test1 2013-06-01 16:00:00 3 test2 ...
4
votes
2answers
3k views

How to send long JSON objects (polygon geometry, table rows) in POST request to Geoprocessing Service?

I am seeking to understand my options for sending long JSON objects in a request to a Geoprocessing Service. In particular, I am looking for some example code to illustrate how to include two long ...
4
votes
1answer
2k views

How to let ArcGIS Server see related records in a geodatabase

I have an ArcSDE geodatabase which contains multiple relationship classes. If I add this layer to ArcMap, the relationship is automatically applied (eg, the Identify dialog allows me to drill-down to ...
4
votes
1answer
453 views

ArcGIS Feature Service - Return a Single Row / Record

Is it possible to get just one row/record returned from a feature service query -- similar to the TOP, ROWNUM and LIMIT in database queries? Of course, OBJECTID "1" is not guaranteed. Is there a trick ...
4
votes
0answers
32 views

Where can I find more details about rasterFunctions?

I have published an Image service with ArcGIS Server 10, containing the results of an interpolation operation. The Image which is returned from the service is in greyscale. I wish to render it with ...
4
votes
1answer
193 views

Call ArcGIS Server Buffer command without using SOM

All, I wanted to see what the best way was of calling the geometry service to carry out a Buffer operation on ArcGIS Server 10, without using the SOM. Ideally I want to consume the REST API, using a ...
3
votes
1answer
1k views

How to perform datum transformation in ArcGIS server REST API exportmap

I have a ArcGIS server 10.0 mapcontext in one projection (swedish grid sweref99 TM) which uses its own datum, also named Sweref99 . When I use the REST API's map service export function I want to ...
3
votes
1answer
555 views

Is it possible to find the Map Services URLs used in ArcGIS Flex or Silverlight web applications?

With the ArcGIS Server JavaScript API, you can find the URLs in the map services in the source code. Do the Flex and Silverlight APIs completely obfuscate the map services URLs? As an example, the ...
3
votes
1answer
618 views

How to find the polygon containing a given coordinate using ArcGIS Geometry Service?

Say I have an ArcGIS Server GeometryService running, and a map service containing ZIP code polygons (all ArcGIS 10.1). I want to pass a coordinate, and have it return which ZIP code contains that ...
3
votes
1answer
652 views

How to create mapping application with user input to dynamically weight/shade map layers

Does anyone know of any examples of web-apps that allow user-input to change variable weights used to calculate symbology? My organization is looking to build a dynamic mapping application and while ...
3
votes
1answer
32 views

ArcGis Rest Vehicle Routing Time Problem

I am using the ArcGis vehicle routing rest service. It works fine until I add in the EarliestStartTime for my route, then it no longer assigns the orders to the routes (delivery windows and breaks ...
3
votes
1answer
275 views

No domain coded values on REST Arcgis 10.2

We have created a map service using version 10.2 from a map which all layers data source are point to an SDE connection service using DB2 database. However, the coded value domain not appear in the ...
3
votes
1answer
294 views

How to parse ArcGIS Server generated output XML?

I have a use case in which I need to parse the XML generated by an ArcGIS server, then push that data to another API. The ArcGIS server sits behind the firewall at our customer's site and exposes a ...
3
votes
2answers
1k views

How to share a hosted feature service with an application on ArcGIS Online?

According to the ESRI REST API documentation on authentication, a registered application can log in to AGOL via an App ID and App Secret and will then have access to the data that has been shared with ...
3
votes
1answer
314 views

ArcGIS Vehicle Routing Problem Service via REST

I am trying to get a Vehicle Routing Problem to work as a geoprocessing service on one of our servers. I used the default_date with unix time stamp in miliseconds and set the times of orders and ...
3
votes
1answer
92 views

Create layer from ArcGIS REST URL in ArcObjects using C#

I am trying to create a layer and add it into a MapControl from ArcGIS REST URL. For example I use the following URL ...
3
votes
0answers
252 views

ArcGIS REST Server Object Extension Examples

Hi I'm looking for a few good examples of a REST SOE showing more than the common ESRI sample. I'd like to see some RestOperation samples as well and a few different TryGet statements (ie. returning ...
3
votes
1answer
540 views

How to Query Layer using ArcGIS REST Services for Records with Date Closed Field less than 24 hours ago?

I am current trying to do layer definitions on a map and so I am trying to filter some records via a time factor so i was writing in the Where field DATE_CLOSED_ON > (CURRENT_TIME - 24) and ...
3
votes
0answers
409 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 ...
2
votes
3answers
1k views

ArcGIS server 9.3.1 Javascript API via REST : Transparency issue

I have two map services , one is tiled service returns a satellite image , and the other is dynamic displays the roads ,POIs and Parcels. I'm trying to make the dynamic one shows the roads only above ...
2
votes
1answer
95 views

ESRI REST Api - need to download batches of tiles

So I wanted to use the ESRI REST Api to fetch map tiles for an application. Right now I am calling for each tile as I need it via its X/Y and zoom level(which is generating a bunch of http calls), but ...
2
votes
1answer
158 views

Get folder structure in code from arcgis/rest/services

I have never worked with maps before, and I got assigned on this project with ArcGIS. Noone to ask, cause noone has worked here either so I am turning to you guys. I have to create a tree of ...
2
votes
1answer
205 views

Is it possible to query raster from ArcGIS Server 10.1 REST?

I have a map service that contains a SDE raster layer and served out by ArcGIS Server 10.1. Is it possible and how to query through REST service on the raster layer? Basically what I want to do is to ...
2
votes
1answer
162 views

using REST “delete features” in arcgis api for javascript

I am developping a web application that uses a feature service, what i want to do is save the data in the feature server, and then delete all the features at the start of the application. I am able to ...
2
votes
1answer
665 views

Leaftlet and ArcGIS Server REST

I am fairly new to all of this and am looking for some guidance. Any information is appreciated! I am trying to use leaftlet to display shapefiles from an ArcGIS Server using the REST URL. I have ...
2
votes
1answer
216 views

Executing GP Task for JavaScript API

I recently started using JavaScript API in attempt to construct a web app. After taking a recent ESRI online course, I thought I had some base knowledge on how to do this. This geoprocessing service ...
2
votes
1answer
39 views

ArcGIS Geoprocesing Service using map service data for input

I'd like to create a geoprocessing service in ArcGIS Server (10.2) which uses an existing map service as input. I have been trying to do this with a ModelBuilder model, but it's copying the existing ...
2
votes
1answer
111 views

ArcGIS93Rest for Openlayers 3

In Openlayers v2 I could get a map from an ESRI server that was not a cached service using code similar to below var arcims = new OpenLayers.Layer.ArcGIS93Rest("MyName", ...
2
votes
1answer
30 views

How to get the hostname for published services for particular arcgis credentials

I have been creating a desktop application using Rest API. I have ArcGIS account credentials on which I have posted some maps and layers. In my application, when I sign in to ArcGIS using my ArcGIS ...
2
votes
1answer
502 views

Date Time Format output in REST API in 10.1

It looks like the output format for dates is in ticks. Has this always been the case? Can it be changed at the server level or the request level?
2
votes
1answer
208 views

Call Vehicle Routing Problem Service via REST - Problem with “time” attributes?

I am trying to get a Vehicle Routing Problem to work as a geoprocessing service on one of our servers. If I call the geoprocessing service via REST url and submit depots, orders and routes WITHOUT ...
2
votes
1answer
515 views

ArcGIS REST export map features as geoJSON

Is it possible to export the features from a map as geoJSON using an ArcGIS REST service? I'm trying to make a vector layer in OpenLayers based on the output from the map's present view based on a ...
2
votes
1answer
54 views

ArcGIS Online Web Map JSON ID Property

I am programmatically creating web maps via the ArcGIS Online REST API and noticed that the webmap json spec has an id property but I'm not sure where it comes from or how to best set it. For a given ...
2
votes
2answers
131 views

RESTful Geoprocessing Service Request returns empty Result object without errors

This is a bit difficult for anyone here to test as our ArcGIS Server 10.2 instance is behind a firewall. I'll try to present all the necessary information, but feel free to ask for more and I'll ...
2
votes
1answer
133 views

How to access the datasource from a REST service

I have a ArcGIS REST service, is it possible to access the data source of the layer that is within the rest service. For example I have a layer called "Conservation Area" within the service, that ...
2
votes
1answer
534 views

Filter features with multi-table joins in ESRI Silverlight/REST API

We have a rather involved data warehouse (SDE 9.3.1 / Oracle 11g) that contains a single related point feature class. Our (analytical) application should allow users to construct complex, ad hoc ...
2
votes
1answer
20 views

Why are REST LOD (scales) different to the WMTS Capabilities XML

I have an internally published ArcGIS webmap. The Rest's Level Of Detail (LOD) reports a different number to the WMTS capabilities XML. I checked out a few public services, and found the exact same ...
2
votes
2answers
78 views

ArcGIS Rest performing query on feature service layers using within and intercepts

I am creating an application that needs to query a bunch of layers over REST to see which layers a point or line is within. At the moment I have a local ArcGIS server set up with some feature ...
2
votes
1answer
78 views

Send query to ArcGIS REST from OpenLayers app

I am using OpenLayers application and sending WMS query to my geoserver. My polygon is sending to server and gets intersected features. var feature = Mypolygon; var filter = new ...
2
votes
1answer
186 views

Using ogr2ogr to download GeoJSON files from ArcGIS MapServer

I am trying to download as a GeoJSON file a line feature from a ArcGIS MapServer REST Service run by the National Park Service (link is here) so that I can open the data in QGIS. Using the guide ...
2
votes
0answers
264 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
1answer
97 views

Why is pooled geoprocessing service not available via the ArcGIS Rest API?

I'm using ArcGIS Server 10.0. I've published a pooled asynchronous python geoprocessing service. It works correctly using the Rest API. When I configure the service not to be pooled, I can't access ...
2
votes
0answers
127 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
2answers
1k views

Access geoprocessing service via REST, get JSON back

I have an ArcGIS Server 10.0 geoprocessing task with a REST endpoint something like this: http://server/arcgis/rest/services/MyService/GPServer/MyTask The task takes a parameter. I was hoping I could ...
1
vote
1answer
82 views

How to delete features/records in ArcGIS Server using Python

How can I use python to delete records from a table, or features from a featureclass, when they are stored in ArcGIS Server? using REST "delete features" in arcgis api for javascript shows ...