Skip to main content
Solved

Is there a transformer that will allow me to run a query against a feature class in SDE?


daniel.m.getz
Contributor
Forum|alt.badge.img+4

I have an SDE with a point feature class that has 120k locations across the entire US. I can read those points in with a normal reader, but it takes a long time ~5 minutes and I really only need to return 100 out of those 120k points.

 

Which 100 changes depending on the input of an excel reader. I pull in a list of 10 or 20 points from an excel sheet, take a 2 mile buffer around those points, and then spatial join that to the big list from SDE. Those 10 to 20 points could be anywhere in the US.

 

Is there a transformer that will let me read in my 10-20 points, then make a query to SDE/SQL with a transformer based on the location, so that I'm only asking the database for the records I need? That way I am not pulling in the rest of the 100k+ records.

 

Right now I am thinking I can take the lat long coordinates from the excel input and create a bounding box of sorts to query the SDE point feature class. But I don't see a transformer that can read from SDE 'inline' with the rest of the workbench.

 

Any thoughts would be appreciated.

Best answer by nielsgerrits

Read the point info, create the points with a VertexCreator, set the coordinate system, use a Bufferer, feed them to a FeatureReader which reads the SDE FeatureClass and set the Spatial Filter to intersect.

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

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+53
  • Best Answer
  • June 29, 2023

Read the point info, create the points with a VertexCreator, set the coordinate system, use a Bufferer, feed them to a FeatureReader which reads the SDE FeatureClass and set the Spatial Filter to intersect.


daniel.m.getz
Contributor
Forum|alt.badge.img+4
nielsgerrits wrote:

Read the point info, create the points with a VertexCreator, set the coordinate system, use a Bufferer, feed them to a FeatureReader which reads the SDE FeatureClass and set the Spatial Filter to intersect.

Hi Niel. Feature reader was exactly what I was looking for thank you!


nielsgerrits
VIP
Forum|alt.badge.img+53
daniel.m.getz wrote:

Hi Niel. Feature reader was exactly what I was looking for thank you!

Cheers :)


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