Skip to main content
Solved

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

  • April 27, 2018
  • 2 replies
  • 109 views

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

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.

2 replies

takashi
Celebrity
  • 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

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?