marisihl

Read from geodatabase based on display coordinates.

Discussion created by marisihl on Apr 26, 2010
Latest reply on Apr 28, 2010 by jeffmatson
I know this is probably VBA 101 and so simple but my mind is just going blank!

I have a feature layer (vector) of USGS Quadrangles. I have a procedure that zooms into the map to about 1:6000. I'd like to automatically open a raster image of the USGS Quad to where I'm zoomed.

I need to read from the geodatabase the quadrangle name where the center of the display happens to be. So, here is the procedure in more detail:

1) client enters UTM coordinates.
2) program finds and zooms to that coordinate to a scale of about 1:6000
3) Grab the quad name from the "Quadrangle_Grid" geodatabase based on data frame's center coordinate
4) Find and open the raster image based on the quadname.

I've got 1, 2, 4 done. I need VBA coding for number 3.

Can anybody help?

Thanks.

Outcomes