Why does projfwd not work on some geotiff files?

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.

Error using proj2gtif (line 17) The GeoTIFF structure PROJ cannot be used with functions PROJFWD or PROJINV.

Error in projaccess (line 40) gtif = proj2gtif(proj);

Error in projfwd (line 60) [x,y] = projaccess(‘fwd’, proj, lat, lon);

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

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

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Optimizing QuickSight using Athena Queries and SPICE: Operating cost analysis

Lessons from Mathematics for Decision making

Softmax Activation Function — How It Actually Works

Predictive modeling for the number of podcast reviews

The Current State of Data Management Storytelling

How I Deployed a Sentiment Analyser API with spaCy, Flask and Heroku

Covid-19: Lockdown easing readiness factor

Managing Data Scientists & Working with Data Science Managers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

What is the difference between IMWARP and IMTRANSFORM?

Sandeep 😎😎😎

What does Cost Function do in Machine learning.

Why am I unable to preview the video from my DALSA