You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+50-45
Original file line number
Diff line number
Diff line change
@@ -7,48 +7,73 @@ This crate provides representations of Esri JSON objects with [`serde::Deseriali
7
7
`serde_esri` has two additional features `geo` and `geoarrow`.
8
8
9
9
-`geo` implements `From` for the Esri JSON objects.
10
-
-`geoarrow` provides compatibility with arrow and geoarrow by implementing geoarrow geometry traits as well as providing a utility function `featureset_to_arrow()` which converts a `FeatureSet` to an arrow `RecordBatch`.
10
+
-`geoarrow` provides compatibility with arrow and geoarrow by implementing geoarrow geometry traits as well as providing a utility function `featureset_to_geoarrow()` which converts a `FeatureSet` to an arrow `GeoTable`.
11
+
11
12
12
13
## Example usage:
13
14
14
-
In this example, we query a feature service and convert the response to an Arrow `RecordBatch`. This requires the `geoarrow` feature to be enabled.
15
+
This example reads a few features from a feature service and returns a `FeatureSet` struct. It illustrates the use of the geo and geoarrow features.
16
+
17
+
```toml
18
+
[dependencies]
19
+
geo = "0.28.0"
20
+
geoarrow = "0.2.0"
21
+
reqwest = { version = "0.12.3", features = ["blocking"] }
22
+
serde_esri = { version = "0.2.0", features = ["geo", "geoarrow"] }
[Esri Geometries Objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm#CURVE) are encoded by the following structs:
70
+
[Esri Geometries Objects](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm) are encoded by the following structs:
The parameter `N` is used to specify the dimension of the geometries. Use `<2>` for 2 dimensional data, `<3>` for Z values and `<4>` when `M` and `Z` are present.
@@ -99,24 +125,3 @@ struct SpatialReference {
99
125
wkt:Option<String>,
100
126
}
101
127
```
102
-
103
-
## Example usage:
104
-
105
-
This example reads a single feature from a feature service and returns a `FeatureSet` struct.
Copy file name to clipboardexpand all lines: src/spatial_reference.rs
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ use serde_with::skip_serializing_none;
4
4
5
5
/// Read more on [Esri docs site](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm#GUID-DFF0E738-5A42-40BC-A811-ACCB5814BABC)
0 commit comments