[Geomoose-users] projection problems, popup question

Dan Little danlittle at yahoo.com
Mon Jan 4 09:44:39 EST 2010


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.

The harder question of reprojection:
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.

http://docs.openlayers.org/library/spherical_mercator.html#mapserver


>
>From: Efstathios Arapostathis <e.arapostathis at gmail.com>
>To: geomoose-users at lists.sourceforge.net
>Sent: Sun, January 3, 2010 2:55:02 PM
>Subject: [Geomoose-users] projection problems, popup question
>
>
>Hello,
>
>
>I would like to have some help, if you could.
>
>
>
>
>I'm trying to figure out how the projection system between the layers, the map files and the geomoose api works.
>
>
>
>
>I have a postgis database with wgs84 projection (decimal degrees).
>I have set the geomoose api to google projection (meters).
>The map file that describes the postgis layer sets the extend according to the database projection (in decimal degrees).
>
>
>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. 
>Could you tell me how the projection and reprojection system works? What should I do with the example I described you?
>
>
>
>
>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?
>
>
>Thanks a lot (for all you help tou have given me in general).


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100104/7cd49fed/attachment.html


More information about the Geomoose-users mailing list