<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>I'll answer the easy question first: Yes, it is possible to have a picture in a popup. As the Popups render HTML you should be able to simply write something like <img src="[url to my image].."/> and it should appear in the popup as desired.<br><br>The harder question of reprojection:<br>This sounds like a Mapfile problem. You need to have the Mapfile properly configured to do the reprojection. The OpenLayers folks have written a nice write up on how to do this with MapServer.<br><br><span><a target="_blank" href="http://docs.openlayers.org/library/spherical_mercator.html#mapserver">http://docs.openlayers.org/library/spherical_mercator.html#mapserver</a></span><br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div
style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><b><span style="font-weight: bold;">From:</span></b> Efstathios Arapostathis <e.arapostathis@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> geomoose-users@lists.sourceforge.net<br><b><span style="font-weight: bold;">Sent:</span></b> Sun, January 3, 2010 2:55:02 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [Geomoose-users] projection problems, popup question<br></font><br>
<div>Hello,</div><div><br></div><div>I would like to have some help, if you could.</div><div><br></div><div><br></div><div>I'm trying to figure out how the projection system between the layers, the map files and the geomoose api works.</div>
<div><br></div><div><br></div><div>I have a postgis database with wgs84 projection (decimal degrees).</div><div>I have set the geomoose api to google projection (meters).</div><div>The map file that describes the postgis layer sets the extend according to the database projection (in decimal degrees).</div>
<div><br></div><div>When I'm trying to load it to geomoose, the layer is loaded but I cannot see it. I think that this happens because of the projection system. I used the tip you told me with mozilla firefox (tools, page information, multimedia) and realized that the coordinates that the api loads, are different from the coordinates I set to the map file. The coordinates are also different from the coordinates that are set in the initial extend of the mapbook file. </div>
<div>Could you tell me how the projection and reprojection system works? What should I do with the example I described you?</div><div><br></div><div><br></div><div>In addition, is it possible to load a picture in the popup? I was thinking a field in the postgis database that will have the url information of the pictures that want to be loaded. Is this possible? If not is there any other way to do this?</div>
<div><br></div><div>Thanks a lot (for all you help tou have given me in general).</div>
</div></div></blockquote>
<!-- cg18.c2.mail.ac4.yahoo.com compressed/chunked Sun Jan 3 06:44:01 PST 2010 -->
</div><br>
</body></html>