Joe,
Excellent! this worked out perfectly...
thank you so much for your help.
Perhaps these shapefiles should be published somewhere, since it really is
useful to have.
I wasnt able to find it anywhere on the web.
anyway, problem solved; you saved my day.
thanks again,
P.R.
Date: Wed, 30 Jun 2010 22:00:15 -0500
From: jking...@wisc.edu
Subject: Re: [Matplotlib-users] extract country borders data & convert to
shapefile
To: romero...@hotmail.com
CC: matplotlib-users@lists.sourceforge.net
Ah, sorry I misunderstood.
You can get them by using GMT's gshhs tool (or just using pscoast with the
right options) to dump out the political borders in GMT format and then convert
them to a shapefile using ogr2org (or whichever tool you find easiest...
Personally I use the python wrappers around ogr for more control.)
To save you a bit of trouble, I zipped political boundary shapefiles (from
GSHHS version 2.0, so they'll coincide perfectly with the GSHHS coastline data)
and put them here: http://www.geology.wisc.edu/~jkington/borders.zip
There's probably a way to do it using basemap, as well, but I don't know it off
the top of my head.
Hope that helps,
-Joe
On Wed, Jun 30, 2010 at 9:33 PM, P. R.M. <romero...@hotmail.com> wrote:
hi,
thanks for the response.
I already have & know how to use the GSHHS coastline data; what I need is
political boundaries (country borders) data that will coincide with the GSHHS
coastline data. In other words, I can't simply use any political boundaries
shapefile, since the coastlines will not line up with the various resolutions
of the GSHHS coastline data. I hope this makes it a little more clear...
So, I'd like to source the country border data from matplotlib/basemap's GSHHS
dataset, and convert it to shapefile format.
can anyone please provide some guidance on how to achieve this?
thanks again,
P.Romero
Date: Wed, 30 Jun 2010 19:43:34 -0500
From: jking...@wisc.edu
Subject: Re: [Matplotlib-users] extract country borders data & convert to
shapefile
To: romero...@hotmail.com
CC: matplotlib-users@lists.sourceforge.net
If you just need the GSHHS data in shapefile format, it's available on the NOAA
GSHHS website.
If you prefer a direct link [96MB zip file]:
http://www.ngdc.noaa.gov/mgg/shorelines/data/gshhs/version2.0/shapefiles/gshhs_shp_2.0.zip
Hope that helps,
-Joe
On Wed, Jun 30, 2010 at 6:34 PM, P. R.M. <romero...@hotmail.com> wrote:
I have a non-matplotlib related project that requires usage of GSHHS dataset
shapefiles.
The regular GSHHS dataset doesnt appear to include political boundaries,
however the GSHHS dataset used by matplotlib/basemap does include
country/border data. I'd like to extract matplotlib/basemap GSHHS country data
& convert it to shapefile format.
specifically, the following files that are included with matplotlib/basemap:
countries_c.dat
countries_f.dat
countries_h.dat
countries_i.dat
countries_l.dat
countriesmeta_c.dat
countriesmeta_f.dat
countriesmeta_h.dat
countriesmeta_i.dat
countriesmeta_l.dat
how can I convert these files to shapefile format, or where can I get
shapefiles that already include this data & that are based on the GSHHS
coastline data?
please help,
thanks,
P.Romero
The New Busy is not the too busy. Combine all your e-mail accounts with
Hotmail. Get busy.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Hotmail is redefining busy with tools for the New Busy. Get more from your
inbox. See how.
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users