[FWTools] Working with shapefile using python binding

Moreau, Jean-Sebastien jmoreau at nrcan.gc.ca
Fri Jan 27 10:43:33 EST 2006


Hi list!

I'm trying to work with some shapeFiles using the python binding library.
Unfortunately, when I run the following commands in python I get this error
message:

>>>import ogr
>>>driver=ogr.GetDriverByName('ESRI ShapeFile')
Unexpected Error
Type: ogr.OGRError
Description: Unable to find ogr.Driver named "ESRI ShapeFile".

Traceback:

	File	:	ogr.py
	line number:	365
	function	:	GetDriverByName
	line:		raise OGRError, 'Unable to find ogr.Driver named
"%s" . ' % name

I thought I could use shapefile with this package. Am I doing something
wrong?
I've install the binary windows package on my windows 2000 computer. 

Thanks in advance!

Jean-Sébastien Moreau

Centre d'information topographique de Sherbrooke 
Ressources naturelles Canada 
2144, rue King Ouest, bureau 010 
Sherbrooke (Québec) J1J 2E8 
Tél. : (819) 564-5600-ext 295     Téléc. : (819) 564-5698 
Courrier électronique : jmoreau at RNCan.gc.ca 

Centre for Topographic Information of Sherbrooke 
Natural Resources Canada 
2144, King Street West, Suite 010 
Sherbrooke, Quebec  J1J 2E8 
Tel.:  (819) 564-5600-ext 295     Fax:  (819) 564-5698 
E-mail:  jmoreau at NRCan.gc.ca 





More information about the FWTools mailing list