Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am using this matlab package to project the latitudes,longitudes of my data to a specific projection.

For this particular case I am using albers equal-area. Now when I do the projection, I am using the following code

m_proj('albers equal-area');
[x y] = m_ll2xy(longitude,latitudearray);

My question is when I specify the projection method, do I need to specify the geographical bounds. I mean do I need to pass the latitude, longitude bounds to the function m_proj

I have got the following results. I am not sure if these points are correct.

lat                   lon                  x                      y
24.590960444058823    -119.6310020520101   -0.0778982228028     -0.3893279

Can anyone provide some suggestions?

share|improve this question
Your question ("do I need to specify...") is fully answered in the user's guide you link to. – whuber Jul 23 '12 at 14:49
They have specified that I don't need to provide the other options except chosing the projection type. The rest will be defaults. But looking at the x and y values that I obtained. I am not sure if it is giving the correct results. Or is it ok to have such kind of x and y values? – user31820 Jul 23 '12 at 19:38
Literally anything could be the value of projected coordinates; without more context, it's impossible to tell whether they are correct or not. Have you been able to reproduce the examples themselves? – whuber Jul 23 '12 at 20:27
No, I haven't tried to examples. I directly used the function ml12xy to get the projected coordinates given the lat/lon value. However, now when I tried to run the example with m_proj('oblique mercator'); it showed an error. Undefined function or method 'finite' for input arguments of type 'double'. However, if I use albers equal-area, it is fine and doesn't show any error – user31820 Jul 23 '12 at 20:36
Guess it was the issues with the finite function and new version of matlab. Replacing finite with isfinite solved the issue as given in this link – user31820 Jul 23 '12 at 20:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.