[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [geogig-dev] Antwort: Re: Sync changes from GeoGig repository back to Postgis
|
Hi Markus,
About the Postgres export issue: The underlying geotools data store implementation defaults to a numeric feature id, so you’ll run into issues when there is a non-numeric path to a feature. One workaround for this is to create the table in Postgres before exporting to it (or modify the one that was created by the failed export), but use a text type for the "fid" column instead of an integer. You must also make sure the user has write access to the table in order to export to it.
Let me know if I can clarify anything else.
Thanks, - JD
Hi, Markus,
I'm not sure that the PostGIS error is a GeoGig error - I think its more likely a GeoTools PostGIS datastore issue. However, it might be considered more of a "feature, not a bug." Its possible that we can fix it on the GeoGig end by creating a features with a "geogig_fid" column that would be written to the DB. You can ask on the GeoTools list - I'm not sure if there's any control over the FID column type. The code in question is here;
I haven't really looked at format-patch -- thats a good suggestion. I'm not sure what format it actually uses, but I expect it would be fine. You'll have to write something that reads the patch and then executes the appropriate INSERT/DELETE/UPDATE sql commands.
Details of the patch format are here;
You can also see the FormatPatch and CreatePatchOp.
Hope that helps, Dave
_______________________________________________ geogig-dev mailing list geogig-dev@xxxxxxxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.locationtech.org/mailman/listinfo/geogig-dev
|
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail