Tag Info

New answers tagged

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 ...


0

Create Mosaic dataset,NOT MOSAIC TO NEW RASTER. Use it as input, it will work as single raster


0

I Know you've already accepted a answer but for people still looking for this, here's one query i wrote SELECT ENVELOPE( GEOMFROMTEXT( CONCAT( 'MULTIPOLYGON((', GROUP_CONCAT( TRIM( TRAILING ')' FROM SUBSTR( ASTEXT( object.polygon ) , 9 ) ) , ')' ) , '))' ) ) ) AS POLYGON FROM object This give's you the Minimal bounding rectangle for a row containing ...


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.)


0

The circle geometry (a center with a radius) is not a supported by the WKT format. Your best chance is to transofrm your Circle geometry in an approximate Polygon with the circular function


0

So, just to get this clear:) When in doubt if your single polygon feature class contains self-overlapping polygons, and when this constitutes an error in your final product, you could run the intersect tool. I didn't know that the tool itself could handle a single input, but it turned out that it works in precisely the same way which it would have done when ...


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, ...



Top 50 recent answers are included