|
POST
|
Thanks Joshua, this was a GPKG created from QGIS. Workflow-wise, we have both QGIS and ArcGIS Pro and if someone is working in QGIS they're generally using GPKG for their file containers, and if they're in Pro, they're using FGDB. The thing I'm trying to solve is crawling a large SAN with both GPKG and FGDB, and discovering/visualizing the extents of various holdings. Either way, helpful pointers - I'll give it a shot and report back.
... View more
06-03-2020
02:43 PM
|
0
|
5
|
2867
|
|
POST
|
import arcpy
import os
gpkg = r"C:\Data\georgia.gpkg"
desc = arcpy.Describe(gpkg)
print(desc.dataType)
print(desc.workspaceType) Result: Workspace
LocalDatabase walk = arcpy.da.Walk(gpkg)
for path, names, filenames in walk:
for fname in filenames:
d = arcpy.Describe(os.path.join(path, fname))
print(fname, d.dataType) Result: main.ga_admin FeatureClass
main.ga_highway FeatureClass
main.ga_natural FeatureClass
main.ga_poi FeatureClass
main.ga_water FeatureClass But if I add... for path, names, filenames in walk:
for fname in filenames:
d = arcpy.Describe(os.path.join(path, fname))
print(fname, d.dataType)
print(f"Extent of feature class: {d.extent.XMin}, {d.extent.YMin}, {d.extent.XMax}, {d.extent.YMax}")
print(d.extent) # sanity check Result: main.ga_admin FeatureClass
Extent of feature class: nan, nan, nan, nan
nan nan nan nan NaN NaN NaN NaN
main.ga_highway FeatureClass
Extent of feature class: nan, nan, nan, nan
nan nan nan nan NaN NaN NaN NaN
main.ga_natural FeatureClass
Extent of feature class: nan, nan, nan, nan
nan nan nan nan NaN NaN NaN NaN
main.ga_poi FeatureClass
Extent of feature class: nan, nan, nan, nan
nan nan nan nan NaN NaN NaN NaN
main.ga_water FeatureClass
Extent of feature class: nan, nan, nan, nan
nan nan nan nan NaN NaN NaN NaN No extent. However, if I load this content in ArcGIS Pro, it calculates the extent correctly. How do I get the extent of layers in a geopackage?
... View more
06-03-2020
10:03 AM
|
0
|
7
|
2968
|
|
POST
|
Awesome Dan, that worked! Thanks for the fast reply.
... View more
06-02-2020
04:28 PM
|
0
|
0
|
1288
|
|
POST
|
I have a point cloud. I would like to load it all. As you can see in the below recording, ArcGIS Pro (2.5.1) is doing something under the hood to restrict the number of dots being drawn. I'm using a .zlas file here, but the same behavior occurs with uncompressed data (.las).
... View more
06-02-2020
03:51 PM
|
0
|
2
|
1366
|
|
BLOG
|
The GIS format most often compared with GeoPackage is the Esri-defined shapefile. I have not seen GeoPackage compared to a shapefile. GeoPackage is more of an up-and-coming competitor to the File Geodatabase. While GeoPackage is still somewhat immature as a standard (in terms of implementation... QGIS being further along in its implementation), some of the limitations are ArcGIS Pro limitations (editing) while others are inherent to the leaner core spec (domains and subtypes). However, don't go as far as thinking it is a full-blown GIS workspace Not to be pedantic! but.. import arcpy
gpkg = r"C:\Data\db.gpkg"
desc = arcpy.Describe(gpkg)
if hasattr(desc, 'dataType'):
print(desc.dataType)
>>Workspace Think of GeoPackage as a sharing format Eh, not really unless a geospatial professional never, ever, ever leaves the Esri reservation for anything, ever (which is not good for anyone). It should be pointed out that GeoPackage offers some very important efficiencies over the File Geodatabase. For example GeoPackage supports views, which means that you can quickly return results through SQL statements without having to create new data. i.e. you can do this buffer(geom, 1000) as geom instead of having to run a Buffer tool and place an output somewhere. Used properly, this can eclipse the expand issue brought up in the article and offer a considerable performance advantage over the legacy FGDB container. That said, I use both formats for processing and it all depends on the use case. Generally if I need to process a big table of data and I know I can achieve the result through SQL, I will do it in GPKG. If I need to daisy chain together a set of ArcGIS tools to get a result, I'll go with File Geodatabase and do as much intermediate processing as possible in memory.
... View more
06-02-2020
08:02 AM
|
5
|
0
|
1491
|
|
POST
|
Sorry for the vague title but not sure how else to put this. I'm on ArcGIS Pro 2.5. I've been moving mountains to get our org to adopt ArcGIS Pro and for the most part it's been great. However I have experienced nothing but tears of frustration and ashes and wasted lies in dealing with the temporal filtering functionality in ArcGIS Pro. It is really... not good. But I am not the sharpest lightbulb so it could be something I'm doing wrong. I figured I'd ask here before I file a bug. I've got a single feature class (polylines); that feature class has a field called "temporal". The values of that field are date-time stamps. I go to the feature class properties and enable Time. Each feature has a single time field. I set the time notation (Time Format) to YYYY-MM-DDThh:mm:ss and the Time Extent then populates automatically. All is good! The data is not a live feed, set to UTC, no offset, hit OK. This is where it gets crazy confusing. And I'm sorry but the whole Time tab UI needs to be torn down and reimagined because it's kind of a mess. Anyway. I have the Time filtering button (enabled). Then I have the "Current Time" block. It is set to start time enabled, with the start time locked (as I want to view the data cumulatively as I drag the time slider end widget). According to the documentation this is the overall "map" time. So I set it to the same thing as my one feature layer. There is a Span field there that seems populated with some random value that has no relationship with my feature class (which is the only layer loaded). Under Full Extent I set it to my feature class with the time. It automatically populates the Start and the End. Set the time zone to UTC. Aaaaaand.... nothing shows up. I drag the slider to cover periods where I know there is data, and nothing shows up (on the map or in attribute table). I have tried every single combination of options in the Current Time window (which is already bad from a UI/UX perspective). I've tried Use Time Span, manually set Step Intervals, or a fixed Number of Steps. I've tried Time Snapping and no Time Snapping. In fact at the end I just open up the slider all the way, to the full extent, and nothing draws. I've tried manually modifying the Span field under Current Time. Still nothing. The features do not draw when filtered by time even though the layer properties recognize the temporal value without issue. I've checked all time fields, there are no erroneous or malformed values or geometry. I tried creating a new feature class of points, and that didn't work either, so I am thinking there is a bug with 2.5's time manager. Thoughts?
... View more
04-16-2020
12:16 PM
|
0
|
0
|
470
|
|
IDEA
|
Hi Marco! I have messed with Virtualbox - I do have a separate linux server at home that I have postgres/postgis running on. I use Pro on a Windows laptop to connect to it and try stuff. It does kind of work but postgis support is still, well you can tell Esri is kind of dragging their heels on it. But it is getting better. At work we have a Cisco 480ML pushing 8x Nvidia Tesla nvme GPUs, running RHEL7; the way we use it is having VMWare running 4x windows instances as a cluster with 2x gpus assigned to each, but we are exploring NVLink/NVSwitch underneath that so we only have to have one VM that ArcGIS Pro can offload jobs to and access the entire range of resources at once.
... View more
04-16-2020
07:41 AM
|
0
|
0
|
1960
|
|
IDEA
|
Update: In an attempt to build a file-based gazetteer for LocateXT, I imported Geonames populated places layer, which created over 7 million entries in the list. When I went to run it, the utility then wanted me to check a box for "exact match" or "fuzzy match" for EVERY SINGLE LOCATION. There was no bulk action option presented. Again, this is insane. Please, please fix this.
... View more
02-06-2020
09:16 AM
|
1
|
0
|
2218
|
|
IDEA
|
The LocateXT documentation says this: When custom locations are turned on, content in the documents that are being scanned is compared against the place names specified in the custom locations file. By default, the content has to exactly match one of the specified place names to create a location in the output feature class. This approach is deeply, deeply flawed. The entire point of using something like LocateXT is to crawl information for explicit and implicit locations so that a human doesn't have to read them in the first place. Under this, a person would have to read all the content, and enter a place name-coordinate pair for each non-coordinate location in a "custom locations file." This is insane! This is exactly what gazetteers exist for. This is precisely what Geonames and OSM Nominatim exist for. So this idea is for LocateXT to support gazetteer sources out of the box, including an OSM Nominatim service so that plain text names can be checked (completely or fuzzily) against Nominatim or other custom gazetteer sources. I just bought 12 of these things so I'll have more ideas as we go along but for now, this is baseline type stuff that is required for the extension to be useful.
... View more
02-05-2020
02:06 PM
|
4
|
5
|
2326
|
|
IDEA
|
I would love to see ArcGIS Pro for Linux. Data science typically is done in some sort of Debian derivative (e.g., Ubuntu) and it would be awesome to be able to pair Pro/arcpy natively with something like rapids.
... View more
01-18-2020
10:11 AM
|
1
|
1
|
1960
|
|
IDEA
|
I re-stumbled on this idea today in my feed. At the end of 2019 it's still a great idea and Esri still hasn't addressed it. I've concluded this is basically a carnival-style money grab by Esri - change my mind. Look at how it's laid out. You have to buy credits in bundles - whether you use them or not. It's like being at some of the newer fairs. Here, this ride costs 4 tickets! But tickets can only be bought in bundles of 20 for $20. Oh, and tickets have no cash value so it's not like you can cash them in on the way out. So when the vast majority of people buy the bundle of 20 and walk out with 2-3 tickets left in their pocket, that is just pure profit. You can't use those tickets at next year's fair, just like Esri's credits expire. If Esri did away with credits, it would be replaced by micro-transactions. But that would dig into "pure" profit in the sense that there are no new bundles of potentially latent credits on the books. It's not-identical-but-very-similar to the micro-transaction structure in games (2000 gems or whatever for 49.99). It is more advantageous than placing a dollar figure on operations and then charging for that, and only that. I have a feeling it's related to the hot-dog/bun conspiracy: 8 hot dogs in a pack, but only 6 buns in a pack, which requires you to buy 6 hot dog packs and 8 bun packs to make it all work out evenly
... View more
11-29-2019
11:38 AM
|
2
|
0
|
3202
|
|
IDEA
|
KML/KMZ is a common format for sharing geopositioned 3D models. My office publishes a large amount of this content. Some of it we create; some we receive from partners - so simply removing KML/KMZ from the business process is not a possibility. The problem is that importing and publishing KML/KMZ 3D models is tedious, but I know it could be made much easier with only a few simple changes on Esri's part! Currently, when a KMZ model is loaded into a 3D scene in ArcGIS Pro (imported into a 3D multipatch), the analyst must go through a process of determining the objective elevation of the multipatch, and then perform a manual move by editing the Z-value. If this is not done prior to publication as a 3D web scene in Portal, the service will render the model at a 0/MSL altitude, causing it to draw "under" the elevation source in the web scene. So the current, bad workflow is: Analyst imports 3D KMZ model into ArcGIS Pro local/global 3D scene as multipatch. Analyst asks, huh, where's my model? Analyst turns off the elevation source and sees, there's my model. Analyst gets center coord of model. Analyst turns back on the elevation layer. Analyst selects a location to gather the elevation measurement. Analyst edits the multipatch. Analyst moves the multipatch to an absolute z-value. Analyst types in the value gathered 3 steps previously. Analyst saves the multipatch. Analyst sees, now the model correctly renders on the loaded elevation source. Analyst shares content as a web scene. This process could be made so much better. I would like to see the following functionality: if a model is loaded in Pro and its elevation setting is set to "on the Ground"; then publishing that model as a web scene should cause the multipatch to inherit whatever that elevation value is. So the better workflow, broken down, would look like this: Analyst imports 3D KMZ model into ArcGIS Pro local/global 3D scene as a multipatch. (currently works) Analyst sets properties of multipatch to clamp to loaded elevation source (Ground). (currently works, tho it needs a refresh) Analyst shares workspace as 3D web scene, which automatically sets the model's elevation value upon publication. (currently not available).
... View more
11-25-2019
08:40 AM
|
3
|
1
|
2279
|
|
IDEA
|
KML/KMZ is a common format for sharing geopositioned 3D models. My office publishes a large amount of this content. Some of it we create; some we receive from partners - so simply removing KML/KMZ from the business process is not a possibility. The problem is that importing and publishing KML/KMZ 3D models is tedious, but I know it could be made much easier with only a few simple changes on Esri's part! Currently, when a KMZ model is loaded into a 3D scene in ArcGIS Pro (imported into a 3D multipatch), the analyst must go through a process of determining the objective elevation of the multipatch, and then perform a manual move by editing the Z-value. If this is not done prior to publication as a 3D web scene in Portal, the service will render the model at a 0/MSL altitude, causing it to draw "under" the elevation source in the web scene. So the current, bad workflow is: Analyst imports 3D KMZ model into ArcGIS Pro local/global 3D scene as multipatch. Analyst asks, huh, where's my model? Analyst turns off the elevation source and sees, there's my model. Analyst gets center coord of model. Analyst turns back on the elevation layer. Analyst selects a location to gather the elevation measurement. Analyst edits the multipatch. Analyst moves the multipatch to an absolute z-value. Analyst types in the value gathered 3 steps previously. Analyst saves the multipatch. Analyst sees, now the model correctly renders on the loaded elevation source. Analyst shares content as a web scene. This process could be made so much better. I would like to see the following functionality: if a model is loaded in Pro and its elevation setting is set to "on the Ground"; then publishing that model as a web scene should cause the multipatch to inherit whatever that elevation value is. So the better workflow, broken down, would look like this: Analyst imports 3D KMZ model into ArcGIS Pro local/global 3D scene as a multipatch. (currently works) Analyst sets properties of multipatch to clamp to loaded elevation source (Ground). (currently works, tho it needs a refresh) Analyst shares workspace as 3D web scene, which automatically sets the model's elevation value upon publication. (currently not available).
... View more
11-25-2019
08:40 AM
|
2
|
0
|
683
|
|
IDEA
|
Add me to the long list of folks who thought this was a thing, and arrived to this Idea after finding it is not, in fact, a thing.
... View more
08-20-2019
02:29 PM
|
3
|
0
|
3062
|
|
POST
|
The Extent geoprocessing environment setting documentation here: https://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/output-extent.htm lists "Same as Display" under the dialog syntax, but not under the scripting syntax. I am building a script tool that requires "Same as Display" to be set as a default. Could someone share a snippet of code that demonstrates how I would set arcpy.env.extent to get the same effect as setting "Same as Display" in the dialog window?
... View more
08-02-2019
08:55 AM
|
0
|
2
|
1638
|
| Title | Kudos | Posted |
|---|---|---|
| 4 | 02-03-2025 01:29 PM | |
| 1 | 01-31-2019 11:15 AM | |
| 1 | 03-29-2022 12:18 PM | |
| 1 | 05-21-2024 12:32 PM | |
| 1 | 05-21-2024 01:03 PM |