elcolto / GeoKJSON

Multiplatform Library for GeoJSON
https://elcolto.github.io/GeoKJSON/
Apache License 2.0
2 stars 0 forks source link

Add Generic to Feature #91

Closed elcolto closed 3 months ago

elcolto commented 3 months ago

is related to #38, see the Cons to that. Didn't add a generic to FeautreCollection, since every Feature within it can have different implementation of Geometry.

contra is to specify the geometry type when creating a Feature

github-actions[bot] commented 3 months ago

Code Coverage

File Coverage [80.80%] :white_check_mark:
turf/src/commonMain/kotlin/io/github/elcolto/geokjson/turf/Grids.kt 100.00% :white_check_mark:
turf/src/commonMain/kotlin/io/github/elcolto/geokjson/turf/Measurement.kt 86.69% :white_check_mark:
turf/src/commonMain/kotlin/io/github/elcolto/geokjson/turf/Meta.kt 90.00% :white_check_mark:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/Feature.kt 46.55% :x:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/FeatureCollection.kt 63.16% :x:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/GeometryCollection.kt 64.71% :x:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/LineString.kt 61.90% :x:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/MultiLineString.kt 69.23% :x:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/MultiPoint.kt 55.56% :x:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/MultiPolygon.kt 66.67% :x:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/Point.kt 75.00% :x:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/Polygon.kt 60.00% :x:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/dsl/FeatureCollectionDsl.kt 90.91% :white_check_mark:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/dsl/FeatureDsl.kt 28.57% :x:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/serialization/BoundingBoxSerializer.kt 100.00% :white_check_mark:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/serialization/FeatureCollectionSerializer.kt 91.67% :white_check_mark:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/serialization/FeatureSerializer.kt 90.91% :white_check_mark:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/serialization/GeometrySerializer.kt 96.30% :white_check_mark:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/serialization/PositionSerializer.kt 100.00% :white_check_mark:
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/serialization/Utils.kt 87.50% :white_check_mark:
Total Project Coverage 82.94%
sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud