New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown connectiontype GRATICULE #4165

Merged
merged 1 commit into from Feb 28, 2013

Conversation

Projects
None yet
3 participants
@tbonfort
Member

tbonfort commented Feb 28, 2013

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...

@ghost ghost assigned sdlime Apr 5, 2012

@tbonfort

This comment has been minimized.

Show comment
Hide comment
@tbonfort

tbonfort Jul 3, 2012

Member

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

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

This comment has been minimized.

Show comment
Hide comment
@rodrigodirk

rodrigodirk Jan 31, 2013

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

rodrigodirk commented Jan 31, 2013

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

@ghost ghost assigned tbonfort Feb 26, 2013

@tbonfort

This comment has been minimized.

Show comment
Hide comment
@tbonfort

tbonfort Feb 26, 2013

Member

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

Member

tbonfort commented Feb 26, 2013

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

@tbonfort tbonfort reopened this Feb 26, 2013

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.

@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 pushed a commit to faegi/mapserver that referenced this pull request Apr 9, 2013

don't write GRATICULE connectiontype (mapserver#4165)
The graticule connectiontype is only used internally, and should
not be exposed in a mapfile as it is rejected by the parser.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment