|
POST
|
Thanks, Yes that is a clever solution, for my second Question, so now How can fire click events to push field names to the arcade expression.
... View more
01-31-2019
12:06 PM
|
0
|
9
|
1785
|
|
POST
|
Thank you, Robert I already tried that without any success. I am still trying, Please share if you came with any solution or sample. Regards
... View more
01-31-2019
11:42 AM
|
0
|
11
|
1785
|
|
POST
|
OH, thank you for the correction, and tagging Robert, Hope to hear from him soon. Regards
... View more
01-31-2019
11:21 AM
|
0
|
13
|
1785
|
|
POST
|
thanks Xander, Yes that is exactly what i have. So Can you help with this 2 issue, 1- Add on Click Events on the Race Accordion header then render the map according, by replacing the field names in the Arcade Expression (on console log I was able to get all the fields name as an array) 2- instead of placing the arcade expression on the HTML file (script tag) How can I add it to my separated js file(script.js). Regards
... View more
01-31-2019
10:58 AM
|
0
|
1
|
1785
|
|
POST
|
I am creating simple election map, that visualize the result over the county by Some election races, which I listed them on accordion Panel. I tried to follow this example , to render the feature layer. I failed to Add the following 1- Add on Click Events on the Race Accordion header then render the map according. by replacing the field names in the Arcade Expression (on console log I was able to get all the fields name) 2- instead of placing the arcade expression on the HTML file (script tag) How can I add it to my separated js file(script.js). I do appreciate your help. Attaching my code so far.
... View more
01-31-2019
09:22 AM
|
0
|
17
|
3008
|
|
POST
|
Unfortionatley I could not make it to work,adding json or geojson file from a directory or url,
... View more
12-07-2018
09:29 AM
|
0
|
0
|
4367
|
|
POST
|
I am trying to display a raster in 3d Local scene, I can't drag the layer from the 2D layers to 3D Layers. I am able to create the 3d in ArcScene see pic below - is it possible to create the same Scene in ArcGIS PRO Thanks
... View more
11-13-2018
07:53 AM
|
2
|
7
|
16060
|
|
POST
|
Thank you, Yes I am able to use the template, but i got only the empty schema, no data.
... View more
10-30-2018
12:06 PM
|
0
|
0
|
1145
|
|
POST
|
Yes Darren, this what I did in line 36, arcpy.CreateFeatureclass_management(tempfc.split("/")[0], tempfc.split("/")[1], "POLYLINE", "", "", "", sr) but how to include all the fields from the relfc, in_memory then copy them as I did on line 55
... View more
10-30-2018
10:14 AM
|
0
|
1
|
1145
|
|
POST
|
Thanks, the script is working fine, but I need to copy all the attributes fields from relfc to the new spiderfc feature thanks
... View more
10-30-2018
09:05 AM
|
0
|
1
|
1145
|
|
POST
|
I have the following script - it creates lines from two points feature classes, Both point feature classes have a field # that identifies the center point ID to relate them. I would like to modify this script so I can I get all the fields from the related points relfc to spiderfc # Description: Creates spider diagram lines from two point feature classes.
# Note: You need one point feature class for the center points and another
# for the related points. Both point feature classes must have a field
# that identifies the center point ID to relate them.
# ---------------------------------------------------------------------------
# Import modules
import arcpy
# Local variables
cenfc = r"\\GIS\starburst.gdb\CenterPoints"
cenfld = "SiteID"
relfc = r"\\GIS\starburst.gdb\EV102218" " copy all fields from here
relfld = "USER_SiteID"
spiderfc = r"\\GIS\starburst.gdb\Spider" # to here
# Read in the ID values and coordinates of the center points
print "Reading in center point IDs and coordinates..."
cendict = {}
for row in arcpy.da.SearchCursor(cenfc, [cenfld, "SHAPE@XY"]):
cendict[row[0]] = row[1]
# Read in the ID values and coordinates of the related points and create line geometry objects
print "Reading in related point IDs and coordinates..."
linelist = []
for row in arcpy.da.SearchCursor(relfc, [relfld, "SHAPE@XY"]):
relxy = row[1]
cenxy = cendict[row[0]]
polyline = arcpy.Polyline(arcpy.Array([arcpy.Point(cenxy[0], cenxy[1]), arcpy.Point(relxy[0], relxy[1])]))
linelist.append([row[0], polyline])
# Setup line feature for spider lines
print "Setting up line feature for spider lines..."
sr = arcpy.Describe(cenfc).spatialReference
tempfc = "in_memory/tempfc"
arcpy.CreateFeatureclass_management(tempfc.split("/")[0], tempfc.split("/")[1], "POLYLINE", "", "", "", sr)
field = arcpy.ListFields(cenfc, cenfld)
fielddict = {"SmallInteger": "SHORT", "Integer": "LONG", "Single": "FLOAT", "Double": "DOUBLE", "String": "TEXT", "Date": "DATE", "BLOB": "BLOB"}
fieldtype = fielddict.get(field[0].type)
if fieldtype == "TEXT":
arcpy.AddField_management(tempfc, cenfld, fieldtype, "", "", str(field[0].length))
else:
arcpy.AddField_management(tempfc, cenfld, fieldtype, "", "", "", "", "NULLABLE")
# Add spider lines
print "Adding spider lines..."
cursor = arcpy.da.InsertCursor(tempfc, [cenfld, "SHAPE@"])
for line in linelist:
cursor.insertRow(line)
del cursor
# Save spider lines to spider line feature
print "Saving spider lines..."
arcpy.env.overwriteOutput = True
arcpy.CopyFeatures_management(tempfc, spiderfc)
arcpy.Delete_management(tempfc)
# All done
print "All done!" Many thanks
... View more
10-30-2018
07:31 AM
|
0
|
6
|
1450
|
|
POST
|
Thank you Dan, That approach will not work for me, because I don't have a reliable street network, besides I already have the response time in minutes, I think I will end up with just a heat map for my purpose. Thanks
... View more
10-10-2018
08:59 AM
|
0
|
1
|
1206
|
|
POST
|
I received an Excel file with data on previous 3 years fire and emergency response times. I was able to geocode 85% of the data, I have the following fields ReceivedCallDateTime, DispDateTime, EnrDateTime, ArrDateTime, CLRDatetime, I asked to to map the response times without the Network Analyst since we dont have well configured road network, which to me looks more like a sort of heat map. They'd also like maps for each of five fire stations. They're sort of unclear on exactly what they want; they may not know. I think essentially what they want is a map for each station showing 3 and 6 minute response time zones based on their actual data. I could do a multiple ring buffer based on an average speed, but that doesn't take into account actual streets. Or just if I can run the IDW spatial analyst tools and get the response head map. All help appreciated, thanks.
... View more
10-09-2018
06:46 AM
|
0
|
3
|
1371
|
|
POST
|
Thank you Gintautas, We already did that, it worked with some bugs, another reason for migrating, Our DB schema is changed little bit. so we have to make change accordingly in the code. Thank you
... View more
09-10-2018
08:12 AM
|
0
|
1
|
1188
|
|
POST
|
I am in process of converting an old VB6(ArcGIS 9.3) Add-on to .NET Add-Ins for ArcMap 10.6 the Add-on allows the user to Split or Merge road segments and adjusts their addresses accordingly. The Old one contain: 1- 2 Forms: Setup Form and the split Form. 2- a Class Module that communicate between the forms and Error Handler Module. Attaching the class Module. I have no idea on how to start this project, I have no clear information of how to get the right solution since I have snapping in the tool and the way of the error handling. My Question is Which approach should I follow, Using Add-ins (is there any snapping limitation) or use com. for either way you advice: 1- what the steps I have to follow, and how can I use the Error Handler. 2- what solution Template in VS 2017 should I use Looking for any Help. and clsSplitroad code migration will be great help. Thank you
... View more
09-07-2018
10:32 PM
|
0
|
3
|
1344
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-19-2020 12:53 AM | |
| 1 | 04-06-2020 10:52 AM | |
| 2 | 11-13-2018 07:53 AM | |
| 1 | 09-13-2019 10:55 AM | |
| 1 | 03-07-2019 11:43 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-07-2022
04:49 AM
|