![]() ![]() Keep in mind that different projections have different spatial properties and distortions. You can only calculate the area, length, or perimeter of features if the coordinate system being used is projected. The tool can calculate coordinate values, lengths, and areas, depending on the geometry of the input layer. The Calculate Geometry tool allows you to access the geometry of the features in a layer. MinX, minY, maxX, maxY = row, row, row, rowĪ("fishnet_".Calculating area, length, and other geometric properties With arcpy.da.SearchCursor(in_features, "EXT_MIN_X", "EXT_MIN_Y", # Use Search Cursor to walk through each feature and generate grids # Generate the extent coordinates using Add Geometry Properties toolĪ(in_features, properties, length_unit, Annotation is treated as a polygon feature class.Ī = r"C:\data\City.gdb"Ī = arcpy.Describe("roads").spatialReference This tool works with point, multipoint, polyline, polygon, and annotation feature classes. ![]() If the input features have a selection, only the selected features will have values calculated in the added fields all other features will have null values. If you edit the features, you'll need to run this tool again to update the field values. The values in these fields are not automatically recalculated after edits. You can overwrite the field values, or delete or rename the fields. ![]() The attribute fields added by this tool are similar to any fields that you can add to a feature layer. If a coordinate system is specified, the length and area calculations will be in the units of that coordinate system unless different units are selected in the Length Unit and Area Unit parameters. This field is only added if the input features are m-enabled. This field is only added if the input features are z-enabled. PNT_COUNT-The number of points composing the feature. PERIM_GEO-The shape-preserving geodesic length of the polygon perimeter or border. PERIMETER-The length of the polygon perimeter or border. PART_COUNT-The number of parts composing the feature. This field is only added if the input features are z-enabled.ĮND_M-The m-coordinate of the last point of the line or polygon border. This field is only added if the input features are m-enabled.ĮND_X-The x-coordinate of the last point of the line or polygon border.ĮND_Y-The y-coordinate of the last point of the line or polygon border.ĮND_Z-The z-coordinate of the last point of the line or polygon border. MID_M-The m-coordinate of the point halfway along the length of the line or polygon border. MID_Z-The z-coordinate of the point halfway along the length of the line or polygon border. MID_Y-The y-coordinate of the point halfway along the length of the line or polygon border. MID_X-The x-coordinate of the point halfway along the length of the line or polygon border. START_M-The m-coordinate of the first point of the line or polygon border. ![]() START_Z-The z-coordinate of the first point of the line or polygon border. START_Y-The y-coordinate of the first point of the line or polygon border. START_X-The x-coordinate of the first point of the line or polygon border. Values range from 0 to 360, with 0 meaning north, 90 east, 180 south, and 270 west. LENGTH_GEO-The shape-preserving geodesic length of the line.īEARING-The start-to-end bearing of the line. This field is only added if the input features are m-enabled.ĮXT_MIN_X-The minimum x-coordinate of the feature.ĮXT_MIN_Y-The minimum y-coordinate of the feature.ĮXT_MAX_X-The maximum x-coordinate of the feature.ĮXT_MAX_Y-The maximum y-coordinate of the feature. INSIDE_M-The m-coordinate of a central point inside or on the input feature. INSIDE_Z-The z-coordinate of a central point inside or on the input feature. INSIDE_Y-The y-coordinate of a central point inside or on the input feature. INSIDE_X-The x-coordinate of a central point inside or on the input feature. This field is only added if the input features are z-enabled.ĬENTROID_M-The m-coordinate of the centroid point. AREA_GEO-The shape-preserving geodesic area of the polygon.ĬENTROID_X-The x-coordinate of the centroid point.ĬENTROID_Y-The y-coordinate of the centroid point.ĬENTROID_Z-The z-coordinate of the centroid point. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |