|
POST
|
I have a solution that seems to be working - the Define Projection tool - but it's still a total mystery why the imagery became located thousands of miles away from where it should be. If anyone has ideas as to how this could happen, I am really interested to hear. One clue is that I discovered that the imagery in question displays in the correct location in ArcMap - just not in ArcGIS Pro! This suggests that the imagery's projection/coordinate system is being handled or interpreted differently by ArcMap and Pro. ArcMap recognizes the coordinate system units as US Survey Feet, which is what allows it to be placed in the right location, while Pro thinks the units are meters, which puts the imagery in the wrong location. In the XML file that goes with the MrSID file for this imagery, the projected coordinate system is "NAD83 / California zone 5," ID number 26945. The imagery is from 2007, so it was configured long before ArcGIS Pro existed. For our imagery from other years, they all use State Plane California zone 5 too, but with a slightly different coordinate system ID, such as 2229.
... View more
a week ago
|
1
|
0
|
84
|
|
POST
|
Thank you for your suggestion! After more investigation, I found that the Define Projection tool worked on a small area of the raster that I made a copy of for testing. I tried this tool because I got the sense that the projection was kind of there but kind of broken. I think Project or Project Raster may have kept the raster in the same location even while changing the projection. With Define Projection, the raster got moved across the country to the precise correct location, so I will probably use this, going forward.
... View more
a week ago
|
2
|
0
|
86
|
|
POST
|
I'm struggling with a mysterious problem with imagery extent. I do not know much about managing imagery files. We have a few sets of aerial imagery of our region (MrSID files), stored on ArcGIS Server, and all the imagery was working/displaying fine, until one set randomly started displaying on the other side of the country. No one was doing any work on it; this seemed to happen truly randomly. I found that most of our imagery sets have a projection that uses feet as the unit, while the problem set uses meters. However, the extent of the problem set consists of numbers that would be correct if the units were feet! I created a polygon feature class for troubleshooting/testing, and gave it the same extent problem as the imagery. I could successfully fix it, then, using the GP tool Add Spatial Index. However, it appears this tool can only be used on feature classes, not rasters/imagery. My current idea for fixing the imagery extent is: copy/record the current extent (the numbers that would be good if the projection units were feet), then project the imagery into the same projection but the variation that uses feet instead of meters, then manually edit the extent in Catalog to use the original extent, which will hopefully work now that the projection units are feet. But who knows if that method would work or run into unforeseen errors. I can try on a copy of a small part of the imagery. My question is, does anyone have a better solution for fixing the extent? And does anyone know how this problem could have occurred so randomly?? like a bug or something?
... View more
2 weeks ago
|
1
|
3
|
251
|
|
POST
|
Okay, this is very helpful information. Thank you. And it's good to know that your screen reader was able to read that text. I found out how to read from a certain point with NVDA - NVDAkey + down arrow. And then I was able to read the text. So this issue seems to be user inexperience (mine) rather than an Esri problem.
... View more
04-16-2026
12:40 PM
|
0
|
0
|
1065
|
|
POST
|
Hello, can anyone help me with an accessibility problem? My organization has to meet web accessibility standards very soon. One element of accessibility is that apps must be readable by screen readers. When examining the accessibility of one of our apps made with Instant Apps (Zone Lookup template), I discovered that a screen reader, NVDA, won't read my "custom result text." When I hover my mouse over a word in that text, it reads the word, but not the whole text. Hitting the tab key to move through all elements on the screen does not make the text get read. The unreadable text is outlined in red in this screenshot: How can I fix this, so that a screen reader can read the "custom result text"? The app is public, so you can try it out and see what I mean. Here is the URL: https://slocounty.maps.arcgis.com/apps/instant/lookup/index.html?appid=df5f4c61eb4e46fb98cf39b01f170781 To get to the results screen, first type in an address in the search bar. Here's a valid address you can enter: 976 Osos St., San Luis Obispo
... View more
04-15-2026
04:03 PM
|
0
|
4
|
1161
|
|
POST
|
Similar to what others have mentioned, I would suggest: 1. Make sure you have opened Pro on the machine the script is running on, and configure licensing. 2. Make sure your script is using the Python that comes with Pro, rather than the one that comes with ArcMap. 3. If you haven't already rewritten the script to work with how Pro publishes services, you'll need to do that - it's completely different. I had to go through this a few years ago, and here's some code from my script that republishes a service. NOTE: this is used for a standalone, non-federated ArcGIS Server. So ArcGIS Portal is not involved. I don't know if this code represents the best or most elegant way of publishing a service, but it's what I managed to piece together, and it works for me. It's a function that the script calls at some point. It also produces a message that is part of the email that the script sends upon finishing. def create_sd(path_aprx, aprx_map_name, project_dir, conn_string, folder, feature_count, overwrite=False):
""" Create an sd file from an aprx. If feature_service is True, the
sd is configured to be published as a feature service on AGOL."""
# Overwrite output for GP tools
arcpy.env.overwriteOutput = True
# Check that input file is an .aprx
if path_aprx.endswith(".aprx"):
# Reference map to publish
aprx = arcpy.mp.ArcGISProject(path_aprx)
m = aprx.listMaps(aprx_map_name)[0]
# Get service draft name from the input .mxd file name
service_def_draft_name = os.path.basename(path_aprx).replace(".aprx", ".sddraft")
# Get service name
service_name = "".join(service_def_draft_name.split(".")[0])
# Path to service draft definition file
path_service_draft_def = os.path.join(project_dir, service_def_draft_name)
# Create MapServiceDraft and set metadata and server folder properties
sddraft = arcpy.sharing.CreateSharingDraft("STANDALONE_SERVER", "MAP_SERVICE", service_name, m)
sddraft.targetServer = conn_string
sddraft.summary = "Write your item summary here"
sddraft.credits = "Your organization"
sddraft.description = "Description of your item goes here."
sddraft.serverFolder = folder
sddraft.tags = "your tags"
sddraft.overwriteExistingService = True
# Create Service Definition Draft file
sddraft.exportToSDDraft(path_service_draft_def)
# Create the name for the service definition
service_def_name = "{}withtable.sd".format(service_name)
# Path to the service definition on disk
path_service_def = os.path.join(project_dir, service_def_name)
# Stage the service definition file
arcpy.StageService_server(path_service_draft_def, path_service_def)
try:
# Upload the service definition to publish the service to ArcGIS Server
arcpy.UploadServiceDefinition_server(path_service_def, conn_string)
# Return true if service published
return True
except:
# Create message if publish service fails. Message used in email sent by script.
sd_mess = "*** Unable to Publish Service. Service needs to be manually restarted. ***"
# Return message
return sd_mess
else:
# Create message if input file is not .aprx. Message is used in email sent by the script.
sd_mess = "Input Path Must Point to an .aprx"
# Return message
return sd_mess
... View more
03-05-2026
10:08 AM
|
0
|
0
|
702
|
|
POST
|
Hi there, @Woosh_AP . Did you ever find a way of doing this?
... View more
11-04-2025
11:31 AM
|
0
|
1
|
2317
|
|
POST
|
This is great! Thank you so much for sharing. Just FYI for anyone who may come after me... I ran this expression as a field calculation on a dataset of over 100,000 features and it took about 2 hours 😅
... View more
10-10-2025
06:27 PM
|
0
|
0
|
1673
|
|
IDEA
|
I discovered that the Web Editor template (Instant Apps) doesn't allow for normal pop-ups. Apparently, users can access a pop-up via multiple clicks and interacting with the Selection pane, as described in the solution in this post, but I feel like that's an unreasonable way to access a pop-up. I think the whole point of pop-ups is to show information in a quick, easy, intuitive way, and the current pop-up situation is none of those things. Can you please change the Web Editor template to allow pop-ups when simply clicking on a feature on the map? For context, my use case is an app where users share adventures they've been on. They can edit in order to create a new feature about their adventure. A large purpose of the app is to browse other people's adventures, too, so this is why pop-ups are essential.
... View more
09-30-2025
05:49 PM
|
3
|
0
|
545
|
|
POST
|
Thank you very much. That's good to know how a user can access a popup. That's too complicated to make users do that, for my purposes, so I guess I will have to use Experience Builder instead.
... View more
09-30-2025
05:42 PM
|
3
|
0
|
972
|
|
POST
|
I just went through a lot of work to configure an Instant App using the "Web Editor" template, but I discovered that pop-ups are not working in the app. I enabled and configured pop-ups in the Map Viewer, and they work there. I re-saved the map and re-published and re-launched my app. But still no pop-ups - I click on a point and nothing happens. Does anyone know what is going on with this? Are pop-ups somehow not allowed in this template?!
... View more
09-30-2025
03:01 PM
|
1
|
3
|
1017
|
|
POST
|
Thank you so much for sharing this! I had tried a couple different google searches on this topic, and I searched Esri Community, but I never found info about this bug. Thanks.
... View more
09-25-2025
08:35 AM
|
0
|
0
|
970
|
|
POST
|
I'm having a weird problem with labels in ArcGIS Online map viewer. I published a map service from ArcGIS Pro to our standalone ArcGIS Server. Then a web map in ArcGIS Online contains layers from the map service. I configured the layers' labels in Pro (Pro version 3.3). I used a Python expression for the labels: Many months ago when I first published the service, the labels worked fine in ArcGIS Online. But I happened to discover today that now the labels show up in Map Viewer as the literal text contained my Python expression, but with the "+" replaced by the word "CONCAT". Label should be: District 1 Label shows up as: "District" CONCAT 1 Why??? Any ideas of what to do about this? I would really prefer to configure labels in Pro rather than the AGOL Map Viewer, so that I don't risk labels getting wiped out when I republish the map service. Thanks for reading!
... View more
09-24-2025
04:58 PM
|
0
|
2
|
1085
|
|
POST
|
I think I fixed it! I was comparing the contents of C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3, on the broken machine vs. a machine where arcpy works. I then noticed two files that were created today on the broken one, but do not exist on the good one. I deleted the files, then ran my script, and I didn't get the error! The 2 files I deleted were: .gitignore and pyvenv.cfg I also deleted the PyCharm project I had created earlier.
... View more
08-05-2025
12:29 PM
|
1
|
0
|
1720
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 2 | a week ago | |
| 1 | 09-17-2020 12:57 PM | |
| 1 | 2 weeks ago | |
| 3 | 09-30-2025 05:49 PM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|