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

Ryan Taylor ryant at cs.utah.edu
Fri Jun 2 18:40:52 EDT 2006


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



More information about the ka-Map-users mailing list