#874 closed bug (fixed)
Windows - Crash when creatin new mapset in GRASS with custom proyection with +towgs84
Reported by: | fpacheco | Owned by: | homann |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | |
Component: | GRASS | Version: | 0.9.1 |
Keywords: | plugin grass mapset | Cc: | neteler |
Must Fix for Release: | No | Platform: | Windows |
Platform Version: | Windows XP | Awaiting user input: | no |
Description
In Windows, QGis crash when the user trying to create a new mapset with a custom projection containing the parameter +towgs84. There is no problem in Linux.
To reproduce this bug:
1-run Qgis in Windows;
2-create a custom projection in QGis. For example ROU-USAM (Uruguay): +proj=tmerc +lat_0=-90 +lon_0=-55.8 +k=1.000000000 +x_0=500000 +y_0=0 +ellps=intl +towgs84=-155,171,37,0,0,0,0 +units=m +no_defs;
3-establish this or another projection in QGis;
4-begin to create a new mapset with GRASS (database,location, mapset). When you set the projection created in step 1, QGis crash.
Thanks. Fernando.
Change History (8)
comment:1 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 16 years ago
comment:3 by , 16 years ago
In Ubuntu, I moved the file usr/lib/grass/etc/datum.table, and got similar response. No crash, however. Notice that file name is present
Debug: /home/homann/Qgis-Devel/qgis_trunk/src/gui/qgsprojectionselector.cpp: 320: (getCurrentProj4String) Selection sql: select parameters from tbl_srs where srs_id = 100007 Item selected : SWEREF 99 TM Item selected full string : +proj=tmerc +lat_0=0 +lon_0=15 +k=0.9996 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs proj4 = +proj=tmerc +lat_0=0 +lon_0=15 +k=0.9996 +x_0=500000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs OSRIsGeographic = 0 OSRIsProjected = 1 wkt = PROJCS["unnamed",GEOGCS["GRS 1980(IUGG, 1980)",DATUM["unknown",SPHEROID["GRS80",6378137,298.257222101],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",15],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]] error_routine (fatal = 0): unable to open datum table file: /usr/lib/grass/etc/datum.table ret = 2 mProjInfo = 0x8c75120
comment:4 by , 16 years ago
Cc: | added |
---|
The datum file is searched in $GISBASE/etc/datum.table". I suspect that it is missing there or unaccessible? It should work since the native winGRASS version also works.
Other source of error: white space in the path of $GISBASE - if so, please let the GRASS team know.
Markus
follow-up: 7 comment:6 by , 16 years ago
Milestone: | Version 0.9.1 → Version 0.9.2 |
---|
This seems to be some sort of GRASS error. qgsgrassnewmapset calls GPJ_osr_to_grass and it appears that the crash is somewhere there.
This is the last output from WinXP before crash, see the (null) at last line:
Crash in wscanf due to nonexistinging file?