Opened 16 years ago
Closed 13 years ago
#2294 closed defect (wontfix)
ogr2ogr postgresql to interlis 1
Reported by: | mjurce | Owned by: | warmerdam |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | OGR_SF | Version: | unspecified |
Severity: | blocker | Keywords: | |
Cc: | pka, Even Rouault |
Description
When exporting a postgresql db to Interlis 1 with FW-Tools 2.0.6: /home/postgres/FWTools-1.2.1/bin_safe/ogr2ogr -f "Interlis 1" /home/postgres/tmp/ PG:dbname=mydb
Error:
./ogr2ogr: line 9: 5710 Segmentation fault $FWTOOLS_HOME/bin/basename $TARGET
"$@"
Attachments (1)
Change History (5)
comment:1 by , 16 years ago
Cc: | added |
---|
by , 16 years ago
Attachment: | points.zip added |
---|
comment:2 by , 16 years ago
Ok, excuse me, the comamndline correct was
/home/postgres/FWTools 2.0.6/bin_safe/ogr2ogr -f "Interlis 1" /home/postgres/tmp/mydb.itf PG:dbname=mydb.
I reported it wrong in first message. I made tests with previous versions, with FWTools-1.2.1 the conversion is working but generates only tables with geometries columns.
The conversion from your file points.shp to Interlis 1 is working with FWTools 2.0.6 too.
comment:3 by , 16 years ago
So, my guess is that it's the input part of the processing done by ogr2ogr that is wrong, not the output part.
Does an ogrinfo on your PG database work ? And a translation to Shapefile ? Attaching a debugger on your commandline or running Valgrind on it could help too to narrow your problem.
comment:4 by , 13 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
No feedback from maintener. I'd note that there is now FWTools 3.0.x with a much more recent GDAL version. Closing
Your commandline looks very suspicious. You're mentionning FWTools 2.0.6 but your executable path is in FWTools-1.2.1. It's the first thing to check.
I've run the following on a shape file with latest svn-trunk :
The error message is expected as directories are not supported as a target for Interlis 1. However I'm not clear why you get the crash. I'm attaching the shapefile I have mentionned, so you can test if it still crashes with it as input of ogr2ogr.