|
POST
|
Hi John, This appears correct. Would you be able to post your entire code, or create a jsfiddle?
... View more
03-27-2014
11:29 AM
|
0
|
0
|
1073
|
|
POST
|
I would recommend contacting Tech Support. This may be a bug. Tech Support will be able to log it if it is and find a possible workaround.
... View more
03-27-2014
05:28 AM
|
0
|
0
|
1680
|
|
POST
|
You may be encountering the following bug, NIM092807.
... View more
03-27-2014
04:09 AM
|
0
|
0
|
3425
|
|
POST
|
See this example here. This should help you get going in the right direction.
... View more
03-25-2014
07:36 AM
|
0
|
0
|
2246
|
|
POST
|
With the da cursors, the row variable represents each field specified in the 'fields' list. So, row[0] represents the 'PERSON' field, row[1] represents the 'updated_date' field.
... View more
03-25-2014
07:07 AM
|
0
|
0
|
2891
|
|
POST
|
I meant to update that as well. On the test I performed, I was using a table. You can use the Make Feature Layer function to do this on a feature class. Ex: arcpy.MakeFeatureLayer_management(fc, "fc_lyr", "PERSON = '" + editor + "'")
... View more
03-25-2014
05:59 AM
|
0
|
0
|
2891
|
|
POST
|
Hi Jay, Here is an example that sets the infoTemplate each time the button is clicked.
... View more
03-25-2014
05:55 AM
|
0
|
0
|
2246
|
|
POST
|
I went ahead and added some comments to the code snippet.
... View more
03-25-2014
05:20 AM
|
0
|
0
|
2891
|
|
POST
|
Hi Gary, You could add the buffer graphics to a GraphicsLayer and then symbolize the graphics layer using the UniqueValueRenderer class. Here is an example. In the example, I added an attribute called 'ID' to each graphic and set the value to it's index value. This attribute is then used to display each buffer ring with the unique value renderer.
... View more
03-25-2014
05:14 AM
|
0
|
0
|
2680
|
|
POST
|
Hi Christian, You can use the executeForCount method to achieve this. Ex: localCouncils.on("click", function (evt) {
map.graphics.clear();
var highlightGraphic = new Graphic(evt.graphic.geometry, highlightSymbol);
map.graphics.add(highlightGraphic);
var query = new Query();
var queryTask = new QueryTask("feature layer with points");
query.geometry = evt.graphic.geometry;
query.returnGeometry = true;
queryTask.executeForCount(query, function(count){
alert(count);
})
})
... View more
03-25-2014
03:25 AM
|
0
|
0
|
5308
|
|
POST
|
Hi BB, Here is an example on how to do this: import arcpy
from arcpy import env
env.workspace = r"C:\temp\python\test.gdb"
env.overwriteOutput = 1
# create list of editors
people = ["TOM", "ADAM", "BRIAN", "STEVE"]
# specify fields to use with search cursor
fields = ["PERSON", "updated_date"]
# loop through each feature class in test.gdb
lstfc = arcpy.ListFeatureclasses("*")
for fc in lstfc:
# loop through each editor for each feature class
for editor in people:
# create an empty list
list = []
# create a feature layer for each editor
arcpy.MakeFeatureLayer_management(fc, "fc_lyr", "PERSON = '" + editor + "'")
#sort feature layer by updated_date and iterate through each row
for row in arcpy.da.SearchCursor("fc_lyr", fields, sql_clause=(None, 'ORDER BY updated_date')):
# append each date to the list
list.append(row[1])
print editor + " has last updated on" + str(list[-1])
... View more
03-25-2014
02:51 AM
|
0
|
0
|
2891
|
|
POST
|
Hi Alex, Take a look at this thread. There is an example where you can select a graphic and export it to a shapefile through the infoWindow.
... View more
03-21-2014
10:54 AM
|
0
|
3
|
1599
|
|
POST
|
jsfiddle is an online testing area for your javascript/html/css, not really an IDE. I usually recommend Aptana. This is a free IDE you can download.
... View more
03-21-2014
06:18 AM
|
0
|
0
|
511
|
|
POST
|
Hi Tim, I would verify that the user you are connected as is added to the db_owner role for the database you are connecting to. You can run the following query to do so: USE [YourDatabase]
SELECT user_name([memberuid]) as [Username], User_Name([groupuid]) as [Role_Name]
FROM [sys].[sysmembers]
... View more
03-21-2014
04:36 AM
|
0
|
0
|
1265
|
|
POST
|
I believe this may be a bug. I was able to reproduce using ArcGIS 10.2.1. I would recommend contacting Tech Support so they can log this bug and find a potential workaround.
... View more
03-21-2014
04:16 AM
|
0
|
0
|
3817
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-08-2026 12:27 PM | |
| 4 | 05-07-2020 05:14 PM | |
| 1 | 03-25-2026 04:16 AM | |
| 1 | 03-16-2026 01:00 PM | |
| 1 | 12-22-2025 10:39 AM |
| Online Status |
Online
|
| Date Last Visited |
Tuesday
|