Skip to main content
Question

How to create empty shape using an attribute as name


Hello there,

I need to create empty shape files, using an attribute as directories and files names.

For now I always have an object( with "NULL" attributes values) in each tables.

Any one have a solution ?

3 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • October 16, 2020

Is the schema always the same? If so, you could probably make an empty shapefile in arcgis or qgis and the use a filecopy writer to rename it.


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • October 16, 2020

If your schema's aren't identical, you can write the shapefiles you are currently creating to a temporary location then copy them and delete the features using arcpy to your final location


Thanks for answers !

I didn't know the filecopy writer. I'm looking on it and I guess that will be my solution. I'll try it this monday.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings