Closed corviday closed 1 month ago
Demo: the production SCIP, which was somewhat rushed into production to meet a funding deadline.
@QSparks is there a more correct or up to date way to indicate what projection a geojson string is?
@QSparks is there a more correct or up to date way to indicate what projection a geojson string is?
No, the CRS for all GeoJSON data is fixed as EPSG:4326 and the ability to specify alternate CRSs has been deprecated. This should not pose an issue if we are confident that all relevant processing libraries can handle custom CRS definitions in the GeoJson.
Huh, weird. That's very useful to know, thanks.I'll add a comment about it.
The new high-resolution postGIS database uses the BC Albers projection. The front end uses an unspecified latitude-longitude projection. This PR adds a couple of functions to convert between them.
Rationale: the postGIS database needed to have some sort of projection for its various geographies, as we someday want to do calculations involving areas, such as determining how much a watershed and a salmon habitat overlap by so we can ignore incidental corner overlaps. As far as which projection to pick, the input data is all in BC Albers, so that is the projection I used in the database. However, the data all needs to be translated to a latitude-longitude projection for the benefit of leaflet and the PCEX frontend, so this backend needs to do that translation.
resolves #11