[GRASS-user] OpenFileGDB input error

Moritz Lennert mlennert at club.worldonline.be
Mon Sep 25 07:32:37 PDT 2017


[Please keep discussions on the list.]

On 25/09/17 16:19, Rich Shepard wrote:
> On Mon, 25 Sep 2017, Moritz Lennert wrote:
> 
>> I can't answer that, but what happens when you run ogr2ogr on the layer to
>> transform it into a GeoPackage or a Shapefile?
> 
> Moritz,
> 
>     I've not before used ogr2ogr and reading the man page leaves me uncertain
> which options I should use other than the destination and source formats.
> 
>     This is the summary of the source .gdb:
> 
> Layer name: WSDACrop_2016
> Geometry: Multi Polygon
> Feature Count: 198132
> Extent: (194040.798600, 26290.144100) - (776078.287500, 411036.825500)
> Layer SRS WKT:
> PROJCS["NAD83(HARN) / Washington South",
>       GEOGCS["NAD83(HARN)",
>           DATUM["NAD83_High_Accuracy_Reference_Network",
>               SPHEROID["GRS 1980",6378137,298.257222101,
>                   AUTHORITY["EPSG","7019"]],
>               TOWGS84[0,0,0,0,0,0,0],
>               AUTHORITY["EPSG","6152"]],
>           PRIMEM["Greenwich",0,
>               AUTHORITY["EPSG","8901"]],
>           UNIT["degree",0.0174532925199433,
>               AUTHORITY["EPSG","9122"]],
>           AUTHORITY["EPSG","4152"]],
>       PROJECTION["Lambert_Conformal_Conic_2SP"],
>       PARAMETER["standard_parallel_1",47.33333333333334],
>       PARAMETER["standard_parallel_2",45.83333333333334],
>       PARAMETER["latitude_of_origin",45.33333333333334],
>       PARAMETER["central_meridian",-120.5],
>       PARAMETER["false_easting",500000],
>       PARAMETER["false_northing",0],
>       UNIT["metre",1,
>           AUTHORITY["EPSG","9001"]],
>       AXIS["X",EAST],
>       AXIS["Y",NORTH],
>       AUTHORITY["EPSG","2856"]]
> FID Column = OBJECTID
> Geometry Column = SHAPE
> CropGroup: String (254.0)
> Acres: Integer (0.0)
> Irrigation: String (254.0)
> InitialSurveyDate: DateTime (0.0)
> LastSurveyDate: DateTime (0.0)
> DataSource: String (254.0)
> Notes: String (254.0)
> TRS: String (15.0)
> County: String (254.0)
> RotCropType: String (254.0)
> ExactAcres: Real (0.0)
> Organic: String (3.0)
> SHAPE_Length: Real (0.0)
> SHAPE_Area: Real (0.0)
> 
> Layer name: CropData
> Geometry: None
> Feature Count: 198132
> Layer SRS WKT:
> (unknown)
> FID Column = OBJECTID
> CropGroup: String (254.0)
> CropType: String (254.0)
> Acres: Integer (0.0)
> Irrigation: String (254.0)
> InitialSurveyDate: DateTime (0.0)
> LastSurveyDate: DateTime (0.0)
> DataSource: String (254.0)
> Notes: String (254.0)
> TRS: String (15.0)
> County: String (254.0)
> RotCropType: String (254.0)
> ExactAcres: Real (0.0)
> Organic: String (3.0)
> SHAPE_Length: Real (0.0)
> SHAPE_Area: Real (0.0)
> 
>     The error after the ogr first pass is "ERROR: Unknown geometry type"

This is with what command line ?

> 
>     Do I run ogr2ogr with no options specifying the same file name with
> extension .shp for the destination and with the extension .gdb for the
> source?

You can use whatever filename you want, but this should work, yes.

Moritz


More information about the grass-user mailing list