Riverscapes / QRiS

Riverscapes Studio - for QGIS
https://qris.riverscapes.net
GNU General Public License v3.0
2 stars 0 forks source link

Riverscapes Viewer fails to show features exported as multiline or multipolygon #412

Closed Jdgilby closed 5 months ago

Jdgilby commented 5 months ago

image Looks like a change in business logic would fix it. image Just wanted to make it known incase we wanted to convert layers from multi to single on export.

KellyMWhitehead commented 5 months ago

I will make the change in the project export to just points, lines, polygons. Keep the business logic as is.

Jdgilby commented 5 months ago

@KellyMWhitehead Will the ones that end up being multi just be left out or converted to single prior to export?

KellyMWhitehead commented 5 months ago

@Jdgilby

Those layers will remain multipart. The viewer doesn't really care about multi vs single, it just needs to know the base geometry type.

KellyMWhitehead commented 5 months ago

@Jdgilby Ok, I've changed my mind (sorry!). Lets try changing the business logic first:

<Repeater label="Points" xpath="Datasets/Geopackage/Layers/Vector[contains(Summary, 'context_point') or contains(Summary, 'context_multipoint')]">
<Repeater label="Lines" xpath="Datasets/Geopackage/Layers/Vector[contains(Summary, 'context_linestring') or contains(Summary, 'context_multilinestring')]">
<Repeater label="Polygons" xpath="Datasets/Geopackage/Layers/Vector[contains(Summary, 'context_polygon') or contains(Summary, 'context_multipolygon')]">

If that doesn't work, then I will make the change in QRiS.

Jdgilby commented 5 months ago

@KellyMWhitehead That looks like it worked, thanks.

KellyMWhitehead commented 5 months ago

Fix made to BL, no changes needed in QRiS. Closing issue.