Contents
Where to find the extents of a shapefile?
If you only need to do it once, you can find the extents in the Data Frame properties window. Then you can create a new shapefile, add a new feature, right-click and choose to manually enter the coordinates corresponding to the corners. Otherwise go with the script from @artwork21.
How to improve rendering performance of a very large shapefile?
How to improve rendering performance of a very large shapefile? I have a polygon shapefile that has a 100MB .dbf, and 500MB .shp file component. The reason it is so large, is that it is classified as a landbase for a whole district.
How do you add a shape to a data frame?
Load the add-in, then customize a tool bar (or create a new one) and add it. If you only need to do it once, you can find the extents in the Data Frame properties window. Then you can create a new shapefile, add a new feature, right-click and choose to manually enter the coordinates corresponding to the corners.
How big is a polygon shapefile in ArcGIS?
I have a polygon shapefile that has a 100MB .dbf, and 500MB .shp file component. The reason it is so large, is that it is classified as a landbase for a whole district. Everytime I view the file in ArcCatalog, or ArcMap, and move the view window slightly, the entire file needs to redraw from scratch.
How to do a searchcursor on a shapefile?
Another way would be to do a SearchCursor () on the shapefile, then you can use row.shape.extent: rows = arcpy.SearchCursor (shapefileName) for row in rows: extent = row.shape.extent I just tried the Minimum Bounding Geometry (Envelope) (in Data Management) in ArcGIS 10 and it seems to do exactly the same, for all the fields.
Where can I get a shapefile for ArcMap?
You can download from https://github.com/nickpeihl/mapindextool. Just copy your mxd (s) into a folder and run the tool on that folder. It will create a shapefile containing all the main extents of each mxd in that folder. This c# code could be used to build an add-in for Arcmap.
How to obtain extent of each polygon using ArcPy?
Obtaining extent of each polygon in shapefile using ArcPy? In ArcGIS 10 and Python I want to get the extent (xmax, ymax, xmin, ymin) info of each of the polygons in a shapefile. But I can’t seem to figure out how to get the same info for each row in the dataset. gives an error.