Tag Info

New answers tagged

0

It seems that the shapefiles are locked. In ArcGis 10.x if a shapefile is opened (in ArcMap or ArcCatalog..), ArcGis automatically creates a file with the same name and pcname.numbers.sr.lock This prevent data as shapefiles to be edited if opened in multiple mxds or ArcCatalog in example. Try to open a new and empty mxd then run the merge between the two, ...


2

If you're having issues with shapefile names, a quick script before your merge to find the culprits and make a new copy of the shapefiles will fix the problem. Iterate through each shapefile, test its name, and copy if needed. Merge, then delete whatever new shapefiles you created. Something like this (untested): import arcpy import os inFeaturesToMerge = ...


6

The problem is with the dash (-) in the shapefile name. This restriction is from geoprocessing tool and not the shapefile name since you can have dashes in your shapefile name. Geoprocessing methods exist that allow you to validate table and field names. Consider using either the ValidateTableName or ValidateFieldName function to ensure your name is valid


1

The message is telling you that Dataset E:\GIS\Data\Final already exists. However the output from Merge should be a feature class or table instead of a folder name so as a test try setting: FinaloutLocation = "E:\\GIS\\Data\\Final\\test.shp"


3

I am going to assume these xyz files have the same headers as the first line. If there is no header in your xyz files, delete the lines indicated with #remove me if no header in the code below. Place your xyz files in the same directory. Then you can iterate through the files with os.listdir. From there use open to open each file and write each line into a ...


4

If the XYZ files are just delineated text files, you could just copy/paste in notepad or some such editor. Six files doesn't seem like many. Sometimes you don't need to automate... However, I think there are a few options that won't require ArcPy. Things that come to mind: Load the data into a new feature class or table. Try the append tool. Try ...


1

Have you tried unionSpatialPolygons() from the maptools package?


0

I think that versioning is really what you need. An alternative way is to manually update a field value to know which are the new features Without versioning, the solution depends on the type of feature. : For points, you can run spatial join then select by attribute the points that are different in the old and new datasets (different attributes and/or ...


0

I think you are looking to create multipart features. The Merge tool creates multipart feature (despite what the visual on the help page shows, the polygons' line will be maintained if they don't overlap). you can also try to Merge through the Editor toolbar. You would to build a python script to automate this or try the iterator tools in model builder.


0

If I am understanding correctly, you want to create a multi part polygon based on attributes where the lines of contiguous polygons don't get dissolved/removed? If so, I don't know if that is possible. Keep in mind that parts in a multipart polygon are spatially separated. They can touch each other at vertices, but they cannot share edges or overlap. ...


0

It seems like you are looking for the join/relate features after reading the question. You can read more about joining and relating tables to get a better understanding of how to operate these tools and what these tools can do so you can determine which solution will work best for you. Also if you haven't looked at it the Union tool offers a way to combine ...



Top 50 recent answers are included