Solved
Hello! Is it possible to extract coordinate pairs (lat/lon) that are within an actual shapefile boundary as opposed to using a bounding box of a shapefile? When I use the BoundsExtractor transformer I'm getting more points than warranted. Thanks.
Hello! Is it possible to extract coordinate pairs (lat/lon) that are within an actual shapefile boundary as opposed to using a bounding box of a shapefile? When I use the BoundsExtractor transformer I'm getting more points than warranted. Thanks.
Best answer by rahulsharma
robeesafe wrote:
Hello Rahul, the coordinate pairs are in a large SQL database. I just would like to extract the pairs that fall within the extent of the shapefile. The coordinate pairs are not in a shapefile and do not intend to convert them into a shapefile. I hope the clarification helps.
Ok in that case, you can use the following steps
Read SQL Data (assuming its non-spatial)
Convert the Lat\\Long to Point using VertexCreator
Use transformers such as Clipper or SpatialFilter (or others suchas PointOnAreaOverlayer)
Clipper will be best option and just look under Inside port.
Hope this helps
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.