NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

Re: Storing Polygon Information

Hi,

You could store the points in a linear array and use a separate linear 
array to describe the number of points in each polygon (or, for faster 
indexing, an array with two values for each polygon, a starting offset and 
a number of points).

Regards,

Rob
---
Rob Ross, Mathematics and Computer Science Division, Argonne National Lab


On Thu, 12 Aug 2004, Matthew Hanna wrote:

> Can anyone recommend a convention or method of storing polygonal 
> information in a NetCDF file?  The polygons may not have an equal number 
> of points.  They could be triangles, rectangles, octagons, whatever.  I 
> just can't think of any efficient means of storing this kind of 
> information.  Any ideas or opinions?
> 
> Thanks!
> Matthew Hanna