holoviz-topics / EarthSim

Tools for working with and visualizing environmental simulations.
https://earthsim.holoviz.org
BSD 3-Clause "New" or "Revised" License
65 stars 21 forks source link

Coordinate system of poly_stream data #190

Closed kcpevey closed 6 years ago

kcpevey commented 6 years ago

I'm trying to reproject a polygon using gv.
reproject = gv.operation.project_path(ann.poly_stream.element, projection=ccrs.PlateCarree())
That command doesn't reproject correctly, presumably because...

My annotator was initialized as ccrs.UTM(15). This was successfully carried into ann.poly_stream.element.crs. However, the values that are actually in the poly_stream are in what looks like ccrs.GOOGLE_MERCATOR. Is this a bug or am I applying the reprojection incorrectly?

philippjfr commented 6 years ago

Could you report your holoviews and geoviews versions? Various issues related to stream data projection were fixed recently and are in the latest holoviews/geoviews dev releases.

philippjfr commented 6 years ago

Another quick tip, geoviews has a general purpose project operation available as gv.project(any_geoviews_element_type, projection=ccrs.PlateCarree()).

philippjfr commented 6 years ago

Going to close since I'm fairly certain this was fixed in the most recent dev release of geoviews. Please reopen if you encounter this again.