[Mapserver-users] no image(s)
Michael Smith
msmith at sanangelompo.org
Mon Oct 13 06:51:48 PDT 2003
Ronny,
I had the same problem with mapserver when I first began. I became VERY
frustrated. The good news is that your server seems to be up and running
correctly as you are not getting any errors you just can see your maps. The
problem I would guess lies within your extents/units. The way I solved the
problem was that I found a mapserver user located in the same state as me
and got a copy if his map file. Once I loaded his mapfile, I simply
inserted my shapefile (though in a different area of the state) in his
working mapfile and initiated mapserver. I could see his city and began
zooming out and presto I could see my maps.
If this will not work for you, another suggestion would be to download a
file off the net called shapechk.exe (or something like that... you can do a
search). Run the program on your shapefile and it will give you the correct
extents for your shapefile. Hope this helps.
-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of ronny
Sent: Friday, October 10, 2003 4:55 AM
To: Till Adams
Cc: MapsHelp
Subject: Re: [Mapserver-users] no image(s)
yes, thanks,i have even tried reducing/increasing the
extent but still the problems pursists..no errors or
something to indicate what is wrong,,just cann't
display no image
--- Till Adams <adams at terrestris.de> wrote:
> Dear Ronny,
>
> does your extent fit to the extent (BoundignBox) of
> your data?
>
> Cheers,
> Till
>
> ronny schrieb:
> > am a newbie, when i try to load map am getting
> blank
> > image! everything else is ok ..i sincerely don't
> know
> > what am doing wrong and am stuck and very
> > desperate..my mapfile is as follows:
> >
> > #
> > # Start of map file
> > #
> > NAME TEST
> > STATUS ON
> > SIZE 600 600
> > EXTENT 388107.634400379 5203120.88405952
> > 500896.339019834 5310243.30613897
> > UNITS METERS
> > SHAPEPATH "data"
> > IMAGECOLOR 255 255 255
> >
> >
> > WEB
> > HEADER test_header.html
> > TEMPLATE test.html
> > FOOTER test_footer.html
> > MINSCALE 1000
> > MAXSCALE 1550000
> > IMAGEPATH "set in test.html"
> > IMAGEURL "set in test.html"
> > METADATA
> > WMS_TITLE "scomMapserver"
> > WMS_ACCESSCONSTRAINTS none
> > WMS_ONLINERESOURCE
> > "http://var/www/html/mapsite/test.html"
> >
> > WMS_SRS "EPSG:26915"
> > END
> > END
> >
> > QUERYMAP
> > SIZE 200 200
> > STATUS ON
> > STYLE HILITE
> > COLOR 255 0 0
> > END
> >
> > #
> > # Start of reference map
> > #
> > #REFERENCE
> > # IMAGE graphics/ref.png
> > # EXTENT 393234.393701263 5205405.16440722
> > 495769.579718949 5307959.02579127
> > # SIZE 50 50
> > # STATUS ON
> > # COLOR -1 -1 -1
> > # OUTLINECOLOR 255 0 0
> > #END
> >
> > #
> > # Start of legend
> > #
> > LEGEND
> > KEYSIZE 18 12
> > LABEL
> > TYPE BITMAP
> > SIZE MEDIUM
> > COLOR 0 0 89
> > END
> > STATUS ON
> > END
> >
> > #
> > # Start of scalebar
> > #
> > SCALEBAR
> > IMAGECOLOR 255 255 255
> > LABEL
> > COLOR 255 255 255
> > SIZE tiny
> > END
> > STYLE 1
> > SIZE 80 2
> > COLOR 255 255 255
> > UNITS MILES
> > INTERVALS 1
> > TRANSPARENT TRUE
> > STATUS TRUE
> > END
> >
> > #
> > # Start of symbol definitions (we're only using a
> few)
> > #
> > SYMBOL
> > NAME 'circle'
> > TYPE ELLIPSE
> > POINTS 1 1 END
> > FILLED TRUE
> > END
> >
> > #
> > # Start of layer definitions
> > #
> >
> > LAYER
> > NAME test_region
> > TYPE RASTER
> > STATUS DEFAULT
> > DATA "test_region"
> >
> > CLASSITEM 'cty_name'
> > CLASS
> > EXPRESSION 'Test'
> > OUTLINECOLOR 128 128 128
> > COLOR 225 225 185
> > END
> > CLASS #
> > EXPRESSION /./
> > OUTLINECOLOR 128 128 128
> > COLOR 255 255 255
> > END
> > END
> >
> > LAYER
> > NAME Towns_point
> > GROUP cities
> > TYPE RASTER
> > DATA "Towns_point"
> > STATUS OFF
> > CLASSITEM 'city_name'
> > CLASS
> > NAME "Cities & Towns"
> > EXPRESSION NONE
> > COLOR 255 225 90
> > TEMPLATE "population.html"
> > END
> >
> > HEADER "population_header.html"
> > FOOTER "population_footer.html"
> >
> > DUMP TRUE # allow GML export
> >
> > END
> > END
> >
> > LAYER
> > NAME Places_point
> > TYPE POINT
> > DATA "Places_point"
> > STATUS OFF
> > CLASS
> > SYMBOL 'circle'
> > SIZE 2
> > NAME 'Townships'
> > OUTLINECOLOR 181 181 145
> > END
> > END
> >
> >
> > LAYER
> > NAME Lakes_region
> > TYPE RASTER
> > STATUS OFF
> > DATA "Lakes_region"
> >
> > CLASS
> > NAME 'Lakes & Rivers'
> > TEMPLATE "lakes.html"
> > COLOR 49 117 185
> > END
> >
> > HEADER "lakes_header.html"
> > FOOTER "lakes_footer.html"
> >
> > TOLERANCE 3
> >
> > DUMP TRUE # allow GML export
> >
> > END
> > END
> >
> > LAYER
> > NAME Rivers_polyline
> > TYPE LINE
> > STATUS OFF
> > DATA "Rivers_polyline"
> >
> > CLASS
> > NAME "Streams"
> > TEMPLATE "description.html"
> > COLOR 49 117 185
> > END
>
=== message truncated ===
=====
ronny
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list