[FWTools] Problems with GML to Shapefile

Paul Wittle pwittle at pba.co.uk
Tue Jan 13 05:39:58 EST 2009


Hello Frank,

Yes the error you reference does seem to be the problem as I am
specifying an output shapefile and it is interpreting that as a dataset
(or folder) and therefore failing to write to it. 

Best Regards 

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

Paul Wittle wrote:
> 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.
...
>> 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

Paul,

I'm a bit vague on how to launch the FWTools shell with a batch file,
but you can call the same init stuff that FWTools shell does in a batch
file and your environment should be fine.

I just noticed that you are attempting to write to shapefiles in update
mode.  I wonder if you might be running into:

   http://trac.osgeo.org/gdal/ticket/2771

Error 1 is not very specific.  Are any messages issued with the error?

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