You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 27, 2024. It is now read-only.
I am new to GeoJson, but I notice that the GeoJsonFeature GeoJsonMultiLine when serialized the value of the Type is Line, however, when parsing a geojson collection that includes as feature with Type Line an exception is throw.
The serialization code is in src/models.dart at line 241:
/// Serialize to a geojson feature stringStringserializeFeature(Map<String, dynamic>? properties) {
final geoSeries =<GeoSerie?>[];
for (final line in lines) {
geoSeries.add(line.geoSerie);
}
return_buildGeoJsonFeature(
geoSeries, "Line", properties ??<String, dynamic>{"name": name});
}
As you can notice, the type value is set to Line.
Looking at the code, in the file src/geojson.dart at line 498:
A case for MultiLineString is evaluated but there is no case for Line type.
So, the questions are:
Why serialization of a GeoJson model (GeoJsonMultiLine) would set a type that doesn't fit to the GeoJson specifications, if it is not supported by the library? Is there a different way to generate GeoJson data?
Is it a bug? Can it be solved?
The generation of GeoJson data is not a recommended use case of this library?
Thanks in advance for your attention to this issue!!
The text was updated successfully, but these errors were encountered:
albertoleal19
changed the title
GeoJsonMultiLine serialized to type Line
GeoJsonMultiLine serialized to type LineMay 11, 2023
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am new to GeoJson, but I notice that the GeoJsonFeature GeoJsonMultiLine when serialized the value of the Type is
Line
, however, when parsing a geojson collection that includes as feature with TypeLine
an exception is throw.The serialization code is in src/models.dart at line 241:
As you can notice, the type value is set to
Line
.Looking at the code, in the file src/geojson.dart at line 498:
A case for MultiLineString is evaluated but there is no case for
Line
type.So, the questions are:
Thanks in advance for your attention to this issue!!
The text was updated successfully, but these errors were encountered: