[FWTools] Problems with GML to Shapefile

Paul Wittle pwittle at pba.co.uk
Mon Jan 12 10:24:50 EST 2009


Thanks for getting back to me.

Most of the errors are Error 1, can not create a dataset or can not open
a dataset. It is not running from within the shell I don't think so I
had to set the GDAL_DATA environment variable. Can I pass the command to
the FWTools shell with a batch file because at the moment I'm using
cmd.exe.

Thanks,
Paul. 

-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
Sent: 12 January 2009 15:12
To: Paul Wittle
Cc: fwtools at lists.maptools.org
Subject: Re: [FWTools] Problems with GML to Shapefile

Paul Wittle wrote:
> Hello,
>  
> I'm having trouble running the following code from a batch file and I 
> can't work out what is wrong.
>  
> C:\FWTools2.2.8\bin\ogr2ogr.exe -f "ESRI Shapefile" 
> "C:\Import\shape\1_CS.shp" "C:\Import\gml\1.gml" CS -a_srs EPSG:4277 
> -update
>  
> [my install dir for FWTools] -f [convert to] [output shapefile name] 
> [input gml layer] [layer in gml] [OSGB projection] [update file if it 
> exists]
>  
> As far as I can tell it worked on one computer and not on another, am 
> I missing something fundamental in terms of the declaration?

Paul,

What error do you get?

Are you running the command from within the FWTools shell?  There are
several environment variables needed for correct operation of ogr2ogr,
and they are normally defined in the FWTools shell environment, but not
outside it.  In particular, EPSG:4277 won't be correctly expanded unless
the GDAL_DATA environment variable is set.

Best regards,
-- 
---------------------------------------+--------------------------------
---------------------------------------+------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



--------------------------------------------------------------------
This message has been scanned for viruses by BlackSpider MailControl


-----------------------------------------------------------------------------
Peter Brett Associates LLP is a limited liability partnership and is registered in England and Wales with registered number OC334398.
A list of members names is open to inspection at our registered office.

Registered Office: Caversham Bridge House, Waterman Place, Reading, Berkshire, RG1 8DN. UK
T: +44 (0)118 950 0761 F: +44 (0)118 959 7498.

Email is used as a convenient medium for rapid data transfer. Any contractual correspondence sent or received by email will not be held to be such unless and until it is received in writing by a Fax or Letter.

Likewise file attachments must be treated as uncontrolled documents until issued as hard copy.

This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If an addressing or transmission error has misdirected this email please notify the author by replying to this email and delete the email. If you are not the intended recipient you must not use or disclose, print or rely on this email.

Any OS Data attached to this email is issued in accordance with Licence 
No. 100017583 under condition that it is used to plot once and not retained 
on the recipients computer system.

Peter Brett Associates LLP accepts no liability for the contents of emails unconnected with the affairs of the firm or its clients.

-----------------------------------------------------------------------------
This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com


More information about the FWTools mailing list