Hot answers tagged

6

Look into Symbol Level Drawing. From the accompanying screenshots, it looks to be the solution to your issue. Accessible via the Advanced button, within the Symbology section of Layer Properties.


2

I created three sample random point datasets - 10 features, 100k features, 1m features - and tested the following options Copy (arcpy.Copy_management()) Insert Cursor (arcpy.da.InsertCursor()) Feature Class to Feature Class (arcpy.FeatureClassToFeatureClass_conversion()) Copy Features (arcpy.CopyFeatures_management()) Here are the results: Copying 10 ...


2

As @Midavalo suggested, there is likely a small gap in your lines. Zoom in and see if all the lines are touching. It isn't surprising that this is happening on the edges of the extent of your lines feature class because internal lines would cross each other and close the shapes. But there is likely a gap where the lines don't touch at the edges. You can ...


2

You could also avoid arcpy all together: import os os.chdir(r'C:\Set_to_your_directory') substring = '2014' files = os.listdir(os.curdir) for file in files: if substring in file: file_new = file.replace("2014","2015") os.rename(file, file_new) This will replace "2014" with "2015" for any file in a folder. It is also possible to ...


2

You can search for a substring in a string using if (substring) in (string), and then use string.replace() to replace the value you find. import arcpy, os arcpy.env.workspace = r"d:\Temp\SE\RenShapes" fcs = arcpy.ListFeatureClasses("*.shp") for fc in fcs: if "2014" in fc: x = fc.replace("2014", "2015") arcpy.Rename_management(fc, x) ...


1

I haven't seen the drag and drop functionality you mention, I agree that would be nice. So I suppose to answer your question "can you drag and drop layers like in ArcGIS?" is no, not at the moment. But at the same time you don't always have to specify the full path to a shapefile via the path directory like you suggested above. You can still speed up ...


1

I would have thought using "union" rather than "intersection" would be better, as the grid layer would then contain the soil use polygons for each grid, rather than the soil use layer being split at the grid boundaries. But if you've calculated the percentages in your soil use layer, then you could use a simple join between the two layers then save the grid ...


1

Instead of continuing in the comments, I will summarize here. I think your answer is twofold. For the first way of dealing with this, see @Maksim 's answer above. Symbol Level Drawing is the way to go if you want items to be ordered on the map in a certain way. If you are looking to process data in a certain order, you will need to use an ORDER BY clause in ...


1

@FelixIP has the correct answer. My issue was that the dataset couldnot be processed on my perosnal workstation, with 8 GB of RAM. It required a powerstation with 128GB of RAM.



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