pixel coordinate from utm tiff file

Dear all,
I'm trying to get the coordinates for each pixel of a TIFF image that I got. I previously did it with other data using findm and work perfectly. After some tests that I did, I think that the problem now is because the TIFF image it is in UTM. I receive the following error: Error using constructGeoRasterReference (line 28) In combination with the number of rows in the raster grid, 508, the input referencing vector or matrix implies latitude limits that extend outside the interval [-90 90] degrees.
Error in refmatToGeoRasterReference (line 123) R = constructGeoRasterReference( ...
Error in internal.map.convertToGeoRasterRef (line 27) R = refmatToGeoRasterReference(R, rasterSize, func_name, var_name_R, arg_pos);
Error in findm>findRegular (line 66) R = internal.map.convertToGeoRasterRef( ...
Error in findm (line 46) [lat,lon,val] = findRegular(varargin{:});
In addition, I tried to do what a mathworks staff suggested to another user some time ago, but with no success, here is the other error: >> [x,y] = pix2map(info.RefMatrix, 1, 1)
x =
6.7660e+05
y =
3.5473e+06
>> [lat,lon] = projinv(info, x,y) Error using proj2gtif (line 18) The GeoTIFF structure PROJ cannot be used with functions PROJFWD or PROJINV.
Error in projaccess (line 28) [a, b] = feval(['gtifproj4' lower(fcn)], proj2gtif(proj), in_x, in_y, ...
Error in projinv (line 71) [lat, lon] = projaccess('inv', proj, x, y);
Any help would be more than appreciate.
Thanks,
Agustin

1 Comment

hello , if you solved this issue could you please tell me how ? because I have the same and I couldn't solve it ...
thanks

Sign in to comment.

Answers (0)

Products

Tags

Asked:

on 18 Feb 2013

Commented:

on 3 Jun 2018

Community Treasure Hunt

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

Start Hunting!