ok - got zoom to work - another question

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Wed Nov 24 10:34:29 PST 2004


Joseph,

The easiest way to get a feel for scale is to use an html template and
cgi mode of mapserver, where you display the scale in html. you could
also add a non-scalling label to the map where you set the text to be
the mapserver scale then every time you zoom you will see the scale of
the image. then turn off the layer in production.

If you only have 10 max teachers per zipcode them just draw a circle at
the zipcode x/y and set the size = #teacher*2 so you will get circles
between 2 and 20 and see the relative number of teachers.

You can do both of these in Mapscript, maybe some of the Perl Monks
would be willing to offer some snippets on how to do these.

-Steve

Joseph Norris wrote:

> Eric,
>
>>From observations of other mapserver users, I am beginning to think that it
> might be a better show if I could just put a label of the number of teachers
> that would appear within the polygon when the user zooms into it.
>
> The min/max scale thing is still a point of contention - especially when the
> phrase "trial and error" is used. With what number to I start? With what
> number to I finish? So that I might get something within the trial and error
> boundaries at least to make some change.
>
> Thanks again.
>
> #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr
> $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,-
> 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);
>
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On
> Behalf Of Eric Bridger
> Sent: Wednesday, November 24, 2004 9:30 AM
> To: MAPSERVER-USERS at lists.umn.edu
> Subject: Re: [UMN_MAPSERVER-USERS] ok - got zoom to work - another question
>
> On Wed, 2004-11-24 at 11:53, Joseph Norris wrote:
>
>>
>>3) When user zooms into a colored polygon - I would like to put an ellipse
>>for each teacher in that polygon - This I have not achieved and I am
>
> having
>
>>no end of problems trying to achieve
>>
>
> This is still not clear to me. Sounds like the only shape files you have
> are zip code polygons. But an ellipse is a point.
>
> To put an ellipse (POINT) on the map you will need coordinates for each
> teacher. Doesn't sound to me like you have that data.
>
> There could be a number of ways to handle this. Pick some lat/lon within
> the polygon as a starting point, then increment the longitude or the
> CLASS OFFSET property for each succeeding point =>
> OOOOO or
> O
> O
> O
> O
> Drawing the points after the polygons or putting your point layer after
> your polygon layer in the map file means the ellipses will appear over
> the polygon.
>
> Since you are using mapscript I'm sure it is solvable.
>
> Eric
>



More information about the MapServer-users mailing list