Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690