Skip to content

Commit c40b1ed

Browse files
author
wonder
committedMay 5, 2010
Fixed CRS for OSM and GPX providers. Should fix #2661.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13425 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4a507e4 commit c40b1ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/providers/gpx/qgsgpxprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ QString QgsGPXProvider::description() const
850850

851851
QgsCoordinateReferenceSystem QgsGPXProvider::crs()
852852
{
853-
return QgsCoordinateReferenceSystem(); // use default CRS - it's WGS84
853+
return QgsCoordinateReferenceSystem( GEOSRID, QgsCoordinateReferenceSystem::PostgisCrsId ); // use WGS84
854854
}
855855

856856

‎src/providers/osm/osmprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ const QgsFieldMap & QgsOSMDataProvider::fields() const
937937

938938
QgsCoordinateReferenceSystem QgsOSMDataProvider::crs()
939939
{
940-
return QgsCoordinateReferenceSystem(); // use default CRS - it's WGS84
940+
return QgsCoordinateReferenceSystem( GEOSRID, QgsCoordinateReferenceSystem::PostgisCrsId ); // use WGS84
941941
}
942942

943943

0 commit comments

Comments
 (0)
Please sign in to comment.