Skip to main content
Question

Generate shapefile with no data


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

4 replies

fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • June 20, 2018

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
  • June 20, 2018

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
  • June 25, 2018

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
  • June 25, 2018
jaygis wrote:

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.

 

 


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