フィルターのクリア

how to plot latitude and longitude data on map??

11 ビュー (過去 30 日間)
Vishnu Dhakad
Vishnu Dhakad 2018 年 5 月 28 日
編集済み: MathWorks Support Team 2022 年 6 月 3 日
Please find the attachment.
  2 件のコメント
KSSV
KSSV 2018 年 5 月 28 日
What map? What are your expectations?
Vishnu Dhakad
Vishnu Dhakad 2018 年 5 月 28 日
google map!!!

サインインしてコメントする。

採用された回答

jonas
jonas 2018 年 5 月 28 日
編集済み: MathWorks Support Team 2022 年 6 月 3 日
The question is too vague. However, assuming you have the mapping toolbox, you probably want to use geoshow and/or geoplot.
  5 件のコメント
jonas
jonas 2018 年 6 月 11 日
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.
Vishnu Dhakad
Vishnu Dhakad 2019 年 6 月 27 日
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMapping Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by