Skip to main content
Solved

writing the aggregate shapefile geometry

  • November 29, 2022
  • 7 replies
  • 111 views

fmesafe.podpora
Contributor
Forum|alt.badge.img+11

Hi. I would like to ask for advice. I have one airport geometry and I have for example three runways to this airport (for example BENESOV). I need to write this data into a shapefile including geometry = 3 x BENESOV airport geometry with runway number see printscreen. 204 elements are correct for the input of the shapefilewriter, but we only write elements that have one runway to one airport. Can someone please advise how to solve this? I am also attaching WS in the attachment. thank you very much

Best answer by nielsgerrits

That will probably be the error. And how should I edit it, please, if I need to write data into the shapefile? Thank you

Sure

2022-12-05_10h30_33

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • November 29, 2022

Not sure if I understand what you need, but when I run the workspace the log reports:

Dropping heterogeneous aggregate feature for the SHAPEFILE Writer, due to feature type allowed geometries restriction

A heterogeneous aggregate is a collection of multiple geometrytypes, like a collection of a point and a null geometry.

Shape only supports homogeneous aggregates, a collection of points, or lines, or polygons.


fmesafe.podpora
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 136 replies
  • November 29, 2022

Not sure if I understand what you need, but when I run the workspace the log reports:

Dropping heterogeneous aggregate feature for the SHAPEFILE Writer, due to feature type allowed geometries restriction

A heterogeneous aggregate is a collection of multiple geometrytypes, like a collection of a point and a null geometry.

Shape only supports homogeneous aggregates, a collection of points, or lines, or polygons.

That will probably be the error. And how should I edit it, please, if I need to write data into the shapefile? Thank you


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • November 29, 2022

That will probably be the error. And how should I edit it, please, if I need to write data into the shapefile? Thank you

You can "explode" a collection using a deaggregator transformer. Then use a GeometryFilter to split the geometrytypes.

 

Edit: This can be done in one transformer nowadays, as the GeometryFilter has an "homogenize collections" parameter.


fmesafe.podpora
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 136 replies
  • December 5, 2022

That will probably be the error. And how should I edit it, please, if I need to write data into the shapefile? Thank you

can I ask you to try setting it to workspace? I can't finish the result.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • Best Answer
  • December 5, 2022

That will probably be the error. And how should I edit it, please, if I need to write data into the shapefile? Thank you

Sure

2022-12-05_10h30_33


fmesafe.podpora
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 136 replies
  • December 5, 2022

That will probably be the error. And how should I edit it, please, if I need to write data into the shapefile? Thank you

Thank you very much for your time, your solution works, I had the deaggregator set wrong.

It's great that this community works.

Thanks a lot


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • December 5, 2022

That will probably be the error. And how should I edit it, please, if I need to write data into the shapefile? Thank you

Happy I could help. Aye, the community is a big part of the fun. Please pay it forward by helping someone in need :)