Closed devleaks closed 2 years ago
Hi @devleaks what you are describing is expected and intended. The subclass you have created is no longer a valid GeoJSON type. There is no concept of "thickness" or "width" or "weight" of a LineString
in GeoJSON. See IETF RFC7946 for more details.
This is not a geojson issue. This is a python issue. Vanilla LineString generates valid geojson code. Please read my code. I derive a class from LineString, whatever the name and the reason. From that moment on, LineString no longer generate valid geojson code (in spite of the fact that the derived class is still an instanceOf LineString.) The issue is in the way you generate geojson inside LineString, way that is affected by subclassing and should not be, whatever the reason of the subclassing.
Hello,
When we create a subclass of a valid geojson class (ex. LineString), the subclass' type is not set to a valid GeoJSON type:
Please notice the "type": "Line" (which does not exist in GeoJSON) instead of "type": "LineString".
P.