[Mapserver-users] dynamic point generation with php-mapscript
Eric Bridger
eric at gomoos.org
Fri Apr 4 06:57:24 PST 2003
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