Skip to content

Commit d3b0174

Browse files
committed
Update to Neo4j 5.25
Updated to Neo4j 5.25 Deprecating com.neo4jh3 in favor of neo4jh3 Added com.neo4jh3.coverage and com.neo4jh3.coverageString
1 parent 38ec85c commit d3b0174

File tree

9 files changed

+6326
-448
lines changed

9 files changed

+6326
-448
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# CHANGELOG - 5.25.1 - 2024-11-25
2+
* [Added] - Deprecating the old naming convention with com.neo4jh3 and migrating to neo4jh3
3+
* [Added] - Added new documentation document for the new naming convention.
4+
* [Added] - Added com.neo4jh3.coverage and com.neo4jh3.coverageString procedures which return a list of hex addresses that fully cover a polygon.
5+
* [Updated] - Tested through Neo4j 5.25.1
6+
17
# CHANGELOG - 5.19.1 - 2024-06-05
28
* [Added] - Added two new procedures to read a WKT polygon file and return the Hex Addresss. These are com.neo4jh3.polygonash3 and com.neo4jh3.polygonash3String. These procedures expect the POLYGON in Longitude, Latitude order.
39
* [Updated] - Updated Documentation with bug fixes.

Documentation.md

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,8 +1019,63 @@ An LIST of H3 cell IDs of the same type as the values in the input LIST expressi
10191019

10201020
"85283447fffffff", "8528340ffffffff", "8528340bfffffff", "85283457fffffff", "85283443fffffff", "8528344ffffffff", "852836b7fffffff", "8528342bfffffff", "8528343bfffffff", "85283407fffffff", "85283403fffffff", "8528341bfffffff", "8428347ffffffff"
10211021

1022-
## com.neo4jh3.gridDisk( h3CellIdExpr, kExpr )
1023-
Returns the H3 cells that are within (grid) distance k of the origin cell. The set of these H3 cells is called the k-ring of the origin cell.
1022+
## com.neo4jh3.coverage( ListOuterGeography, h3_resolution, LatLonOrder )
1023+
Returns a list of HexAddresses (as LONG values) identifying the minimal set of H3 cells that completely cover a shape specified by the ListOuterGeography.
1024+
1025+
### Syntax
1026+
CALL com.neo4jh3.coverage( ListOuterGeography, h3_resolution, LatLonOrder ) yield value return value;
1027+
1028+
### Arguments
1029+
* ListOuterGeography: A LIST of latitude and longitude values that express a polygon
1030+
* h3_resolution(h3CellIdExpr) and 15 inclusive, specifying the resolution of the children H3 cell IDs.
1031+
* LatLonOrder A STRING that indicates the order of the geometry (latlon or lonlat)
1032+
1033+
### Returns
1034+
Returns a list of HexAddresses (as LONG values) identifying the minimal set of H3 cells that completely cover a shape specified by the ListOuterGeography
1035+
1036+
### Error conditions
1037+
If h3_resolution is invalid, the function returns -2
1038+
1039+
### Example
1040+
call com.neo4jh3.coverage(['-122.481889,37.826683','122.479487,37.808548','-122.481889,37.826683','-122.479487,37.808548','-122.474150,37.808904','-122.476510,37.826935','-122.481889,37.826683'],8,'lonlat') yield value return value;
1041+
613196571542028287
1042+
613196571548319743
1043+
613196571598651391
1044+
613196571539931135
1045+
613196571560902655
1046+
613196571550416895
1047+
1048+
call com.neo4jh3.coverage(['-122.481889,37.826683','122.479487,37.808548','-122.481889,37.826683','-122.479487,37.808548','-122.474150,37.808904','-122.476510,37.826935','-122.481889,37.826683'],17,'lonlat') yield value return value;
1049+
-2
1050+
1051+
## com.neo4jh3.coverageString( ListOuterGeography, h3_resolution, LatLonOrder )
1052+
Returns a list of HexAddresses (as STRING values) identifying the minimal set of H3 cells that completely cover a shape specified by the ListOuterGeography.
1053+
1054+
### Syntax
1055+
CALL com.neo4jh3.coverageString( ListOuterGeography, h3_resolution, LatLonOrder ) yield value return value;
1056+
1057+
### Arguments
1058+
* ListOuterGeography: A LIST of latitude and longitude values that express a polygon
1059+
* h3_resolution(h3CellIdExpr) and 15 inclusive, specifying the resolution of the children H3 cell IDs.
1060+
* LatLonOrder A STRING that indicates the order of the geometry (latlon or lonlat)
1061+
1062+
### Returns
1063+
Returns a list of HexAddresses (as LONG values) identifying the minimal set of H3 cells that completely cover a shape specified by the ListOuterGeography
1064+
1065+
### Error conditions
1066+
If h3_resolution is invalid, the function returns -2
1067+
1068+
### Example
1069+
call com.neo4jh3.coverageString(['-122.481889,37.826683','122.479487,37.808548','-122.481889,37.826683','-122.479487,37.808548','-122.474150,37.808904','-122.476510,37.826935','-122.481889,37.826683'],8,'lonlat') yield value return value;
1070+
8828308703fffff
1071+
8828308715fffff
1072+
88301c1a09fffff
1073+
882830870bfffff
1074+
8828308709fffff
1075+
8828308739fffff
1076+
1077+
call com.neo4jh3.coverageString(['-122.481889,37.826683','122.479487,37.808548','-122.481889,37.826683','-122.479487,37.808548','-122.474150,37.808904','-122.476510,37.826935','-122.481889,37.826683'],17,'lonlat') yield value return value;
1078+
"-2"
10241079

10251080
### Syntax
10261081
CALL com.neo4jh3.gridDisk( h3CellIdExpr, kExpr ) yield value return value;

0 commit comments

Comments
 (0)