|
POST
|
I tried out the Information Lookup in ArcGIS Online and indeed it does what I need. Any idea on the timeframe for Web AppBuilder getting that widget?
... View more
02-28-2018
02:58 PM
|
0
|
1
|
1159
|
|
POST
|
I have many overlapping polygons and I want to show one popup with all of the results from a click. This will be used in a Web AppBuilder app that only uses popups so I don't want to use the attribute table. Arcade looks like it might be capable but I don't see how I have access to all of the features returned from a click. The popup would essentially be a table of results like: ID1 Some Name ID2 Another Thing ID3 More Example ... ID99 Yadda Yadda https://community.esri.com/community/developers/gis-developers?sr=search&searchId=1d6bfc3a-e2ed-4704-91ed-7f0104b5a2d0&searchIndex=0
... View more
02-27-2018
10:57 AM
|
0
|
3
|
1395
|
|
POST
|
Good point, Richard Fairhurst. My intention was just to show a simple like for like comparison of the VB code with Python. Thanks for clarifying and making a working example for colasuk.
... View more
02-20-2018
03:54 PM
|
1
|
0
|
2835
|
|
POST
|
Indeed, the newer versions of ArcGIS don't support VBA. You should really convert your VBA logic to Python. if !AssetCondition! == "1 - NEW":
!CCONDITION! = "1"
elif !AssetCondition! == "2 - GOOD":
!CCONDITION! = "2"
elif !AssetCondition! == "3 - POOR":
!CCONDITION! = "3"
elif !AssetCondition! == "4 - UNSERVICEABLE":
!CCONDITION! = "4"
else:
!CONDITION! = None
... View more
02-20-2018
12:55 PM
|
2
|
2
|
2835
|
|
POST
|
I've never tried but what if you just put os.getenv('username') in your GP service script?
... View more
02-20-2018
12:49 PM
|
0
|
1
|
5660
|
|
POST
|
Assuming the list of communities in FC2 is always comma separated, give this a try. I have not tested this and I may have missed some crucial info in your discussion with Richard Fairhurst. # Local variables
fc1 = r"C:\myDB\FC1"
fc2 = r"C:\myDB\FC2"
# Read all of FC1 into dictionary in memory
## Ensure that all community values are unique in FC1
fc1_fields = ["community", "ref"]
fc1 = {community: ref for community, ref in searchCursor(fc1, fc1_fields)}
# If necessary, start edit session on FC2 to update it
fc2_fields = ["communityGroup", "refGroup"]
with updateCursor(fc2, fc2_fields) as fc2_cursor:
for fc2_communityGroup, fc2_refGroup in fc2_cursor:
# Create list of ref values from FC1 for the group of communities listed in FC2
refGroup = []
for community in fc2_communityGroup[0].split(","):
refGroup.append(fc1[community]) ## Will error here if the community is not found in FC1
# Create the comma separated list of ref values and update the row in FC2
fc2_row[1] = ",".join(refGroup)
fc2_cursor.updaterow(fc2_row)
... View more
02-20-2018
09:01 AM
|
1
|
1
|
1619
|
|
POST
|
Did any of those suggestions in particular make a significant difference in the performance of your script?
... View more
02-16-2018
08:17 AM
|
0
|
1
|
4284
|
|
POST
|
This looks like something produced from Density tools in the Spatial Analyst extension. FAQ: How can a heat map be created in ArcMap? https://community.esri.com/community/gis/managing-data?sr=search&searchId=1c06c6bb-c662-40c7-86f8-f729d2a3efea&searchIndex=0 https://community.esri.com/community/gis/analysis/geoprocessing?sr=search&searchId=9586c7f9-cd6e-406b-b063-32e730995803&searchIndex=0
... View more
02-15-2018
08:29 AM
|
0
|
0
|
2368
|
|
POST
|
import os
import time
my_dir = r"D:\myFolder"
current_time = time.strftime("%m%d%Y")
for dirpath, dnames, fnames in os.walk(my_dir):
for file in fnames:
print file
if file.endswith(".zip"):
name, ext = os.path.splitext(file)
new_file_name = "{}{}{}".format(name, current_time, ext)
os.rename(os.path.join(dirpath, file), os.path.join(dirpath, new_file_name))
... View more
02-07-2018
02:21 PM
|
1
|
0
|
6930
|
|
POST
|
We've published an Oracle view to an ArcGIS Online Web Map with date fields and the only problem was the browser assuming it was in UTC and converting it to local time. We converted the date to a string so it wouldn't try to change time zones. We just used TO_CHAR() TO_CHAR(myDateField, 'YYYY-MM-DD') as myDateField
... View more
01-31-2018
08:58 AM
|
1
|
0
|
3652
|
|
POST
|
Yes, for example: // *************************************
// activate the sketch to create a point
// *************************************
var drawPointButton = document.getElementById("pointButton");
drawPointButton.onclick = function() {
myFeatureLayer.popupEnabled = false;
// set the sketch to create a point geometry
sketchViewModel.create("point");
setActiveButton(this);
}; Then I set it back to true in the on draw-complete function: sketchViewModel.on("draw-complete", function(evt) {
myFeatureLayer.popupEnabled = true;
// add the graphic to the graphics layer
tempGraphicsLayer.add(evt.graphic);
setActiveButton();
});
... View more
01-31-2018
07:31 AM
|
0
|
2
|
3858
|
|
POST
|
Hi Robert, Not quite sure where would be the best place to represent "stert sketching." I added the FeatureLayer popupEnabled = false to the onclick functions of each button in that SketchViewModel example. Then I change popupEnabled back to true in the on draw-complete function. It seems to work for line and polygon but isn't working for points.
... View more
01-30-2018
02:46 PM
|
0
|
4
|
3858
|
|
POST
|
I've got one FeatureLayer with a popup in the map. I'm trying to use the SketchViewModel sample for sketching temporary geometries. How can I disable popups while the sketching is active so clicking on a feature in the FeatureLayer doesn't open the popup?
... View more
01-30-2018
02:02 PM
|
0
|
6
|
5270
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-10-2026 07:32 AM | |
| 1 | 10-23-2025 03:53 PM | |
| 1 | 04-28-2026 07:25 AM | |
| 1 | 03-19-2026 08:59 AM | |
| 1 | 02-12-2026 01:37 PM |