Handles GeoJSON files. Part of Geospatiale III.
Methods
(static) fillPolygon(arg0_rgba_buffer, arg1_polygon, arg2_optionsopt) → {Buffer.<ArrayBuffer>}
Fills a GeoJSON Polygon on a given RGBA buffer.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_rgba_buffer |
Buffer.<ArrayBuffer>
|
|||||||||||||||||
arg1_polygon |
Object
|
|||||||||||||||||
arg2_options |
Object
|
<optional> |
|
Returns:
- Type:
-
Buffer.<ArrayBuffer>
(static) getCentroid(arg0_geometry) → {Array.<number>}
Fetches the x, y coordinate pair for a given pixel given latitude and longitude coordinates for WGS84 Equirectangular.
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_geometry |
Object
|
Returns:
- Type:
-
Array.<number>
(static) toRaster(arg0_input_file_path, arg1_output_file_path, arg2_optionsopt)
Writes a GeoJSON file to raster.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_input_file_path |
string
|
|
|||||||||||||||||||||
arg1_output_file_path |
string
|
|
|||||||||||||||||||||
arg2_options |
Object
|
<optional> |
|