geojson_vi
An Open-Source Dart and Flutter Library for Efficiently Handling GeoJSON Data in Compliance with RFC 7946
2.2.5
18K downloads/mo
#2295 most downloaded on pub.dev
chuyentt/geojson_vi
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.2 years
Nearly every release is documented
notes for 57 of 59 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
59 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
59 releases · May 2020 to Jun 2024Releases
latest 59-
2.2.527 Jun 2024Release notes
Open source →Added
- Support for null geometry values in GeoJSONFeature and GeoJSONFeatureCollection according to the GeoJSON spec.
Fixed
- Issue with GeoJSONFeature.fromMap(...) and GeoJSONFeatureCollection.fromMap(...) not allowing null geometry values.
- Updated
findNearestFeatureto handle features with null geometry. - Updated bbox calculation to handle null geometry.
-
2.2.427 Apr 2024Release notes
Open source →Added
- None
Changed
- Enhanced the
_removeBboxfunction to include null safety checks and an identity comparison to optimize performance and reliability. This improvement prevents unnecessary computations by checking if the input bounding boxes (bbox1andbbox2) are identical or ifbbox2isnull, thereby returningbbox1directly under these conditions.
Deprecated
- None
Removed
- None
Fixed
- None
Security
- None
-
2.2.327 Mar 2024Release notes
Open source →Added
- Added
isPointInsidemethod inGeoJSONPolygonto check if a point is inside a given polygon. - Added
isPointInsideComplexinGeoJSONPolygonto determine if a point lies within a complex polygon while considering holes. - Added
optimalPointInsidemethod toGeoJSONPolygonfor calculating the optimal point within a polygon, enhancing label placement in geospatial analyses.
- Added
-
2.2.215 Mar 2024Release notes
Open source →- Resolved
RangeErrorin equality comparison forGeoJSONPolygonwhen comparing polygons with different point counts (Issue #23). - Improved equality comparison for
GeoJSONMultiPolygonandGeoJSONMultiLineStringto handle nested structures more effectively, addressing the concerns raised in Issue #23
- Resolved
-
2.2.115 Nov 2023Release notes
Open source →- Fix centroid calculation to address algebraic sign issues for clockwise and counterclockwise polygons (Issue #22).
- Update part-of directive to use the URI instead of the library name.
-
2.2.026 Jun 2023Release notes
Open source →- Updated the equality operator (==) and hashCode methods for the objects
- Revised the implementation of the toMap() method to ensure correct behavior
- Added comprehensive unit tests to verify the functionality of the objects
- Add findNearestFeature function to GeoJSONFeatureCollection
- Rename distance calculation function to calculateHaversineDistance and move to geojson_utils.dart
- Add utils/geojson_utils.dart
- Updated unit tests for GeoJSONLineString and GeoJSONPolygon.
- Added perimeter function to GeoJSONPolygon.
- Updated Earth's radius in distance calculation.
-
2.1.003 Jun 2023Release notes
Open source →This new release of
geojson_viv2.1.0 continues to uphold our commitment to providing a robust, reliable, and efficient tool for developers working with GeoJSON data in Dart and Flutter. While maintaining full compliance with the RFC 7946 standard, we have introduced key enhancements allowing more versatility in managing and manipulating your geospatial data.Key Highlights of the v2.1.0 Release:
Improved find properties functionality
We have significantly upgraded the
findPropertiesmethod within theGeoJSONFeatureCollectionclass. Now, it comes with an optionalcontainsparameter, enabling you to perform an approximate search on properties. This enhanced feature can cater to use cases where you need to find properties that contain certain keywords, enhancing the flexibility of data search within your GeoJSON collections.Codebase Refactor for Improved Maintainability
In our commitment to constantly improving the codebase, we have refactored imports and applied the 'part of' directive for better code organization. This would facilitate easier understanding, modification, and code navigation, enhancing maintainability.
Comprehensive Documentation & Unit Tests
In addition to software enhancements, we believe in empowering our developers with rich resources. The update comes with extensive updates to README.md file and unit tests for various GeoJSON classes. This includes unit tests for GeoJSONPoint, GeoJSONMultiPoint, GeoJSONLineString, GeoJSONMultiLineString, GeoJSONPolygon, GeoJSONMultiPolygon, GeoJSONGeometryCollection, and GeoJSONFeature classes, equipping you with a comprehensive guide to maximize the utilization of geojson_vi.
Example Usage
To make the journey smoother for our users, we have added an example usage of the newly enhanced
findPropertiesfeature in theGeoJSONFeatureCollectionclass. This practical example will help you understand the functionality better and implement it seamlessly in your applications.As always, we are eager to hear from our community. Please don't hesitate to give me feedback, suggestions, or any issues you encounter. Your active participation helps us to keep refining and enhancing
geojson_vi.Enjoy coding with
geojson_viv2.1.0!Happy Geospatial Coding!
Release notes
Open source →- Add example usage of findProperties in GeoJSONFeatureCollection
- Add feature search in findProperties with containment
- Refactor imports and apply 'part of' directive
-
2.0.829 May 2023 -
2.0.707 Mar 2022 -
2.0.624 Dec 2021 -
2.0.524 Dec 2021 -
2.0.408 Nov 2021 -
2.0.308 Jun 2021Release notes
Open source →- Fixes "The coordinates MUST be one or more elements" in GeoJSONGeometryCollection #16
-
2.0.216 Mar 2021 -
2.0.2+126 Mar 2021 -
2.0.112 Mar 2021 -
2.0.1+112 Mar 2021 -
2.0.012 Mar 2021 -
1.6.109 Mar 2021Release notes
Open source →- Fixed bbox of multipolygons
- Adds unit tests to:
- points
- polygons
- multipolygons
-
1.6.008 Mar 2021 -
1.5.012 Nov 2020 -
1.4.010 Nov 2020Release notes
Open source →- GeoJSON from GeoJSON String Objects is supported: FeatureCollection, Feature and all the Geometries like Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection string
-
1.3.305 Nov 2020 -
1.3.3+108 Nov 2020 -
1.3.213 Oct 2020 -
1.3.120 Aug 2020 -
1.3.1+120 Aug 2020 -
1.3.1+220 Aug 2020 -
1.3.1+309 Sep 2020 -
1.3.020 Aug 2020 -
1.2.419 Aug 2020 -
1.2.315 Aug 2020 -
1.2.3+118 Aug 2020 -
1.2.3+218 Aug 2020 -
1.2.3+318 Aug 2020 -
1.2.3+419 Aug 2020Nothing published for this version
-
1.2.213 Jun 2020 -
1.2.108 Jun 2020 -
1.2.1+109 Jun 2020 -
1.2.004 Jun 2020 -
1.2.0+104 Jun 2020 -
1.2.0+208 Jun 2020 -
1.2.0+308 Jun 2020 -
1.1.003 Jun 2020 -
1.1.0+103 Jun 2020 -
1.1.0+203 Jun 2020 -
1.1.0+303 Jun 2020 -
1.0.625 May 2020 -
1.0.6+126 May 2020 -
1.0.6+203 Jun 2020 -
1.0.524 May 2020 -
1.0.5+225 May 2020 -
1.0.5+325 May 2020 -
1.0.5+425 May 2020 -
1.0.424 May 2020Nothing published for this version
-
1.0.324 May 2020 -
1.0.224 May 2020 -
1.0.124 May 2020 -
1.0.024 May 2020