[Mapserver-users] dynamic point generation with php-mapscript

Paul Dymecki millardymecki at sympatico.ca
Fri Apr 4 23:32:21 EST 2003


Hi Eric,
     Sorry for a possibly dense question, but here goes, Can the same script
be used by generateing the points from a db link and not requerying on each
map_query?  I'm thinkin probably not but just thought i'd check?
thx,
Paul
----- Original Message -----
From: "Eric Bridger" <eric at gomoos.org>
To: "Paul Dymecki" <millardymecki at sympatico.ca>
Cc: "MapServer List (E-mail)" <mapserver-users at lists.gis.umn.edu>
Sent: Friday, April 04, 2003 9:57 AM
Subject: Re: [Mapserver-users] dynamic point generation with php-mapscript


> A while ago I put an example in the Perl mapscript Wiki doing this:
>
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex14
>
> which you should be able to convert to PHP.  I solved the query problem
> without need of a shape or dbf file by saving an array of point
> attribute information with the same index as the $shape->{index}.
>
> Hope this helps.
>
> Eric Bridger
>
>
> On Fri, 2003-04-04 at 03:49, Paul Dymecki wrote:
> > Joost,
> >      Do you have a way of querying a dynamic point?  I'm assumeing not
since there is no associated dbf file.  In case a query is needed i guess
adding to a shape file would be needed?
> > thx,
> > Paul
> >   ----- Original Message -----
> >   From: Van Ulden, Joost
> >   To: 'Dan Barron' ; Paul Dymecki ; MapServer List (E-mail)
> >   Sent: Thursday, April 03, 2003 1:52 PM
> >   Subject: RE: [Mapserver-users] dynamic point generation with
php-mapscript
> >
> >
> >   Hello Paul, I have attached a template where I do just what you asked
for.  Please contact me if you have any questions.
> >
> >   Regards,
> >
> >   Joost van Ulden
> >     -----Original Message-----
> >     From: Dan Barron [mailto:dbarron at ddive.com]
> >     Sent: Thursday, April 03, 2003 8:45 AM
> >     To: Paul Dymecki; MapServer List (E-mail)
> >     Subject: Re: [Mapserver-users] dynamic point generation with
php-mapscript
> >
> >
> >     You can create a dummy point layer in your map file, then in php
query the database for your points, create new point objects using
ms_newPointObj(), set the XY coordinates, and draw the point on the layer.
If you want some specific code examples, I can send along snippet.
> >
> >     Dan
> >
> >     At 11:07 AM 4/3/2003 -0500, Paul Dymecki wrote:
> >
> >       Content-Transfer-Encoding: 7bit
> >
> >       Hi,
> >       I was wondering if anyone would know some good examples of
generateing dynamic points with php mapscript?  Ie just pulling from points
from a database and displaying them without a shape file?
> >       any hints would be apprcited,
> >       thanks,
> >       Paul
>
>




More information about the mapserver-users mailing list