[Geomoose-users] Adding Layer with EPSG:4326

Zery zery.sp at gmail.com
Fri Mar 16 08:27:44 EDT 2012


  I've followed that either, here's some short of my setup :

--mapbook.xml--
<configuration>
<!--
<param name="links_bar_html"><![CDATA[Perfect timing for some damn CDATA 
"all" of 'its' here <&>]]></param>
<param name="layer_controls.unfade.on">false</param>
            -->
<param name="zoomto['Jump To:']"><![CDATA[
         {
             'Dakota County' : 
[521238.614537864,4924218.86673578,473921.947801381,4974430.36885032],
             'Parcel Data' : 
[497205.409367,4923984.423582,477595.805945,4941970.52988],
             'Full State of MN' : 
[189783.560000,4816309.330000,761653.524114,5472346.500000]
         }
         ]]></param>

<param name="max_extent">85.114072,-24.850000,149.993751,20.000000</param>
<param name="initial_extent">94.9731,-11.0076,141.03,5.90701</param>

<param name="layer_controls.legend.on">false</param>
<param name="mapserver_url">/cgi-bin/mapserv.exe</param>
<param name="mapfile_root">/ms4w/apps/geomoose2/maps/</param>

<param name="projection">EPSG:4326</param>

<param name="ground_units">m</param>
<param name="scales">.2,.5,1,2,4,8,16,32,64,128,256,550</param>

--base.map--
MAP
   NAME "basemap"
   # Map image size
   SIZE 800 460
   UNITS METERS

   INCLUDE "../../geomoose_globals.map"

   EXTENT 85.114072 -24.850000 149.993751 20.000000

   PROJECTION
         'init=epsg:4326'
     END

--compiled.js--
var CONFIGURATION = {
     'links_bar_html' : "",
     'waiting_html' : 'Loading...',
     'mapserver_url' : "",
     'mapfile_root' : "",
     'mapbook' : "php/getmapbook.php",
     'fractional_zoom' : true,
     'scales' : [.2,.5,1,2,4,8,16,32,64,128,256,550],
     'max_extent' : [85.114072,-24.850000,149.993751,20.000000],
     'initial_extent' : [94.9731,-11.0076,141.03,5.90701],
     'projection' : "EPSG:4326",
     'ground_units' : 'm',
     'coordinate_display' : {
         xy: true,    /* Ground Units */
         latlon: true,    /* Longitude and Latitude */
         usng: false    /* U.S. National Grid */

--settings.ini--
[defaults]
; Location of the default mapbook
mapbook=mapbook.xml

[map]
projection=EPSG:4326

--geomoose.html--
<script type="text/javascript" 
src="./proj4js/lib/defs/EPSG4326.js"></script>

--EPSG4326.js--
Proj4js.defs["EPSG:4326"] = "+title=long/lat:WGS84 +proj=longlat 
+a=6378137.0 +b=6356752.31424518 +ellps=WGS84 +datum=WGS84 +units=degrees"


Is there somethong wrong somewhere and how do you determined which scale 
factor to add (lower or upper)?

Thank you,
Zery

On 3/16/2012 8:13 PM, Ed Boesenberg wrote:
>
> Try adding more scale factors to the scales list.
>
> If you are changing the projection, have you followed the procedure at 
> http://geomoose.org/docs/projections.html?
>
> Ed
>
> *From:* geomoose-users-bounces at lists.osgeo.org 
> [mailto:geomoose-users-bounces at lists.osgeo.org] *On Behalf Of 
> *zery.sp at gmail.com
> *Sent:* Friday, March 16, 2012 6:44 AM
> *To:* geomoose-users at lists.osgeo.org
> *Subject:* [Geomoose-users] Adding Layer with EPSG:4326
>
> Hi,
>
> I'm a new comer, I'm aware that this might have been asked many times, 
> but please let me ask one more time. I'm using GM 2.2 with MS4W, I 
> have disabled all the built in layers and background map, then I add 
> my own mapserver layer and configure everything according to the 
> documentation and some archive post here. The layer is in longlat 
> projection. The map is shown in GM but the problem is I can't get 
> zoom-in or out at the current view.
>
> I believe it is something to do with scales and projection system, but 
> I really can't figure out what to do.
>
> When the map is shown the scales number in the bottom of page is 
> showing 1:15xxxxx (notice that its about 1,5million). And the initial 
> extent is not corresponding to the initial extent value I've set in 
> mapbook.xml. And the max_extent either.
>
> I change ground units from "m" to "dd" and back to "m" nothings happen.
>
> I add ".2" in scales and it only make my map view bigger but still 
> can't do zooming.
>
> So please can someone help me what to do to fixed all this?
>
> Regards,
>
> Zery
>
> Powered by Telkomsel BlackBerry®
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120316/b0351e43/attachment-0001.html


More information about the Geomoose-users mailing list