h3_dart 0.5.0
h3_dart: ^0.5.0 copied to clipboard
The package provides Dart version of the H3 Core library, a hexagon-based geographic grid system
0.5.0 #
- Split
h3_flutterlibrary into 2 libraries -h3_flutterandh3_dartfor pure-dart projects. - [BREAKING] remove
h3andgeojson2H3singletones.
To access h3 you should useH3Factory().load()if you useh3_flutterandH3Factory().byPath(...)orH3Factory().byDynamicLibary(...)if you useh3_dart - Add
GeoCoordRadiansto allow to specify coordinates in radians.
GeoCoordRadiansmust be converted toGeoCoordusing.toDegrees(converter)method before you can use it in h3 or geojson2h3 methods. - Add option to convert
GeoCoordtoGeoCoordRadiansvia.toRadians(converter)method - Add AngleConverter and GeoCoordConverter classes to convert between radians and degrees.
AngleConverter is abstract, but has two implementations - H3AngleConverter and NativeAngleConverter - Add tests on windows, linux, flutter stable and dev.
- Add integration tests for
h3_flutterbuilt for macos - CI/CD improvements - more checks, automatic publishing
0.4.2 #
- Fix
CoordIJ.toString()output - Change
CoordIJ.hashCodeto generate more unique hashcode - Fix
GeoCoord.toString()output - Change
GeoCoord.hashCodeto generate more unique hashcode - Add world-wrapping feature to
GeoCoord()constructor geojson2h3.h3ToFeatureandgeojson2h3.h3SetToFeatureCollectionnow adds'properties': {}to output when properties not set. To make the behaviour closer to JS version of the library- Change type for
propertiesparameter ingeojson2h3.h3SetToFeatureCollectionfunction. Now it accepts Function() instead of Map - Rename
h3_flutter_test.darttoh3_test.dart - Add tests for following methods:
geojson2h3.h3ToFeature
geojson2h3.h3SetToFeatureCollection
CoordIJ.==
CoordIJ.hashCode
CoordIJ.toString
GeoCoord.==
GeoCoord.hashCode
GeoCoord.toString
GeoCoord() (World-Wrapping)
H3Exception.toString
0.4.1 #
- Fix
h3.getH3UnidirectionalEdgesFromHexagonmethod - now it returns 5 elements for pentagon. - Fix
h3.h3Linemethod - now it throwsH3Exceptioninstead of some internal when input is not valid. - Update README.md.
- Update documentation for methods
h3.h3ToParent,h3.h3ToCenterChild,h3.getH3UnidirectionalEdge,h3.getOriginH3IndexFromUnidirectionalEdge,h3.getDestinationH3IndexFromUnidirectionalEdge,h3.h3Distance. - Add tests for following methods:
h3.h3IndexesAreNeighbors
h3.getH3UnidirectionalEdge
h3.getOriginH3IndexFromUnidirectionalEdge
h3.getDestinationH3IndexFromUnidirectionalEdge
h3.h3UnidirectionalEdgeIsValid
h3.getH3UnidirectionalEdgesFromHexagon
h3.getH3UnidirectionalEdgeBoundary
h3.h3Distance
h3.h3Line
h3.experimentalH3ToLocalIj
h3.experimentalLocalIjToH3
h3.hexArea
h3.edgeLength
h3.cellArea
h3.pointDist
h3.numHexagons
h3.getRes0Indexes
h3.getPentagonIndexes
0.4.0 #
- [BREAKING] Change return types for
h3.h3IsPentagonand h3IsResClassIII methods from [int] to [bool] - Fix broken
h3.h3GetFacesmethod - Add
h3.h3ToParentandh3.h3ToChildrenmethods - Add tests for following methods:
h3.h3IsPentagon
h3.h3IsResClassIII
h3.h3GetFaces
h3.h3GetBaseCell
h3.h3ToParent
h3.h3ToChildren
h3.h3ToCenterChild
0.3.0 #
- [BREAKING] resolution assert was added to
h3.polyfillfunction. CoordIJclass was addedH3Exceptionclass was addedH3Units,H3AreaUnits,H3EdgeLengthUnitsenums were added- Freeing allocated memory added
h3.h3IsValidwas addedh3.h3IsPentagonwas addedh3.h3IsResClassIIIwas addedh3.h3GetBaseCellwas addedh3.h3GetFaceswas addedh3.h3GetResolutionwas addedh3.geoToH3was addedh3.h3ToGeowas addedh3.kRingwas addedh3.hexRingwas addedh3.compactwas addedh3.uncompactwas addedh3.h3IndexesAreNeighborswas addedh3.getH3UnidirectionalEdgewas addedh3.getOriginH3IndexFromUnidirectionalEdgewas addedh3.getDestinationH3IndexFromUnidirectionalEdgewas addedh3.h3UnidirectionalEdgeIsValidwas addedh3.getH3IndexesFromUnidirectionalEdgewas addedh3.getH3UnidirectionalEdgesFromHexagonwas addedh3.getH3UnidirectionalEdgeBoundarywas addedh3.h3Distancewas addedh3.h3Linewas addedh3.experimentalH3ToLocalIjwas addedh3.experimentalLocalIjToH3was addedh3.pointDistwas addedh3.cellAreawas addedh3.exactEdgeLengthwas addedh3.hexAreawas addedh3.edgeLengthwas addedh3.numHexagonswas addedh3.getRes0Indexeswas addedh3.getPentagonIndexeswas added
0.2.1 #
- Fix build errors
0.2.0 #
- macOS system support was added
- Tests were added
- Documentation was added
h3.maxPolyfillSizewas removed