From: Gus on
Im trying to create high resolution shorelines using the m_map toolbox and data from the GSHHS website.

I have put the files gshhs_X.b in the folder m_map\private as suggested in m_map manual.

However i get the message:
Warning: Coastline file private/gshhs_c.b not found
(Have you installed it? See the M_Map User's Guide for details)
---Using default coastline instead

Well the files are there but an fopen command:
fid=fopen(file,'r','ieee-be');
where
file=private/gshhs_c.b
gives fid=-1.

I have followed the instructions correctly.. Downloaded the files gshhs_X.b many times.. How can i get it to work??
From: Gus on
I also copied the code given as an example in m_map users guide:

% Example showing the default coastline and all of the different resolutions
% of GSHHS coastlines as we zoom in on a section of Prince Edward Island.

axes('position',[.09 .5 .37 .37]);
m_proj('albers equal-area','lat',[40 54],'long',[-80 -55],'rect','on');
m_gshhs_c('patch',[.2 .8 .2]);
m_grid('linest','none','linewidth',2,'tickdir','out','xaxisloc','top');
m_text(-80,52.5,'GSHHS\_C (crude)','color','m','fontweight','bold','fontsize',14);

I dont get any error messages but my figure appears empty and white.

From: TideMan on
On May 14, 1:50 am, "Gus " <kostis...(a)gmail.com> wrote:
> Im trying to create high resolution shorelines using the m_map toolbox and data from the GSHHS website.
>
> I have put the files gshhs_X.b in the folder m_map\private as suggested in m_map manual.
>
> However i get the message:
> Warning: Coastline file private/gshhs_c.b not found
> (Have you installed it? See the M_Map User's Guide for details)
>  ---Using default coastline instead
>
> Well the files are there but an fopen command:
> fid=fopen(file,'r','ieee-be');
> where
> file=private/gshhs_c.b
> gives fid=-1.
>
> I have followed the instructions correctly.. Downloaded the files gshhs_X..b many times.. How can i get it to work??

You've chosen a funny way to check that the files are there.
Why not use Windows Explorer or Nautilus (in Linux)?
But in any case, what is your pwd?
Are you sure the file shouldn't be:
m_map\private\gshhs_c.b

In my m_map\private directory I have gshhs_X.b, where X=c,f,h,i, and
l.
Is that what you have?

Believe me, this facility in m_map works. I use it all the time.
So, it's not a bug. You have screwed up somewhere.
From: Gus on

> Are you sure the file shouldn't be:
> m_map\private\gshhs_c.b

I use the default path (as written in instructions), havent changed anything
\private\gshhs_c.b

> In my m_map\private directory I have gshhs_X.b, where X=c,f,h,i, and
> l.
> Is that what you have?

Is that what i have.

> Believe me, this facility in m_map works. I use it all the time.
> So, it's not a bug. You have screwed up somewhere.

I didnt create code here, just did what the manual says.
From: TideMan on
On May 14, 7:35 pm, "Gus " <kostis...(a)gmail.com> wrote:
> > Are you sure the file shouldn't be:
> > m_map\private\gshhs_c.b
>
> I use the default path (as written in instructions), havent changed anything
> \private\gshhs_c.b
>
> > In my m_map\private directory I have gshhs_X.b, where X=c,f,h,i, and
> > l.
> > Is that what you have?
>
> Is that what i have.
>
> > Believe me, this facility in m_map works.  I use it all the time.
> > So, it's not a bug.  You have screwed up somewhere.
>
> I didnt create code here, just did what the manual says.

I'm afraid you're in denial.
It's a bad attitude for successful programming in any language.
The program is telling you it cannot find private/gshhs_c.b.
Looking for a bug in the program is getting you nowhere.
You must accept that you have screwed up and address the problem.