map a search: best strategy?

Hal Mueller 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, DISPLAY

UNIQUEID would be the same as the unique point identifier in the 
master shapefile.

The contents of the dynamic .DBF would be:
1, 1
2, 1
3, 0
4, 0
5, 1
6, 0
...
36, 0
37, 1
38, 0
...
216, 1
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.

Hal



More information about the mapserver-users mailing list