Tag Info

Hot answers tagged

6

The Geometry.within() method only accepts other Geometry objects -- in your case, it has to be a Polygon. It doesn't know what to do with a feature class, so I would suggest dissolving that feature class into one containing a single polygon, and then access the Geometry object with this: urban_area_geom = [r[0] for r in ...


4

We rarely used the Toolbox within ArcGIS 10.x. The problem was with several bugs in the Toolbox's Python script. We have fixed the problems and now it works with ArcGIS 10.x. If you need the fixed toolbox, do not hesitate to contact me and I will send it. (I am one of the authors.)


2

This is complete working code (for what it's worth), one of the first arcpy tools I translated from 9.3 so it's still a little clunky.: import sys, os, string, arcpy InFolder = sys.argv[1] OutCoSys = sys.argv[2] ShapeName = sys.argv[3] #ShapeName = "JustFlightLinesNew.shp" ShapePath = InFolder ShapeFile = "%s\\%s.shp" % (ShapePath,ShapeName) if ...


2

If you want to do it based on a field, you can do this in QGIS from the menu: Vector-->Geometry Tools-->Singleparts to Multipart (requires at least two poylgons to share an attribute that you specify). There is a more direct equivalent to ST_Multi in OGR. I didn't find a way to access this specific OGR functionality through QGIS, but that could be done ...


2

Might want to try HausdorffDistance. Suited for this kind of question. SELECT ST_HausdorffDistance('0101000020110F0000FE546AD2413E5EC16D56617C93C74FC1'::geometry, '0101000020110F00009D7E6384413E5EC10185DD7F93C74FC1'::geometry); Detailed here: http://postgis.net/docs/ST_HausdorffDistance.html And as explained at /wiki/Hausdorff_distance: Informally, ...



Only top voted, non community-wiki answers of a minimum length are eligible