No subject

Ed McNierney ed at TOPOZONE.COM
Fri Sep 7 07:49:19 PDT 2007


Chris -

I would start by setting the LAYER object to STATUS DEFAULT rather than
STATUS ON, and you don¹t need an EXTENT statement inside your LAYER.

     - Ed
 
-- 
Ed McNierney
Chief Mapmaker
Demand Media / TopoZone.com
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
Phone: (978) 251-4242
Fax: (978) 251-1396
ed at topozone.com


From: Christopher Harris <docterrobert at MSN.COM>
Reply-To: Christopher Harris <docterrobert at MSN.COM>
Date: Fri, 7 Sep 2007 09:17:32 -0500
To: <MAPSERVER-USERS at LISTS.UMN.EDU>
Subject: [UMN_MAPSERVER-USERS]

No, I'm setting all the parameters (well, as many as I can and understand).
I tried to follow the Proj.4 .pdf manual and I was kinda confused what
lat_1, lon_1 and lat_2, lon_2 were supposed to be or if I even needed them.

Here is my map file:

MAP
    NAME UniversityOfIllinois
    STATUS ON
    SIZE 600 500
    IMAGETYPE GIF
    PROJECTION
        "proj=utm"
        "ellps=WGS84"
        "datum=NAD83"
        "zone=16"
        "units=m"
        "north"
    END
    EXTENT 393898 4438945 396253 4441379  #image is 1747 X 1916 pixels
    UNITS METERS
    SHAPEPATH "/var/www/mapserver/basic/data/illinois/"
    IMAGECOLOR 255 255 255
    
    OUTPUTFORMAT
        NAME thegif
        DRIVER "GD/GIF"
        MIMETYPE "image/gif"
        IMAGEMODE RGB
        EXTENSION "gif"
    END

    WEB
            IMAGEPATH "/var/www/mapserver/basic/images/"
            IMAGEURL "/mapserver/basic/images/"
        END
    
    #REFERENCE
        #IMAGE 
/var/www/mapserver/basic/data/illinois/colorUofIllinoisGIF.gif
        # location of the image
        #EXTENT 393898 4438945 396253 4441379
        # extent of the image
        #STATUS ON
        # the overview is on by default
        #COLOR -1 -1 -1
        # transparent background
        #OUTLINECOLOR 255 0 0
        # the color of the outline
        #SIZE 1747 1916
        # the size of the image in pixels
    #END

    LAYER
        NAME "UofI"
          DATA "colorUofIllinoisGIF.gif"
          TYPE RASTER
          STATUS ON
        PROJECTION
            "proj=utm"
            "ellps=WGS84"
            "datum=NAD83"
            "zone=16"
            "units=m"
            "north"
        END
        EXTENT 393898 4438945 396253 4441379
        CLASS
                EXPRESSION /*/
                COLOR 0 255 0
          END
    END    
END


I have that reference section in there although I really don't know the
point behind it.  It didn't change a thing, so I commented it out. Thanks so
much David for your help!

 - Chris

Kick back and relax with hot games and cool activities at the Messenger
Café. Play now! <http://www.cafemessenger.com?ocid=TXT_TAGLM_SeptWLtagline> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070907/df7cefd7/attachment.htm>


More information about the MapServer-users mailing list