qgis/Quantum-GIS — pull request #144 by etiennesky (2012-05-20 03:26:45+00:00)
Title: crs - make sure proj4 strings are trimmed

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.