@@ -941,16 +941,27 @@ Path
941
941
Spatial Data Types
942
942
******************
943
943
944
- ============= ============================
945
- Cypher Type Python Type
946
- ============= ============================
947
- Point :class: `neo4j.spatial.Point `
948
- ============= ============================
944
+
945
+ Cypher has built-in support for handling spatial values (points),
946
+ and the underlying database supports storing these point values as properties on nodes and relationships.
947
+
948
+ https://neo4j.com/docs/cypher-manual/current/syntax/spatial/
949
+
950
+
951
+ ================= =====================================
952
+ Cypher Type Python Type
953
+ ================= =====================================
954
+ Point :class: `neo4j.spatial.Point `
955
+
956
+ Point (Cartesian) :class:`neo4j.spatial.CartesianPoint`
957
+ Point (WGS-84) :class: `neo4j.spatial.WGS84Point `
958
+ ================= =====================================
949
959
950
960
951
961
Point
952
962
=====
953
963
964
+
954
965
.. autoclass :: neo4j.spatial.Point
955
966
:members:
956
967
@@ -959,17 +970,72 @@ CartesianPoint
959
970
==============
960
971
961
972
.. autoclass :: neo4j.spatial.CartesianPoint
962
- :members:
963
- :inherited-members:
973
+ :show-inheritance:
974
+
975
+ .. autoproperty :: srid
976
+
977
+ .. autoproperty :: x
978
+
979
+ .. autoproperty :: y
980
+
981
+ .. autoproperty :: z
982
+
983
+ .. automethod :: count
984
+
985
+ .. automethod :: index
986
+
987
+
988
+ .. code-block :: python
989
+
990
+ point= CartesianPoint((1.23 , 4.56 )
991
+
992
+ print (point.x, point.y)
993
+
994
+
995
+ .. code- block:: python
996
+
997
+ point = CartesianPoint((1.23 , 4.56 , 7.89 )
998
+
999
+ print (point.x, point.y, point.z)
964
1000
965
1001
966
1002
WGS84Point
967
1003
==========
968
1004
969
1005
.. autoclass:: neo4j.spatial.WGS84Point
970
- :members:
971
- :inherited-members:
1006
+ :show- inheritance:
1007
+
1008
+ .. autoproperty:: srid
1009
+
1010
+ .. autoproperty:: x
1011
+
1012
+ .. autoproperty:: y
1013
+
1014
+ .. autoproperty:: z
1015
+
1016
+ .. autoproperty:: longitude
1017
+
1018
+ .. autoproperty:: latitude
1019
+
1020
+ .. autoproperty:: height
1021
+
1022
+ .. automethod:: count
1023
+
1024
+ .. automethod:: index
1025
+
1026
+
1027
+
1028
+
1029
+ .. code- block:: python
1030
+
1031
+ point = WGS84Point((1.23 , 4.56 ))
1032
+ print (point.longitude, point.latitude)
1033
+
1034
+
1035
+ .. code- block:: python
972
1036
1037
+ point = WGS84Point((1.23 , 4.56 , 7.89 ))
1038
+ print (point.longitude, point.latitude, point.height)
973
1039
974
1040
975
1041
** *****************
0 commit comments