Skip to main content
Question

Export multipolygons into a GeoPackage


jugoslaviaa
Enthusiast
Forum|alt.badge.img+6

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

6 replies

david_r
Celebrity
  • July 14, 2023

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


jugoslaviaa
Enthusiast
Forum|alt.badge.img+6
  • Author
  • Enthusiast
  • July 14, 2023
david_r wrote:

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


david_r
Celebrity
  • July 14, 2023
jugoslaviaa wrote:

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


ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • July 14, 2023

"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.


jugoslaviaa
Enthusiast
Forum|alt.badge.img+6
  • Author
  • Enthusiast
  • July 14, 2023
ebygomm wrote:

"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.


jugoslaviaa
Enthusiast
Forum|alt.badge.img+6
  • Author
  • Enthusiast
  • July 14, 2023
david_r wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings