[Geomoose-users] projection problems, popup question

Brent Fraser bfraser at geoanalytic.com
Mon Jan 4 09:59:17 EST 2010


The map file should contain two PROJECTION objects: one at the MAP level 
describing the target/view/output coordinate system , the other in each LAYER 
object describing the source/input coordinate system:

MAP
   EXTENT -15877149 4785691 -5623702 13144878  # Area of Canada, std Merc
   UNITS METERS
   PROJECTION
     "init=EPSG:900913"
   END

   :

   LAYER
     PROJECTION
       "init=EPSG:4326"
     END

   END #Layer
END #Map


   With these definitions Mapserver (with the help of the Proj api) is able to 
read, reproject, and send the result to the browser.

Best Regards,
Brent Fraser


Efstathios Arapostathis wrote:
> 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).
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geomoose-users




More information about the Geomoose-users mailing list