Skip to main content
Solved

writing the aggregate shapefile geometry

  • November 29, 2022
  • 7 replies
  • 90 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

fmesafe.podpora wrote:

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

View original
Did this help you find an answer to your question?

7 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

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
nielsgerrits wrote:

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+54
fmesafe.podpora wrote:

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
fmesafe.podpora wrote:

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+54
  • Best Answer
  • December 5, 2022
fmesafe.podpora wrote:

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
fmesafe.podpora wrote:

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+54
fmesafe.podpora wrote:

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 :)


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