Skip to main content
Question

Multicurve to Multiline Geometry Conversion

  • September 27, 2016
  • 6 replies
  • 1176 views

How can I convert a Multicurve geometry type to multiline geometry type?

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.

6 replies

takashi
Celebrity
  • September 28, 2016

Hi @vojvod, in the FME geometry model classification, MultiCurve is a collection of Curve geometries, and Line is a kind of Curve. See here to learn more: FME Geometry Model

I'm not sure what "multiline" in the context means, but the ArcStroker might help you if you want to transform Arc(s) within a MultiCurve to Line(s).


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • September 29, 2016

Hi @vojvod, in the FME geometry model classification, MultiCurve is a collection of Curve geometries, and Line is a kind of Curve. See here to learn more: FME Geometry Model

I'm not sure what "multiline" in the context means, but the ArcStroker might help you if you want to transform Arc(s) within a MultiCurve to Line(s).

I agree. I don't think FME itself has a Multiline geometry type. Can you explain why this is necessary? Are you writing to PostGIS and want a multiple geometry of a particular type?

 

 


arnold_bijlsma
Enthusiast
Forum|alt.badge.img+15
I have the same problem. I'm trying to write a set of unconnected related lines ("multiline" or "aggregate line") into a gdb, but getting an error about "multicurves".

 

A good example of a multiline (I think) is the land border between Canada and the US.

 

 


geo-x
Supporter
Forum|alt.badge.img+6
  • Supporter
  • July 30, 2018
Dear FME community, I've the same problem and I don't find what kind of FME geometry is compatible woth Postgis Multilinestring. Have you find the solution since last year ?

 


hordor
Contributor
Forum|alt.badge.img+1
  • Contributor
  • December 8, 2022

I had a similiar problem when writing to PostGis. I have a shape-layer which will be recognized as Multilinestring when read by QGIS. In FME it appears as FMEMultiCurve. FMEMultiCurve cannot be written to PostGIS Multilinestring - even when there are only lines in it.

Here is my solution:

First use Deaggregator, then Geometryfilter to be sure there are only lines, then reaggregate with Aggregator.

image.pngimage.png


cheffing
Forum|alt.badge.img
  • July 3, 2023

Same problem ...

for me worked:

  • GeometryFilter to select only the lines
  • Aggregator
  • Deaggregator

Then I got in postgis:

  • LineString
  • MultiLineString

and all geometries were fine.