Display Geographic Raster Data

5 visualizzazioni (ultimi 30 giorni)
YongHyun
YongHyun il 26 Giu 2015
Modificato: Walter Roberson il 29 Giu 2015
filename = 'tif.tif';
RGB = imread(filename);
R = worldfileread(getworldfilename(filename), 'geographic', size(RGB));
It does't work.
Below is the error message.
Error using map.rasterref.GeographicRasterReference/setLatitudeProperties (line 874)
In combination with specified number of rows, 700, the values specified for the FirstCornerLatitude, DeltaLatitudeNumerator, and
DeltaLatitudeDenominator properties imply latitude limits that extend outside the interval [-90 90] degrees.
Error in map.rasterref.GeographicCellsReference (line 211)
R = R.setLatitudeProperties( ...
Error in map.rasterref.internal.constructGeographicRasterReference (line 14)
R = map.rasterref.GeographicCellsReference(rasterSize, ...
Error in georasterref (line 132)
R = map.rasterref.internal.constructGeographicRasterReference( ...
Error in worldfileread (line 62)
R = georasterref(W, rasterSize, 'cells');

Risposte (1)

Adam Hug
Adam Hug il 29 Giu 2015
I believe that you are receiving this error because the intrinsic coordinate system of your image does not make sense in a geographic context. This documentation page on how MATLAB deals with image coordinate systems may be of some help:

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by