<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm trying to create the functionality of
searching a layer for an attribute value, and then zooming to the object
(I know there have been many posts about this... sorry... I couldn't
actually find a solution).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I got the searching part figured out; I put an
iframe in my template, which holds a page that allows for selecting a layer to
search, and then searches for the searchstring in all the attributes of that
layer. I'm actually running this independently of the rest of the site (the page
does not get submitted for a search, only the iframe is). I store the extent in
the attributes, and use javascript to make the mapimage zoom to the extent of
the objects(s) it has found. My problem is how to get the real spatial extent of
the object. I'm using a basic php script that finds out the name of the dataset,
opens its dbf, and searches the attributes. I suppose this is not ideal, since
it does not interface with chameleon. It's kind of patchy.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What is the easiest way to get an object's extent,
if I know its sequential position in the dataset? I would prefer not to have to
submit the whole page....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any tips will be much appreciated.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>JACOB DELFOS<BR>SPATIAL INFORMATION
ANALYST<BR>Maunsell Australia Pty Ltd<BR>629 Newcastle Street<BR>Leederville WA
6007<BR>PO Box 81<BR>Leederville WA 6902<BR>Western Australia<BR>ABN 20 093 846
925</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Tel + 61 8 9281
6185<BR>Fax + 61 8 9281 6297<BR><A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A></FONT></DIV></BODY></HTML>