|
POST
|
I didn't know this was possible, nor have I tested it as it's not something I would use (I'd just use a plain py file to hold that sort of thing and import that) but this might help even though it's not simple: Importing Jupyter Notebooks as Modules
... View more
01-13-2025
07:35 PM
|
0
|
0
|
825
|
|
POST
|
Perhaps compare the compliance check results to the ArcGIS Pro Accessibility Conformance Report for your version.
... View more
12-13-2024
08:39 PM
|
1
|
0
|
553
|
|
IDEA
|
@MattWilkie3 that STAC works well for me in QGIS. I had to change the endpoint to just "https://datacube.services.geo.ca/stac/api/", not the full url listed in the link you posted (https://datacube.services.geo.ca/stac/api/search?collections=mrdem-30). I haven't tried in ArcGIS Pro though.
... View more
12-11-2024
12:41 AM
|
0
|
0
|
2121
|
|
POST
|
as @DanPatterson notes, you need to save the aprx. e.g. aprx.save() if are you trying to run that code in ArcGIS Pro with that aprx open, that won't work. When you open a project in Pro, it reads it into memory. Any changes you make to the underlying .aprx on disk will not be reflected in the current Pro session. Have you tried running the code, then opening the aprx in a new Pro session?
... View more
12-09-2024
04:39 PM
|
0
|
0
|
611
|
|
POST
|
Because when you are trying to use ms.pageRow.page_name_field, python is looking for an attribute in the pageRow object literally called page_name_field which does not exist. You can use python's getattr() function to dynamically evaluate the variable. E.g. pageName = getattr(ms.pageRow, page_name_field)
... View more
11-08-2024
09:28 PM
|
2
|
1
|
698
|
|
POST
|
I haven't tried and can't test at the moment but you may have ended up with an additional top level directory inside the zip/aptx that you shouldn't have. When you unzipped the original "Geoveg_oktober2024.aptx" you should have got a folder called "Geoveg_oktober2024". Once you've made the changes, don't compress the "Geoveg_oktober2024" folder or you'll get "Geoveg_oktober2024" as the top level directory inside the zip/aptx. Instead, go into that folder, select all the contents and compress those and rename the new zip Geoveg_oktober2024.aptx.
... View more
11-04-2024
04:15 PM
|
1
|
0
|
867
|
|
POST
|
Yes, Region Group then Lookup is how I've done this previously. Though to get area you'll need to multiply the count by pixel area (count * pixel width * pixel height), assuming your raster is in a projected CRS, not geographic.
... View more
10-30-2024
02:56 PM
|
1
|
0
|
812
|
|
POST
|
You haven't defined "in_layer". Try Make Feature Layer (Data Management). arcpy.management.XYTableToPoint(in_table, out_feature_class, x_field, y_field, {z_field}, {coordinate_system})
in_layer = arcpy.management.MakeFeatureLayer(out_feature_class, "Layer Name")[0]
arcpy.management.SelectLayerByLocation(in_layer, {overlap_type}, {select_features}, {search_distance}, {selection_type}, {invert_spatial_relationship}) Of course fill in {parameters} in curly braces in the above example.
... View more
10-22-2024
10:30 PM
|
1
|
0
|
1237
|
|
POST
|
GDAL can write an .aux.xml locally when accessing files from a location where the user does not have write permissions. This auxillary metadata contains the cached stats. This location is controlled by an environment variable or GDAL config option "GDAL_PAM_PROXY_DIR" I don't know if this actually is the way your statistics are being cached as ArcGIS may have it's own cache mechanism. Nor do I know if there's a default location in the ArcGIS environment . I can't check as I don't have ArcGIS access as I'm on leave from work currently. One way to check would be to see if ArcGIS sets a GDAL_PAM_PROXY_DIR env dir (or set the env var GDAL_PAM_PROXY_DIR yourself to a known directory before opening ArcGIS), then look for .aux.xml in there after calculating statistics.
... View more
10-09-2024
06:44 PM
|
0
|
0
|
1197
|
|
POST
|
For the encryption, some random thoughts: Don't. Protect IP with an opensource or proprietary licence instead. Write tools in compiled language, call from python. SAAS. Tools stored on a geoprocessing server. One big PYT. Have all modules separate from PYT for development and have a build step to combine all modules to PYT and encrypt. e.g. stickytape. Load modules from password protected zipfile, e.g. ArchiveImporter and zip-import Note I've never used any of those examples, they were just the first things I found with quick searches for existing implementations of my last two thoughts.
... View more
09-24-2024
08:57 PM
|
2
|
1
|
1816
|
|
POST
|
Your .xml file is a LandXML surface. If you have the 3D Analyst extension licensed, you could use the LandXML to TIN tool to import it.
... View more
09-12-2024
02:56 AM
|
0
|
0
|
3128
|
|
POST
|
The binary releases are deprecated, maybe they're broken as well? The readme and the installer doc suggest installing with pip. I'm not sure how well it would work with Pro's conda env, but perhaps something like the following which uses the --user flag might work? Can't test, no access to ArcGIS currently. C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe -m pip install pywin32 --user Alternatively, maybe clone arcgispro-py3 env and conda install to the cloned env?
... View more
08-28-2024
11:55 PM
|
1
|
1
|
1685
|
|
POST
|
I'm not sure what this loop is for, you haven't defined `data` anywhere, the `water_data` variable is a dict not a list/tuple and you don't use the `i` inside the loop. #define values for fields
for i in data: Try converting the `date_time` string to a `datetime` object. import requests
from datetime import datetime
usgs_water_api = "https://waterservices.usgs.gov/nwis/dv/?format=json&sites=14234800&siteStatus=all"
api_response = requests.get(usgs_water_api)
water_data = api_response.json()
date_time = water_data["value"]["timeSeries"][0]["values"][0]["value"][0]["dateTime"]
date_time = datetime.fromisoformat(date_time)
... View more
08-26-2024
04:04 PM
|
1
|
1
|
2393
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-30-2025 03:00 PM | |
| 1 | 06-10-2025 08:06 PM | |
| 5 | 05-20-2025 07:56 PM | |
| 1 | 05-04-2025 10:34 PM | |
| 5 | 04-22-2025 09:04 PM |