[Cartoweb-users] Query in layer with CLASS
Caussin David
David.Caussin at brucity.be
Wed Aug 10 04:15:12 EDT 2005
Hello,
Sorry but i don't very understand what you would say.
I have set the TEMPLATE "foo" in each class but nothing change .
And for the problem about the reference map i don't know if i must use a factor scale of so, if i must set SIZE X Y for the map and one more time for the REFERENCE.
Is there someone that could explain that
Here is a part of my mapfile
MAP
# QUERY
NAME "bruxelles"
EXTENT 145691.587 164468.490 155263.057 178821.756
SHAPEPATH "data"
SYMBOLSET "symbols.sym"
FONTSET "fonts.txt"
UNITS METERS
LEGEND
STATUS ON
KEYSIZE 18 13
POSTLABELCACHE true
LABEL
TYPE BITMAP
SIZE MEDIUM
POSITION cc
COLOR 0 0 89
END
END
#LEGEND
#
# Start of scalebar
#
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
END
SCALEBAR
STATUS ON
COLOR 255 255 255
OUTLINECOLOR 0 0 0
BACKGROUNDCOLOR 0 0 0
IMAGECOLOR 255 255 255
UNITS meters
INTERVALS 10
#LABEL
SIZE 350 5
LABEL
SIZE SMALL
COLOR 0 0 0
END
END
REFERENCE
IMAGE images/keymap.gif
EXTENT 145691.587 164468.490 155263.057 178821.756
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 180 60 60
SIZE 100 70
END
...........
Thanks a lot
Ragards
Caussin David
-----Original Message-----
From: Pierre GIRAUD [mailto:pierre.giraud at camptocamp.com]
Sent: mardi 9 août 2005 11:28
To: Caussin David
Cc: Cartoweb-users at lists.maptools.org
Subject: Re: [Cartoweb-users] Query in layer with CLASS
Caussin David a écrit :
> Hi,
>
> I ask the question again about the query in a layer with class.
>
> In fact, i have a layer with many class and when i query it all the
> elements in the class of the layer are highlighted.
> I have take a look in the shp file to see if the elements are not only
> one polygon but there are independants.
>
> I can't see from where that come.
>
You probably need to set a TEMPLATE "foo" in each class an not in the
layer itself.
>
> Another question is about the zoom in the reference map.
> At the beginning i have a good view with all the city.
> When i zoom in no problem i have the good zoom on the main screen and
> on the reference map.
> But when i want to move the zoom rectangle with the reference map, the
> result is wrong.
> The rectangle of the zoom go to the bottom of the reference map and
> display nothing.....
>
You probably forgot to set your reference size in your mapfile in
concordance with the real size (in pixels) of your project keymap (i.e.
keymap.png).
Regards.
Pierre
--
_________________________________________________________
Pierre GIRAUD
Géomaticien, Analyste
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 93
Mail : pierre.giraud at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20050810/c0a1b8c7/attachment.html
More information about the Cartoweb-users
mailing list