write_geojson
builtin
¶
write_geojson(path, data)
Writes a PointSet or Polylines as a GeoJSON feature collection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str or Path
|
The file to write. |
required |
data
|
PointSet or Polylines
|
Points are written as 3D Point features. Polylines features of open
parts are written as LineString or MultiLineString, of closed parts as
Polygon or MultiPolygon, exteriors counter-clockwise and holes
clockwise; a feature without parts has a null geometry and one mixing
open and closed parts is rejected. Attributes are properties: numbers
(NaN as null), booleans, and other columns as text. Coordinates with a
CRS are converted to longitude and latitude on WGS 84 with |
required |
Used in