I have a large line feature class (15GB) in a File Geodatabase that I would like to clip. I am trying to use ogr2ogr to do this, however I keep getting the error:
ERROR 1: Unable to write feature 11802 from layer inputLines. ERROR 1: Terminating translation prematurely after failed translation of layer inputLines (use -skipfailures to skip errors)
If I use –skipfailures, a lot of my lines are missing from the output.
The feature class itself seems ok.
- The ArcToolbox's Check Geometery tool returns no errors with the input feature class.
- I am also able to use ogr2ogr to copy the input feature class without any errors and have tried to use new feature class as input with the same result.
Here’s what I’m using when I try to output to another feature class.
ogr2ogr e:\output.gdb e:\input.gdb inputLines -clipsrc clipPoly.gdb -nln outputFc -f "FileGDB"
Here’s what I use when I try to output to PostGIS
ogr2ogr PG:"dbname='mydb' host='localhost' port='5432' user='postgres' password='password'" e:\input.gdb inputLines -clipsrc clipPoly.gdb -f "PostgreSQL"
The error is nearly identical except for the feature id number.
Last, I've also tried the ArcToolbox Clip tool, it just crashes after about 10 minutes.