8 votes
Accepted

how to allow null values in a feature-layer

Shapefiles, which use the older dBase specs, do not support null values. If you must maintain null values and you have to keep the file format to shapefile, you'll need to use a representative or '...
user avatar
  • 15.5k
7 votes
Accepted

Difference between CoordinateSystem and CoordinateReferenceSystem

A Coordinate Reference System contains two different elements The datum: It defines how the CRS is related to the earth (position of the origin, the scale and the orientation of coordinate axis) e.g. ...
user avatar
6 votes

Difference between CoordinateSystem and CoordinateReferenceSystem

CoordinateReferenceSystem is the base Interface from which all other GeoTools SRS are derived from - it is the base class of Geocentric and Geographic projections (and others with vertical and ...
user avatar
  • 75.1k
5 votes

Proper syntax for Select Feature Layer by Location

Here i used generation of a list of paired tuple of OID and Result of select by location operation.Then i created an update cursor to to update a filed named COUNT by the select by layer location ...
user avatar
  • 3,456
5 votes
Accepted

What are the requirements to set "Supports Advanced Queries" true on a Feature Layer hosted on ArcGis Server 10.1

https://developers.arcgis.com/rest/services-reference/enterprise/layer-table.htm supportsAdvancedQueries would return false in the following scenarios: The layer / table resides in a workspace other ...
user avatar
5 votes
Accepted

Using Update Cursor, populate field

To expand more on @FelixIP comment, your row[0] is not assigning a value since double "==" are used with a if conditional statement for evaluating a value to be true or false. Use single "=" for ...
user avatar
  • 34.6k
5 votes

overwrite feature class in arcgis online using python

The following code (380 lines) will overwrite a ZIP file on arcgis.com and call PUBLISH on that. The zip file is expected to have shapefiles inside. You'll need to start modifying items to match your ...
user avatar
  • 15.3k
5 votes
Accepted

Heatmap Renderer with Feature Layer

try this featureSet.geometryType = "esriGeometryPoint" check this sample, your code and sample different only featureSet.geometryType variable not implemented. so i check this code its run. https:/...
user avatar
5 votes
Accepted

Feature Layer will not refresh ArcGIS Javascript API

This is a bug in the 4.9 JS API. It is in the queue for fixing in 4.10. We failed to implement refresh() using our WebGL-rendered FeatureLayer. It still works if you disable WebGL, but I don't ...
user avatar
  • 101
5 votes
Accepted

ArcGIS JS API SimpleMarkerSymbol is not a subclass of Layer

It's because your function arguments don't match up with your require modules. These must be in the same order! require([ "esri/Map", "esri/views/MapView", "esri/layers/TileLayer", "esri/layers/...
user avatar
  • 5,288
4 votes

Using FeatureLayer as pure client side query in ArcGIS API for JavaScript?

This is a limitation of a feature layer built from a featureCollection. See the help file page which says: The feature layer, when initialized with a feature collection object... does not support ...
user avatar
  • 20.5k
4 votes
Accepted

Querying featureLayer using date field and ArcGIS API for JavaScript?

You would set the expression as MYDATE >= date'1-16-2013' (date format may vary based on locale) Example date range filter : featurelayer.setDefinitionExpression("MYDATE >= date'1-16-2013' AND ...
user avatar
4 votes
Accepted

Proper syntax for Select Feature Layer by Location

The way I always handle this kind of thing is by making the entire FC a layer before entering the "for" loop. Then once inside the loop I use SelectLayerByAttribute on the the row based on OBJECTID ...
user avatar
  • 1,976
4 votes
Accepted

Watching for scale/zoom changes in ArcGIS API for JavaScript 4?

The practice in version 3.x of the ArcGIS API for JavaScript of using event listeners has been superseded in 4.x by a new paradigm: watchable properties. from the documentation: Prior to 4.0, ...
user avatar
  • 5,053
4 votes

Compare two fields not equal to each other in a join from a feature layer

Don't use the quotes (") around the field names in your where clause. arcpy.MakeFeatureLayer_management(r'fcname', 'diff_feats', 'OBJECTID <> POLYGON_ID') Even better, to make your Python ...
user avatar
4 votes

make feature layer of shapefile

With arcpy.MakeFeatureLayer_management() you just need to specify a name for your feature layer, not a path. The feature layer still points back to your original shapefile as the source, it does not ...
user avatar
  • 29.2k
4 votes
Accepted

What is difference between ArcGIS feature layer and layer?

In the ArcGIS Help you will find many mentions of raster layers. For example in the Applying pan-sharpening to a raster layer in ArcMap page. Raster layers are layers but they are not feature layers,...
user avatar
  • 63.8k
4 votes
Accepted

Get FeatureLayer Attribute by Clicking

You need to use the hitTest(screenPoint) method, to search for graphics at the clicked location, after you get the screenPoint from the view-click event. function displayTractID(event) { var ...
user avatar
  • 1,006
4 votes
Accepted

Uncaught TypeError: FeatureLayer is not a constructor

There are some issues in your code: The parameters of the main function don't line up with the names in require, you would need for instance function (Map, MapView, domReady, FeatureLayer), or change ...
user avatar
  • 4,173
4 votes
Accepted

Updating hosted feature layers on AGOL using the ArcGIS Python API?

After a few weeks getting up to speed on the ArcGIS Python API, I have come up with work flow that works quite well. My original understanding of scripting using JSON dictionaries was a bit off as ...
user avatar
  • 1,976
4 votes
Accepted

ArcGIS JS API Failed to load feature layer

First, your graphics should be wrapped in an array. Simply change var featureLayer = new FeatureLayer({ source: graphic, fields: fields, objectIdField: ...
user avatar
4 votes

Wildcard in if and elif statement

You can use Python's re module for wildcards. Here is how you can do it with re.match() import re for lyr in mp.listLayers(): if lyr.isFeatureLayer: sym = lyr.symbology if re....
user avatar
  • 41
4 votes
Accepted

Where are OSM tile servers corresponding to its supported layers?

You can simply use your browser's web developer tools to see which URL is behind which layer. Most layers are served from a different tile server. Currently these are: Standard: tile.openstreetmap....
user avatar
  • 5,684
3 votes
Accepted

ArcGIS feature class interprets Latitude/Longitude in meters instead of degress

You are probably looking for the Define Projection tool (under Data Management, Projections and Transformations). Unlike Project, which will transform from one coordinate system to another (e.g. -119....
user avatar
  • 8,926
3 votes
Accepted

Updating fields of feature layer and reflecting changes in original data

Try using ... set rows = arcpy.UpdateCursor("qcPoints") instead of setting rows to qcPoints_lyr. You should be able to do away with the Append that way. I thought that might work and it sounds like ...
user avatar
  • 4,449
3 votes

How do you set up XY Event Layer Parameters on ArcGIS Script Tool? (asking for user input)

I have made edit to your code. Give it a try. # Import arcpy module import arcpy, sys, traceback from arcpy import env # Script arguments Input_Table = arcpy.GetParameterAsText(0) feat_output = ...
user avatar
  • 1,211
3 votes
Accepted

ArcGIS JS api - how to hide attributes editor when new graphic is added

If you want to suppress popups while editing a particular layer, set disableAttributeUpdate = true in the corresponding layerInfo when instantiating the widget. This is mentioned in the API reference ...
user avatar
  • 5,053
3 votes

Removing feature class or table from TOC using C#?

There is a better way to iterate through layers, look at Map.Layers(UID,True) as IEnumLayers... this limits your layer types (IFeatureLayer, IRasterLayer..) and looks in your group layers. UID pUID = ...
user avatar
3 votes

Creating layers for each attribute value via Arcpy script

No need to write any code, a very simple model as shown below could do all this. You set the group by field to be your integer field and the iterator will create a sub-set which you save out using the ...
user avatar
  • 38.9k
3 votes
Accepted

ArcSDE feature class prefix issue

I'd say that some of the feature classes have an alias set, and others do not. Go into ArcCatalog, and for the feature classes that come in with the full name, go into their properties. Check the ...
user avatar
  • 9,011

Only top scored, non community-wiki answers of a minimum length are eligible