David Trethewey wrote:
> http://www.srcf.ucam.org/cukernow/par1851.shp
>
> It's a map of the historic parishes of England and Wales if you're 
> curious.
>
> David
>

David:  You also need the corresponding .shx and .dbf files to open it - 
perhaps that is the problem?

-Jeff
> Jeff Whitaker wrote:
>> David Trethewey wrote:
>>> I've had problems trying to read shapefiles using the matplotlib 
>>> basemap toolkit
>>>
>>> I can import the shapelib module without error but when I try to 
>>> read a shapefile this happens:
>>>
>>> Traceback (most recent call last):
>>>   File "C:\Documents and 
>>> Settings\David\Desktop\cornwall\try_4828.py", line 44, in <module>
>>>     read_4828()
>>>   File "C:\Documents and 
>>> Settings\David\Desktop\cornwall\try_4828.py", line 7, in read_4828
>>>     shp=shapelib.ShapeFile('4828/4828/package/shp/par1851.shp')
>>>   File 
>>> "c:\python25\lib\site-packages\basemap-0.99.1.0001-py2.5-win32.egg\shapelib\shapelib.py",
>>>  
>>> line 44, in __init__
>>>     self.this = apply(shapelibc.new_ShapeFile,args)
>>> IOError: new_ShapeFile failed
>>>
>>> Anyone know why this might be?
>>>
>>> I'm using basemap 0.99.1 on Windows XP
>>>
>>> David
>>
>> David Can you post your shapefile somewhere so I can try it here?
>>
>> -Jeff
>>
>


-- 
Jeffrey S. Whitaker         Phone  : (303)497-6313
Meteorologist               FAX    : (303)497-6449
NOAA/OAR/PSD  R/PSD1        Email  : jeffrey.s.whita...@noaa.gov
325 Broadway                Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web    : http://tinyurl.com/5telg


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to