Skip to content

Commit 7777f4e

Browse files
Adding examples for Pythons geospatial types
1 parent 2e63438 commit 7777f4e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

pythonManual/asciidoc/cypher-workflow.adoc

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,44 @@ include::{python-examples}/test_temporal_types_example.py[tags=temporal-types-du
232232
----
233233

234234

235+
[[python-driver-geospatial-types]]
236+
=== Geospatial Types
237+
238+
This section lists some basic usage of the geospatial types provided by the Python Driver.
239+
240+
241+
[[python-driver-geospatial-types-cartesian]]
242+
==== `CartesianPoint`
243+
244+
Represents 2 or 3 dimensional point in Cartesian space.
245+
246+
[source, python]
247+
----
248+
include::{python-examples}/test_geospatial_types_example.py[tags=temporal-types-cartesian-import]
249+
----
250+
251+
[source, python]
252+
----
253+
include::{python-examples}/test_geospatial_types_example.py[tags=temporal-types-cartesian]
254+
----
255+
256+
257+
[[python-driver-geospatial-types-wgs84]]
258+
==== `WGS84Point`
259+
260+
Represents an instant capturing the wgs84, but not the time, nor the timezone.
261+
262+
[source, python]
263+
----
264+
include::{python-examples}/test_geospatial_types_example.py[tags=temporal-types-wgs84-import]
265+
----
266+
267+
[source, python]
268+
----
269+
include::{python-examples}/test_geospatial_types_example.py[tags=temporal-types-wgs84]
270+
----
271+
272+
235273
[[python-driver-exceptions-errors]]
236274
== Exceptions and error handling
237275

0 commit comments

Comments
 (0)