The maximum feature size is dependent upon available memory.
To calculate the memory required, you can use the following formula:
Number of points in the largest feature in the file |
X |
Number of objects to cache |
X |
8 (if no buffering is used) or 36 (if buffering is used) |
Cache size is set in pipObjectFileOpen
.
PIP_OPEN_LARGE_CACHE =
20 objects (20 MB)
PIP_OPEN_MEDIUM_CACHE = 5 objects (2 MB)
PIP_OPEN_NO_CACHE = 1 object (no cache)
Cache is used to store memory. This can speed processing time when making multiple calls to piopObjectFindFirstContaining. If you are accessing single objects using pipObjectFindFirstRect set the cache size to
PIP_OPEN_NO_CACHE.
For example, if the largest feature in the file contains 1,500 points, and you are using the Medium cache setting with buffering turned on, then the memory required would be:
1,500 * 5 * 36 = 270,000 bytes