Case of the blankety blanks

Chris Foote chris at INETD.COM.AU
Thu Jan 20 03:40:09 EST 2005


I've managed to get CGIMapServer up and running, and I'm able to
embed a label and scale.  The problem I'm having is getting either
one of 2 shapefiles to be displayed - they come up blank ;-(

What I'm seeing, along with the shapefiles and debugging info is
up at:

http://202.4.251.202/cgi-bin/mapserv?map=maps%2FAustralia2.map&imgext=-4052773.126174+6525496.338892+-4048707.504070+6529560.938500&imgxy=149.5+199.5&program=%2Fcgi-bin%2Fmapserv&img.x=335&img.y=321

or:

http://tinyurl.com/5c3x5

I'm trying to show 4 layers:
- a label (working)
- a scale (working)
- Australia2 shapefile (not working)
- Trenches shapefile (not working)

I suspect that I don't know enough about the types of projections.

Can anyone help ?


The shapefile Australia2 is supposed to be a Asia Lambert Conformal
Conic projection.  The shapfile Trenches is supposed to be a GDA
1994 South Australia Lambert projection.

The map file contains:

MAP
         NAME MapTest
         STATUS on
         DEBUG on
         IMAGETYPE myoutputformat
         SIZE 500 500
         UNITS METERS
         EXTENT -1212976 561048 2859174 4723198
         SHAPEPATH "/home/pipe/shapes/"

         PROJECTION
                 "proj=lcc"
         END

         LEGEND
                 STATUS EMBED
                 POSITION UR
         END

         SCALEBAR
                 TRANSPARENT ON
                 BACKGROUNDCOLOR 254 254 254
                 STATUS EMBED
                 POSITION LR
                 STYLE 1
                 UNITS meters
                 LABEL
                         SIZE small
                 END
         END

         LAYER
                 NAME Australia2
                 DATA Australia2
                 TYPE polygon
                 STATUS on
                 DEBUG on
                 PROJECTION
                         "proj=lcc"
                 END
                 CLASS
                         BACKGROUNDCOLOR 100 100 100
                         DEBUG on
                         OUTLINECOLOR 150 150 150
                 END
         END

         LAYER
                 NAME Trenches
                 DATA Trenches
                 TYPE polygon
                 STATUS on
                 DEBUG on
                 CLASS
                         BACKGROUNDCOLOR 100 100 100
                         DEBUG on
                         OUTLINECOLOR 150 150 150
                 END
         END

         LAYER
                 NAME "credits"
                 STATUS DEFAULT
                 TRANSFORM FALSE
                 TYPE ANNOTATION
                 FEATURE
                         POINTS
                                 10 480
                         END
                         TEXT 'Bogus Mapping Limited'
                 END
                 CLASS
                         LABEL
                                 TYPE BITMAP
                                 POSITION CR
                                 COLOR 0 0 0
                         END
                 END
         END

         OUTPUTFORMAT
                 NAME myoutputformat
                 DRIVER "GD/PNG"
                 MIMETYPE "image/png"
                 IMAGEMODE RGB
                 EXTENSION "png"
         END

         WEB
           IMAGEPATH ../data/
           LOG ../data/logfile.txt
           TEMPLATE "Australia2.html"
           IMAGEURL "/mapdata/"
         END

END


Any help would be most appreciated ;-)



Cheers,

Chris Foote <chris at inetd.com.au>
   _                  _         _    Jabber: chris at jabber.inetd.com.au
  (_)                | |       | |   Director - INETD PTY LTD
   _   _ __     ___  | |_    __| |   Level 2, 132 Franklin St
  | | | '_ \   / _ \ | __|  / _` |   Adelaide SA 5000
  | | | | | | |  __/ | |_  | (_| |   Web:   http://www.inetd.com.au
  |_| |_| |_|  \___|  \__|  \__,_|   Phone: (08) 8410 4566



More information about the mapserver-users mailing list