[Geoserver-devel] SLD and MaxScaleDenominator

Does this work:

<Rule>
                <MaxScaleDenominator>1e4</MaxScaleDenominator>
                <Name>name</Name>
                <Title>title</Title>
                <Abstract>Abstract</Abstract>
                               <PointSymbolizer>
                    <Graphic>
                    <Mark>
                        <WellKnownName>circle</WellKnownName>
                        <Fill>
                            <CssParameter name="fill">
                                <ogc:Literal>#FFFFFF</ogc:Literal>
                            </CssParameter>
                        </Fill>
                        <Stroke>
                            <CssParameter name="stroke">
                                <ogc:Literal>#000000</ogc:Literal>
                            </CssParameter>
                            <CssParameter name="stroke-width">
                                <ogc:Literal>1</ogc:Literal>
                            </CssParameter>
                        </Stroke>
                        </Mark>
                        <Opacity>
                            <ogc:Literal>1.0</ogc:Literal>
                        </Opacity>
                        <Size>
                            <ogc:Literal>4</ogc:Literal>
                        </Size>
                                               </Graphic>
                </PointSymbolizer>
            </Rule>

I really want to not show certain layers until the user has zoomed in so far. But it seems to have no effect.

--
Jason J. Kahler
Software Engineer

BAE Systems
428 Phoenix Drive
Griffiss Business and Technology Park
Rome, NY 13441
Phone: (315) 339 3393 X177

I've heard reports of success, though perhaps the reprojection stuff
could throw it off. Maybe try 1000 instead of 1e4? And do a
MinScaleDenominator as well? And try getting the map request in the
same coordinate system that it's stored in...

Chris

Quoting "Jason J. Kahler" <jason.kahler@anonymised.com>:

Does this work:

<Rule>
                <MaxScaleDenominator>1e4</MaxScaleDenominator>
                <Name>name</Name>
                <Title>title</Title>
                <Abstract>Abstract</Abstract>

                <PointSymbolizer>
                    <Graphic>
                    <Mark>
                        <WellKnownName>circle</WellKnownName>
                        <Fill>
                            <CssParameter name="fill">
                                <ogc:Literal>#FFFFFF</ogc:Literal>
                            </CssParameter>
                        </Fill>
                        <Stroke>
                            <CssParameter name="stroke">
                                <ogc:Literal>#000000</ogc:Literal>
                            </CssParameter>
                            <CssParameter name="stroke-width">
                                <ogc:Literal>1</ogc:Literal>
                            </CssParameter>
                        </Stroke>
                        </Mark>
                        <Opacity>
                            <ogc:Literal>1.0</ogc:Literal>
                        </Opacity>
                        <Size>
                            <ogc:Literal>4</ogc:Literal>
                        </Size>

                    </Graphic>
                </PointSymbolizer>
            </Rule>

I really want to not show certain layers until the user has zoomed
in
so far. But it seems to have no effect.

--
Jason J. Kahler
Software Engineer

BAE Systems
428 Phoenix Drive
Griffiss Business and Technology Park
Rome, NY 13441
Phone: (315) 339 3393 X177

-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/

Le Mardi 24 Mai 2005 18:00, Chris Holmes a écrit :

I've heard reports of success, though perhaps the reprojection stuff
could throw it off. Maybe try 1000 instead of 1e4? And do a
MinScaleDenominator as well? And try getting the map request in the
same coordinate system that it's stored in...

I am facing the same problem with GS 1.3.0 beta4 : it seems that the
Min/MaxScaleDenominator is not taken into account (enclosed sld with Min/Max,
GetMap requests and snapshot for the request where the first image should be
blank, but in fact is not). The test involves no reprojection...

Chris

didier

(attachments)

bdpays_batiment.sld (5.95 KB)
MinMaxScaleDenominator.png
getMap2.html (713 Bytes)