Question

How to split a shape file by count

  • 8 December 2021
  • 4 replies
  • 8 views

I want to split my shape file to 6 parts. The count is aprox 600000. How to do this using if condition. Pls guide me


4 replies

Userlevel 5
Badge +25

Do the parts have to be geographically contiguous?

Do the parts have to be geographically contiguous?

no i just wanted to divide this huge shape file to smaller parts. And just now i found how to do it by writing conditions. Thanks for your response.

 

Userlevel 5
Badge +29

I'd suggest that to split a large spatial data set, you tile it. As @Hans van der Maarel​ alluded to, you may not need it to be geographicalyl contiguous, but there are massive benefits of having the data in a constrained spatial extent

Badge +2

@Abinash Rout​ You can use the ModuloCounter - set the Count Maximum to six. Then out the output feature type, for the Shapefile Name, use the Text editor to add the count as a suffix:

myshapefile-@Value(_modulo_count)

 

Reply