Quantcast
Viewing all articles
Browse latest Browse all 2341

New Post: ShapeFile.NumShapes returns incorrect value

Ok....I just did a test and I verified that it is a multipart geometry problem.

The Shapefile class is providing the correct number of shapes. In this particular case, it is one feature (shape) that consists of 870 parts, each part being a little polygon. So, the geoprocessing functions do not work correctly on multipart geometries. I verified this by converting the multipart shapefile into a single part shapefile. Voila!, the Shapefile.Clip method works correctly and the Shapefile.NumShapes gives the correct number of single parts.

This is what I was trying to determine from the beginning with my initial question: "Do the geoprocessing functions have any limitations?"

Please....from now on answer with, "YES - IT CANNOT HANDLE MULTI-PART GEOMETRIES"

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>