Hot answers tagged geometry
The easiest way to create a polygon from an envelope is to cast a new Polygon instance to ISegmentCollection and call the ISegmentCollection.SetRectangle method, passing the envelope as its argument.
Use the Repair Geometry tool - the polygon will be reset as clockwise direction. The Check Geometry documentation says: Incorrect ring ordering—The polygon is topologically simple, but its rings may not be oriented correctly (outer rings—clockwise, inner rings—counterclockwise). While the Repair Geometry documentation does not mention ...
I would do this using the Create Fishnet tool wrapped in a Python script tool that uses Feature Sets to request the two coordinates. If you are using ArcGIS for Desktop 10.1 or later then I would recommend doing this as a Python Add-in instead.
Let say that this view is called grade_geom_table SELECT wkb_geometry, grade_count FROM ng_schema.grade_count_report [sql.where] order by grade_count asc The following query will return you the lowest grade_count with the biggest area: SELECT wkb_geometry FROM grade_geom_table ORDER BY grade_count ASC, ST_Area(wkb_geometry) DESC LIMIT 1 Put things ...
Only top voted, non community-wiki answers of a minimum length are eligible