how to plot latitude and longitude data on map??

Please find the attachment.

댓글 수: 2

KSSV
KSSV 2018년 5월 28일
What map? What are your expectations?
google map!!!

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

 채택된 답변

jonas
jonas 2018년 5월 28일
편집: MathWorks Support Team 2022년 6월 3일

2 개 추천

The question is too vague. However, assuming you have the mapping toolbox, you probably want to use geoshow and/or geoplot.

댓글 수: 5

Vishnu Dhakad
Vishnu Dhakad 2018년 5월 29일
편집: Vishnu Dhakad 2018년 5월 29일
Thank you for your reply,
I don't have mapping toolbox.
I got a result. Please find the attachment.
It is simply plot but i want to plot on google map.
if you have any idea.
please suggest me.
thanks
jonas
jonas 2018년 5월 29일
Hello!
So what you need is to project that plot on a map.
On a google map? I don't know. What data can you get from google?
If you want to plot it on clean map, without having access to the mapping toolbox, then have a look at the answer given here ( link )
Now, I have mapping toolbox then how to plot those data on a simple map. Actually, this data is my road campaign data so I want to plot on the map. like this...
Please help
I'll give you two options and then you can choose depending on your desired output.
First option uses the mapping toolbox and is the most flexible and clean option. You will use the functions worldmap() and geoshow(). Worldmap gives you an empty grid using geocoordinates.
worldmap('India') %or
worldmap([LATmin LATmax],[LONmin LONmax])
You then use geoshow() to display whatever you want on this grid. Geoshow uses shapefiles with the extension .shp, which can be downloaded from various sources, such as diva-gis.org. I downloaded the Indian borders (IND_adm0.shp) and complete road network (IND_roads.shp). Plot together with your own data by e.g.:
LandArea=geoshow('IND_adm0.shp')
RoadNetwork=geoshow('IND_roads.shp')
Data=geoshow(Lat,Lon,'displaytype','line')
set(Data,'color',[1 0 0],'linewidth',2)
Using geoshow, you can also get textures, location of major cities etc. It's a very flexible option to produce maps without a lot of unnecessary details.
The next option uses google data. It does not require the mapping toolbox, is extremely simple to use but can be a bit buggy. It requires the FileExchange function plot_google_map() ( link )
figure;hold on
plot_google_map('MapScale', 1)
plot(Lon,Lat)
There you have it, I've uploaded a figure of the output by the second option.
Thanks

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Mapping Toolbox에 대해 자세히 알아보기

질문:

2018년 5월 28일

편집:

2022년 6월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by