Skip to content
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

Mapfile validation rules #127

Open
7 tasks
geographika opened this issue Oct 5, 2021 · 0 comments
Open
7 tasks

Mapfile validation rules #127

geographika opened this issue Oct 5, 2021 · 0 comments

Comments

@geographika
Copy link
Owner

geographika commented Oct 5, 2021

This issue is a placeholder for creating a list of rules to check in a Mapfile.
See also MapServer/MapServer#6172 and MapServer/MapServer#6170 (comment)

  • Check for DUMP TRUE # allow GML export
  • MAXSCALE - MAXSCALEDENOM
  • MINSCALE - MINSCALEDENOM
  • labelmaxscale labelmaxscaledenom
  • msProcessProjection(): Projection library error. proj error "no arguments in initialization list" for "init=epsg:26915" - check that PROJ_LIB is before projection block!
  • If layer is not queryable
  • if a class has an EXPRESSION and it is a string comparison or regex then the layer needs a CLASSITEM

When manually adding OUTPUTFORMATS - should an image type be first? Otherwise:

    return _mapscript.mapObj_drawLegend(self, scale_independent)
_mapscript.MapServerError: msDrawLegend(): General error message. unsupported output format

Due to shapezip being the first format. Or check if an IMAGETYPE is set? Can also validate these against list (this is also done by MapServer if missing - msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE asdas'.`).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant