Skip to content

Commit

Permalink
add note about geoJSON SRS strings
Browse files Browse the repository at this point in the history
  • Loading branch information
corviday committed Aug 7, 2024
1 parent d2a2905 commit fbef194
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scip/api/projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
# use assume_4326 on parameters received from the front end, to add a projection
# use to_4326 on data fetched from the back end, to convert it to EPSG 4236

# All geoJSON is officially defined as 4326 as of 2016.
# See https://www.rfc-editor.org/rfc/rfc7946#section-4
# So assume_4326 should theoretically just be able to convert
# any WKT string to geoJSON and have that be sufficient to establish
# the geometry as 4326. However, we got errors doing this, so we are
# still using the deprecated "crs" attribute with our geoJSON strings.
# TODO: determine source of those errors, switch to modern geoJSON
# handling.

from sqlalchemy import func
import shapely.wkt
import geojson
Expand Down

0 comments on commit fbef194

Please sign in to comment.