Skip to main content
Question

Can I split AND zip using the Shapefile Writer?

  • April 22, 2022
  • 1 reply
  • 78 views

Forum|alt.badge.img

I have a very large dataset that I usually split into 3+ pieces when I export to shapefile, then zip them up together. I'd like to use the shapefile writer to do both without setting feature thresholds (hi, FeatureCounter!) and using an external compression utility.

 

However, when I leave the Split Dataset... checked and check the Create Compressed Shapefile option, all that's in the SHZ is the last portion of the split data set (FILENAME_3.shp, etc.).

 

Can I use both? If so, what trick am I missing?

 

Shapefile haterz to the back - it's sadly what The People want.

1 reply

debbiatsafe
Safer
Forum|alt.badge.img+20

Hi @ret3​,

How do you want your output to be structured?

 

From your description, it sounds like you expect one zip file containing the split shapefile datasets (eg. FILE.zip containing FILE.shp, FILE_1.shp, etc.). If this is what you want as output, then you should disable Create Compressed Shapefile and add the name of the container zip file to as the value for the Destination Esri Shapefile Folder parameter.

 

When both Create Compressed Shapefile and Split Dataset are enabled, the expected output would be one .shz created for each split dataset (FILE.shz, FILE_1.shz, etc). Each .shz file containing only one shapefile dataset that matches the .shz name.

 

Note there is a bug when both Create Compressed Shapefile and Split Dataset are enabled. Only the last split dataset is created and the .shz file does not match the shapefile datatset it contains. I will be filing a ticket with our development team to fix this.

 

Edit: The incorrect behaviour when both Create Compressed Shapefile and Split Dataset are enabled has been fixed in 2022.1.


Reply


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