Skip to content

Commit

Permalink
add more supported EPSGs
Browse files Browse the repository at this point in the history
  • Loading branch information
Trygve Aspenes committed Jan 4, 2024
1 parent 6e814b6 commit c6bc4e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mapgen/modules/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def _fill_metadata_to_mapfile(orig_netcdf_path, forecast_time, map_object, full_
summary_cache[bn] = "Not Available."
map_object.web.metadata.set("wms_title", wms_title)
map_object.web.metadata.set("wms_onlineresource", f"{full_request.url.scheme}://{full_request.url.netloc}/api/get_quicklook{orig_netcdf_path}")
map_object.web.metadata.set("wms_srs", "EPSG:25833 EPSG:3978 EPSG:4326 EPSG:4269 EPSG:3857 EPSG:32661")
map_object.web.metadata.set("wms_srs", "EPSG:3857 EPSG:3978 EPSG:4269 EPSG:4326 EPSG:25832 EPSG:25833 EPSG:25835 EPSG:32632 EPSG:32633 EPSG:32635 EPSG:32661")
map_object.web.metadata.set("wms_enable_request", "*")
map_object.setProjection("AUTO")
try:
Expand Down
2 changes: 1 addition & 1 deletion mapgen/modules/satellite_satpy_quicklook.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _fill_metadata_to_mapfile(orig_netcdf_path, map_object, full_request):
""""Add all needed web metadata to the generated map file."""
map_object.web.metadata.set("wms_title", "WMS senda fastapi")
map_object.web.metadata.set("wms_onlineresource", f"{full_request.url.scheme}://{full_request.url.netloc}/api/get_quicklook{orig_netcdf_path}")
map_object.web.metadata.set("wms_srs", "EPSG:25833 EPSG:3978 EPSG:4326 EPSG:4269 EPSG:3857 EPSG:32661")
map_object.web.metadata.set("wms_srs", "EPSG:3857 EPSG:3978 EPSG:4269 EPSG:4326 EPSG:25832 EPSG:25833 EPSG:25835 EPSG:32632 EPSG:32633 EPSG:32635 EPSG:32661")
map_object.web.metadata.set("wms_enable_request", "*")
map_object.setProjection("AUTO")
map_object.setSize(10000, 10000)
Expand Down

0 comments on commit c6bc4e7

Please sign in to comment.