[gdal-dev] Problems loading swedish climate data to PostGIS
thiemo at gelassene-pferde.biz
Tue Jun 23 16:48:50 PDT 2020
Eli, you are quite right. Typo of mine.
thiemo @ thiemos-toshi /mnt/schweden % ogr2ogr test.shp SCID_v4.0.gdb
Does work with me too, sort of. As you can see, I suppressed error
output. Without it, I get flooded with warnings:
Warning 1: Value 524332509.438000023 of field AREA of feature 4961 not
successfully written. Possibly due to too larger number with respect
to field width
More than 1000 errors or warnings have been reported. No more will be
reported from now.
It puzzles me, however, that if I explicitly give the output format,
it fails miserably.
thiemo @ thiemos-toshi /mnt/schweden % ogr2ogr –f "ESRI Shapefile"
Unable to open datasource `ESRI Shapefile' with the following drivers.
Jeff, suggested, I tried to load into a new empty database with.
thiemo @ thiemos-toshi /mnt/schweden % ogr2ogr -overwrite –progress
--config PG_USE_COPY YES PG:"host='/var/run/postgresql' port='6543'
dbname='sverige_gdb' user='sverige'" SCID_v4.0.gdb
ERROR 1: Couldn't fetch requested layer 'SCID_v4.0.gdb'!
But still, I get errors.
Got it! Thomas, you are a genius! You are right with your dash
assumption. Whatever I copied from the documentation pdf was not a
dash! It loads into non-empty database (as was to be expected).
Thanks folks, for helping! It loads
Quoting Eli Adam <eadam at co.lincoln.or.us>:
> On Tue, Jun 23, 2020 at 1:40 PM Thiemo Kellner
> <thiemo at gelassene-pferde.biz> wrote:
>> thiemo @ thiemos-toshi /mnt/schweden :-( % ogr2ogr –f "ESRI Shapefile"
>> test.shp SCID_v4.0.gdb/gdb.shp SCID_v4.0.gdb
>> Unable to open datasource `ESRI Shapefile' with the following drivers.
>> -> `PCIDSK'
> I think that ogr2ogr destination and source datasets is like this:
> dst_datasource_name src_datasource_name
> Can you try this: ogr2ogr test.shp SCID_v4.0.gdb
> If that works, build from there.
> HTH, Eli
S/MIME Public Key: https://oc.gelassene-pferde.biz/index.php/s/eJuAUFONag6ofnH
Signal (Safer than WhatsApp): +49 1578 7723737
Handys: +41 78 947 36 21 | +49 1578 772 37 37
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4001 bytes
Desc: S/MIME Signature
More information about the gdal-dev