I am working with a set of geoTIFF files. For some of them, I receive an error when I attempt to use the projfwd function (see below). I have little experience with the Mapping Toolbox and geoTIFF files and would appreciate any help better understanding this problem.
NOTE:-
I believe I have discovered the problem. There are multiple types of geoTIFF files, each requiring different treatment. I've written how I handled the differences below. Note that my ultimate goal was to convert latitude and longitude data into pixel coordinates, which I call 'row' and 'col'.
%Get geoTIFF file information info = geotiffinfo(geoTIFF_filename); %Get geoTIFF image file data based on ColorType field of 'info' switch lower(info.ColorType) case 'indexed' [~, ~, R] = geotiffread(geoTIFF_filename); otherwise [~, R] = geotiffread(geoTIFF_filename); end %Convert latitude and longitude
SEE COMPLETE ANSWER CLICK THE LINK
Comments
Post a Comment