필터 지우기
필터 지우기

Convert to Mercator projection?

조회 수: 8 (최근 30일)
Ryan
Ryan 2015년 1월 2일
답변: Ryan 2015년 1월 12일
Attached I have a map... is there an easy way to make this projection Mercator? I am still a novice when it comes to mapping so any help would be greatly appreciated.
Oh and while we're at it, I must plot point on this map... but this code: "plotm(41,-103,'r','MarkerSize',20)" only makes an extremely small dot... despite adjusting MarkerSize..
Again, any assistance on both problems would be greatly appreciated!
figure
worldmap([30 50],[-110 -70]);
geoshow('Shapefiles/cb_2013_us_county_5m.shp', 'FaceColor', [.5 .5 1]);

채택된 답변

Chad Greene
Chad Greene 2015년 1월 2일
Converting projections after plotting doesn't usually work. To initialize a mercator map with those lat/lon limits, try this:
axesm('mercator','maplatlimit',[30 50],'maplonlimit',[-110 -70])
geoshow('usastatehi.shp')
  댓글 수: 1
Chad Greene
Chad Greene 2015년 1월 2일
편집: Chad Greene 2015년 1월 2일
A workaround for the marker size issue, is you can specify a circle of given radius in kilometers or any other unit with circlem. Here's a red circle of 100 km radius.
axesm('mercator','maplatlimit',[30 50],'maplonlimit',[-110 -70])
geoshow('usastatehi.shp')
circlem(41,-103,100,'facecolor','red')

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Ryan
Ryan 2015년 1월 12일
Hello again Chad! Thank you for this. I ended up using "scatterm" which seemed sufficient for the image I wanted to generate. Thanks also for the tip on establishing map projection.

카테고리

Help CenterFile Exchange에서 Map Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by