[ka-Map-users] blank map, lat/long/extent/scale problems?

Paul Spencer pspencer at dmsolutions.ca
Wed Jun 7 07:40:08 EDT 2006


Ryan,

you have UNITS METERS but have decimal degrees for extents.  This is  
definitely going to screw up mapscript.  This likely happened because  
the gmap map file has an LCC projection whose units really are meters  
and you seem to have copied that (including the cvs ID tag :)).  If  
your data projection is in decimal degrees then you should change  
your units to DD in the map file.

Cheers

Paul

On 2-Jun-06, at 6:40 PM, Ryan Taylor wrote:

> I set up the gmap demo and it worked fine.  I changed the  
> config.php to refer to a different map file I have that seems to be  
> a legitimate mapserver file since I can view it using mapserver's  
> cgi interface.  When I look at the ka-map that i've set up though,  
> it's just blank.  Here's a link: http://consult4.cs.utah.edu/kamap/
> and here's the cgi mapserver: http://consult4.cs.utah.edu/cgi-bin/ 
> mapserv?map=/proj/maps/test.map&layer=pg_test&mode=map
>
> the part of config.php that i changed is:
>
> $aszMapFiles = array(
>  "test"   => array( "Test", "/proj/maps/test.map",
>                     array( 15000000, 7500000, 3000000, 1000000,  
> 100000, 10000, 1000, 100, 10, 1  ),
>                     "PNG")
> );
> $szMap = 'test';
>
> the mapfile is as follows:
> #
> # Start of map file
> #
> # $Id: gmap75.map,v 1.23 2003/02/25 19:46:42 daniel Exp $
> #
> NAME DEMO
> STATUS ON
> SIZE 400 300
> EXTENT         -112.227360 40.426763 -111.554918 40.874260
>
> UNITS METERS
> IMAGECOLOR 255 255 255
>
> #
> # Start of web interface definition
> #
> WEB
>  MINSCALE .1
>  MAXSCALE 50000000
> #
> # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at  
> the root
> # of the drive where the .MAP file resides.
> #
>  IMAGEPATH "/tmp/ms_tmp/"
>  IMAGEURL "/ms_tmp/"
>  LOG "/tmp/gmap.log"
> END
>
>
> #
> # Start of layer definitions
> #
>      LAYER
>        NAME pg_test
>     STATUS ON
>        TYPE LINE
>        CONNECTIONTYPE POSTGIS
>        CONNECTION "host=consult4.cs.utah.edu dbname=db user=user  
> password=*DELETED*"
>        DATA "the_geom FROM tgr_slc_roads"
>        CLASS
>         NAME       "Salt Lake City Roads"
>
>          STYLE
>           COLOR        232 232 232
>           OUTLINECOLOR 32 32 32
>          END
>        END
>      END
>
> END # Map File
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+






More information about the ka-Map-users mailing list