MethodsPYXIS DGGS SDK provides 2 methods to read, sample, and quantize data values from vector (feature) data files into DGGS cells:
Sampling Vector GeometryThe first step in representing a DGGS GeoSource is to open the native vector file and extract the following from the file:.
At code level, PYXVectorRegion provide the basic class for all vector based regions. and region can be rasterized on demand into DGGS set of cells using PYXVectorGeometry, PYXVectorGeometry2 (optimized implementation).
Quantization of Vector DataOnce the cells of a DGGS area associated with a particular vector geometry the final step is to quantize vector attribute data into associated DGGS cells. A bounding cell for each feature entity is calculated and the attribute is assigned to the cell. The GDAL/OGR File Reader is used to identify all features that intersects a given cell. If a mutli-resolution GeoPacket is to be generated, statistical summaries are created for each numerical attribute value associated with the feature. The rasterization of each feature and statistical summary are stored for each ISEA3H resolution to form a vector tree that enable progressive streaming of very large vectors and their attribute data.
Interactive ExampleRapid Rasterization logic as a naive implementation using PYXIS HTML5 canvas API.
|
Quantization >