Skip to main content
Question

Multicurve to Multiline Geometry Conversion

  • September 27, 2016
  • 6 replies
  • 832 views

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

6 replies

takashi
Influencer
  • 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+44
  • Safer
  • September 29, 2016
takashi wrote:

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+14
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
Contributor
Forum|alt.badge.img+5
  • Contributor
  • 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.


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