[Mapserver-users] no image(s)

ronny mamwake at yahoo.com
Tue Oct 14 05:58:26 PDT 2003


i have discovered something else here,,it seems my
mapfile is not querying data,,if i close/remove below
lines am getting no error message(s) which logically
there should be errors partain mapfile not bieng able
to get data blah blah..

STATUS DEFAULT  
DATA "demo_region"

--- Michael Smith <msmith at sanangelompo.org> wrote:
> 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
> 
=== message truncated ===


=====
ronny

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com



More information about the MapServer-users mailing list