I need to write a couple of 100 tables from postgis into several geopackage files.
This should be a pretty simple job? But the workbench fail
OGCGEOPACKAGE writer: OGCGEOPACKAGE writer: For feature type 'd_y_n', primary key attribute 'id' has unsupported type 'mediumint'. Primary key must have type 'int'
This is related to https://community.safe.com/s/question/0D54Q00009SAyLQSA1/geopackage-dynamic-writer-error-unsupported-type-mediumint?t=1669103461721 and a follow up https://community.safe.com/s/question/0D54Q00009w0K1ZSAU/ogcgeopackage-writer-primary-key-attribute-id-has-unsupported-type-mediumint?t=1694607976804
"It seems like FME is trying to write a 32b integer when its expecting a 64b integer"
Is there a solution to this problem?
I need something stable to run in a production environment, this job will run nightly.
I can easily script what I want to achieve using ogr2ogr (append several postgis tables into one or several gpkg)
Simple example to append a table to an existing gpkg database.
ogr2ogr -f "GPKG" "c:\\temp\\export.gpkg" PG:"host=pgprod port=5432 dbname=DB user=USRpassword=PWD" "SCHEMA.TABLE" -append
But i wish to use FME instead of having several different scripts and routines.
Any ideas?