<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1543" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2>Hi all....</FONT></DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2></FONT> </DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2>View my build proyects, in
CHILE... with MapServer and Postgis... and more functions... is very goods.
</FONT></DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2></FONT> </DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2>LINK....</FONT></DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2></FONT> </DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2><A
href="http://datum.siigsa.cl">http://datum.siigsa.cl</A></FONT></DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2></FONT> </DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2>the very important is ...
the data catografics, is in repository "geo-datawarehouse".... postgres
7.4.8.... size 4,6 GB now. AND model relational oriented a objects
data,</FONT></DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2></FONT> </DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2>after suscribe in the site
and upload your shape, and contents.</FONT></DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2></FONT> </DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2>bye.</FONT></DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2></FONT> </DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2></FONT> </DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2></FONT> </DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2></FONT> </DIV>
<DIV><FONT face="MS Sans Serif" color=#000080 size=2></FONT> </DIV>
<DIV>-- </DIV>
<DIV> </DIV>
<DIV>Patricio Cifuentes Ithal<BR>Ingeniero en Informática</DIV>
<DIV> </DIV>
<DIV>Informática<BR>SIIGSA<BR>(56-2) 204 60 22</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dark.peony@GMAIL.COM href="mailto:dark.peony@GMAIL.COM">d c</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=MAPSERVER-USERS@lists.umn.edu
href="mailto:MAPSERVER-USERS@lists.umn.edu">MAPSERVER-USERS@lists.umn.edu</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, May 05, 2006 1:57 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [UMN_MAPSERVER-USERS] drawing a
point in MapScript</DIV>
<DIV><BR></DIV>Hi,<BR><BR>I'm having a problem with rendering a point with
PHP Mapscript.<BR>I'm wondering what I'm doing wrong.
I'm trying to simulate the <BR>following Mapfile code (which works
well in Mapfile mode):<BR><BR>LAYER <BR> TYPE POINT
<BR> STATUS DEFAULT <BR> FEATURE
<BR> POINTS <BR>
-64.4333333 -64.7833333
<BR> END <BR>
TEXT "HELLO WORLD" <BR> END
<BR> CLASS <BR> COLOR
255 0 0 <BR> SYMBOL 'cross'
<BR> LABEL <BR>
TYPE bitmap <BR>
END <BR> END <BR>
TOLERANCE 5 <BR> PROJECTION <BR> "proj=latlong"
<BR> "datum=WGS84" <BR> END <BR>END
<BR><BR><BR>/********* PHP CODE ***********/<BR><BR>$map =
ms_newMapObj("Ant.map");<BR> <BR> $layer =
ms_newLayerObj($map);<BR> $layer->name = 'point';<BR>
$layer->type = MS_LAYER_POINT;<BR> $layer->status = MS_DEFAULT;
<BR> $layer->setProjection("proj=latlong,datum=WGS84");<BR><BR>
$pt = ms_newPointObj();<BR>
$pt->setXY(-64.4333333,-64.7833333);<BR> $ln =
ms_newLineObj();<BR> $ln->add($pt);<BR> <BR> $shp =
ms_newShapeObj(MS_SHAPE_POINT); <BR> $shp->text = 'HELLO
WORLD';<BR> $shp->add($ln);<BR> <BR>
$layer->addFeature($shp);<BR><BR><BR> $class1 =
ms_newClassObj($layer); <BR> $class1->name =
'pointclass';<BR> $class1->label->type = MS_BITMAP; <BR>
$class1->label->color->setRGB(255,0,0);<BR>
$class1->label->set('position',MS_AUTO);<BR> $class1->status =
MS_ON;<BR> $class1->settext = 'HELLO WORLD';<BR> <BR>
<BR> $style = ms_newStyleObj($class1); <BR> $style->symbolname
= 'cross';<BR> $style->color->setRGB(255,0,0); <BR>
$style->size = 10;<BR>
$style->outlinecolor->setRGB(255,255,255);<BR>
<BR> <BR> $image=$map->draw();<BR>
<BR> $image->saveImage('C:/ms4w/Apache/htdocs/tmp/'.$image_name);
<BR><BR>I'm followig (except for the projection bit) the code proposed
in<BR>Beginning Mapserver and a tutorial I found on the Net. The code<BR>seems
identical.<BR><BR>What am I doing wrong?
<BR><BR>Dan<BR></BLOCKQUOTE></BODY></HTML>