New answers tagged

0

It's difficult to use one unic tool to get this result. You could merge layers and realize juste one geographic request and later, split your result....but it's not the beter way and it's time consuming. It's possible to get a result from many layers through many solutions : SQL : Use postgis + Qgis to request layers (= table) and save results to ...


0

Since you say they have height I am assuming you have a field in your attribute table for Height or Z-Value. You would use the select by expression and assuming your Height Field is named ZVALUE, it would look like this "ZVALUE" > 0 This will select only polygons with a height above 0 (or all polygons with a height value) If you want to export out your ...


-1

I find the answer : Need to do MakeFeatureLayer_management dataFrame = arcpy.mapping.ListDataFrames(Mxd)[0] Layers=arcpy.mapping.ListLayers(Mxd, "", dataFrame)[0] for layer in dataFrame: Layers=arcpy.mapping.ListLayers(Mxd, "", dataFrame)[0] if Layers.name=="Signs": arcpy.MakeFeatureLayer_management(layer,"Signs_Shape_layer") ...


1

Your layer needs to refer to the layer in your MXD, not the path to the feature class. layer = "Layer In MXD" desc = arcpy.Describe(layer) selected = desc.FIDSet print (selected) desc.Fidset will return the ObjectIDs of the selected features mxd = arcpy.mapping.MapDocument("CURRENT") dataFrame = arcpy.mapping.ListDataFrames(mxd)[0] layers = ...


0

Create a new field in your feature class called "Acres". Open the Calculate Field tool. Select "Acres" as the field to calculate. In the expression section, put the following: "!shape.area@acres!". Use the "Select Layer By Attributes" tool to select features that are in your range. An express might look similar to this: "Acres" > 440 AND "Acres" ...


2

Copy the Python code below into Python console or run it from editor window. Using the active layer the script first finds all unique attribute combinations, and assigns the features to these groups. Field names, that should not be included in the groups, can be specified in list ignore_fields. Values in these fields are ignored, neither unique nor not. ...



Top 50 recent answers are included