Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

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

  • 2004 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: