Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import and Export methods #28

Closed
ebocher opened this issue Jan 7, 2019 · 0 comments
Closed

Import and Export methods #28

ebocher opened this issue Jan 7, 2019 · 0 comments
Milestone

Comments

@ebocher
Copy link
Member

ebocher commented Jan 7, 2019

Add on IJdbcDataSource interface two methods import and export.

Signatures

IJdbcDataSource.import('/tmp/file.shp');
IJdbcDataSource.import('/tmp/file.shp', 'tableName');
IJdbcDataSource.import('/tmp/file.shp', 'tableName', 'encoding', 'delete');

IJdbcDataSource.export('/tmp/file.shp', 'tableName');
IJdbcDataSource.export('/tmp/file.shp', 'tableName', 'encoding');

SPalominos added a commit that referenced this issue Jan 15, 2019
This PR adds methods to :

    load a file to the database
    save a table to a file
    link a postgis table to an H2GIS database;
    link a file to an H2GIS database

When a file is loaded it can be casted in groovy thanks to the asType method.

This PR is linked to orbisgis/h2gis#958
@ebocher ebocher closed this as completed Jan 15, 2019
@SPalominos SPalominos added this to the v1.0.0 milestone May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants