<!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.3790.2491" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>image is genetrated by the images coreplugin. The only problem
here is the image path is not set as public and the plugin doesnt have accessor
function.</FONT></DIV>
<DIV><FONT size=2>so the first step would be to extend ClientImages
</FONT></DIV>
<DIV><FONT size=2>(</FONT></DIV>
<DIV><FONT size=2>class ClientImagesSomeNameYouWant extends
ClientImages { ... }</FONT></DIV>
<DIV><FONT size=2>)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>and add a public function getImagePath() {</FONT></DIV>
<DIV><FONT size=2> return $imagesResult;</FONT></DIV>
<DIV><FONT size=2>}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>now you just have to get the plugin and call the function:
</FONT></DIV>
<DIV><FONT size=2>$imagepath =
$this->cartoclient->getPluginManager()->getPlugin('imagesSomeNameYouWant ')->getImagePath();</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>or something like that</FONT></DIV>
<DIV><FONT size=2>this exemple is in the case you are working on the client side
in php</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>if you want to get it in javascript, you will have to write it
into the template by using the RenderForm function (see exemples in any existing
plugin) and your template will be something like this:</FONT></DIV>
<DIV><FONT size=2><script
type="text/javascript"><BR>/*<![CDATA[*/</FONT></DIV>
<DIV><FONT size=2>pathtoimage = '{$pathToImage}';</FONT></DIV>
<DIV><FONT size=2>/*]]>*/<BR></script></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>maybe there is an easier way, but we are a bit busy with the
FOSS4G event atm and i cant ask my colleagues about this, maybe next
week.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 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=goutosig@yahoo.fr href="mailto:goutosig@yahoo.fr">guillaume
champlong</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">carto web</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, September 12, 2006 12:14
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Cartoweb-users] get
PNGs</DIV>
<DIV><BR></DIV>thanks again for your reply.<BR>Finally, doesn't anyone know
how to get this id dynamically?<BR><BR><B><I>Mathieu Coudert <<A
href="mailto:m.coudert@oieau.fr">m.coudert@oieau.fr</A>></I></B> a
écrit :
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">
<META content="Microsoft Word 11 (filtered medium)" name=Generator><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited,
span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; font-size:12.0pt; font-family:"Times New Roman";} span.EmailStyle18 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:595.3pt 841.9pt; margin:70.85pt 70.85pt 70.85pt 70.85pt;} div.Section1 {page:Section1;} --> </STYLE>
<DIV class=Section1>
<DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi
guillaume,<O:P></O:P></SPAN></FONT></DIV>
<DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></DIV>
<DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Have a look at
cartoweb3/htdocs/generated/images/<O:P></O:P></SPAN></FONT></DIV>
<DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I don’t know how to
get the id of the generated image but you can just delete all the images of
the repository and then you will see the new generated
image.<O:P></O:P></SPAN></FONT></DIV>
<DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></DIV>
<DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Mathieu<O:P></O:P></SPAN></FONT></DIV>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<DIV class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">De :</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
cartoweb-users-bounces@lists.maptools.org
[mailto:cartoweb-users-bounces@lists.maptools.org] <B><SPAN
style="FONT-WEIGHT: bold">De la part de</SPAN></B> guillaume
champlong<BR><B><SPAN style="FONT-WEIGHT: bold">Envoyé :</SPAN></B>
mardi 12 septembre 2006 09:34<BR><B><SPAN
style="FONT-WEIGHT: bold">À :</SPAN></B>
cartoweb-users@lists.maptools.org<BR><B><SPAN
style="FONT-WEIGHT: bold">Objet :</SPAN></B> [Cartoweb-users] get
PNGs</SPAN></FONT><O:P></O:P></DIV></DIV>
<DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></DIV>
<DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">hi all,<BR><BR>I would like to know whether we can
get the identifier of the .PNG generated files, and the directory where they
are generated (if possible)? I thought they were in
cartoweb3/www_data/images, but I have no images directory in
www_data.<BR><BR>Can anyone help
me?<BR><BR>thanks<BR><BR>Guillaume.<O:P></O:P></SPAN></FONT></DIV>
<DIV><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <O:P></O:P></SPAN></FONT></DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR align=center width="100%" SIZE=1>
</SPAN></FONT></DIV>
<DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">Découvrez un nouveau moyen de poser toutes vos
questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager
vos connaissances, vos opinions et vos expériences. <A
href="http://fr.rd.yahoo.com/evt=42054/*http:/fr.answers.yahoo.com">Cliquez
ici</A>. <BR>-- <BR>Ce message a ete verifie par <A
href="http://www.mailscanner.info/"><B><SPAN
style="FONT-WEIGHT: bold">MailScanner</SPAN></B></A> pour des virus ou des
polluriels et rien de suspect n'a ete trouve.
<O:P></O:P></SPAN></FONT></DIV>
<DIV>
<DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></DIV></DIV>
<DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">Les donnees et renseignements contenus dans ce
message sont personnels, confidentiels et privés.Toute publication,
utilisation ou diffusion, meme partielle, doit etre autorisee.
<O:P></O:P></SPAN></FONT></DIV>
<DIV>
<DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></DIV></DIV>
<DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">Any data and information contained in this
electronic mail is personal, confidential and private. Any total or partial
publication, use or distribution must be authorized.
<O:P></O:P></SPAN></FONT></DIV></DIV><BR>-- <BR>Ce message a ete verifie par
<A href="http://www.mailscanner.info/"><B>MailScanner</B></A> pour des virus
ou des polluriels et rien de suspect n'a ete trouve.
<DIV><FONT face=3DArial size=3></FONT> </DIV>Les donnees et
renseignements contenus dans ce message sont personnels, confidentiels et
privés.Toute publication, utilisation ou diffusion, meme partielle, doit
etre autorisee.
<DIV><FONT face=3DArial size=3></FONT> </DIV>Any data and information
contained in this electronic mail is personal, confidential and private. Any
total or partial publication, use or distribution must be authorized.
</BLOCKQUOTE><BR>
<P>
<HR SIZE=1>
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet
! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et
vos expériences. <A
href="http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com">Cliquez
ici</A>.
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>