Skip to main content
Hello everybody,

 

 

i am pretty new the FME. so please dont bash if this is actually a simple question.

 

 

I would like to intersect a Digital Elevation Model with 3D-Buildings.

 

What would be the preferred data type (TIn, Raster, Triangles...etc) of the DEM (i have got a regurlarly spaced point file .xyz with z-values and breaklines in an esri-shape) to intersect it with the buildings (which i have in a CityGML-file)?

 

As a result i would like to get the lowest point of each building, which i will use to calcalute the height of the buildings (the roofs i ahve already...).

 

 

Thanks for any suggestions about what kind of DEM and transformers to use...

 

 

Greets

 

Patrick
Hi,

 

 

Well this is an interesting question. Here are some hints:

 

 

1. Read DEM points with Space Delimited XYZ Reader or ESRI ASCII Grid Reader might work too.

 

 

2. Read the buildings in with CityGML Reader.

 

 

3. Use GeometryExtractor for the buildings to save their geometry temporarily.

 

 

4. Use 2DForcer for the buildings after GeometryExtractor.

 

 

5. Use ElevationExtractor for the DEM points.

 

 

6. Use PointOnAreaOverlayer to combine points and 2D buildings.

 

 

7. Now you can use ListRangeExtractor to get max/min elevation or a combination of ListElementCounter, ListSummer and ExpressionEvaluator to get e.g. mean elevation.

 

 

8. Finally use GeometryReplacer to get the original building geometry.

 

 

Notice that after phase 4 you might need to use Dissolver or BoundingBoxAccumulator to simplify the geometry.

 

 

Hope this helps!
Hey Geolassi,

 

 

big thanks for your interesting ideas on this subject.

 

In the end I used a different way to get to an acceptable solution via the SurfaceDraper-Transformer.

 

I could feed this one with my DEM-point-file, the breaklines and and a drape-feature.

 

As the drape-feature I used my 2D-búilding-outlines. The output presented me with an interpolated height value for each node (vertex) of my building outlines.

 

I just picked the lowest height as the base height for the building.

 

 

Patrick
Hi, I saw this question and since I had a similar problem, I wanted to share my successful approach here, using FME 2013.

 

 

A CityGML was fitting precisely to a certain Digital Elevation Model. Now we wanted to use a different DEM as the base, and of course the GroundSurfaces and WallSurfaces were zigzagging above and below the new ground.

 

My task was to make it fit to the new DEM without altering the roofs.

 

 

To that end, I did the following:

 

1) take the TINGenerator and create the DEM (in the exact way that the new DEM was created of course). I took the triangles from the output.

 

2) read the old CityGML (I only needed the roofs) and deaggregate them, so that we have surface triangles

 

3)  optional] with 2DForcer, AreaOnAreaOverlayer and AttributeFilters, sort out all TIN triangles that don't overlap with a roof - those are not needed. With a Counter before and FeatureMerger afterwards, filter them from the original data. I'm omitting the details here.

 

4) extrude the TIN triangles on the Z axis by -1500 meters

 

5) extrude the roof surface on the Z axis by -1000 meters

 

6) Clip them (TIN as clipper, roofs as clippee). Depending on how large the data, this is process is quite long and inefficient, and you may need step 3) to reduce the dataload.

 

Take the "outside" output; with a GeometryCoercer you can convert the solids in surfaces again, then Deaggregate them.

 

7) take the Matcher and match the output of step 2) against the output of step 6). This gives you the roofs.

 

8) take the rest and filter out the walls (my approach was a chain of Counter, 2dForcer, AreaCalculator, FeatureMerger, then filter out all features with an "area" of almost null). This separates the walls from the ground surfaces.

 

9) take the roofs, walls and grounds and recreate the CityGML. Hint: http://fmepedia.safe.com/articles/How_To/Writing-CityGML-Example

 

 

For the OP, this process also gives you the lowest points of each building. I know you solved your problem already, I just wanted to point out another way for others who want to "intersect DEM and CityGML".

 

 

I had searched a bit on the net, and found a related topic here: https://groups.google.com/forum/?fromgroups=#!topic/fmetalk/VJwiLCmKyyE
hello, maybe you will help me with my question..

 

I have shp file with attribute of height and I want to receive citygml file where walls and roofs are separated

 


Reply