Open sorokine opened 1 year ago
@sorokine this is something we want to support eventually, but there's a few complications we need to resolve first: particularly with respect to format conversion/working copies (eg: GeoPackage/GeoJSON/Shapefile/FGDB don't support multiple geometry fields), and Kart's own spatial indexing.
We're accumulating use cases though, can you explain what you're using multiple geometries in a table for? Detail/overview? Polygons/Lines with associated point(s)? CRS?
In this specific case I am using multiple columns for geometries for the same feature but sourced from different datasets. Multiple geometries are rarely needed but it happens sometimes, especially at data wrangling stage.
Other software (pgsql2shp, ogr2ogr) let user specify which geometry column to import. An option like kart table-import --geometry-column ...
I think will cover 99%+ of all use cases.
Just re-discovered this - apologies for very untimely reply. Although not as convenient, the same end result should be possible if you are able to create a view of the original table that selects only one of the geometry columns, and then use kart to import the view of the table.
Description kart fails to import PostGIS tables that have more than one geometry column. Imported layers are unusable.
To Reproduce
insert into geom_x2(geom1, geom2) VALUES (ST_GeomFromText('POINT(-71.060316 48.432044)', 4326), ST_GeomFromText('POINT(-71.060316 48.432044)', 4326))
Expected behaviour Table to appear in the kart repository.
Output
Version Info