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

Undocumented WEB EXTENT keyword #461

Open
geographika opened this issue Mar 2, 2021 · 2 comments
Open

Undocumented WEB EXTENT keyword #461

geographika opened this issue Mar 2, 2021 · 2 comments
Milestone

Comments

@geographika
Copy link
Member

Currently, there is no mention of EXTENT at https://mapserver.org/mapfile/web.html

It is read at:

https://github.com/MapServer/MapServer/blob/1dd7b072be5aa307d9dcb120dd2fa7f3f0dd041b/mapfile.c#L5746

It is written out to the Mapfile at:

https://github.com/MapServer/MapServer/blob/1dd7b072be5aa307d9dcb120dd2fa7f3f0dd041b/mapfile.c#L5678

From the MapScript docs and mapserver.h comments it is used as the clipping extent. I'm not sure what this actually means though.

@geographika
Copy link
Member Author

Trying to see how this is used. I thought it might automatically clip data, for example hiding one of the points below.
However both are displayed when running mapserv QUERY_STRING="map=style_position.map&mode=map&layer=center" > temp.png

MAP

STATUS ON
EXTENT 0 0 400 300
SIZE 200 150
IMAGETYPE png24
symbolset "symbolset"

WEB
    EXTENT 0 0 100 100
END
LAYER
    NAME "center"
    TYPE POINT
    STATUS on
    CLASS
        STYLE
            COLOR 0 0 255
            SIZE 30
            WIDTH 1
            SYMBOL "circle"
        END
    END

    FEATURE POINTS 50 50 END END
    FEATURE POINTS 200 200 END END
END

END

test

@sdlime
Copy link
Member

sdlime commented Mar 9, 2021 via email

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

3 participants