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
Priority areas should get updated for the project. Or if there is some error in the file it has to be indicated via an useful error message.
Screenshots
Additional context
Several applications like geojson.io, kepler.gl handles such files without any error messages. Even mapbox gl JS which we use for visualisation ignores the third field. I would recommend our application to ignore the third field and go ahead store the geometry in the backend.
From discussion w/ @prabinoid - i think removing the third dimension in geometry should be handled by the frontend as the uploaded data has to be showcased for the end user. This data that's cleaned up by the frontend can be then passed on to the backend for DB storage.
Describe the bug
Raised by @frozenrabi through slack for project 16736
While updating a project's priority area using a KML file, file uploaded succeeded. However project save fails with an unknown error.
To Reproduce
Steps to reproduce the behavior:
priority areas
from the edit sectionpsycopg2.errors.InvalidParameterValue: Geometry has Z dimension but column does not
Example file from @frozenrabi : https://drive.google.com/file/d/1dOcN41-NEePePC9BbyhOgS9sT09T5HnI/view?usp=sharing
Expected behavior
Priority areas should get updated for the project. Or if there is some error in the file it has to be indicated via an useful error message.
Screenshots
Additional context
Several applications like geojson.io, kepler.gl handles such files without any error messages. Even mapbox gl JS which we use for visualisation ignores the third field. I would recommend our application to ignore the third field and go ahead store the geometry in the backend.
@kaditya97 @royallsilwallz @manjitapandey @prabinoid @varun2948 @frozenrabi
Also tagging @kshitijrajsharma for his inputs.
The text was updated successfully, but these errors were encountered: