Skip to content
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

Plot simulation on nautical map, fix #93 #95

Merged
merged 1 commit into from
Jan 27, 2024
Merged

Conversation

SteffenME
Copy link
Collaborator

plotting of map tiles from wms requires new library

apt-get install python3-owslib
or
pip3 install OWSLib

ax = plt.axes(projection=crs)

# base map layer
ax.add_wms(wms='https://sgx.geodatenzentrum.de/wms_topplus_open',layers=['web'])#quote source: Kartendarstellung: © Bundesamt für Kartographie und Geodäsie (2021), Datenquellen: https://gdz.bkg.bund.de/index.php/default/wms-topplusopen-wms-topplus-open.html
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about using this as optional source?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, i also have other sources at hand. But this one is pretty. I tried to find nautical charts but couldnt find a suitable service.

i'd still recommend using wms, its way nicer result and easier to use.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

openseamap maybe?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont know any wms for that. We could probably download the map

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have no idea about WMS, whats so special about this?

is it possible to draw geodata from geojson?
https://gitlab.com/civilmrcc/onefleet/-/tree/develop/data?ref_type=heads

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WMS just works out of the box. With tiles i struggled with zoom level. I just kinda dislike tiles.. but of course if you have something that works, lets do it. But why not wms?

Geojson is of course possible and i want to include the SAR zones. But not sure how to do that in a meaning full way. its not yet worth the effort.

README.md Outdated
6. Build the enhanced Docker container:
```bash
cd opendrift
docker build -t opendrift-owslib .
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would call it different , more generic, as we most likely add more stuff later.

@svenseeberg svenseeberg force-pushed the enhancement/plot branch 2 times, most recently from d6c4830 to 6ada733 Compare January 27, 2024 09:38
@svenseeberg svenseeberg changed the title pretty plot #93 Plot simulation on nautical map, fix #93 Jan 27, 2024
@svenseeberg
Copy link
Member

The tests probably fail because the IP of the test servers has been blocked from pulling more current and wind data. I will ignore that for now and merge.

@svenseeberg svenseeberg merged commit e88922c into main Jan 27, 2024
10 of 18 checks passed
@svenseeberg svenseeberg deleted the enhancement/plot branch January 27, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants