Skip to main content

I have a workbench which takes two inputs - both are polygons. One clips the other one. After clipping I use aggregator to aggregate the polygons with same attribute and the output i want to write into a gpkg file as multipolygon. The workbench works perfectly if i write single geometry to gpkg or if i write multipolygon into shp. However it is not working with mutlipolygon in gpkg. I have tried many things which were suggested in the forum. But nothing helped so far.

 

Please let me know any ideas. I am out of ideas

imageimage

It might be helpful if you could post a minimal workspace template there that makes it possible to reproduce the issue.


It might be helpful if you could post a minimal workspace template there that makes it possible to reproduce the issue.

Sure but how do I do that with my input data? I mean how can i upload the template with the data or sample data


Sure but how do I do that with my input data? I mean how can i upload the template with the data or sample data

Have a look here: https://community.safe.com/s/article/what-is-the-best-way-to-share-my-workspace-and-dat


"However it is not working with mutlipolygon in gpkg"

 

How is it not working? Is the workspace failing, if so are there any warnings or error messages? Is the geopackage getting created but does not contain the expected data? Are you getting individual polygons instead of multipolygons

 

You are using Table Handling 'Create if Needed' - if you are trying to write multipolygon data to an existing table that initially was created with geometry set to geopackage_polygon the setting in the writer won't be used and the polygons will be deaggregated on writing.


"However it is not working with mutlipolygon in gpkg"

 

How is it not working? Is the workspace failing, if so are there any warnings or error messages? Is the geopackage getting created but does not contain the expected data? Are you getting individual polygons instead of multipolygons

 

You are using Table Handling 'Create if Needed' - if you are trying to write multipolygon data to an existing table that initially was created with geometry set to geopackage_polygon the setting in the writer won't be used and the polygons will be deaggregated on writing.

There is no error whatsoever. But the final gpkg data has only the attribute of the features without geometry.


It might be helpful if you could post a minimal workspace template there that makes it possible to reproduce the issue.

So I created a minimal workbench and there the problem does not accure. I wrote the results after clip in the original workbench and I copied the rest and it is working. If you compare minimal workbench with the orginal, the output of the deaggregator is different although input is the same.. I dont get it.

image


Reply