I'm trying to run m map, I have downloaded this and made it part of the pathway on matlab, I then run this line:
m_proj('utm','lat',[29 19],'lon',[-82 -97])
then:
m_gshhs_i('patch',[0.5 0.5 0.5]);
but get given this error:
Warning: Coastline file private/gshhs_i.b not found \n(Have you
installed it? See the M_Map User's Guide for details)\n ---Using
default coastline instead
> In mu_coast>get_coasts (line 460)
In mu_coast (line 101)
In m_gshhs (line 116)
In m_gshhs_i (line 28)
I have checked the file and everything is there and in the pathway, plus have redownloaded mutliple times, so if anyone has any ideas that would be a great hekp, thank you.

댓글 수: 9

Mark Sherstan
Mark Sherstan 2019년 1월 30일
If you enter just load coastlines does the error still occur?
Hollie Cushion
Hollie Cushion 2019년 1월 31일
when I type that in it says there is no file or direcctory
Mark Brandon
Mark Brandon 2019년 2월 1일
So coastlines.mat is part of the Matlab mapping toolbox so unless Hollie has that toolbox it won't be installed.
It's a path issue isn't it? Did you edit the m_gsggs.m script as described here Hollie
"If the database files are not in subdirectory m_map/private, you must edit the FILNAMEsetting in m_gshhs.m to point to the appropriate files."
You could try editing it to point to the absolute path rather than the relative path?
Hollie Cushion
Hollie Cushion 2019년 2월 1일
okay thank you, that made the first line run but now its saying it can't find the gshhs_i.b in the folder thats been selected and it isn't in there, so do you know where I get this from?
Hollie Cushion
Hollie Cushion 2019년 2월 1일
I've found it now, thanks for your help
Minerva Tellez
Minerva Tellez 2021년 4월 22일
Can you tell me where did you find the gshhs_i.b, please? :(
jorge
jorge 2022년 8월 22일
I have the same problem, can you tell me how you solved it?
please
Rik
Rik 2023년 7월 4일
Comment posted as flag by Xiaofei Zhan:
you can download a new coastline data and load in the path , the original tool box do not include it

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

답변 (2개)

Sathsara Dias
Sathsara Dias 2024년 2월 8일

1 개 추천

  1. Visit the National Centers for Environmental Information (NCEI) website at "https://www.ngdc.noaa.gov/mgg/shorelines/data/gshhg/latest/" to access the GSHHG (Global Self-consistent, Hierarchical, High-resolution Geography) data files.
  2. Locate and download the file named gshhg-bin-2.3.7.zip from the list of available files.
  3. Once the download is complete, extract the contents of the ZIP file. Within the extracted folder, search for a file named gshhs_i.b.
  4. Copy the gshhs_i.b file to the data folder located within the m_map folder in your project directory.
By following these instructions, you should have successfully integrated the GSHHG data into your project. This setup is crucial for the correct functioning of the mapping features. Good luck with your project, and should you encounter any issues, feel free to seek further assistance.
Aditya Kaloji
Aditya Kaloji 2022년 6월 26일

0 개 추천

Hi
You can this :
"If the database files are not in subdirectory m_map/private, you must edit the FILNAMEsetting in m_gshhs.m to point to the appropriate files."
Thanks

댓글 수: 2

Walter Roberson
Walter Roberson 2022년 6월 26일
That is what Mark suggested in 2019
Xiaofei Zhan
Xiaofei Zhan 2023년 7월 2일
you can download a new coastline data and load in the path , the original tool box do not include it

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

카테고리

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

제품

릴리스

R2016b

질문:

2019년 1월 30일

댓글:

2024년 3월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by