geogig commands experimental - Greenstand/treetracker-gis GitHub Wiki

Usage: geogig export [options] [<commit-ish>:]<path> <table> (define source feature type tree and target table name)
  Options:
    --alter
       Export all features if several types are found, altering them to adapt to
       the output feature type
       Default: false
    --database, -D
       The database to connect to.  Default: database.gpkg
       Default: database.gpkg
    --defaulttype
       Export only features with the tree default feature type if several types
       are found
       Default: false
    --featuretype
       Export only features with the specified feature type if several types are
       found
    -i, --interchange
       Export as geogig mobile interchange format
       Default: false
    --overwrite, -o
       Overwrite output table
       Default: false
    --user, -U
       User name.  Default: user
       Default: user


Usage: geogig import [options]
  Options:
    --add
       Do not replace or delete features on the destination path, but just add
       new ones
       Default: false
    --all
       Import all tables.
       Default: false
    --alter
       Set the path default feature type to the the feature type of imported
       features, and modify existing features to match it
       Default: false
    -f, --cql-filter
       GetoTools ECQL filter
    --database, -D
       The database to connect to.  Default: database.gpkg
       Default: database.gpkg
    -d, --dest
       Path to import to
    --fid-attrib
       Use the specified attribute to create the feature Id
    --force-featuretype
       Use origin feature type even if it does not match the default destination
       featuretype
       Default: false
    --table, -t
       Table to import.
       Default: <empty string>
    --user, -U
       User name.  Default: user
       Default: user



 ./bin/geogig --repo repo2/ geopkg export trees trees
 ./bin/geogig --repo repo2/  geopkg import --table trees
 ./bin/geogig --repo repo2/ ls
 ./bin/geogig --repo repo2/ status
 ./bin/geogig --repo repo2/ add
 ./bin/geogig --repo repo2/ commit -m "Changed one attributes on one tree"
<<<<<<< HEAD


 ./bin/geogig init "postgresql://localhost/geogig2/repo?user=zaven&password="
 ./bin/geogig --repo "postgresql://localhost/geogig2/repo?user=zaven&password="  pg import --host localhost --database treetracker2 --user zaven --table trees100
 ./bin/geogig --repo "postgresql://localhost/geogig2/repo?user=zaven&password=" status

# this is giving an error, but seems like the right workflow
 ./bin/geogig --repo "postgresql://localhost/geogig2/repo?user=zaven&password=" pg export --database treetracker2 --user zaven -o trees100 trees_edit
 ./bin/geogig --repo "postgresql://localhost/geogig2/repo?user=zaven&password=" pg export --database treetracker --user zaven --schema public trees100 trees100




 Usage: geogig export [options] [<commit-ish>:]<path> <table> (define source feature type tree and target table name)
  Options:
    --alter
       Export all features if several types are found, altering them to adapt to
       the output feature type
       Default: false
    --database, -D
       The database to connect to.  Default: database
       Default: treetracker
    --defaulttype
       Export only features with the tree default feature type if several types
       are found
       Default: false
    --featuretype
       Export only features with the specified feature type if several types are
       found
    --host, -H
       Machine name or IP address to connect to. Default: localhost
       Default: localhost
    --overwrite, -o
       Overwrite output table
       Default: false
    --password, -W
       Password.  Default: <no password>
       Default: <empty string>
    --port, -P
       Port number to connect to.  Default: 5432
       Default: 5432
    --schema, -S
       The database schema to access.  Default: public
       Default: public
    --user, -U
       User name.  Default: postgres
       Default: zaven
⚠️ **GitHub.com Fallback** ⚠️