Skip to main content
Question

How to create empty shape using an attribute as name

  • October 16, 2020
  • 3 replies
  • 22 views

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 ?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

jdh
Contributor
Forum|alt.badge.img+40
  • 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+46
  • 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.