Tag Info

Hot answers tagged

2

I use PyCharm for a period and and it works great for me.


1

The first step is to dissolve the districts into a single polygon. If you have an advanced license you can use Polygon to Line to extract the boundary as a line. If you don't have advanced then you can create a line feature class, open it in ArcMap as well as the dissolved polygon, start editing on the line features then copy and paste the polygon into the ...


1

This situation is always confusing. There are two types of 'Layers' in arcpy. The feature layer, which you are creating, isn't the type you can add to a map. The other is the layer generated from the mapping module. This is the one you want. Instead of MakeFeatureLayer, try this: NewLayer = arcpy.mapping.Layer(r"W:\Source.lyr") Then you can perform ...


1

You should check, longName property of the layer to see whether it has backslashes or not: Here is the snippet: import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") for lyr in arcpy.mapping.ListLayers(mxd): if lyr.isGroupLayer == True: if lyr.longName.find('\\') == -1: print lyr.longName I hope it helps


1

Another illustrative documentation may be found here



Only top voted, non community-wiki answers of a minimum length are eligible