[Gdal-dev] Ogr2ogr crashes for MiF/Mid

Daniel Morissette dmorissette at dmsolutions.ca
Wed Feb 15 08:18:15 EST 2006


Marc Jacquin wrote:
> Hi all,
> 
> Ogr2ogr seems to be a convenient tool for transforming WKT geometries into
> other formats like Shape files or MapInfo files.
> 
> But ogr2ogr crashes when using MapInfo File output, runs OK for the same
> command line with ESRI Shapefile output.
> 
> ogr2ogr -f "MapInfo File" d:/temp/aaaa.mif PG:"user=xxx dbname=postgres
> host=localhost port=5432 password=zzzz" -sql "select
> Geomfromtext('POLYGON((-15 -15, -15 15, 15 15,15 -15,-15 -15))')"
> 
> It runs OK too with the name of a table instead of the SQL statement.
> 

Marc,

Can you please try converting from the postgres DB to shapefile, and 
then from shapefile to mif/mid. If that still produces the crash then 
please submit a bug, attach the shapefile dataset that can be used to 
reproduce the problem, and assign it to me. Also please indicate which 
version of OGR you're using.

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the Gdal-dev mailing list