POST
|
Thanks, but I'm working with a map service, not a feature service. So, would the getSelectedFeature() command still work?
... View more
05-16-2016
03:44 PM
|
0
|
1
|
575
|
POST
|
Webapp. When I enable a popup, and click on a point on the map that falls within the feature layer, the service returns the attributes associated with that feature. I'm trying to come up with a way to do it by leveraging a script, so that the feature and its attributes may be copied to a fgdb feature class.
... View more
05-13-2016
03:36 PM
|
0
|
1
|
575
|
POST
|
Hi everyone, I have users that request features to be created from when they "Identify" a feature in a map service. I am familiar with leveraging the arcpy FeatureSet class to obtain a json expression and forming features via that method, but from Operations supported in a REST interface. Would there be a way to capture the results of an Identify event when a user selects a feature on a map, and recording those results, so that they can be passed into the FeatureSet?
... View more
05-12-2016
08:07 PM
|
0
|
6
|
3158
|
POST
|
The former part of what you said..I agree that they should be avoided. I was just wondering if there was any way at all to work around this. If I use an out of the box ESRI tool and load a parameter with whitespace it doesn't seem to be a problem but in custom scripts it does appear to be an issue.
... View more
04-27-2016
01:12 PM
|
0
|
1
|
520
|
POST
|
I'm encountering an issue with the custom python tools I have built not executing when there are whitespaces in the parameter names/paths. Otherwise, the tools execute just fine and return the expected outputs. Is there a known resolution to this issue? The error that I encountered is something like; Dataset XYZ does not exist or is not supported. Thanks.
... View more
04-27-2016
11:36 AM
|
0
|
3
|
2071
|
POST
|
Hi everyone, I have a polygon feature class of boundaries representing a one-to-many relationship of tabular records. In ArcMap, I'm able to create a map relate through clicking on Joins & Relates > Relate and then setting up the linking data structures and fields by following the dialogue box. Once this step is completed, then I am able to select all records in the table and then successfully relate them back to the feature class. I'm trying to find a method to replicate this process in a python script but so far I haven't been able to find any documentation of how this could be accomplished. Any input would be appreciated.
... View more
03-01-2016
11:48 AM
|
0
|
5
|
2252
|
POST
|
Darren, changing the type to MAX does work. Thank you so much.
... View more
12-16-2015
04:57 PM
|
0
|
0
|
553
|
POST
|
Does not work. What statistic type would you assign to the other fields, anyway?
... View more
12-16-2015
11:38 AM
|
0
|
2
|
553
|
POST
|
I received a feature class that is currently in the format, illustrated below.. AREA POPUNDER20 POPOVER20 POPOVER50 TAMPA 1000 TAMPA 2000 MIAMI 500 MIAMI 1000 MIAMI 3000 MONTREAL 4000 MONTREAL 5000 I would be needing to re-format this feature class to: AREA POPUNDER20 POPOVER20 POPOVER50 TAMPA 1000 2000 MIAMI 500 1000 3000 MONTREAL 4000 5000 If anyone could recommened a script or a tool that would help reformat, that would be really helpful thanks in advance.
... View more
12-16-2015
10:03 AM
|
0
|
5
|
2943
|
POST
|
Correct, except I'm trying to write it out each unique value in sucessive rows, one value per cell, instead of all on the same row(multiple values in the same cell).
... View more
05-22-2015
10:35 AM
|
0
|
5
|
1268
|
POST
|
sure, there are ways to do this through arc tools. I was just interested in more of a pythonic way of doing it.
... View more
05-21-2015
03:37 PM
|
1
|
0
|
3049
|
POST
|
The enumerate block does not even need to be in there, just add a conditional at the end of the fields list, per the snippet below. I also added the "set()" method to the final line. Because the code is writing by row instead of by column, it is extracting the unique values by row. I can't seem to get it to extract unique values by column for some reason. import arcpy
fc = 'C:\\antenna_shp\\cables.shp'
CSVFile = 'C:\\antenna_shp\\FinalOutput.csv'
fields = [f.name for f in arcpy.ListFields(fc) if f.type != 'Geometry']
with open(CSVFile, 'w') as w:
w.write(','.join(fields)+'\n')
with arcpy.da.SearchCursor(fc, fields) as cursor:
for row in cursor:
w.write(','.join(set([str(r) for r in row]))+'\n')
... View more
05-21-2015
02:22 PM
|
0
|
0
|
3049
|
POST
|
I am familiar with sets in python. I attempted applying it to the solution posted on SE, but because the code writes by row instead of writing by column, applying set only extracts the unique values on each ROW. I would need it to extract the unique values on each COLUMN.
... View more
05-21-2015
01:56 PM
|
0
|
2
|
3049
|
POST
|
As I have mentioned in my opening post, the SE solution pulls ALL the values in any given attribute field. I am only interested in UNIQUE values.
... View more
05-21-2015
01:53 PM
|
0
|
2
|
3049
|
Title | Kudos | Posted |
---|---|---|
1 | 01-21-2015 06:39 PM | |
1 | 04-24-2015 02:49 PM | |
1 | 04-26-2015 11:13 PM | |
1 | 05-21-2015 12:41 PM | |
1 | 05-21-2015 03:37 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|