Skip to main content
Archived

Improve handling of null geometries by FeatureReader with SpatialFilter

Related products:Transformers
  • July 27, 2017
  • 4 replies
  • 66 views

ebygomm
Evangelist
Forum|alt.badge.img+51

Currently if initiating features are sent to a FeatureReader with a null geometry and the spatial filter is set to Envelope Intersects the feature reader returns every single record in the table. Initiators with null geometries should be output via the rejected port where the FeatureReader is using a spatialfilter

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

david_r
Celebrity
  • July 27, 2017

I'd be tempted to call that a bug. Did you contact support about it?


ebygomm
Evangelist
Forum|alt.badge.img+51
  • Author
  • Evangelist
  • July 27, 2017
Can you recreate in 2017?

 

 


Forum|alt.badge.img+2
  • July 27, 2017

Recreated in 2017 - easy to see why with following...

From log with Null geometry:

ORACLE Reader: Executing SQL Statement `SELECT "COUNTY"."GID", "COUNTY"."NAME", "COUNTY"."GEOM" FROM "COUNTY"' to obtain features for feature type `COUNTY'

From log with Box geometry:

ORACLE Reader: Executing SQL Statement `SELECT "COUNTY"."GID", "COUNTY"."NAME", "COUNTY"."GEOM" FROM ( SELECT * FROM "COUNTY" A WHERE (MDSYS.SDO_RELATE( A.GEOM, mdsys.sdo_geometry(2003,29902,null,mdsys.sdo_elem_info_array(1,1003,3),mdsys.sdo_ordinate_array(280000,410000,400000,440000)),'mask=ANYINTERACT querytype=WINDOW') = 'TRUE') ) "COUNTY" WHERE 1 = 1' to obtain features for feature type `COUNTY'

fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • July 31, 2017

PR 78826 has been filed to address this. Once the fix has been implemented, we'll update the idea here. We appreciate your involvement in helping us make FME even better!