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

Paul Dymecki millardymecki at sympatico.ca
Thu Apr 3 19:49:41 PST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_007C_01C2FA33.5015B070
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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 -----=20
  From: Van Ulden, Joost=20
  To: 'Dan Barron' ; Paul Dymecki ; MapServer List (E-mail)=20
  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

------=_NextPart_000_007C_01C2FA33.5015B070
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Joost,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>     Do you have a =
way of=20
querying a dynamic point?  I'm assumeing not since there is no =
associated=20
dbf file.  In case a query is needed i guess adding to a shape file =
would=20
be needed?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>thx,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Paul</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Djvanulde at nrcan.gc.ca =
href=3D"mailto:jvanulde at nrcan.gc.ca">Van Ulden,=20
  Joost</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Ddbarron at ddive.com=20
  href=3D"mailto:dbarron at ddive.com">'Dan Barron'</A> ; <A=20
  title=3Dmillardymecki at sympatico.ca =
href=3D"mailto:millardymecki at sympatico.ca">Paul=20
  Dymecki</A> ; <A title=3Dmapserver-users at lists.gis.umn.edu=20
  href=3D"mailto:mapserver-users at lists.gis.umn.edu">MapServer List =
(E-mail)</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, April 03, 2003 =
1:52=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: [Mapserver-users] =
dynamic=20
  point generation with php-mapscript</DIV>
  <DIV><BR></DIV>
  <DIV><SPAN class=3D545215118-03042003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Hello Paul, I have attached a template where I do just what =
you asked=20
  for.  Please contact me if you have any =
questions.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D545215118-03042003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D545215118-03042003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Regards,</FONT></SPAN></DIV>
  <DIV><SPAN class=3D545215118-03042003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D545215118-03042003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Joost van Ulden</FONT></SPAN></DIV>
  <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
    <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
    size=3D2>-----Original Message-----<BR><B>From:</B> Dan Barron=20
    [mailto:dbarron at ddive.com]<BR><B>Sent:</B> Thursday, April 03, 2003 =
8:45=20
    AM<BR><B>To:</B> Paul Dymecki; MapServer List =
(E-mail)<BR><B>Subject:</B>=20
    Re: [Mapserver-users] dynamic point generation with=20
    php-mapscript<BR><BR></FONT></DIV>You can create a dummy point layer =
in your=20
    map file, then in php query the database for your points, create new =
point=20
    objects using ms_newPointObj(), set the XY coordinates, and draw the =
point=20
    on the layer.  If you want some specific code examples, I can =
send=20
    along snippet.<BR><BR>Dan<BR><BR>At 11:07 AM 4/3/2003 -0500, Paul =
Dymecki=20
    wrote:<BR>
    <BLOCKQUOTE class=3Dcite cite=3D"" =
type=3D"cite">Content-Transfer-Encoding:=20
      7bit<BR><BR><FONT face=3Darial size=3D2>Hi,</FONT><BR><FONT =
face=3Darial=20
      size=3D2>I was wondering if anyone would know some good examples =
of=20
      generateing dynamic points with php mapscript?  Ie just =
pulling from=20
      points from a database and displaying them without a shape=20
      file?</FONT><BR><FONT face=3Darial size=3D2>any hints would be=20
      apprcited,</FONT><BR><FONT face=3Darial =
size=3D2>thanks,</FONT><BR><FONT=20
      face=3Darial=20
size=3D2>Paul</FONT></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>=


------=_NextPart_000_007C_01C2FA33.5015B070--




More information about the MapServer-users mailing list