Skip to main content
Question

Forcing a map object into an empty layer

  • December 12, 2022
  • 2 replies
  • 14 views

scarter
Contributor
Forum|alt.badge.img+10

Hello,

I'm converting a ESRI gdb (of 21 layers) to shp with FME Desktop. Seventeen of the layers contain map objects - they're all good. But four layers do not contain map objects (2 x points, 2 x polys).

For a very good reason, that I won't go into detail about here, I need to force at least one map object into those four empty shp datasets (a point into the point layers, a polygon into the polygon layers). The point can be in a random location, or one I specify. The polygons can be absolutely tiny. The values can be null.

Is this possible within a FME workflow?

2 replies

geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • December 12, 2022

Certainly! With a Creator you can create a dummy feature with a geometry, and some attributes if you want.

If you know beforehand which layers contain no data, you can connect the Creator directly to a Writer.

If you want more flexibility, you can check any data stream for no features. Look at FeatureDetector, NoFeaturesTester, or NoFeaturesReplacer (and there may be other useful transformers).

NoFeatures2


scarter
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • 125 replies
  • December 12, 2022

Thanks for that, Geomancer.