![]() To project, the geometry must have a spatial reference, and not have an unknown coordinate system. Projects a geometry and optionally applies a geotransformation. PointFromAngleAndDistance (angle, distance, ) ![]() Shape type as one of the input geometries and is not equivalent to either of the input geometries. Indicates if the intersection of the two geometries has the same Geometry containing only the regions of overlap between theįor faster results, test if the two geometries are disjoint before calling intersect. The intersection of two geometries of the same shape type is a Different dimension values can be used to The getPart method is equivalent to indexing an object that is, obj.getPart(0) is equivalent to obj.Ĭonstructs a geometry that is the geometric intersection of If an index is not specified, an Array object containing an Array of Point objects for each geometry part is returned. Returns an Array object of Point objects for a particular part of the geometry if an index is specified. Returns the length of the feature using a measurement method. Returns the area of the feature using a measurement method. This is a 2D comparison only M and Z values are ignored.Ĭreates a new simplified geometry using a specified maximum offset Indicates if the base and comparison geometries are of the same shape type and define the If the geometries intersect, the minimum distance is 0.īoth geometries must have the same projection. The distance is in the units of the geometry's spatial reference. Returns the minimum distance between two geometries. Geometries intersect if disjoint returns False. Indicates if the base and comparison geometries share no points in common. ![]() The following illustration shows the results when the red polygon is the source geometry. If a geometry is not cut, the left geometry will be empty ( None).Ĭonstructs the geometry that is composed only of the region unique to theīase geometry but not part of the other geometry. Parts of the target polyline that do not intersect the cutting polyline are returned as part of the right of result for that input polyline. This classification is based on the orientation of the cutter line. Each piece is classified as left of or right of the cutter. When a polyline or polygon is cut, it is split where it intersects the cutter polyline. Splits this geometry into a part left of the cutting polyline, and a part right of it. The interior of the polygon which is not equivalent to the entire They share a polyline or a point (for vertical line) in common on Two polylines cross if they share only points in common, at least Indicates if the two geometries intersect in a geometry of a lesser Only True relationships are shown in this illustration.Ĭonstructs the geometry that is the minimal bounding polygon such that all outer Indicates if the base geometry contains the comparison geometry. Additionally, I have to say that I'm using ArcGIS pro 2.3 and can only hope that it works in other versions as well.Returns a tuple of angle and distance to a point or polygon.Ĭonstructs a polygon at a specified distance from the geometry.Ĭonstructs the intersection of the geometry and the specified extent. ![]() Unfortunately, since there is no arcpy documentation for multipatch objects I don't know if it always works but it did in the cases I was testing. Ic = arcpy.da.InsertCursor(out_name, + fields) # Create the output feature class (fields copied from the multipatch_layer)Īrcpy.CreateFeatureclass_management(out_path, out_name, 'POLYGON', multipatch_layer) Poly = row.difference(arcpy.Polygon(arcpy.Array(None))) # Option 2: Take the difference of multipatch with empty polygon -> converts it to polygon Poly = row.union(arcpy.Polygon(arcpy.Array(None))) # Option 1: Union the multipatch with an empty polygon -> converts it to polygon # If all elements are vertical, arcpy somehow returns the bounding box -> don't add these elements ![]() conversion to polygon yieds a partCount > 0) # At least one element has to be non-vertical for the results to be correct (i.e. # (except FID and Shape )įields = įor row in arcpy.da.SearchCursor(multipatch_layer, + fields): # Select all fields to be present in the output layer as well # Initialize the variables (choose your folder and names) For those who don't have 3D Analyst, here is the python code I'm using as a workaround. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |