-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple and consistent settings for coordinate reference system (CRS) #49
Comments
I just noticed that |
Yes, this was the reason I originally hardcoded it to |
BTW I really like your diagram! But I think this boils a lot down to #48. I might totally misrember that, but I think currently the CRS of the GeoSpace is only used for setting up the transformation inside MapModule. So it should probably removed from GeoSpace and the transformation inside MapModule (which should be renamed to LeafletMapModule) should transform from the agents CRS to |
Thanks a lot for your comments! I really need some opinions on how to design the GIS functionalities moving forward.
After reading more about GeoJSON, I am in fact thinking to honor the
Yup this is correct.
If like I mentioned above, GeoJSON is still going to be used as the interface between backend & frontend, then the transformation of GeoAgent and GeoSpace into I am considering adding a This is one of the things I'm working on at the moment. Will add you into the PR for your feedback when it's ready. |
For writing GeoJSON we should definitely stick to
True.
That sounds like a sane approach.
Great! Really happy to see work being done on mesa-geo! |
Happy to hear some feedback from you too! We should have more conversations in the future : ) |
Closed via #58. |
What's the problem this feature will solve?
Consistent coordinate reference system (CRS) is important for map processing and visualisation. Incorrect CRS settings can lead to incorrect or empty map in mesa-geo.
Currently the workflow is:
The following issues should be fixed:
CRS is an optional field in GeoJSON. When it's present, it should be loaded correctly instead of overwritten by the defaultepsg:4326
.or GeoJSON. This relates to Option to turn on/off basemap #48.Describe the solution you'd like
The solution should make sure the following constraints are met:
AgentCreator
,GeoAgent
andGeoSpace
have exactly the same CRS. At the moment they share the same defaults, but there's a chance for users to set them into different CRS, thereby resulting in incorrect map.MapModule
has the same CRS as the frontend JavaScript map element. Right now the default CRS of Leaflet.js is set correctly, but insideGeoSpace
instead ofMapModule
, making it difficult to use different frontend map elements of other CRS.Additional context
The text was updated successfully, but these errors were encountered: