Skip to main content
Solved

Missing points when exporting to shapefile?


wolters
Contributor
Forum|alt.badge.img+6

I have a small mystery, hopefully someone can help me with it.

I have several points (53) that I clip with a polygon shapefile. Some points (51) are inside the polygon, others (2) are outside. In the FME workflow I also see the correct number of features being sent to the shapefile. The data inspector also shows 51 points. But in the actual exported shapefile and .dbf file, I only find 47 points.

I am not using the group feature or anything, and the points all have a unique ID code. Picture 1 shows what I see in FME workbench, picture 2 what data inspector shows me, picture 3 what QGIS reports/FME Data Inspector shows

The file is not open in another app or whatever. When I export to say GEOJSON, I do get the correct 51 points.

What am I missing? Is there a bug when exporting to shapefile? Running FME 2018 build 18284-18301-18305

Best answer by wolters

Apparently some of the features (4 of them) are multipoints which are rejected when writing it to shapefile.

I propose that the error log reflects this and doesn't just simply say: "Features written summary 51, translation was successful" even though it only has written 47. Can this be changed in a future version of FME?

View original
Did this help you find an answer to your question?

7 replies

takashi
Contributor
  • May 3, 2018
Haven't some warning messages appeared in the translation log?

 

 


wolters
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • May 3, 2018
takashi wrote:
Haven't some warning messages appeared in the translation log?

 

 

Features Written Summary

 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

 

NewFeatureType 51

 

Shapefile1 51

 

==============================================================================

 

Total Features Written 102

 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

 

Translation was SUCCESSFUL with 9 warning(s) (102 feature(s) output)

 

 

 


takashi
Contributor
  • May 3, 2018
takashi wrote:
Haven't some warning messages appeared in the translation log?

 

 

You can see "9 warning(s)" there. The warning messages could contain a hint to understand what happened while the translation.

 

 


wolters
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • Best Answer
  • May 3, 2018

Apparently some of the features (4 of them) are multipoints which are rejected when writing it to shapefile.

I propose that the error log reflects this and doesn't just simply say: "Features written summary 51, translation was successful" even though it only has written 47. Can this be changed in a future version of FME?


david_r
Evangelist
  • May 3, 2018
wolters wrote:

Apparently some of the features (4 of them) are multipoints which are rejected when writing it to shapefile.

I propose that the error log reflects this and doesn't just simply say: "Features written summary 51, translation was successful" even though it only has written 47. Can this be changed in a future version of FME?

I agree, this could be improved upon. If you'll post an idea here (see the button "new idea" on the top right of this page), I'll vote for it. Consider linking back to this thread from the idea.

wolters
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • May 3, 2018
david_r wrote:
I agree, this could be improved upon. If you'll post an idea here (see the button "new idea" on the top right of this page), I'll vote for it. Consider linking back to this thread from the idea.
Done. I was thinking maybe a reject port for writers (with similar behavior as the reject port for transformers) may also be a solution. https://knowledge.safe.com/idea/69551/rejectport-for-writers.html?

redgeographics
Celebrity
Forum|alt.badge.img+49
wolters wrote:
Done. I was thinking maybe a reject port for writers (with similar behavior as the reject port for transformers) may also be a solution. https://knowledge.safe.com/idea/69551/rejectport-for-writers.html?
Great idea!

 

 


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