Re: [mapserver-users] Mapserver data point on map

2017-01-06 Thread Carlos Ruiz
If you have PIXMAP symbols defined in your MAP file, be sure to assign them to 
the points by adding the following in your code:

$style->set("symbolname", "");

I remember that when adding points in a static MAP file I have to add a POINTS 
1 1 END symbol for the points to be drawn. Perhaps this is what is happening to 
you.

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

Re: [mapserver-users] Mapserver data point on map

2017-01-06 Thread Lime, Steve D (MNIT)
Are the points displayed?

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of newmapserver
Sent: Wednesday, January 04, 2017 8:02 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapserver data point on map

Hello and happy new year ! 
Currently, I place points (lat / lon) on a map using a mysql query. At each
point is associated an image according to the type of places considered.

Today, I would like to retrieve my information either thanks to Mysql but
thanks to an API. I use the function "addPoints" to adding features to a
layer : 

*A part of script : *
$point = ms_newPointObj();
$line = ms_newLineObj();

$shape = 
ms_newShapeObj(MS_SHAPE_POINT);

$point->setXY( 
$lieu->longitude_metre, $lieu->latitude_metre); 
 
$line->add($point);



$shape->add($line);
$shape->set("text","ici");

$class = 
ms_newClassObj($layerprevision);
$class->setExpression("rot");
$style = ms_newStyleObj($class);
$style->color->setRGB(255, 0, 
0);   


$layerprevision->addFeature($shape);

I'm trying to set a simple "text" on each point but...nothing is displayed. 

Do you have an idea to solve this problem?
Thank you in advance !



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapserver-data-point-on-map-tp5301975.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
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

[mapserver-users] Mapserver data point on map

2017-01-04 Thread newmapserver
Hello and happy new year ! 
Currently, I place points (lat / lon) on a map using a mysql query. At each
point is associated an image according to the type of places considered.

Today, I would like to retrieve my information either thanks to Mysql but
thanks to an API. I use the function "addPoints" to adding features to a
layer : 

*A part of script : *
$point = ms_newPointObj();
$line = ms_newLineObj();

$shape = 
ms_newShapeObj(MS_SHAPE_POINT);

$point->setXY( 
$lieu->longitude_metre, $lieu->latitude_metre); 
 
$line->add($point);



$shape->add($line);
$shape->set("text","ici");

$class = 
ms_newClassObj($layerprevision);
$class->setExpression("rot");
$style = ms_newStyleObj($class);
$style->color->setRGB(255, 0, 
0);   


$layerprevision->addFeature($shape);

I'm trying to set a simple "text" on each point but...nothing is displayed. 

Do you have an idea to solve this problem?
Thank you in advance !



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapserver-data-point-on-map-tp5301975.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users