[Cartoweb-users] Zoom tools do not make anything
Daniel
daniel.faivre at camptocamp.com
Wed Feb 22 11:02:56 EST 2006
In addition to Pierre Giraud's response:
1) When you use lat/lon data, you should define projections in your
mapfile to get the whole app (including measures) working properly.
2) When you need to manage on-the-fly projections, don't forget that is
time-expensive. For performances, you'd better project your data before
(with command-line tools like proj or ogr2ogr, for example)
Yours,
dF
Cristhiano Vasconcellos a écrit :
> The map is showed but the zoom in/out tools do not make anything.
> The url of the application:
> http://ndige01.ccr.ufsm.br/cartoweb3/htdocs/ufsm.php
> Could someone help me?
>
> Thanks a lot
>
> The map file is the following:
>
> MAP
> NAME "ufsm"
> EXTENT -180.00 0.00 -60.00 90.00
> IMAGETYPE PNG
> IMAGECOLOR 255 255 255
> STATUS ON
> UNITS METERS #modificado era METERS
> FONTSET "fonts.txt"
> SYMBOLSET "symbols.txt"
> SHAPEPATH "/home/mapdata/"
>
> OUTPUTFORMAT
> NAME png
> DRIVER "GD/PNG"
> MIMETYPE "image/png"
> IMAGEMODE PC256
> EXTENSION "png"
> FORMATOPTION "INTERLACE=OFF"
> TRANSPARENT ON
> END
>
> OUTPUTFORMAT
> NAME jpeg
> DRIVER "GD/JPEG"
> MIMETYPE "image/jpeg"
> IMAGEMODE RGB
> EXTENSION "jpg"
> FORMATOPTION "INTERLACE=OFF"
> FORMATOPTION "QUALITY=80"
> END
>
> #keymap mapinha de referencia para clicar e posicionar no mapa principal
> #comentei para tirá-lo
> REFERENCE
> IMAGE images/img_referencia.gif
> EXTENT -180.00 0.00 -60.00 90.00
> STATUS ON
> COLOR -1 -1 -1
> OUTLINECOLOR 200 200 200
> SIZE 140 97
> END
>
> SCALEBAR
> POSTLABELCACHE TRUE
> STYLE 0
> UNITS kilometers
> SIZE 350 3
> TRANSPARENT TRUE
> COLOR 77 77 88
> IMAGECOLOR 242 255 195
> BACKGROUNDCOLOR 222 222 222
> LABEL
> TYPE BITMAP
> SIZE SMALL
> COLOR 0 0 0
> ! POSITION UR
> BUFFER 10
> END
> END
>
> LEGEND
> KEYSIZE 20 15
> END
>
>
>
> #layers *******************************
> LAYER
> NAME "urbanareas"
> DATA "urbanap020"
> STATUS on
> TYPE polygon
> LABELCACHE on #desenha o label so depois que todas as camadas
> forem desenhadas
> LABELITEM 'NAME'
> ! ; CLASS
> NAME "Urban Areas" #este nome aparece na legenda
> STYLE
> COLOR 212 192 100 #como eh um poligono a cor eh de
> preenchimento
> END #style
> LABEL
> COLOR 0 0 0
> SIZE small
> END #label
> END # class Urban Areas
> END # layer urbanareas
>
> LAYER
> NAME "lakes"
> DATA "hydrogp020"
> STATUS on
> TYPE polygon
> LABELCACHE on
> LABELITEM "NAME" #indica qual campo no shape originará os
> rótulos no mapa
> CLASSITEM "FEATURE" #indica qual campo no shapefile sera pesquisado
> MAXFEATURES 100 #número máximo de objetos a serem desenhados
> CLASS
> NAME "Lakes"
> EXPRESSION 'Lake' #critério de restrição tipo where
> feature = 'Lake'
> STYLE
> SIZE 1
> COLOR 0 0 255
> END
> LABEL
> MINFEATURESIZE auto
> COLOR 0 0 0
> SIZE small
> END
> END
> END
>
> LAYER
> NAME "states" #opcional, mas se quiser manipular no html tem q ter
> DATA "statesp020"
> STATUS on
> TYPE polygon
> LABELCACHE on
> CLASS
> STYLE
> OUTLINECOLOR 0 0 0
> END
> END
> END
>
> LAYER
> NAME "roads"
> DATA "roadtrl020"
> STATUS on
> TYPE line
> LABELCACHE on
> LABELITEM "NAME"
> CLASSITEM "FEATURE"
> CLASS
> NAME "Principal Highway"
> EXPRESSION /Principal Highway*/ # serve de critério é
> uma expressão regular
> STYLE
> SIZE 1
> COLOR 0 0 0
> END
> LABEL
> COLOR 0 0 0
> SIZE small
> END
> END
> END
>
> ###########
> # outline #
> ###########
> LAYER
> NAME "cartoweb_point_outline"
> TYPE POINT
> CLASS
> STYLE
> SYMBOL "triangle"
> COLOR 0 0 0
> SIZE 12
> END
> STYLE
> SYMBOL "triangle"
> COLOR 205 0 0
> SIZE 10
> END
> LABEL
> TYPE TRUETYPE
> FONT "Vera"
> SIZE 7
> COLOR 0 0 0
> OUTLINECOLOR 255 255 255
> POSITION lc
> END
> END
> END
>
> LAYER
> NAME "cartoweb_line_outline"
> TYPE LINE
> CLASS
> STYLE
> COLOR 0 0 0
> SYMBOL "line-dashed"
> SIZE 2
> END
> LABEL
> TYPE TRUETYPE
> FONT "Vera"
> SIZE 7
> COLOR 0 0 0
> OUTLINECOLOR 255 255 255
> ANGLE auto
> POSITION uc
> END
> END
> END
>
> LAYER
> NAME "cartoweb_polygon_outline"
> TYPE POLYGON
> TRANSPARENCY 60
> CLASS
> STYLE
> COLOR 255 153 0
> OUTLINECOLOR 0 0 0
> END
> LABEL
> TYPE TRUETYPE
> FONT "Vera"
> SIZE 7
> OUTLINECOLOR 255 255 255
> COLOR 0 0 0
> POSITION cc
> END
> END
> END
>
> END
>
>
>
> ------------------------------------------------------------------------
> Yahoo! Acesso Grátis
> Internet rápida e grátis. Instale o discador agora!
> <http://us.rd.yahoo.com/mail/br/tagline/homepage_set/*http://br.acesso.yahoo.com>
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Cartoweb-users mailing list
>Cartoweb-users at lists.maptools.org
>http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: daniel.faivre.vcf
Type: text/x-vcard
Size: 323 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060222/2d38b79c/daniel.faivre.vcf
More information about the Cartoweb-users
mailing list