[Mapserver-users] Proj problems
Randy James
rjames57 at yahoo.com
Thu Jul 31 15:18:59 PDT 2003
Hi
could be your path to the image?
i use:
imagepath /full/path/to/tmp/dir/
imageurl /tmp/
you need the last / after your folder
Hope this helps
--- Gerry Creager <gerry.creager at tamu.edu> wrote:
> OK, I'm pretty much at my wits' end. I've tried looking
> at this on a
> time-available basis, and I'm just not getting it.
>
> A mapserv -v yields the following:
> [root at mesonet cgi-bin]# ./mapserv -v
> MapServer version 3.7 (development) OUTPUT=PNG
> OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=TTF
> SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=GD2_RGB
> INPUT=OGR
> INPUT=GDAL INPUT=SHAPEFILE
>
> PROJ support is there, so it should allow me to specify a
> projection
> section, either with the EPSG shortcut or the long way,
> with everything
> specified. I've tried that and what I end up with is
> essentially a
> blank screen...
>
> If someone's got suggestions, great. The mapfile is
> attached. I'll
> keep looking at it, but it's looking like my hair's on
> fire and I can't
> get it put out...
>
> Thanks in advance,
> Gerry
> --
> Gerry Creager -- gerry.creager at tamu.edu
> Network Engineering -- AATLT, Texas A&M University
> Cell: 979.229.5301 Office: 979.458.4020
> FAX: 979.847.8578 Pager: 979.228.0173
> Office: 903A Eller Bldg, TAMU, College Station, TX 77843
> > ### This map file is used to control the Texas Mesonet
> Mapserver
>
########################################################################
> ###
> ### Luke Wallace, Fall 2002 (Thanks, Luke!)
> ###
>
########################################################################
> ### Change Log
> ###
> ### 2003-07-13: Changed Layer 'buffer' to reduce number
> of
> ### overlapping points and enhance readability
> ###
> ###
>
########################################################################
>
>
> NAME TxMeso
> STATUS ON
> SIZE 700 700
> #SIZE 650 650
> #EXTENT 388107.634400379 5203120.88405952
> 500896.339019834 5310243.30613897
> EXTENT -106.8 25.8 -93.52 36.4
> UNITS DD
> SHAPEPATH "/var/www/mesonet/texas/data"
> IMAGECOLOR 255 255 255
> FONTSET "fonts.list"
> SYMBOLSET "symbols.sym"
>
> # you may need to change this to match your MapServer
> build
> IMAGETYPE PNG
>
> #
> # Projection definition, consult the PROJ.4 documentation
> for parameter discussion
> #
> #PROJECTION
> # "proj=lcc"
> # "ellps=GRS80"
> # "lon_0=100w"
> # "lat_1=27.416n"
> # "lat_2=34.916n"
> #END
>
> #PROJECTION
> # proj=latlong
> # ellps=GRS80
> # datum=NAD83
> #END
>
> PROJECTION
> # "proj=utm"
> # "ellps=GRS80"
> # "zone=15"
> # "north"
> # "no_defs"
> #
> # OR:
> #
> # "init=epsg:4267" #nad 27 lat/long unprojected
> "init=epsg:32039" #Texas Central LCC NAD83
> END
> #PROJECTION
> # "proj=longlat"
> # "ellps=clrk66"
> # "no_defs"
> # "no_defs"
> #END
>
> #
> # Start of web interface definition (including WMS
> enabling metadata)
> #
> WEB
> # HEADER mesonet_header.html
> TEMPLATE "mesonet1.html"
> FOOTER mesonet_footer.html
> # ERROR "../index.php"
> MINSCALE 50000
> MAXSCALE 50000000
> IMAGEPATH "/var/www/mesonet/tmp"
> IMAGEURL "/var/www/mesonet/tmp"
> METADATA
> WMS_TITLE "MapServer Texas"
> WMS_ABSTRACT "Realtime Weather Interface"
> WMS_ACCESSCONSTRAINTS none
>
> # change this value to match your setup
> WMS_ONLINERESOURCE
> "http://mesonet.tamu.edu/index.php"
>
> WMS_SRS "EPSG:32039"
> END
> END
>
> #QUERYMAP
> # SIZE 200 200
> # STATUS ON
> # STYLE HILITE
> # COLOR 255 0 0
> #END
>
> #
> # Start of scalebar
> #
> SCALEBAR
> IMAGECOLOR 255 255 255
> LABEL
> COLOR 255 255 255
> SIZE tiny
> END
> STYLE 1
> SIZE 150 4
> COLOR 255 255 255
> # UNITS MILES
> UNITS kilometers
> INTERVALS 4
> TRANSPARENT TRUE
> STATUS TRUE
> END
>
> #
> # Legend
> #
> LEGEND
> STATUS ON
> IMAGECOLOR 255 255 255
> POSTLABELCACHE ON
> END
>
> #
> # Start of symbol definitions (we're only using a few)
> #
> SYMBOL
> NAME 'circle'
> TYPE ELLIPSE
> POINTS 5 5 END
> FILLED FALSE
> END
> SYMBOL
> NAME 'pwvcircle'
> TYPE ELLIPSE
> FILLED TRUE
> POINTS 5 5 END
> END
>
> #
> # Start of layer definitions
> #
>
> LAYER
> SIZEUNITS pixels
> NAME rain
> TYPE line
> DATA rain_dd
> STATUS false
> CLASS
> NAME 'Rainfall Contours'
> COLOR 25 20 200
> END # CLASS
> END # LAYER
>
> # Roads
> LAYER
> SIZEUNITS pixels
> PROJECTION
> # "proj=lcc"
> # "ellps=GRS80"
> # "lon_0=100w"
> # "lat_1=27.416n"
> # "lat_2=34.916n"
> "init=epsg:32039"
> END
>
>
> NAME roads
> TYPE line
> DATA usdotrds
> STATUS false
> CLASS
> NAME 'Roads'
> COLOR 0 0 0
> END
> END # LAYER
>
> # Lakes and Rivers
> LAYER
> SIZEUNITS pixels
> #PROJECTION
> # "proj=lcc"
> # "ellps=GRS80"
> # "lon_0=100w"
> # "lat_1=27.416n"
> # "lat_2=34.916n"
> #END
> NAME rivers
> TYPE polygon
> DATA hydgen
> STATUS false
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
More information about the MapServer-users
mailing list