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

Modernize the GDAL crate #75

Merged
merged 6 commits into from
Jul 9, 2020
Merged

Modernize the GDAL crate #75

merged 6 commits into from
Jul 9, 2020

Conversation

jdroenner
Copy link
Member

I started to modernize the GDAL crate to use Rust edition 2018 and to work with GDAL 3.0.

However, GDAL 3.0 introduces large changes and we should decide for a strategy how to adapt the gdal crate (#74)

let spatial_ref1 = SpatialRef::from_wkt("GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",7030]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\"EPSG\",6326]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",8901]],UNIT[\"DMSH\",0.0174532925199433,AUTHORITY[\"EPSG\",9108]],AXIS[\"Lat\",NORTH],AXIS[\"Long\",EAST],AUTHORITY[\"EPSG\",4326]]").unwrap();
let spatial_ref2 = SpatialRef::from_epsg(3035).unwrap();

// TODO: handle axis order in tests
#[cfg(feature = "gdal_3_0")]
Copy link
Member

Choose a reason for hiding this comment

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

Maybe you could add an implementation of set_axis_mapping_strategy only allowing OAMS_TRADITIONAL_GIS_ORDER for GDAL 2.x to avoid #[cfg(feature = "gdal_3_0")] in examples and tests?

@pka pka mentioned this pull request Jun 21, 2020
@jdroenner jdroenner merged commit 31fd553 into master Jul 9, 2020
@jdroenner jdroenner deleted the modernize branch July 9, 2020 09:20
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.

2 participants