[gdal-dev] Export to Geopackage

Dan Little theduckylittle at gmail.com
Thu Mar 14 08:15:26 PDT 2019


Set `-nlt` ?

On Thu, Mar 14, 2019 at 10:12 AM Dan Little <theduckylittle at gmail.com> wrote:
>
> Set `-nlt` ?
>
> On Thu, Mar 14, 2019 at 10:12 AM Randal Hale
> <rjhale at northrivergeographic.com> wrote:
> >
> > If I export a postgis table to geopackage:
> >
> > ogr2ogr -f GPKG  export.gpkg  PG:"host=gis1 user=rjhale dbname=dbname password=pass" -nln "addresspoints" -sql "select id, geom, addresses"
> >
> > I check the geopackage:
> >
> > rjhale at gis7:~/temp$ ogrinfo -so -al TCStransport.gpkg
> >
> > INFO: Open of `TCStransport.gpkg'
> >
> >       using driver `GPKG' successful.
> >
> > Layer name: addresspoints
> >
> > Geometry: Unknown (any)
> >
> > Feature Count: 23735
> >
> > Any idea on what I'm doing wrong - the unknown geometry seems to be causing an issue in another process. If I export without the SQL statement everything is fine.
> >
> > Randy
> >
> >
> > --
> > --
> > Randal Hale
> > rjhale at northrivergeographic.com
> > https://www.northrivergeographic.com
> > (423)653-3611
> >
> > _______________________________________________
> > gdal-dev mailing list
> > gdal-dev at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list