From 1f8ddffdfd5f21d469c3ecd9ece183796c83a002 Mon Sep 17 00:00:00 2001 From: BAM Date: Thu, 9 Jan 2025 13:08:04 -0800 Subject: [PATCH] Update spatial_properties.rst According to https://github.com/neo4j-contrib/neomodel/commit/d42fb7b0324e00fae5566bc85043e5db0bf7c8a3 PointProperty was moved from the __init__.py --- doc/source/spatial_properties.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/source/spatial_properties.rst b/doc/source/spatial_properties.rst index 1851189c..6b3ee5cd 100644 --- a/doc/source/spatial_properties.rst +++ b/doc/source/spatial_properties.rst @@ -157,9 +157,11 @@ Working with `PointProperty` ---------------------------- To define a ``PointProperty`` Node property, simply specify it along with its ``crs``: :: + from neomodel.contrib import spatial_properties as neomodel_spatial + class SomeEntity(neomodel.StructuredNode): entity_id = neomodel.UniqueIdProperty() - location = neomodel.PointProperty(crs='wgs-84') + location = neomodel_spatial.PointProperty(crs='wgs-84') Given this definition of ``SomeEntity``, an object can be created by: ::