Unknown connectiontype GRATICULE #4165

Merged
merged 1 commit into from Feb 28, 2013

Projects

None yet

4 participants

@mapserver-bot

Reporter: edmarmoretti
Date: 2012/01/24 - 22:22
Trac URL: http://trac.osgeo.org/mapserver/ticket/4165
I'm trying to create a coordinate grid using Mapserver 6. My mapfile is:

LAYER

CONNECTIONTYPE GRATICULE

NAME "SAMPLEGRID"

STATUS DEFAULT

TYPE LINE

UNITS DD

CLASS

  LABEL

    SIZE MEDIUM

    COLOR 255 128 89

    OFFSET 0 0

    POSITION CC

    SHADOWSIZE 1 1

    TYPE BITMAP

  END # LABEL

  STYLE

    ANGLE 0

    COLOR 0 255 128

    OFFSET 0 0

  END # STYLE

END # CLASS

GRID

  LABELFORMAT "DDMMSS"

  MAXSUBDIVIDE 5

  MINSUBDIVIDE 5

END # GRID

END # LAYER

But I get the following error messages:

Warning: ms_newMapObj(): [MapServer Error]: msInitializeVirtualTable(): Unknown connectiontype, it was -1

Warning: ms_newMapObj(): [MapServer Error]: getSymbol(): Parsing error near (GRATICULE)

Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file...

@sdlime sdlime was assigned Apr 5, 2012
@tbonfort
Member
tbonfort commented Jul 3, 2012

Graticule is not a valid connectiontype. Have a look at the documentation or https://github.com/mapserver/msautotest/blob/master/renderers/grid.map

@tbonfort tbonfort closed this Jul 3, 2012
@rodrigodirk

I have the same trouble in Mapserver 6.0.3 and 6.2.0 using java mapscript

I use the layer below and it`s drawned successfully, but when the mapfile is saved, the "CONNECTIONTYPE GRATICULE" appears misteriously in the layer, occuring the current error.

LAYER
MAXSCALEDENOM 1.8e+006
METADATA
"DEFAULT" "true"
"CATEGORY" "HIDDEN"
END # METADATA
MINSCALEDENOM 0
NAME "grid4"
STATUS ON
TILEITEM "location"
TYPE LINE
UNITS METERS
CLASS
NAME "Graticule"
LABEL
ANTIALIAS TRUE
FONT "arial"
SIZE 8
BUFFER 5
COLOR 255 0 0
OFFSET 0 0
OUTLINECOLOR 255 255 255
PARTIALS FALSE
POSITION CR
SHADOWSIZE 1 1
TYPE TRUETYPE
END # LABEL
STYLE
COLOR 0 0 0
OPACITY 50
END # STYLE
END # CLASS
GRID
LABELFORMAT "%gº"
MAXARCS 5
MAXSUBDIVIDE 1
MAXINTERVAL 1
END # GRID
END # LAYER

@tbonfort tbonfort was assigned Feb 26, 2013
@tbonfort
Member

so the mapfile writer seems to be invalid, will look into this

@tbonfort tbonfort reopened this Feb 26, 2013
@tbonfort tbonfort don't write GRATICULE connectiontype (#4165)
The graticule connectiontype is only used internally, and should
not be exposed in a mapfile as it is rejected by the parser.
21f30d2
@tbonfort tbonfort merged commit 21f30d2 into mapserver:branch-6-2 Feb 28, 2013

1 check passed

default Merged build finished.
Details
@tbonfort tbonfort deleted the tbonfort:b4165-graticule branch Feb 28, 2013
@mkofahl mkofahl pushed a commit to faegi/mapserver that referenced this pull request Apr 9, 2013
@tbonfort tbonfort don't write GRATICULE connectiontype (#4165)
The graticule connectiontype is only used internally, and should
not be exposed in a mapfile as it is rejected by the parser.
14fc6bd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment