Problem in zoomin with png/gif symbols
Fawcett, David
David.Fawcett at STATE.MN.US
Sat Nov 26 12:23:38 PST 2005
Try removing the minscale and maxscale from the point layer and see if they continue to work.
I also see that the layer status is set to on. Do you have a control on your template that tells mapserver to display that layer? With status of on, you need to specify the layer name in the URL or post that calls the mapserver. Try setting the layer status to default and see if that fixes the issue.
David.
-----Original Message-----
From: UMN MapServer Users List on behalf of Dott. Stefano Albanese
Sent: Sat 11/26/2005 9:16 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Problem in zoomin with png/gif symbols
Dear all,
i'm getting a weird problem with my mapserver application.
I' m using a point layer and i'm trying to render it into the map using a GIF symbol.
When i load the map in its full extent or zooming out (starting from fullextent visualization) the symbols are shown and they scale correctly with the view scale.
On the other hand, when i try to zoom in, starting from the full extent scale, the symbols desapear, while the rest of layers continue to be shown correctly.
I tried to change some parameters but nothing changed.
-i substituted the GIF with a PNG...but nothing
-i setted up Maxscale and Minscale and i tried to change it several times, but nothing happen.
- i setted up the Symbolscale with different values, and the size of synbols changed according to the value i putted there, but once passed the fullextent scale, again the simbols desapear.
So what's wrong in my file?????
This is my mapfile extract:
#
# Start of map file - created Sat Nov 26 05:30:10 2005
#
NAME 'Sirignano'
STATUS ON
PROJECTION
'init=epsg:4326'
END
SIZE 550 646
EXTENT 2488215.224 4532635.713 2489404.490 4534031.661
UNITS meters
FONTSET 'D:/ms4w/Apache/htdocs/sirignano/fonts/fonts.fnt'
IMAGECOLOR 255 255 255
#
# Start of web interface definition
#
WEB
LOG Sirignano.log
TEMPLATE sirignano.html
IMAGEPATH 'D:/ms4w/Apache/htdocs/temp/'
IMAGEURL 'http://localhost/temp/'
EMPTY 'http://localhost/sirignano/nothing.html'
# change this value to match your setup
METADATA
WMS_ONLINERESOURCE 'http://localhost//cgi-bin/mapserv.exe?map=D:/ms4w/Apache/htdocs/sirignano/Sirignano.map'
'WMS_SRS' 'epsg:4326'
WMS_ACCESSCONSTRAINTS 'none'
WMS_TITLE 'Sirignano'
WMS_FEATURE_INFO_MIME_TYPE 'text/html'
WMS_ABSTRACT ''
END #METADATA
END #HEADER
#
# Properties for the querymap
#
QUERYMAP
SIZE 200 200
STATUS ON #OFF
STYLE HILITE
COLOR 255 0 0
END
#
# Start of reference map
#
REFERENCE
STATUS ON
IMAGE graphics/map_ref.png
SIZE 120 80
EXTENT 2488215.224 4532635.713 2489404.490 4534031.661
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END #REFERENCE
#
# Start of symbol
#
SYMBOL
NAME 'albero'
TYPE PIXMAP
IMAGE 'd:/ms4w/apache/htdocs/sirignano/symbols/albero.gif
END #Symbol
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
LAYER
NAME 'Alberi.shp'
DATA 'd:/ms4w/apache/htdocs/sirignano/data/alberi'
STATUS ON
TYPE Point
MINSCALE 200
MAXSCALE 200000
SYMBOLSCALE 3000
CLASSITEM 'Entity'
CLASS
NAME ' '
EXPRESSION 'Point'
COLOR 0 0 0
SYMBOL 'albero'
END
END # END OF LAYERFILE
END # MAPFILE
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
I would be grateful to you, if u could solve my problem.
Thanx in advance
Stefano
Dott. Geol. Stefano Albanese
Via S. Giacomo 6
83022 Baiano (AV)
Italia
Tel.: +390818243143
+393471982279
---------------------------------
Yahoo! Personals
Single? There's someone we'd like you to meet.
Lot's of someone's, actually. Yahoo! Personals
More information about the MapServer-users
mailing list