It's working for me, with the attached file. Also note that -123,41 is the correct order in QGIS. Which means if you're expecting 41, -123 that does not exist and never will exist.
My guess is that your raster is in a different projection, which means you need to turn projection on the fly on and project your map to the raster's projection. What are the coordinates when you zoom to the extent and hover over the raster? Alex [email protected] wrote: > I'm saying this is a bug with the gps plugin. I downloaded a couple of > gpx samples off the Internet. All files show lat first, then lon, but > the Qgis gps plugin reverses them; uses the lat as lon and lon as lat. I > looked at the gpx schema and the files I used look like they conform to > the schema. > Tom > > > Micha Silver wrote: >> [email protected] wrote: >> >>> I used the gps plugin to load a gpx file, but it switches the lat and >>> long around and so won't match up with my raster geotiff. The mouse >>> pointer coords actually show -123, 41 instead of 41, -123. >>> This came from a garmin Mapsource generated gpx file. >>> >> The problems of "axis order"[1] are a real bugger. I didn't know that >> Mapsource reversed the order. Here's an idea how to reverse the order >> of the Mapsource gpx files to get the lat and long correct: >> >> The proj4 utility cs2cs has a '-r' option to reverse x-y to y-x. But >> to use it, cs2cs expects a simple text list of coordinates (not the >> xml formatted gpx file). So you would first have to use gpsbabel to >> convert like so: >> gpsbabel -i gpx -o csv <waypoints.gpx> <waypoints.csv> >> Now edit that new csv file to *remove* all the commas. Then you can run: >> cs2cs -r +init=epsg:4326 +to +init=epsg:4326 waypoints.csv >> >> waypoints_fix.txt >> And finally use gpsbabel again to revert this new waypoints_fix.txt >> back to gpx format. >> >> It's pretty convoluted, but *might* work... >> >> Regards, >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: >> 270.12.45/2141 - Release Date: 05/29/09 06:28:00 >> >> > > _______________________________________________ > Qgis-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-user
<?xml version="1.0" encoding="UTF-8"?> <gpx version="1.0" creator="GPSBabel - http://www.gpsbabel.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/0" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd"> <time>2008-03-09T19:51:55Z</time> <bounds minlat="25.061783362" minlon="-121.750569502" maxlat="50.982883293" maxlon="121.640266674"/> <wpt lat="38.537733369" lon="-121.749731647"> <ele>15.506958</ele> <name>420-Gar1</name> <cmt>08-MAR-08 10:47:21AM</cmt> <desc>08-MAR-08 10:47:21AM</desc> <sym>Flag, Blue</sym> </wpt> <wpt lat="38.537054686" lon="-121.750569502"> <ele>17.429565</ele> <name>428-Gar1</name> <cmt>08-MAR-08 11:41:33AM</cmt> <desc>08-MAR-08 11:41:33AM</desc> <sym>Flag, Blue</sym> </wpt> <wpt lat="38.537911484" lon="-121.747749746"> <ele>10.219604</ele> <name>585-Gar1</name> <cmt>08-MAR-08 11:46:19AM</cmt> <desc>08-MAR-08 11:46:19AM</desc> <sym>Flag, Blue</sym> </wpt> <wpt lat="38.538415572" lon="-121.747440118"> <ele>17.669800</ele> <name>587-Gar1</name> <cmt>08-MAR-08 12:05:12PM</cmt> <desc>08-MAR-08 12:05:12PM</desc> <sym>Flag, Blue</sym> </wpt> <wpt lat="38.537524324" lon="-121.748754568"> <ele>17.669800</ele> <name>638-Gar1</name> <cmt>08-MAR-08 11:14:37AM</cmt> <desc>08-MAR-08 11:14:37AM</desc> <sym>Flag, Blue</sym> </wpt> <wpt lat="38.536393857" lon="-121.750364397"> <ele>16.708496</ele> <name>762-Gar1</name> <cmt>08-MAR-08 12:12:04PM</cmt> <desc>08-MAR-08 12:12:04PM</desc> <sym>Flag, Blue</sym> </wpt> <wpt lat="38.855549991" lon="-94.799016668"> <ele>325.049072</ele> <name>Garmin</name> <cmt>Garmin</cmt> <desc>Garmin</desc> <sym>Flag, Blue</sym> </wpt> <wpt lat="50.982883293" lon="-1.463899976"> <ele>35.934692</ele> <name>Garmin Europe</name> <cmt>Garmin Europe</cmt> <desc>Garmin Europe</desc> <sym>Flag, Blue</sym> </wpt> <wpt lat="25.061783362" lon="121.640266674"> <ele>38.097656</ele> <name>Garmin Taiwan</name> <cmt>Garmin Taiwan</cmt> <desc>Garmin Taiwan</desc> <sym>Flag, Blue</sym> </wpt> </gpx>
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
