[QGIS-trac] [Quantum GIS] #2123: wrong projection information when
creating a new shapefile
Quantum GIS
qgis at qgis.org
Thu Nov 19 11:56:20 EST 2009
#2123: wrong projection information when creating a new shapefile
------------------------------------------------+---------------------------
Reporter: cmoe | Owner: nobody
Type: bug | Status: new
Priority: major: does not work as expected | Milestone: Version 1.4.0
Component: Data Provider | Version: HEAD
Keywords: create shapefile; | Platform_version:
Platform: RedHat | Must_fix: Yes
Status_info: 0 |
------------------------------------------------+---------------------------
(This bug may be related to #1943 and also to #1889, if it isn't even the
same.)
Im working with crs epsg 21781. If I create a new shapefile with the "new
vecotr layer" tool, the shapefile is missing the towgs84 part in its crs
parameters.
1. Open Qgis
2. in project properties set tht crs to epsg 21781/CH1903 (Enable 'on the
fly' is also set).
3. in the settings->options->crs set "project wide default crs will be
used"
4. with the "new vector layer"-button create a new shapefile and save it.
5. load the created shapefile into qgis
6. open the properties of the new shapefile
-> the crs of the shapefile is missing the towgs84 parameter and
therefore it displays on a wrong place in the canvas.
I attach the debug output from the console when creating a new shapefile
in this way. You will see that from line 1 to 14 all output concering crs
has the towgs84 information. As from line 41 on the towgs84 part is
missing. So it seems to be a problem of the qgsvectorprovider or ogr.
The crs in the srs.db is ok, also the epsg file of proj.
Currently I'm running r12143.
regards
Cedric
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2123>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list