FAQ Database Discussion Community


How to get detail information about AGSFeature layer in iOS

ios,objective-c,ios8,arcgis
I'm able to add 3 layers on basemap from arcgis iOS sdk. Now I want to get detail information from feature layer. Can anyone help me. And sometimes data is populated on map but sometimes it take too much time to load. Below is my code from which I'm able...

Add Google map or bing as base layer in ArcGIS api for android

android,google-maps-api-3,arcgis
I'm using the ArcGIS Runtime SDK for Android to build my application. I want to add a Google map as the basemap. Is that possible? Can I use ArcGISFeatureLayer to add a Google map layer or other layer to my MapView?

esri/dijit/Search javascript version 3.13 different source not creating suggestions

javascript,arcgis,arcmap,arcgis-js-api
I am trying to reproduce the esri/dijit/Search tutorial that is new in the 3.13 release of the ArcGIS API for JavaScript with one of my own layers. Esri Sample <!DOCTYPE html> <html><link rel="stylesheet" href="http://js.arcgis.com/3.13/esri/css/esri.css"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" /> <title>ArcGIS API for JavaScript | Search...

Count number of buffers that touch a (polygon) feature

buffer,polygon,geospatial,spatial,arcgis
I'm facing the following task in ArcGIS - I'm using ArcMap 10.2 I have a polygon shapefile with counties of (say) a state in US. From this shapefile, I create a layer which marks all counties in which there is at least 1 city of more than 50000 inhabitants (I...

android show multi point on esri map

android,dictionary,arcgis
I am new developer in an arcgis environment and I'm also an android developer. For my training I followed the arcgis tutorials. I want add multi point on my map, but when I try, only the last point appears on the map. I need your help to solve it. Here...

dijit/form/select to select search fields in Arc JS API

arcgis,arcgis-server,arcgis-js-api
I'm brand new to javascript, dojo and HTML and I've searched everywhere for examples of this and cannot find any. I have a map with some feature points and a find task to highlight the feature points on the map, and display them in a grid with it's field attributes....

Collect last word from varied length string for filtering, auto labeling and column population?

python,arcgis,arcmap,labeling
I have been looking and reading for a few days about how to collect the last word from a varied length string. I have found lots of postings about how to collect/split the last word, but none of the content I have read addresses varied length stings. I would like...

Manually setting basemap using ArcGIS API for JavaScript?

javascript,api,desktop,arcgis,esri
Looked over the example can NOT figure out how to set basemap MANUALLY. I don't want a dijit widget, or any other libraries or anything like that. Just want to manually set a basemap to any of the already available types like Topographic, Satellites, Streets, etc. Following this API reference:...

ArcGIS API for JavaScript map is always 400px by 400px

c#,asp.net-mvc-4,dojo,arcgis,arcgis-js-api
In my project, I am using ArcGIS API for JavaScript https://developers.arcgis.com/javascript/ but for the (insert really big bad word here) I can't override this stupid width/height. No matter what I do, it just does not change, the map comes out to be 400px by 400px. I tried to Google it...

ArcGIS find conflict between layer and geometry

javascript,arcgis,arcgis-server,arcgis-js-api
I have a problem I could use some help with. In our application we have multiple FeatureLayers and on some of these layers a user can draw new objects. When a user draws a new object, lets call it a tent (any type of Geometry), I need to check if...

Getting error in running ExportReport Python code in ArcMap

python,report,arcgis,arcmap
i am unable to generate pdf report using ExportReport function of Arcgis 10.2. getting error of IOError: Could not open report template tried different template files but still getting this error. Template directory is correct. checked all the directory positions. Code import arcpy mxd = arcpy.mapping.MapDocument(r"C:\Users\Abrar ahmad\Documents\ArcGIS\New_Rwp_Cencus(12-17-2014).mxd") df = arcpy.mapping.ListDataFrames(mxd)[0]...

What is the grid behind the map in an Android app developed with the ArcGIS SDK for Android?

android,arcgis
I am creating a simple mapping app using the ArcGIS Runtime SDK for Android. I created a MapView and added a tile package (.tpk) to it as its base map. The picture below is how it appears on the screen. Can anyone tell me why there is a grid above...

Exporting attributes of multiple shapefiles to a text file

python,text,arcgis,arcpy
I'm trying to export the attributes of multiple shapefiles all contained in one folder to a text file. I wrote the code below to do so but it is only exporting the file names to a text file. Any ideas on what I may be doing wrong? I've been troubleshooting...

Using MapBox wms with ArcGis

javascript,arcgis,mapbox
I am using MapBox and are hoping to present some data from an ArcGis WMS service. It seems to be working fine, except that the projections are all wrong. Mapbox takes in an URL for the service and adds querystring parameters based on the current map view, before sending it...

field calculator based on attribute values

python,arcgis
I'm using ArcGIS 10.2.2 basic licence, trying to fill a column in an attribute table based on the following argument: 'If field1 is equal to field2, return field3, if not, return 'null'' Fields 1 and 2 are text, field 3 is numeric. I've tried this code in the field calculator:...

Calling Errback with IdentifyTask (ArcGIS)

javascript,error-handling,arcgis
I'm trying to use the IdentifyTask for ArcGIS and I am aware that it is failing if the map service is incorrect. Now I want to handle the error. However, I'm not entirely sure of how I'm supposed to use the errback parameter to handle an error on the call....

How do I write a csv file from a dictionary with multiple values per key?

python,csv,dictionary,arcgis
I originally posted this question as part of another question. I need to write a csv file in which it gives me the name of the technician, the date they worked on a tract, and the number of tracts on that date. I already found a way to get the...

How to display messages while creating directories?

python,python-2.7,arcgis,arcpy,os.path
I am looking for input to print a message when creating directories. Im in a mixed os environment but in my case using Win 7, python 2.7, ArcGIS 10.2. The code below works fine as far as functionality goes, and if the directory does exist the message appears on the...

Get all points from a ShapeFile (.shp) in Java [closed]

java,postgis,arcgis,shapefile
I'd like to use shapefile (.shp) data in Java. A sample file I have looks like this: 0105000000010000000102000000070000003085EF7995215FC0E0A2FEADF6E648400439100E8D215FC0B04AF9E80BE7484048CC79E78C215FC0F885E4F20CE74840B86EEC078C215FC0E80213FC12E74840A4B69A9694215FC07011B67744E7484008E900F396215FC04867DE1949E7484004D90A7EA1215FC0A8F7E1AE4BE74840 How can I can extract/decode all points (lat/lon) in this shapefile in java?...

How to makeIdentify Task in ArcGIS API for android work with a standard WMS

android,arcgis,wms
I want to use Identify Task in ARCGIS API for android.I used this example and it works fine but when I try to change the URL to get data from another WMS it shows error here is my another wms I get error in folowing line for (int index =...

Fixing the viewpoint of map

c#,arcgis
I am working with ArcGIS sdk for .net. Whenever the user clicks the + or - key or double clicks the map view it zooms in/zooms out. I want to ensure that when above events occur the map only changes the view to a certain level and not beyond that.

Using OR operator in NumPy Array to Append multiple items

python-2.7,numpy,arcgis,arcpy
I am using a NumPy array to feature class in Esri ArcGIS. I have a tuple of items that I am appending to a NumPy array. One field/column should be able to use multiple values depnding on the proxy input, i.e. if the category is a bulky item then the...

Python: How to remove values from a list that have a valence lower than a certain value

python,mysql,arcgis
In ArcGis I want to calculate the connectivity of a road network that I have drawn. Therefore, I give a valence to each road intersection based on the amount of streets that intersect each other. However, under the current circumstances, the toolbox would also includes two lines (e.g. in a...

adding barriers in arcgis sdk is generating the same path

android,arcgis
I have a program which gives me this route when I point at the to the two red markers I wanted to make that road not available so that I can get an alternate path, so I added this code to create a barrier on that road Polygon po=new Polygon();...

Using tkinter to assign a global variable and destroy the gui

python,user-interface,tkinter,arcgis,esri
I have been writing an annual data verification program and need a bit of user input with it and decided to go the tkinter route. I have created the interface for one of the user input screen, and will have to make others, but I'm having some issues with the...

Load local KML file using ArcGIS api for android

android,kml,arcgis
I am using ArcGIS api for android and I want to load a local KML file.I use the following code sample String url = Environment.getExternalStorageDirectory() + "\\Android\\data\\com.tehranuni.hazard.hazard\\us_states.kml"; SpatialReference sr = SpatialReference.create(102100); System.out.println("kmlurl: " + url); KMLLayer kmlLayer = new KMLLayer(url, sr); mMapView.addLayer(kmlLayer); This code gives me following error KML layer...

How to create legends with triangular end boxes in arcGIS?

legend,arcgis
I simply want my legend which is now in the form of the left bar in the following image, to be shown in the form of the bar in the right side. I couldn't find anything related for arcGIS. those anyone know? Thank you so much for your help....

Creating a callout with a custom view for ArcGIS Runtime for iOS

ios,arcgis
I'm trying to create a callout with a custom view for ArcGIS for iOS, but I can't quite figure out how. More specifically, I want to create one that looks like the sample displayed in their "Display a callout" Guide at https://developers.arcgis.com/ios/objective-c/guide/map-callout.htm. There's a callout at the bottom of the...