@@ -13,10 +13,11 @@ kernelspec:
13
13
14
14
# Geometries
15
15
16
- See
17
-
16
+ ``` seealso
17
+ 1. [The CF conventions on Geometries](http://cfconventions.org/Data/cf-conventions/cf-conventions-1.11/cf-conventions.html#geometries)
18
18
1. {py:func}`cf_xarray.shapely_to_cf`
19
19
1. {py:func}`cf_xarray.cf_to_shapely`
20
+ ```
20
21
21
22
In order to support vectors as well as arrays ` cf_xarray ` can convert between shapely objects
22
23
and CF-compliant representations of those geometries.
@@ -59,15 +60,15 @@ ds_cf
59
60
This function returns a ` xr.Dataset ` containing the CF fields needed to reconstruct the
60
61
geometries. In particular there are:
61
62
62
- - 'x', 'y' : the node coordinates
63
- - 'crd_x', 'crd_y' : the feature coordinates (might have different names if ` grid_mapping ` is available).
64
- - 'node_count' : The number of nodes per feature. Always present for Lines and Polygons. For
63
+ - ` 'x' ` , ` 'y' ` : the node coordinates
64
+ - ` 'crd_x' ` , ` 'crd_y' ` : the feature coordinates (might have different names if ` grid_mapping ` is available).
65
+ - ` 'node_count' ` : The number of nodes per feature. Always present for Lines and Polygons. For
65
66
Points: only present if there are multipart geometries.
66
- - part_node_count : The number of nodes per individual geometry. Only for Lines with multipart
67
+ - ` ' part_node_count' ` : The number of nodes per individual geometry. Only for Lines with multipart
67
68
geometries and for Polygons with multipart geometries or holes.
68
- - interior_ring : Integer boolean indicating whether ring is interior or exterior. Only for
69
+ - ` ' interior_ring' ` : Integer boolean indicating whether ring is interior or exterior. Only for
69
70
Polygons with holes.
70
- - 'geometry_container' : Empty variable with attributes describing the geometry type.
71
+ - ` 'geometry_container ` ' : Empty variable with attributes describing the geometry type.
71
72
72
73
Here are the attributes on ` geometry_container ` . This pattern mimics the convention of
73
74
specifying spatial reference information in the attrs of the empty array ` spatial_ref ` .
0 commit comments