Skip to main content
Question

How to split a shape file by count


abinash

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

redgeographics
Celebrity
Forum|alt.badge.img+49

Do the parts have to be geographically contiguous?


abinash
  • Author
  • December 8, 2021
redgeographics wrote:

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.

 


hkingsbury
Celebrity
Forum|alt.badge.img+54
  • Celebrity
  • December 8, 2021

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


Forum|alt.badge.img+2
  • December 10, 2021

@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)

 


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