[Cartoweb-users] CartoWeb: [MapServer Error]: setExtent(): Given
map extent is invalid
Adriano Hantequeste Gomes
adrianohg at gmail.com
Wed Feb 22 07:32:38 EST 2006
Hi steven,
See the attach.
Any question enter contact
Adriano
2006/2/22, Steven De Vriendt <gisaalter at gmail.com>:
> Adriano,
>
> I can't see what values have been inverted ? Can you give me an example of
> one of your map and ini files ?
> That'll be great. Thanks for answering my question !
>
>
> On 2/21/06, Adriano Hantequeste Gomes <adrianohg at gmail.com> wrote:
> > Hi Steven,
> >
> >
> > I have this problem too, i resolve on this topic:
> >
> >
> >
> http://lists.maptools.org/pipermail/cartoweb-users/2006-January/000472.html
> >
> >
> >
> > Thanks
> > Adriano
> >
> >
> >
> >
> >
> > 2006/2/21, Steven De Vriendt <gisaalter at gmail.com >:
> > > I'm trying to set up a cartoweb app with the use of the demo data with
> my
> > > own data.
> > > When I try my app I get the following error:
> > > Fatal error: [MapServer Error]: setExtent(): Given map extent is
> invalid. in
> > >
> C:\wamp\www\cartoweb3\coreplugins\location\server\ServerLocation.php
> > > on line 319
> > >
> > > Below is my map file
> > >
> > > In my server_conf directory I've looked at my ini file, the initial map
> > > states is
> > > set to
> > > mapInfo.initialMapStates.default.location.bbox =
> "77336,
> > > 189988, 90937, 201812"
> > > or my extent of the mapfile...
> > >
> > > What am I doing wrong ?
> > >
> > >
> > >
> > > NAME DEMO
> > >
> > > STATUS ON
> > >
> > > SIZE 600 500
> > >
> > > EXTENT 77336 189988 90937 201812
> > >
> > > UNITS METERS
> > >
> > > SHAPEPATH "data"
> > >
> > > IMAGECOLOR 255 255 255
> > >
> > > FONTSET "fonts.txt"
> > >
> > > SYMBOLSET "symbols.txt"
> > >
> > > TRANSPARENT FALSE
> > >
> > > PROJECTION
> > >
> > > "init=epsg:31300"
> > >
> > > END
> > >
> > > LAYER
> > >
> > >
> > >
> > > NAME KadScan
> > >
> > > TYPE POLYGON
> > >
> > > STATUS ON
> > >
> > > DATA C44001
> > >
> > > CLASS
> > >
> > > NAME "KadScan"
> > >
> > > #COLOR 240 240 240
> > >
> > > OUTLINECOLOR 199 199 199
> > >
> > > END
> > >
> > > END # layer
> > >
> > > ###########
> > >
> > > # outline #
> > >
> > > ###########
> > >
> > > LAYER
> > >
> > > NAME "cartoweb_point_outline"
> > >
> > > TYPE POINT
> > >
> > > CLASS
> > >
> > > STYLE
> > >
> > > SYMBOL "circle"
> > >
> > > COLOR 0 0 205
> > >
> > > 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
> > >
> > > TRANSPARENCY 100
> > >
> > > CLASS
> > >
> > > STYLE
> > >
> > > OUTLINECOLOR 255 0 0
> > >
> > > SYMBOL "line-dashed"
> > >
> > > SIZE 3
> > >
> > > 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 # Map File
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Cartoweb-users mailing list
> > > Cartoweb-users at lists.maptools.org
> > >
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
> > >
> > >
> > >
> >
> > _______________________________________________
> > 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: geo.ini
Type: application/octet-stream
Size: 946 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060222/7a3bbf61/geo.obj
-------------- next part --------------
MAP
NAME "Geo"
IMAGETYPE PNG
EXTENT 200000 7600000 430000 8050000
IMAGECOLOR 255 255 255
STATUS ON
UNITS METERS
FONTSET "fonts.txt"
SYMBOLSET "symbols.txt"
SHAPEPATH "data"
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
REFERENCE
IMAGE images/keymap.png
EXTENT 54819 7645055 587687 8022302
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
SIZE 140 97
END
SCALEBAR
POSTLABELCACHE TRUE
STYLE 0
UNITS meters
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 "MUNICIPIOS"
TYPE POLYGON
DATA "MUNICIPIOS"
LABELITEM "NOME_MUNIC"
MINSCALE 10000
MAXSCALE 100000000
CLASS
STYLE
COLOR 233 255 190
OUTLINECOLOR 178 178 178
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 6
COLOR 0 0 120
POSITION lc
END
END
END
LAYER
NAME "OCEANO"
TYPE POLYGON
DATA "OCEANO"
LABELITEM "NOME"
CLASS
STYLE
COLOR 151 219 242
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 7
COLOR 0 92 230
POSITION lc
END
END
END
LAYER
NAME "BAIRROS"
TYPE POLYGON
DATA "BAIRROS"
LABELITEM "NOME_BAIRR"
MAXSCALE 100001
CLASS
STYLE
COLOR 225 225 225
OUTLINECOLOR 1 1 1
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 7
COLOR 0 0 120
POSITION lc
BACKGROUNDCOLOR 210 210 255
BACKGROUNDSHADOWCOLOR 55 55 55
BACKGROUNDSHADOWSIZE 1 1
END
END
END
LAYER
NAME "EDIFICACOES"
TYPE LINE
DATA "EDIFICACOES"
MAXSCALE 1001
CLASS
NAME "Edificacoes"
STYLE
COLOR 115 178 255
END
END
END
LAYER
NAME "LOTES"
TYPE LINE
DATA "LOTES"
MAXSCALE 1001
CLASS
NAME "Lotes"
STYLE
COLOR 115 178 255
END
END
END
LAYER
NAME "LOGRADOUROS"
TYPE LINE
DATA "LOGRADOUROS"
LABELITEM "NOME_LOGRA"
MAXSCALE 5001
CLASS
NAME "Rodovias Federais"
EXPRESSION ("[CLASSIFICA]" eq "FEDERAL")
STYLE
SYMBOL 1
OUTLINECOLOR 0 230 169
SIZE 10
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 6
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Rodovias Estaduais"
EXPRESSION ("[CLASSIFICA]" eq "ESTADUAL")
STYLE
SYMBOL 1
OUTLINECOLOR 255 190 190
SIZE 10
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 6
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Avenidas Principais"
EXPRESSION ("[CLASSIFICA]" eq "PRINCIPAL")
STYLE
SYMBOL 1
OUTLINECOLOR 115 178 255
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 6
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Pontes"
EXPRESSION ("[CLASSIFICA]" eq "PONTE")
STYLE
SYMBOL 1
OUTLINECOLOR 255 255 0
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 6
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Ruas Locais"
EXPRESSION ("[CLASSIFICA]" eq "NORMAL")
STYLE
SYMBOL 1
OUTLINECOLOR 250 250 250
SIZE 6
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 6
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
END
LAYER
NAME "EQUIPAMENTOS"
TYPE POINT
DATA "EQUIPAMENTOS"
MAXSCALE 25001
CLASS
NAME "EQUIPAMENTOS"
STYLE
COLOR 0 0 0
SYMBOL "triangle"
SIZE 5
END
END
END
#
# COMPLETO DE 2004
#
LAYER
NAME "COMPLETO2004"
TYPE POINT
DATA "COMPLETO2004"
TEMPLATE "ttt"
MAXSCALE 75001
LABELITEM "Tp_Inciden"
METADATA
"id_attribute_string" "ID|string"
"query_returned_attributes" "CHAMADO MES HORA INCIDENTE DATA"
END
CLASS
NAME "Crimes Contra a Pessoa"
EXPRESSION ("[CLASSE]" eq "A")
STYLE
COLOR 255 0 0
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Crimes Contra o Patrimonio"
EXPRESSION ("[CLASSE]" eq "B")
STYLE
COLOR 0 0 255
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Crimes Contra os Custumes"
EXPRESSION ("[CLASSE]" eq "C")
STYLE
COLOR 255 190 190
SYMBOL "circle"
SIZE 8
END
END
CLASS
NAME "Crimes Contra a Adm Publica"
EXPRESSION ("[CLASSE]" eq "D")
STYLE
COLOR 115 255 223
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Crimes de Toxicos"
EXPRESSION ("[CLASSE]" eq "E")
STYLE
COLOR 56 158 0
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Crimes de Armas e Municoes"
EXPRESSION ("[CLASSE]" eq "F")
STYLE
COLOR 255 170 0
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Crimes Diversos"
EXPRESSION ("[CLASSE]" eq "G")
STYLE
COLOR 255 0 197
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Contravencoes"
EXPRESSION ("[CLASSE]" eq "H")
STYLE
COLOR 168 168 0
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Ocorrencias de Transito"
EXPRESSION ("[CLASSE]" eq "I")
STYLE
COLOR 178 178 178
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Ocorrencias de Bombeiros"
EXPRESSION ("[CLASSE]" eq "J")
STYLE
COLOR 197 0 255
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Outras Ocorrencias"
EXPRESSION ("[CLASSE]" eq "Z")
STYLE
COLOR 255 211 127
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
END
#
# COMPLETO DE 2005
#
LAYER
NAME "COMPLETO2005"
TYPE POINT
DATA "COMPLETO2005"
TEMPLATE "ttt"
LABELITEM "Tp_Inciden"
MAXSCALE 75001
METADATA
"id_attribute_string" "ID|string"
"query_returned_attributes" "CHAMADO MES HORA INCIDENTE DATA"
END
CLASS
NAME "Crimes Contra a Pessoa"
EXPRESSION ("[CLASSE]" eq "A")
STYLE
COLOR 255 0 0
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Crimes Contra o Patrimonio"
EXPRESSION ("[CLASSE]" eq "B")
STYLE
COLOR 0 0 255
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Crimes Contra os Custumes"
EXPRESSION ("[CLASSE]" eq "C")
STYLE
COLOR 255 190 190
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Crimes Contra a Adm Publica"
EXPRESSION ("[CLASSE]" eq "D")
STYLE
COLOR 115 255 223
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Crimes de Toxicos"
EXPRESSION ("[CLASSE]" eq "E")
STYLE
COLOR 56 158 0
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Crimes de Armas e Municoes"
EXPRESSION ("[CLASSE]" eq "F")
STYLE
COLOR 255 170 0
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Crimes Diversos"
EXPRESSION ("[CLASSE]" eq "G")
STYLE
COLOR 255 0 197
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Contravencoes"
EXPRESSION ("[CLASSE]" eq "H")
STYLE
COLOR 168 168 0
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Ocorrencias de Transito"
EXPRESSION ("[CLASSE]" eq "I")
STYLE
COLOR 178 178 178
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Ocorrencias de Bombeiros"
EXPRESSION ("[CLASSE]" eq "J")
STYLE
COLOR 197 0 255
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
CLASS
NAME "Outras Ocorrencias"
EXPRESSION ("[CLASSE]" eq "Z")
STYLE
COLOR 255 211 127
SYMBOL "circle"
SIZE 8
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 4
COLOR 10 10 10
POSITION CC
ANGLE AUTO
END
END
END
#
# ENVOLVIDOS DE 2005
#
LAYER
NAME "ENVOLVIDOS2005"
TYPE POINT
DATA "ENVOLVIDOS2005"
TEMPLATE "ttt"
MAXSCALE 75001
METADATA
"id_attribute_string" "ID_ENV|string"
"query_returned_attributes" "NOME APELIDO IDADE SEXO TIPO MES HORA INCIDENTE DIA CHAMADO LINK"
END
CLASS
NAME "Crimes Contra a Pessoa"
EXPRESSION ("[CLASSE]" eq "A")
STYLE
COLOR 255 0 0
SYMBOL "triangle"
SIZE 8
END
END
CLASS
NAME "Crimes Contra o Patrimonio"
EXPRESSION ("[CLASSE]" eq "B")
STYLE
COLOR 0 0 255
SYMBOL "triangle"
SIZE 8
END
END
CLASS
NAME "Crimes Contra os Custumes"
EXPRESSION ("[CLASSE]" eq "C")
STYLE
COLOR 255 190 190
SYMBOL "triangle"
SIZE 8
END
END
CLASS
NAME "Crimes Contra a Adm Publica"
EXPRESSION ("[CLASSE]" eq "D")
STYLE
COLOR 115 255 223
SYMBOL "triangle"
SIZE 8
END
END
CLASS
NAME "Crimes de Toxicos"
EXPRESSION ("[CLASSE]" eq "E")
STYLE
COLOR 56 158 0
SYMBOL "triangle"
SIZE 8
END
END
CLASS
NAME "Crimes de Armas e Municoes"
EXPRESSION ("[CLASSE]" eq "F")
STYLE
COLOR 255 170 0
SYMBOL "triangle"
SIZE 8
END
END
CLASS
NAME "Crimes Diversos"
EXPRESSION ("[CLASSE]" eq "G")
STYLE
COLOR 255 0 197
SYMBOL "triangle"
SIZE 8
END
END
CLASS
NAME "Contravencoes"
EXPRESSION ("[CLASSE]" eq "H")
STYLE
COLOR 168 168 0
SYMBOL "triangle"
SIZE 8
END
END
CLASS
NAME "Ocorrencias de Transito"
EXPRESSION ("[CLASSE]" eq "I")
STYLE
COLOR 178 178 178
SYMBOL "triangle"
SIZE 8
END
END
CLASS
NAME "Ocorrencias de Bombeiros"
EXPRESSION ("[CLASSE]" eq "J")
STYLE
COLOR 197 0 255
SYMBOL "triangle"
SIZE 8
END
END
CLASS
NAME "Outras Ocorrencias"
EXPRESSION ("[CLASSE]" eq "Z")
STYLE
COLOR 255 211 127
SYMBOL "triangle"
SIZE 8
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 8
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
More information about the Cartoweb-users
mailing list