From bc4d3d4100ea2d94c4a0735c67b3170fd82b6b1d Mon Sep 17 00:00:00 2001 From: David Oliver Date: Wed, 10 Nov 2021 14:47:26 +0000 Subject: [PATCH 1/2] Adding examples for Pythons geospatial types --- pythonManual/asciidoc/cypher-workflow.adoc | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/pythonManual/asciidoc/cypher-workflow.adoc b/pythonManual/asciidoc/cypher-workflow.adoc index c8cc37de..6f90e05b 100644 --- a/pythonManual/asciidoc/cypher-workflow.adoc +++ b/pythonManual/asciidoc/cypher-workflow.adoc @@ -232,6 +232,44 @@ include::{python-examples}/test_temporal_types_example.py[tags=temporal-types-du ---- +[[python-driver-geospatial-types]] +=== Geospatial Types + +This section lists some basic usage of the geospatial types provided by the Python Driver. + + +[[python-driver-geospatial-types-cartesian]] +==== `CartesianPoint` + +Represents 2 or 3 dimensional point in Cartesian space. + +[source, python] +---- +include::{python-examples}/test_geospatial_types_example.py[tags=temporal-types-cartesian-import] +---- + +[source, python] +---- +include::{python-examples}/test_geospatial_types_example.py[tags=temporal-types-cartesian] +---- + + +[[python-driver-geospatial-types-wgs84]] +==== `WGS84Point` + +Represents an instant capturing the wgs84, but not the time, nor the timezone. + +[source, python] +---- +include::{python-examples}/test_geospatial_types_example.py[tags=temporal-types-wgs84-import] +---- + +[source, python] +---- +include::{python-examples}/test_geospatial_types_example.py[tags=temporal-types-wgs84] +---- + + [[python-driver-exceptions-errors]] == Exceptions and error handling From 563dd296b6a528a321b58266fad6e9b56d3f4b50 Mon Sep 17 00:00:00 2001 From: David Oliver Date: Wed, 10 Nov 2021 16:21:06 +0000 Subject: [PATCH 2/2] fix tagging error --- pythonManual/asciidoc/cypher-workflow.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pythonManual/asciidoc/cypher-workflow.adoc b/pythonManual/asciidoc/cypher-workflow.adoc index 6f90e05b..f4ab4ab7 100644 --- a/pythonManual/asciidoc/cypher-workflow.adoc +++ b/pythonManual/asciidoc/cypher-workflow.adoc @@ -245,12 +245,12 @@ Represents 2 or 3 dimensional point in Cartesian space. [source, python] ---- -include::{python-examples}/test_geospatial_types_example.py[tags=temporal-types-cartesian-import] +include::{python-examples}/test_geospatial_types_example.py[tags=geospatial-types-cartesian-import] ---- [source, python] ---- -include::{python-examples}/test_geospatial_types_example.py[tags=temporal-types-cartesian] +include::{python-examples}/test_geospatial_types_example.py[tags=geospatial-types-cartesian] ---- @@ -261,12 +261,12 @@ Represents an instant capturing the wgs84, but not the time, nor the timezone. [source, python] ---- -include::{python-examples}/test_geospatial_types_example.py[tags=temporal-types-wgs84-import] +include::{python-examples}/test_geospatial_types_example.py[tags=geospatial-types-wgs84-import] ---- [source, python] ---- -include::{python-examples}/test_geospatial_types_example.py[tags=temporal-types-wgs84] +include::{python-examples}/test_geospatial_types_example.py[tags=geospatial-types-wgs84] ----