Working with the geodatabase effectively using SQL - Esri
Working with the geodatabase effectively using SQL - Esri
Working with the geodatabase effectively using SQL - Esri
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
st_distance<br />
• Inefficient approach… pp<br />
SELECT name, volume, st_distance(shape,<br />
st_point(125,350,3)) AS DISTANCE<br />
FROM wells<br />
WHERE st_distance(shape,st_point(125,350,3)) < 5<br />
ORDER BY distance<br />
– Results in a full table scan of wells, calculating <strong>the</strong> distance<br />
, g<br />
between each well and <strong>the</strong> input geometry to detect if <strong>the</strong><br />
distance is less than 5 miles