Skip to main content
Solved

How to write a geojson file with a geometry type of "MultiPloygon" ?


Forum|alt.badge.img

I read a shp file, and work with the Extruder transformer , after that write to a geojson file, but geojson's geometry type is "MultiLineString", I want to set the geometry type of "MultiPloygon", how to set?

 

 

 

Best answer by takashi

Hi @keplerleee, you may have to transform the extrusion (IFMEExtrusion) to a multi-part polygon (IFMEMultiArea). If the base face for the extrusion was a polygon (not donut), a possible way is:

  1. GeometryCoercer: Transform the extrusion to a composite surface.
  2. GeometryCoercer: Transform the composite surface to a multi-part polygon (each face to polygon).

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

2 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • April 27, 2018

Hi @keplerleee, you may have to transform the extrusion (IFMEExtrusion) to a multi-part polygon (IFMEMultiArea). If the base face for the extrusion was a polygon (not donut), a possible way is:

  1. GeometryCoercer: Transform the extrusion to a composite surface.
  2. GeometryCoercer: Transform the composite surface to a multi-part polygon (each face to polygon).


Forum|alt.badge.img
  • Author
  • April 28, 2018
takashi wrote:

Hi @keplerleee, you may have to transform the extrusion (IFMEExtrusion) to a multi-part polygon (IFMEMultiArea). If the base face for the extrusion was a polygon (not donut), a possible way is:

  1. GeometryCoercer: Transform the extrusion to a composite surface.
  2. GeometryCoercer: Transform the composite surface to a multi-part polygon (each face to polygon).

thank you very much?I will try it later?

 

 


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