[Mapserver-users] wms and projections
Charlton Purvis
cpurvis at asg.sc.edu
Fri Feb 6 12:17:38 PST 2004
Hi, Amit:
I have found that the MIN/MAX SCALES don't necessarily match up
precisely between regular mapserver cgi calls and WMS calls.
So I'd play around w/ your MINSCALE since that made a difference w/ your
cgi results. Make it something ridiculous to make sure it includes
everything.
Charlton
> -----Original Message-----
> From: Amit S BEHERE [mailto:abehere at cs.ucsd.edu]
> Sent: Friday, February 06, 2004 2:38 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [Mapserver-users] wms and projections
>
> Hi all,
> This is an extension of the question I had posted previously regarding
> seeing only one point on the map. I had taken example1-1.map from the
> tutorial and modified it to display my shapefile. However I was seeing
> only one tree when I should have been seeing a whole bunch. Thanks to
> David I was able to fix that (I needed to set MINSCALE, athough I
don't
> know why yet?) and could see the whole set of trees.
>
> Now I have converted that mapfile to serve as a WMS service by adding
the
> appropriate wms tags in the mapfile. I am getting the capabilites back
> correctly. However when I use the OGIS GetMap request I again see just
one
> tree.
>
>
http://pune/mapserver/mapserv.exe?map=/MSTutorial/testwms.map&request=ge
tm
> ap&version=1.1
>
> However if I view the same file i.e testwms.map using the regular
> mapserver interface i.e using the command
> http://pune/mapserver/mapserv.exe?map=/MSTutorial/testwms.map&mode=map
>
> I see the whole set again. So basically I see just one tree if I give
the
> OGIS getmap url and a whole set of trees when I give the regular
> mapserver url. Any one encountered similar problems or any idea why
this
> is happening
>
> Here is my map file
>
> MAP
> NAME demoservice
> IMAGETYPE PNG
> EXTENT 385538 3761010 391329 3764477
> UNITS METERS
> SIZE 600 600
> SHAPEPATH "data"
> IMAGECOLOR 255 255 255
>
> PROJECTION
> "init=epsg:26911"
> END
>
>
> WEB
> IMAGEPATH "c:\itasca\tmp\"
> IMAGEURL "/tmp/"
> MINSCALE 50000 #with this enabled, produces image with all
> points
> #MAXSCALE 15500000 #see 'with_scale_restrictions.png'
>
> METADATA
> "wms_title" "WMS Demo Server"
> "wms_onlineresource"
> "http://pune/mapserver/mapserv.exe?map=/MSTutorial/testwms.map&"
> "wms_srs" "epsg:26911"
> END
> END
>
> SYMBOL
> NAME 'circle'
> TYPE ELLIPSE
> POINTS 1 1 END
> FILLED TRUE
> END
>
>
> LAYER
> NAME trees
> DATA vernon_trees
> STATUS DEFAULT
> TYPE POINT
> LABELITEM "TREEID"
> CLASS
> COLOR 0 0 0
> SYMBOL 'circle'
> SIZE 6
> END
>
> PROJECTION
> "init=epsg:26911"
> END
>
> METADATA
> "wms_title" "WMS Demo Server"
> "wms_srs" "epsg:26911"
> "wms_extent" "385538 3761010 391329 3764477"ho
>
> END
>
> END # layer ends here
>
> END # end of map file/object
>
> Amit Behere.
> UCSD.
> "Technology doesn't make your life more difficult or easy, it just
changes
> the rules"......Vishwanathan Anand
>
> _______________________________________________
> 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