[Chameleon] search attributes -> zoom to result
William Bronsema
wbronsema at dmsolutions.ca
Tue Oct 19 06:01:32 EDT 2004
Jacob,
You might want to try using a "hidden" i-frame to do your processing. You
could then open your dataset as a shapefile object and loop through and
match the attributes. Once the attributes match, you will know the extent.
Using a separate i-frame gives you all the benefits of submitting a page
(i.e. PHP code processing) without submitting your application page.
HTH
Regards,
Bill
_____
From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Jacob Delfos
Sent: October 18, 2004 10:26 PM
To: chameleon at lists.maptools.org
Subject: [Chameleon] search attributes -> zoom to result
Hi all,
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).
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.
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....
Any tips will be much appreciated.
Jacob
JACOB DELFOS
SPATIAL INFORMATION ANALYST
Maunsell Australia Pty Ltd
629 Newcastle Street
Leederville WA 6007
PO Box 81
Leederville WA 6902
Western Australia
ABN 20 093 846 925
Tel + 61 8 9281 6185
Fax + 61 8 9281 6297
jacob.delfos at maunsell.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20041019/b04ee77f/attachment.htm
More information about the Chameleon
mailing list