[mapserver-users] plz help

2009-01-22 Thread Amiya Patra
hi

still I am not getting how to connect two points which are already placed in
map , by drawing a line. It is mandatory in my project through php
mapscript. plz help me soon

thank u
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] plz help

2009-01-22 Thread Dan Little
If we give more help do you promise to:
1) Have a more descriptive subject.
2) Give more useful details.

Do you know which two points you have?  Finally, is this for a class 
assignment?  Judging from the plz and thank u, I'm cynically guessing this 
is not for a professional product.





From: Amiya Patra amiyapatra...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Thursday, January 22, 2009 7:53:23 AM
Subject: [mapserver-users] plz help

hi

still I am not getting how to connect two points which are already placed in 
map , by drawing a line. It is mandatory in my project through php mapscript. 
plz help me soon

thank u



  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] plz help

2009-01-22 Thread Benoît Andrieu
Dear Amiya,

Please, give us more details.
Members of the list sent you some ideas yesterday so what are the results ?
And please, try to answer to the previous messages so to not break the chain of 
mail.

Thank you in advance.

Regards,

Benoît Andrieu
b...@ixsea.com
benoit.andr...@gmail.com

  - Original Message - 
  From: Amiya Patra 
  To: mapserver-users@lists.osgeo.org 
  Sent: Thursday, January 22, 2009 2:53 PM
  Subject: [mapserver-users] plz help


  hi

  still I am not getting how to connect two points which are already placed in 
map , by drawing a line. It is mandatory in my project through php mapscript. 
plz help me soon

  thank u



--


  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] plz help

2009-01-22 Thread Steve Lime
Amiya: There are a couple of ways to do it, here's the pseudo code. This
assumes you have the two points in variables $x1, $y1 and $x2, $y2:

Option 1 - Build the line using points, lines and shapes

$shape = new shapeObj(MS_SHAPE_LINE);
$line = new lineObj();

$point = new pointObj($x1, y1);
$line-add($point);
$point-{x} = $x2;
$point-{y} = $y2;
$line-add($point);
$shape-add($line);

Option 2 - Use WKT (the easy way)

$shape = new mapscript::shapeObj(MS_SHAPE_LINE);
$shape-fromWKT(LINESTRING($x1 $y1,$x2 $y2));

Now you need to draw it. Generally you'd have a LAYER defined to draw the line 
which
would work like so:

$layer = $map-getLayerByName('the_line_drawing_layer');
$layer-addFeature($shape);

$map-draw();
etc...

Steve

 Amiya Patra amiyapatra...@gmail.com 01/22/09 7:54 AM 
hi

still I am not getting how to connect two points which are already placed in
map , by drawing a line. It is mandatory in my project through php
mapscript. plz help me soon

thank u

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] plz help

2009-01-22 Thread Amiya Patra
hi

Extremely sorryNow I got . sorry  for shouting  without trying
.Actually I got  deadline. in my project...thats why..
Anyway thank u all 4 response

Amiya
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] plz help

2009-01-21 Thread Amiya Patra
hi
can anyone help me by telling that how to draw line between two points via
php-mapscript using shapeobject I mean to say what methods I will use.

Plz help 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users