|
IDEA
|
I think I'm still having this issue because our county's ArcGIS Server is still at 10.81 and my Pro version is still 3.03 due to a different compatibility issue with the server. For anyone who still runs into this, try this ArcPy script to remove "USER_" from each field name. You can add it to a toolbox and use it like any other geoprocessing tool. # Import arcpy module
import arcpy
# Script arguments
inLayer = arcpy.GetParameterAsText(0)
if inLayer == '#' or not inLayer:
inLayer = "C:\\TEMP\\ArcGISUpload.gdb\\Test" # provide a default value if unspecified
fld_list = arcpy.ListFields(inLayer,"")
for fld in fld_list:
thisField = fld.name
if "USER_" in thisField:
newFieldName = thisField[5:]
arcpy.AddMessage("Removing USER_ from " + newFieldName)
try:
# Process: Alter Field
arcpy.AlterField_management(inLayer, thisField, newFieldName, newFieldName)
except arcpy.ExecuteError:
arcpy.AddWarning("An error occurred when trying to remove USER_ from " + newFieldName + ". It probably exists elsewhere in the table. SKIPPING")
... View more
09-17-2024
12:54 PM
|
0
|
0
|
681
|
|
POST
|
That appears to have fixed it! It's listing the contents of a FGDB feature class. I'm on Pro 3.03 because our county's outdated version of ArcGIS server apparently doesn't play nice with anything > 3.0.x. Now to test this with our Enterprise GDB. Thanks for your help!
... View more
08-21-2024
04:59 AM
|
0
|
0
|
1384
|
|
POST
|
Thanks for the suggestion. Unfortunately, I ran the solution without modifying anything. Then I navigated to a *file* geodatabase, clicked the Open button and got the MsgBox that read: "No tables or feature datasets read". I tried that with a FGDB on my C drive and on a network drive with the UNC path and the mapped drive "letter". The exception that triggered the above occurred on the line that read: using (Geodatabase gdb = new Geodatabase( new FileGeodatabaseConnectionPath(new Uri(_gdbPath, UriKind.Absolute)))) { The exception had this description: "External component has thrown an exception." Unfortunately, that doesn't help me troubleshoot much at all. Something more descriptive like "error checking out a license" would have been much more helpful! And that was a very similar message that I got in my previous post on a very similar line that attempted to 'connect'/open the geodatabase. Thoughts?
... View more
08-20-2024
09:07 AM
|
0
|
2
|
1398
|
|
POST
|
I posted this last week https://community.esri.com/t5/arcgis-pro-sdk-questions/standa-alone-exe-cannot-run-corehost-sample-quot/m-p/1522311#M11958 Over the weekend I wondered if it's even possible to do a spatial query overlay in a stand-alone "core host" app. This would be like doing a select by attributes in layer A, then a select by location for features in layer B and then loop through the results to read attribute values. It seems like a lot of Pro functionality requires you to build an add-in. This is obviously a must for tasks that require interaction with a map or the UI, but what about projects like mine that just need to do a spatial query? We could do this via ArcObjects with ArcMap, but we need to migrate our project to Pro. I understand that I'll need to check for Pro licenses (that part of my code already does). I want to avoid add-ins because every time you want to debug an add-in, you have to restart Pro, then load the project and then do all of the clicks to get your add-in to run. That's time consuming and it gets a bit frustrating.
... View more
08-19-2024
08:15 AM
|
0
|
4
|
1453
|
|
POST
|
Thanks for the suggestion. I just tried arcpy.env.overwriteOutput = True and it does work.
... View more
08-16-2024
08:01 AM
|
1
|
1
|
3387
|
|
POST
|
I'm trying to build a stand-alone WinForms exe application. My code ran into trouble when trying to connect to an Enterprise Geodatabase (Oracle), so I tried connecting to a File Geodatabase and got the same error messages. To troubleshoot, I downloaded this Sample: https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/CoreHost/CoreHostSample I double clicked the CoreHostSample.sln file to open the project (I didn't create a fresh project and import the code). I also downloaded the sample FGDB and put it in the specified location: C:\Data\SDK.gdb. I got the same error when I try to connect to that FGDB on line 84: "External component has thrown an exception.". The VS output window shows this: 'System.Runtime.InteropServices.SEHException' in ArcGIS.Core.dll I stepped into the line with Host.Initialize(); (that's line 77) and no issues seemed to arise. I added C:\Program Files\ArcGIS\Pro\bin to the system PATH variable. I tried setting ArcGIS.Core.dll and ArcGIS.CoreHost.dll to "Copy Local" I've ensured that the four conditions under the "Initialize sequence" section of this article are met. After calling Host.Initialize(), I've looped through the available licenses using foreach (LicenseCodes lc in Enum.GetValues(typeof(LicenseCodes))) It spits out that Network Analyst, Analyst 3D and Spatial Analyst are all available (with non of the other extension licenses being available). The below returns "License level: Advanced" LicenseLevels ll = LicenseInformation.Level;
string ll_str = Enum.GetName(typeof(LicenseLevels), ll);
printMore += "License level: " + ll_str + "\n"; The ArcGIS Pro SDK is installed. I'm on Pro 3.0.3 (we reportedly can't upgrade to do incompatibilities with the current (out-dated) version of ArcGIS Server our county uses). I copied the entire block starting with line 84 into an VS 2022 Pro add-in project and I could connect to the FGDB with no errors thrown. So I think it has something to do with this stand alone exe. I want my application to not be an add-in because 90% of it has nothing to do with GIS - I just need to make a few spatial queries. And developing a Pro add-in gets a bit frustrating because you have to re-launch Pro and then open a project every time you want to start a debug process (if there's a way around that, please let me know!). Any help would be appreciated! Thanks! Secondary question: can I use the Pro SDK in a Windows "Forms" application (not console, not WPF)? This suggests that I can't. As mentioned, this is not an add-in and I will not be using any type of ArcGIS 'controls' on my forms. I just need to 1) connect to our Enterprise GeoDatabase, 2) select a polygon, 3) Buffer that polygon, 4) select the parcels that intersect the buffer, 5) loop through the parcels and extract attributes. Even if I can't use WinForms, I still can't get the console app to run....
... View more
08-15-2024
08:51 AM
|
0
|
0
|
593
|
|
POST
|
I ran into the exact same issues. Access won't support joins on "long text"/"memo" fields. I used to update attributes of feature classes (i.e., a shape field was present) very frequently. That is hard (maybe impossible?) to do in Access/ODBC because the libraries to handle geometries are not installed. It's probably moot to be spending more time on typing this. I think it's pretty clear that this ship has sailed...... I've been using "Personal ArcSDE" on SQL express for SQL access to my data. It helps alleviate a lot of this pain, but it's not perfect. And AFAIK, you still cant create a new geodatabase in this environment in Pro. You must use ArcCatalog. It's free (at least for now while it's available), but you're limited to 5 read connections and 1 edit connection. That makes it hard to run geoprocessing models and examine the output at the same time.
... View more
08-08-2024
06:13 AM
|
0
|
0
|
2246
|
|
POST
|
I'm also experiencing this on 3.0.3 as well. I'm using query layers to display polygons as points SELECT FILENUM, (sde.st_centroid (SHAPE)) AS SHAPE FROM MY_FEATURE_CLASS Pro version 3.3.1 is available, but we can't upgrade due to a compatibility issue with our enterprise geodatabase. I hope this is fixed in 3.3.1. The bug documentation doesn't mention a resolution.
... View more
07-19-2024
12:36 PM
|
0
|
0
|
1007
|
|
POST
|
I just started having similar issues today (6/4/2024). I've been intermittently developing a custom app using version 4.29 for a couple of months now. Users can click/tap a bus stop that is going to be discontinued. This click opens a popup that tells them where the closest alternative stop is - and it features a button that says "show me where". When they click the button, I used map animations to zoom to the alternative stop. Once the animation ends, a pop up opens on the alternative stop that displays more information. Because most bus users will not be using a laptop nor desktop, I've been testing this functionality in Chrome and Firefox on my Android (Galaxy S20 Ultra) pretty regularly. I haven't had many problems at all. Then this morning I added a few more feature layers to the map and changed the base map png (not vector) tiles that are served from our county's ArcGIS Server. I tested things a number of times on Chrome on my desktop and didn't notice any issues. But when I tested it on Chrome on my phone, I saw some flickering when the first pop up is displayed. It was weird and a little annoying, but the app is still usable. But now when I click the 'show me where' button, the map zooms to the alternative stop, the pop-up displays and the map goes completely blank. I also can't interact with the map at all until I close the popup which is 'docked' on the bottom part of the map. Since the original poster mentioned that he was using Edge on Android, I installed Edge on my phone for the first time just now. The flickering is more pronounced on Edge than it is on Chrome. And the map goes blank when the second pop-up appears, just like Chrome. When I change (downgrade) from the JS API from version 4.29 to 4.28, (note the 8): -- Chrome (Android): the flickering seemed to be present the first few times I loaded the map, but it appears to be gone now. The map does NOT go blank when the second pop-up appears. My app is usable again! -- Edge (Android): the flickering is more frequent than Chrome. The map does NOT go blank when the second pop up appears. It's a little annoying but my app is usable. Additional notes: I did not experience any issues on my Windows 11 Desktop using Chrome, Edge and Firefox. When testing on these browsers, I opened the Dev panels and simulated the app on phone sized screens. I also didn't have any problems with Firefox on my phone. Browser versions/builds on my phone (none are development or beta versions, as far as I can tell): Edge: 125.0.2535.72 Chrome: 125.0.6422.146. According to this site, version 125.0.6422.140 was released on 5/30/2024. I don't think that I tested my app between then and today (6/6/2024), so it seems plausible that this Chrome release may have caused the issue. Firefox: 122.0 (Build #2015998391) At least my web app is working. I doubt many people are using Edge on Android, so my level of concern is not super high. I hope this information helps.
... View more
06-04-2024
01:26 PM
|
0
|
1
|
657
|
|
POST
|
I remember running across some examples of how to display blinking/flashing/pulsing point symbols in the ArcGIS JavaScript API v3.x. I'm currently working on a new map and I want to use the most recent version of JS to ensure the longevity of this map. I've done extensive searches for an example in 4.x but I keep coming up short. The point symbols don't necessarily need to blink, flash or pulse. I'm mostly looking for a way to make single point really stand out in a sea of other densely spaced points. My map already zooms to the point using the 4.x ViewAnimation. Also, the point that satisfies my query is highlighted in default teal selection symbol. But it's still pretty hard to notice on small mobile phone screens - this map will mostly be used on phones. I'm open to suggestions. I'm hoping to keep it simple. Including the code to pull this off would be appreciated. Thanks in advance!
... View more
05-02-2024
01:40 PM
|
0
|
1
|
1803
|
|
POST
|
This strikes me as pretty crazy as well. I think the functionality should allow you to create the feature, then set the attributes (including the required domain(s)), then save edits. If the attributes don't meet the validation rules, then Pro should refuse saving the edit until the needed value is supplied. You can't change the attributes before the feature is created! If you have multiple domains on multiple fields, then your editing template would have to be very long to accommodate every possible option. Maybe I'm missing something or misunderstanding the problem, but pigeonholing us into this situation doesn't make sense. In my case, the feature class is stored in SDE (Enterprise Geodatabase) and has map services pointed at it. So I can't change the schema to allow nulls or set a default value without disabling the map service. The link to the help file that @CarsonG suggested did allow me to disable the validation. I wish that this setting was available at the project level (allow this on some Pro projects, not the others) or at the feature class level within a project. This validation could be helpful on feature classes with only one domain.
... View more
12-19-2023
10:30 AM
|
3
|
0
|
3043
|
|
IDEA
|
Thanks for the reply, Scott. My steps are 1) click the Edges "tab" on the reshape edge tool 2) activate the "select one or more edges" tool 3) select the edge 4) click the "Reshape" button 5) start my cut/sketch. If I zoom in or out, I lose the sketch about 85% of the time. Sometimes it doesn't happen. My co-worker is experiencing the same while we are simultaneously editing the same versioned feature class that hosted on Oracle enterprise geodatabase. Did you run your tests against an Enterprise GDB? Specifically Oracle?
... View more
09-21-2023
05:47 AM
|
0
|
0
|
1445
|
|
IDEA
|
Also, I sometimes run into the 'reshape failed' message after I've completed my sketch when using the Reshape Topology Edge tool - while editing a Topology. I typically understand why the sketch failed in most circumstances. But it would be nice to have the option to continue the sketch to fix the failed edit - a lot like how the 'split polygon' tool works. When a split fails, Pro asks the user if they want to continue or discard their sketch. The reshape tool should do this too.
... View more
09-18-2023
09:14 AM
|
2
|
5
|
1546
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-02-2023 06:12 AM | |
| 1 | 12-23-2024 09:27 AM | |
| 1 | 11-19-2024 12:32 PM | |
| 1 | 08-16-2024 08:01 AM | |
| 1 | 10-24-2024 12:02 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|