Skip to content
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

Georeferencer: Wrong negative coordinates #16436

Closed
qgib opened this issue Apr 1, 2013 · 6 comments
Closed

Georeferencer: Wrong negative coordinates #16436

qgib opened this issue Apr 1, 2013 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Apr 1, 2013

Author Name: alobo - (alobo -)
Original Redmine Issue: 7484
Affected QGIS version: 1.8.0
Redmine category:rasters
Assignee: Radim Blazek


srcY cooordinates are taken as negative once the points file
is read in the plugin, while coordinates are correct
in the points file. probably a wrong interpretation of
the position in the Southern hemisphere
epsg 32719 (wgs84 utm19S)
See georef.jpeg

(also, please keep the same column order and names in
both the plugin and the points file).
Agus


@qgib
Copy link
Contributor Author

qgib commented Apr 1, 2013

Author Name: alobo - (alobo -)


The example was not appropriate because the gdal gcp assume image coordinates are
in pixels (col, row) and not in projected coordinates (qgis geoproc tool should
actually extract pixel coordinates in this case but this is a matter of another ticket)

The same problem of negative coordinates is shown in georefpix.jpeg. I also attach the points file.

I've successfully warped the image with those gcp and the following 2 gdal commands (similar to but not identical to the script generated by the plugin):

gdal_translate -of Float32 GTiff -a_srs EPSG:32719 -gcp 291 3075 652000 7.05881e+06 -gcp 386 2965 654768 7.06212e+06 ... "/media/Iomega_HDD/VOLCAN/HYPERION/RHyperion/adlspca10.tif" "/tmp/adlspca10.tif"

(note: deleted gcp in ...)

gdalwarp -ot Float32 -wt Float32 -r bilinear -order 2 -co COMPRESS=NONE -tr 30.000000 -30.000000 "/tmp/adlspca10.tif" "/media/Iomega_HDD/VOLCAN/HYPERION/RHyperion/adlspca10_corrbilin.tif"

Agus


  • 5482 was configured as georefpix.jpeg
  • 5483 was configured as adlspca10.tif.points

@qgib
Copy link
Contributor Author

qgib commented May 29, 2013

Author Name: Radim Blazek (@blazek)


Can you describe exactly the steps to reproduce it? I tried to

  • create new project
  • set project projection to 32719
  • open georeferencer plugin
  • load adlspca10.tif.point

but the points are loaded with positive srcY.

Could it be that it only happens when QGIS is run on a computer physically located on southern hemisphere? Have you tried to turn your computer upside down?


  • assigned_to_id was configured as Radim Blazek
  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented May 31, 2013

Author Name: alobo - (alobo -)


Works on 1.9 master on Mac
Does not work on 1.8 (Linux, Mac)

Agus

@qgib
Copy link
Contributor Author

qgib commented May 31, 2013

Author Name: Radim Blazek (@blazek)


  • priority_id was changed from Severe/Regression to Normal
  • version was changed from master to 1.8.0

@qgib
Copy link
Contributor Author

qgib commented May 31, 2013

Author Name: Giovanni Manghi (@gioman)


alobo - wrote:

Works on 1.9 master on Mac
Does not work on 1.8 (Linux, Mac)

Agus

if it works on master this can be closed, I guess.

@qgib
Copy link
Contributor Author

qgib commented May 31, 2013

Author Name: Paolo Cavallini (@pcav)


  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats) labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant