Questions tagged [arcgis-rest-api]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
19 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 ...
1
vote
0answers
99 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. ...
0
votes
0answers
52 views

Getting polyline midpoint coordinates using ArcGIS REST API

I have an ArcGIS 10.7.1 feature service that integrates polyline GIS assets to a work order management system. In the work order management system, I want to retrieve the midpoint coordinates of the ...
0
votes
0answers
21 views

Publishing image service with JSON in ArcGIS Server creates inaccessible service

I used the following JSON to publish but it created inaccessible layer that I could not modify or delete. { "serviceName":"Suitability_1574658353.68_proj", "type":"ImageServer", "...
0
votes
0answers
19 views

Creating named user token vs app token for ArcGIS Online

I'm creating an ArcGIS Online token through C# and SSIS. So far, so good - the following code creates one: public void Main() { Dts.Variables["User::Token"].Value = GetToken().GetAwaiter()....
1
vote
1answer
40 views

REST service sources

Is it possible to retrieve a list of REST Services from an ArcGIS Server along with their MXD, and data sources (DB)?? I am using ArcGIS Enterprise 10.7.1
0
votes
2answers
67 views

ArcGIS JavaScript 3.3 add ArcGIS REST API Queried Feature Layer URL as Layer

Using the Query Generator on an ArcGIS REST Feature Layer, I generated a URL that filters the data by a geometry extent ({xmin: -104, ymin: 35.6, xmax: -94.32, ymax: 41}) This returns Current River ...
0
votes
0answers
51 views

ArcGIS online - How do I set-up the feature layer definition to allow me to truncate feature layers via REST API

I have written a script to automate the process of refreshing the data in a map in ArcGIS using R. As part of this I have been attempting to use the ArcGIS online REST API to truncate a feature layer ...
0
votes
1answer
75 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
45 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
40 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
1answer
108 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 ...
0
votes
1answer
37 views

Query Data in ArcOnline REST API. Set-up error

I am attempting to query data that has been loaded into ArcGIS in the form of layers. I am attempting to query out basic data (Any data at this point) from a imported Layer. I think the error is ...
1
vote
1answer
209 views

ArcGIS Feature layer data update using API in PHP

I'm facing an issue with update data on the ArcGIS feature layer using API in PHP. Data is updating on the feature layer as expected, But data on the map is not representing. Every time when I'm ...
0
votes
0answers
33 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/...
1
vote
1answer
35 views

ArcGIS Rest API returns No Results When Should Intersect

I can download statewide NY senate districts using ... https://tigerweb.geo.census.gov/arcgis/rest/services/TIGERweb/tigerWMS_Current/MapServer/56/query?where=STATE+%3D+36&text=&objectIds=&...
0
votes
2answers
77 views

ArcGIS REST layer doesn't show up in OpenLayers

I try to show a WMS layer with OpenLayers 4.6.5 but the tiles don't show up. I use the following code to load the WMS layer as ArcGIS REST service: new ol.layer.Tile({ source: new ol.source....
0
votes
1answer
61 views

Points in Polygon with ArcGIS-REST-JS library

I am trying to get the points in polygon with Node JS libraries. Using Simple JS, I can get using QueryTask. But there is no queryTask in Node lib. var queryFeat = require('@esri/arcgis-rest-feature-...
0
votes
0answers
29 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
24 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-...
0
votes
0answers
11 views

Retrieving an Asset ID using HTTPCaller

I have been asked to create a workflow that can create an asset tag for each feature class. The company who we hold a contract for have set up Web Services that provide the asset ID, called AIMS (...
0
votes
0answers
16 views

AGS 10.61 REST endpoint only returns first 100 services

I am looking for a service at the REST endpoint an AGS 10.61. I can't find it but I know for sure it exist. The endpoint I am looking at is: https://tiles.arcgis.com/tiles/nSZVuSZjHpEZZbRo/arcgis/...
0
votes
0answers
20 views

ArcGIS REST service is returning error when distinct param is supplied

ArcGIS REST service (10.4.1) is returning the error Unable to complete operation. Unable to perform query operation. When ReturnDistinct=true and InputGeometry is supplied. This operation works ...
2
votes
2answers
132 views

Downloading layers as shapefile from ArcGIS Online maps?

I would like to download some features in this website. Now I can download ".lyr" file through clicking the apostrophe in the "layer list" (e.g., here). However, the ".lyr" file cannot be exported as ...
0
votes
1answer
236 views

Using REST API to get the data collected in Survey 123?

I'm trying to figure out how I can get the data collected with Survey 123 out of ArcGIS Online via the REST API. I am using Postman to try and formulate the POST request, but, all it shows me is the ...
1
vote
1answer
37 views

ArcGIS REST API ElevationSync result is empty?

I would like to use the ArcGIS REST elevation service. Providing a list of locations I would like to receive a list of elevations relative to these locations. After some struggling with the syntax I ...
0
votes
0answers
15 views

Need to add ArcGIS REST data layers to MAPDOTNET UX RIMimMap control

I'm supporting an already-delivered product (in AngularJS, that I didn't write) which uses the MAPDOTNET ui.rimMap control (https://downloads.easyterritory.com/register/MapsJS/docs/isc.rim.widget.js....
1
vote
0answers
346 views

Seeking C# code to convert Easting/Northing to latitude/longitude in GDA94 / MGA zone 56? [closed]

I am very new to GIS. I'm pulling data from an ArcGIS Rest API service for a city in Australia to display as pins on a map in another system. The data I'm getting back has all the actual coordinates ...
0
votes
0answers
30 views

View the output of GP Server

My geoprocessing tool has 2 inputs 1 output. 1st input parameter type is a feature layer 2nd input parameter type is a String 3rd output parameter type is a shapefile when I run it, the window was as ...
0
votes
0answers
12 views

Why is my QueryTask not reflecting recent feature changes?

I am using ArcGIS for JavaScript v.3.27 with a REST server running v.10.31. I typically develop on Firefox 66 but I test on other browsers. The behavior I describe here has been verified in Firefox ...
0
votes
0answers
11 views

What could be causing my new Features to not have the event handling for that Layer (until reload of page)?

I am using ArcGIS for JavaScript v.3.27 with a REST server running v.10.31. I typically develop on Firefox 66 but I test on other browsers. The behavior I describe here has been verified in Firefox ...
0
votes
0answers
25 views

Create/deploy REST API using ArcGIS/Python

I've written a bit of Python code that utilizes ArcGIS to perform some analysis on a specific location. Running this locally on my computer works great. However, I am struggling and am unfamiliar with ...
0
votes
0answers
33 views

How to add a geojson file as a hosted feature service using the ArcGIS Rest API

I'm trying to programmatically create a hosted feature service from a .geojson file. I can do this manually without problem using the arcgis.com website. However I cannot get it to work using the rest ...
1
vote
1answer
27 views

How do I construct a REST query for ArcGIS to obtain the nearest SSA field office?

I am trying to use one of the US Social Security Administration's APIs, which is an ArcGIS REST service API. It looks extremely powerful, but overwhelming with how complex it is. I am hoping for an ...
0
votes
0answers
26 views

Returning area of interest image upon lat/long input?

I would like to know if it's possible to give a latitude and longitude (or bounding box) for a certain location and return an area of interest image, including a target property and a list of nearby ...
2
votes
1answer
61 views

Finding tables related to layer using ArcPy?

We have an ArcGIS map service that includes about 50 layers, and many of them have related tables. I need to build a schematic of this service that includes layer name, source feature class (or table),...
1
vote
0answers
42 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
2answers
45 views

Getting Exent of Queried Results using ArcGIS Python API?

Im trying to use the ArcGIS Python API to query a few results and gather the extent, I can query the results fine but as soon as I try to extract the extent I retrieve empty results. Using one of the ...
1
vote
1answer
83 views

Need syntax to restyle some data via dynamic layers and ArcGIS REST API

I produce maps using Leaflet and the Esri Leaflet plugin. Here is a MapService layer from the USGS pertaining to the risk of debris flow. Note that if attribute combhazcl=3 then this data is ...
1
vote
2answers
152 views

Obtaining Elevation for single point from ArcGIS REST API?

I have spent quite a while trying to get the ESRI API working. Basically we would like to pass a lat, long to a service and obtain the elevation back. Our previous service stopped working - we were ...
1
vote
1answer
93 views

Unauthenticated sensitive Information Disclosure - ArcGIS REST services

Recently a security audit has been done on our servers and applications which has ArcGIS enterprise installed on it. Our Architecture setup : We have ArcGIS installed on the server, ArcGIS exposes ...
1
vote
1answer
152 views

Wildcard SQL in ArcGIS REST API

I'm querying the ArcGIS REST API and I'm trying to write a request that includes a wildcard. The normal request (without wildcard) looks like this: https://serviciosgis.catastrobogota.gov.co/arcgis/...
0
votes
1answer
413 views

Getting a token access to feature layer using Postman and Python

I am trying to query a feature server using postman as ESRI'S documentation: https://developers.arcgis.com/labs/rest/get-an-access-token/ I have succesfully added the Authorization to the body of the ...
3
votes
1answer
1k views

Using output statistics in ArcGIS REST API query?

I am using an API to pull in some Web Mapping Service Layer data to my script. The API query has a max count limit of 1000 on returned features per request. There are 2 attributes I am trying to use ...
2
votes
1answer
56 views

Setting copyright of ArcGIS Server map service via ArcGIS REST API?

Knows someone a possibility to set the copyright of an ArcGIS Server Mapservice via REST API? Didn't found a property in the JSON but in ArcGIS Server Manager you can change the value. Also I found ...
1
vote
0answers
67 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 ...
0
votes
1answer
533 views

Overlaying ArcGIS REST API on Google Maps?

For example I have ArcGIS REST API as us high way state city county https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer I want to see it on ...
3
votes
1answer
647 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
1answer
243 views

Change the colors of the features

I've developed an application on Vue JS which loads the services from the ArcGIS Server via REST API. When I load a service by the URL http://arcgis/.../query?f=json&outFields=*, the layers are ...
0
votes
2answers
554 views

ArcGIS REST API: hide/show layers

I've developed an application on leaflet JS, which loads the services from local ArcGIS server through Arcgis REST API. The following code loads the service: function addServiceToMap(service, layers ...