Export Line Feature using ogr2ogr.

by Ian Horn   Last Updated May 16, 2018 14:22 PM

I am trying to export a line feature class from an oracle spatial database to a file geodatabase. I can export polygons with no problem, but cannot find the appropriate command '-nlt' for Line Feature.

    ogr2ogr  -update -overwrite -nln  CONVERT_TO_LINEAR  -nln sf_line -a_srs EPSG:3089 -progress -f FileGDB g:/...." "

Answers 1

I was able to use the '-nlt linestring' to export a line feature class successfully. The error appears to have been embedded in the sql statement. I was joining two tables and a view. The view was originally written using the 'myview.*'. I changed the SQL so that added each variable individually. This seemed to work.

    table1.var1, table2.var2, myview.variable1, myview.variable2 . . . myview.variableN'.  
Ian Horn
Ian Horn
April 18, 2016 18:34 PM

Related Questions