map a search: best strategy?
hal at MOBILEGEOGRAPHICS.COM
Mon Dec 4 17:19:56 EST 2006
In your first message it sounded like you had a collection of
locations that didn't change very often.
If that's true, why are you geocoding on the fly? (and if not, then
I didn't understand at all).
I would try this:
First, create a master shapefile with all of the possible search
result locations, with a unique ID for each point.
Your search DB returns a result that says "display unique ID's 1, 2,
5, 216, and 37".
You create a .DBF file with this schema:
UNIQUEID would be the same as the unique point identifier in the
The contents of the dynamic .DBF would be:
and so on--1 if the point is to be displayed, 0 if not
Now you could copy the other component files from your master
shapefile to the dynamic one. But instead, just make a symbolic link
to the spatial data parts.
More information about the mapserver-users