Skip to main content
Question

Generate shapefile with no data

  • Jun 20, 2018 8:56 PM UTC
  • 4 replies
  • 100 views

Forum|alt.badge.img

Hi There, I am working on an issue where our FME workspace, reads data from a database and generates a shapefile. The issue that I am having is that if there are no new records, the shapefile doesn’t get generated but it keeps the last run that had any data. This is creating problem with next step of the process. I am trying to figure out a way so that FME generates a shapefile even if there is no new data (empty shapefile). Appreciate any help. Thanks Jay

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.

4 replies

fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • Jun 20, 2018 9:21 PM UTC

Hi @jaygis Please see https://groups.google.com/forum/#!msg/fmetalk/Uza7HqgxF7Y/7tBapmyqMjAJ The solution is to create invalid geometry to send to the Shape writer if there are no other features.


davideagle
Contributor
Forum|alt.badge.img+21
  • Contributor
  • Jun 20, 2018 10:08 PM UTC

Perhaps in conjunction with Dan's suggestion you could use the NoFeaturesTester to create the dummy feature which will pop out with a Null geometry type.


Forum|alt.badge.img
  • Author
  • Jun 25, 2018 4:14 PM UTC

Hi All, Thanks for some excellent feedback. I was able to implement a solution with combination of both the comments. Greatly appreciate your help. Thanks Jay


davideagle
Contributor
Forum|alt.badge.img+21
  • Contributor
  • Jun 25, 2018 4:18 PM UTC

Hi All, Thanks for some excellent feedback. I was able to implement a solution with combination of both the comments. Greatly appreciate your help. Thanks Jay

Pleasure. Thanks for the feedback.