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

crs - make sure proj4 strings are trimmed #144

Closed
wants to merge 5 commits into from

Conversation

etiennesky
Copy link
Contributor

This is a follow-up to yesterday's pull request #142 and bug #5598 , following Giuseppe's suggestion to investigate leading spaces in proj4 strings.

It makes sure proj4 strings have no leading white space, and also adds a new test to make sure that CRS definitions from ESRI .prj files have towgs84 parameters inside qgis.

I have added the convenience function QgsCoordinateReferenceSystem::createFromUserInput() so we can open an ESRI definition (as well as others) using OGRSpatialReference::SetFromUserInput().

This pull request is not strictly necessary for 1.8 (especially since it adds a function to the api.

…d QgsCoordinateReferenceSystem::createFromUserInput()
@timlinux
Copy link
Member

Hi Etienne

Looks great and good stuff for including a unit test. Could you add the new user wkt method to the python bindings too?

Regards

Tim

@etiennesky
Copy link
Contributor Author

yes I will, and also I will add another test for a plain GEOGCS node, that was not working yesterday, I'll investigate that and include it in my next pull request. thanks

@etiennesky
Copy link
Contributor Author

Tim - please see my comments in bug #5598

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