I am writing to postgres/postgis st_geometry in an autmation that is loading many dwg datasets. (runs workbench on each dwg)
The postgis writer shows that ver 14 ignores writing od.
I need to get an oid calculated beginning with the last oid used (in the previous automation)
NOTE: postgis writer specifies that oid is ignored at postgres 14.
I tried just using a counter and hoped that writing to existing would automatically write the oid. (I get an error the oid already exists).
I am using this oid as the primary key so that It doesn't have to be set when adding to esri.
I have attempted to read the flat postgres table and sample the last n and then use that as a parameter to set the start number of the counter. But have not been successful getting that to work.
Any ideas on how to do this?