Contents
How does make feature layer work in ArcGIS?
In a model, the output variable of Make Feature Layer tool can be assigned a layer file from which to apply symbology to the layer being created. When the layer being created is returned as a model or script tool output parameter to a map, the symbology from the layer file is preserved but the label properties are not.
What’s the name of the new feature layer?
The input feature class or layer from which to make the new layer. Complex feature classes, such as annotation and dimensions, are not valid inputs to this tool. The name of the feature layer to be created.
How to get full path of layer selected?
There is a little bit shorter way to do this also. describe data objects have a catalogPath property which is the full path to the file. You could use arcpy.GetParameter (0) rather than arcpy.GetParameterAsText (0) as this will get the layer object rather than just a string with the layer name.
How to make a new feature layer in gdb?
For example, if the catalog path to a parcel is C:\\my.gdb\\feature_dataset\\fabric_str\\feature_class_name then omit fabric_str from the path. The input feature class or layer from which to make the new layer. Complex feature classes, such as annotation and dimensions, are not valid inputs to this tool.
Can a layer created in ArcCatalog be used in ArcMap?
Layers created in ArcCatalog cannot be used in ArcMap unless they are saved to a layer file using the Save To Layer File tool. If an SQL expression is used but returns nothing, the output will be empty.
Which is not valid input for feature layer?
Complex feature classes, such as annotation and dimensions, are not valid inputs to this tool. The name of the feature layer to be created. The newly created layer can be used as input to any geoprocessing tool that accepts a feature layer as input. An SQL expression used to select a subset of features.
How to make feature layer in desktop help?
The following stand-alone script demonstrates how to use MakeFeatureLayer to create a layer that can be used by SelectLayerByLocation and SelectLayerByAttribute tools. # Name: ExtractFeaturesByLocationAndAttribute.py # Description: Extracts features to a new feature class based on a location and an attribute query.