Spatially Enabled Data Frames for Spatial Analysis

214
1
09-11-2019 06:21 PM
NathanHeickLACSD
Occasional Contributor III

I am interested in the possibility of using SEDFs for doing unions and intersections of point geometries and selecting point geometries completely within line geometries.  I can do this with normal means, but I was hoping I could do it with SEDFs faster and more concisely.  I am still evaluating that.  I just wanted to know if you can do these operations with SEDFs.  Do the spatial columns contain normal geometry objects?  Can you have multiple shape columns on a single data frame?  If not, I will go back to my original plan of using geoprocessing tools, cursors, and sets.

Thanks,

Nathan

0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

If you examine the code, arcpy or shapely or python or all.  See line 123 on

C:\YourArcGISProInstallPath\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\geometry\_types.py

If you have Pro installed, it will use what is available (arcpy, shapely, pure python... depends).  Lots of json stuff, but the code is pretty easy to follow.  Some are pure python implementations (eg convex hull).  Worth a look through the code base, but if you are looking something miraculously different then you might be disappointed. 

It isn't so much what is offered, but where it can be used and jupyter notebook and jupyter lab do have some interesting stuff.  I do find pandas a bit of a bloat when a lot of the functionality can be more readily implemented in numpy, but it definitely offers a good introduction to integrating commercial and open source analysis.  It is generally a well-supported package geared to particular uses.

0 Kudos