<div dir="ltr"><div><div style="font-family:arial,sans-serif;font-size:13px">Hello,</div><div style="font-family:arial,sans-serif;font-size:13px">I am trying to import a feature class from a file geodatabase (version 10 or greater) into PostGIS. After installing the FileGDB driver, I was able to successfully import a feature class which was in the EPSG 4326 spatial reference system.</div>
<div style="font-family:arial,sans-serif;font-size:13px">ogr2ogr -f PostgreSQL PG:dbname=fgdb_test dir4326/test4326.gdb<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
However, I created another file geodatabase and reprojected the feature class to the BC Albers projection (EPSG: 3005) and then attempted to import the new fgdb again and it failed with no error. My attempts:</div><div style="font-family:arial,sans-serif;font-size:13px">
ogr2ogr -f PostgreSQL PG:dbname=fgdb_test dir3005/test3005.gdb<br></div><div style="font-family:arial,sans-serif;font-size:13px">ogr2ogr -f PostgreSQL -s_srs EPSG:3005 PG:dbname=fgdb_test dir3005/test3005.gdb<br></div><div style="font-family:arial,sans-serif;font-size:13px">
ogr2ogr -f PostgreSQL -t_srs EPSG:3005 PG:dbname=fgdb_test dir3005/test3005.gdb<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">All failed with no errors. I am not trying to transform while importing.. I would just like to import a feature class in a projected coordinate system.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am testing using Ubuntu 12.04</div><div style="font-family:arial,sans-serif;font-size:13px">GDAL 1.9.2</div>
<div style="font-family:arial,sans-serif;font-size:13px">FileGDB_API_1_3-64<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Also, here is the output from ogrinfo:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><div>$ogrinfo dir4326/test4326.gdb/</div><div>INFO: Open of `dir4326/test4326.gdb/'</div><div> using driver `FileGDB' successful.</div><div>1: upcheak_landapp4326 (3D Multi Polygon)</div>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>$ogrinfo -al dir3005/test3005.gdb/</div>
<div>INFO: Open of `dir3005/test3005.gdb/'</div><div> using driver `FileGDB' successful.</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Thank you,</div><div style="font-family:arial,sans-serif;font-size:13px">Hailey</div></div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">Links to the 2 zip files of my 2 test geodatabases:</span><br>
</div><a href="http://filebin.ca/qjmBMOaH0cR/dir4326.zip">http://filebin.ca/qjmBMOaH0cR/dir4326.zip</a><br><div><a href="http://filebin.ca/qjmPiqEAsJ6/dir3005.zip">http://filebin.ca/qjmPiqEAsJ6/dir3005.zip</a><br></div></div>