Skip to main content
Solved

Feature reader spatial filter


pinkopo
Contributor
Forum|alt.badge.img+5

Hi guys,

im using a csv file (with sde feature class names and etc.) as initiator to read various feature classes from a Esri sde database.

however i also need to setup a spatial filter on this feature reader to limit the number of record being read.

imageimage 

is there a way I can get this setup? I tried add another initiator into same feature reader transformer but seems this is not working..

 

Thanks guys!

Best answer by pimc

Hi there! If you're using the Spatial Filter option in the FeatureReader, it expects an initiator feature (or multiple features) with a geometry. If I look at your provided image, it looks like you're reading both boundaries and a csv as input for your FeatureReader. I'm assuming the CSV file features might not have the geometry, but are needed to provide the where clause, or other parameters for the FeatureReader.

If possible, you could try and join the CSV with the other FeatureType(EDITOR.TEST..) on your canvas and then use that as an initiator feature. That way, the feature has both the geometry and the attributes for the where clause.

 

I made a lot of assumptions in my answer, feel free to provide some more details if everything I assumed is wrong :)

 

Hope this helps!

 

Pim

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

2 replies

pimc
Contributor
Forum|alt.badge.img+8
  • Contributor
  • Best Answer
  • January 2, 2024

Hi there! If you're using the Spatial Filter option in the FeatureReader, it expects an initiator feature (or multiple features) with a geometry. If I look at your provided image, it looks like you're reading both boundaries and a csv as input for your FeatureReader. I'm assuming the CSV file features might not have the geometry, but are needed to provide the where clause, or other parameters for the FeatureReader.

If possible, you could try and join the CSV with the other FeatureType(EDITOR.TEST..) on your canvas and then use that as an initiator feature. That way, the feature has both the geometry and the attributes for the where clause.

 

I made a lot of assumptions in my answer, feel free to provide some more details if everything I assumed is wrong :)

 

Hope this helps!

 

Pim


pinkopo
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • January 4, 2024

All assumptions you made was correct pim ^.^

 

and yep by joining the csv with boundary perfectly solved the issue. it couldn't run through I think cos all the where clause I had in there!

 

Thanks a lot!


Reply


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