-
Notifications
You must be signed in to change notification settings - Fork 0
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
raster's and vector's projection never recognized in "Prompt for projection" mode #548
Comments
Original Redmine Comment Qgus can only handle projections that are defined in its database. Please define your own projection with the values above, and see if it works. |
Original Redmine Comment Replying to [comment:2 homann]:
This projection is defined in QGIS database. It's the QGIS SRSID: 2267, ie. [[PostGIS]]/EPSG SRID: 32633. This bug is valid for any GIS data I tried with any projection, defined or not in QGIS database. QGIS will not recognize the projection info of the raster or vector, and assign the defualt or the user specified projection, or ask for the projection - depending on the setting in Settings > Options > Projection. BTW - I really think it is not a good idea to set latlong/WGS84 by default if projection unknown. Or any other. If the projection info is unknown, simply a non-projected XY with 0,0 in the lower left should be set. Maciek |
Original Redmine Comment With 0.8 and 0.9 (trunk) I get the following result, which is QGIS SRSID 2267. "+proj=utm +zone=33 +ellps=WGS84 +datum=WGS84 +units=m +no_defs" |
Original Redmine Comment Replying to [comment:4 homann]:
Hi, That's cool. But I wonder why it doesn't for me. It always gives me: I have this problem on 3 different machines with Ubuntu Dapper. QGIS and several other FOSS GIS packages built from source, including PROJ.4 and GDAL. PROJ is 4.5 and GDAL is 1.4.0. What are yours? All my software built from source is installed in /usr/local. Could that matter? Where is yours? What elase could be the culprit (besides me, but I don't have any idea yet what I could be doing wrong here). I'm not sure if closing the ticket by "worksforme" was the right thing. I guess this option should be left for hopeless cases without any feedback from the reporter, while I'm still here, having an issue. Maciek |
Original Redmine Comment I have proj 4.4.9 and gdal 1.3.1. Edgy eft standard installation I believe. It also works on my win32 machine with svn 0.8 (but 0.8.0 release crashes) Update qgis to latest svn, compile with debug, and pipe the output to a file. Open qgis, open raster, check proj, close qgis. Attach the file, and I'll have a look. (In bash) $ qgis &> ticket561.log I prefer to close ticket I can not do anything more about. Please re-open when new info arrives. |
Original Redmine Comment Thanks for the instruction.
The log is attached. Line 378 is when qgis#3908 takes place. It reads:
Which doesn't match the raster's projection. However, in at least 4 lines before this, a correct string:
is present. As I can see, in line 354 a correct QGIS srsid 2267 is returned. What happens next I don't understand, but for some reason this correct choice is dropped in favor of 2585. Maciek |
Original Redmine Comment Thanks! Using Prompt for projection, qgis crashes for me (which I'll look into). Can you repeat with using 'Global' setting? It might be two different errors, or it might not. |
Original Redmine Comment Replying to [comment:8 homann]:
For me it never crashed here.
Yes, it is still the same. The log looks somewhat different (attached), yet the result is still that when I enter Settings->Project Properties->Projection still I can see that latlon/WGS84 (QGIS srid: 2585) is selected there, instead of utm33/WGS84 (QGIS srid: 2267). However, it is interesting that when I move cursor over the canvas, UTM x,y coordinates are returned, not lat,lon. |
Original Redmine Comment Okay, a couple of things:
If you have the possibility to join #qgis at freenode IRC, we could discuss this more. |
Original Redmine Comment Replying to [comment:10 homann]:
You propably mean #574 I guess.
Will that be backported to 0.8? Please note that the same happens for eg. an shp with a valid prj file (sorry if that was obvious; I'm writing this just in case).
Ah, right. I got confused due to problems with "Prompt for projection" mode.
Works fine.
I can reproduce, only that it's #574 ;).
Thanks for your kind proposition but I don't IRC. If I did, I would dissaper from the real world for good :). Maciek |
Original Redmine Comment It's #574, that's right. I don't think it will ge backported, projection implementation has changed for 0.9, and we don't want to mess it up in 0.8. I hope it's ok to set as fixed in 0.9? |
Original Redmine Comment Replying to [comment:12 homann]:
It is execellent this bug is fixed in 0.9 but it is still there in 0.8. Why close it for 0.8 then? If it cannot be fixed in 0.8.1 - too bad, but so be it. But closing it is pretending there is no problem. Regards, |
Original Redmine Comment Closing it means that we have a fix for it. Please, we have many more bugs without any fix at all to worry about. |
Original Redmine Comment Milestone Version 0.9 deleted |
Author Name: Redmine Admin (Redmine Admin)
Original Redmine Issue: 561, https://issues.qgis.org/issues/561
Original Assignee: Magnus Homann
QGIS fails to recognize a valid projection info in rasters and vectors and defaults to WGS84. Please see that the raster and vector in question do have a valid projection info:
The problem is present with all the rasters and vectors I tried. An example [[GeoTIFF]] and shapefile are attached.
Using QGIS 0.8 SVN 6474, GDAL 1.4.0
Maciek
The text was updated successfully, but these errors were encountered: