[Geoserver-users] Styling a raster depending of scale

Hi,

It's possible define a style for a coverage?! What I want to do it's really sample I want just turn off a raster layer depending of the scale: when raster pixel come out.

Thx Antonello

Antonello ha scritto:

Hi,

It's possible define a style for a coverage?! What I want to do it's really sample I want just turn off a raster layer depending of the scale: when raster pixel come out.

You can use minScaleDenominator and maxScaleDenominator in your SLD,
it should do the trick (if it deoesn't it's a bug).

Cheers
Andre

Hi Andrea,

I thought about this solution, and I tried to implement in this way:

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
        xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
        xmlns="http://www.opengis.net/sld&quot;
        xmlns:ogc="http://www.opengis.net/ogc&quot;
        xmlns:xlink="http://www.w3.org/1999/xlink&quot;
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    <NamedLayer>
        <Name>Raster puerto</Name>
        <UserStyle>
            <Title>Generic style for harbor</Title>
            <Abstract>A sample style for drow generic harbor</Abstract>
            <FeatureTypeStyle>
                <!-- Rule 1 -->
                <Rule>
                    <Name>Rule 1</Name>
                    <Title>Pueto generico Raster</Title>
                    <Abstract>Estilo de un puerto generico</Abstract>
                    <MinScaleDenominator>2500</MinScaleDenominator>
                    <MaxScaleDenominator>25000</MaxScaleDenominator>
                </Rule>
            </FeatureTypeStyle>
        </UserStyle>
    </NamedLayer>
</StyledLayerDescriptor>

but doesn't work. Please could u show me how do that.

Thank you a lot! bye Antonello

Andrea Aime wrote:

Antonello ha scritto:

Hi,

It's possible define a style for a coverage?! What I want to do it's really sample I want just turn off a raster layer depending of the scale: when raster pixel come out.

You can use minScaleDenominator and maxScaleDenominator in your SLD,
it should do the trick (if it deoesn't it's a bug).

Cheers
Andre

Hi List,

We have a table with 3 dimensional geographic coordinates in an Oracle
10g database. EPSG is 4327.

Has anybody experiences if these can be published via WFS using the
geoserver (or more general if geoserver supports data with 3 dim
coordinates)? GML 2 in general supports 3 dim cooodinates.

Thanks in advance,

Uli.

Inside of your <rule> tag I think you will need a <RasterSymbolizer> tag in order to draw the raster image. I has to go under the min/max scale denominator tags. I haven't played with raster symbolizers much at all so this will be an experiment for the both of us =)

Brent Owens
(The Open Planning Project)

Antonello wrote:

Hi Andrea,

I thought about this solution, and I tried to implement in this way:

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
        xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
        xmlns="http://www.opengis.net/sld&quot;
        xmlns:ogc="http://www.opengis.net/ogc&quot;
        xmlns:xlink="http://www.w3.org/1999/xlink&quot;
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    <NamedLayer>
        <Name>Raster puerto</Name>
        <UserStyle>
            <Title>Generic style for harbor</Title>
            <Abstract>A sample style for drow generic harbor</Abstract>
            <FeatureTypeStyle>
                <!-- Rule 1 -->
                <Rule>
                    <Name>Rule 1</Name>
                    <Title>Pueto generico Raster</Title>
                    <Abstract>Estilo de un puerto generico</Abstract>
                    <MinScaleDenominator>2500</MinScaleDenominator>
                    <MaxScaleDenominator>25000</MaxScaleDenominator>
                </Rule>
            </FeatureTypeStyle>
        </UserStyle>
    </NamedLayer>
</StyledLayerDescriptor>

but doesn't work. Please could u show me how do that.

Thank you a lot! bye Antonello

Andrea Aime wrote:
  

Antonello ha scritto:
    

Hi,

It's possible define a style for a coverage?! What I want to do it's really sample I want just turn off a raster layer depending of the scale: when raster pixel come out.
      

You can use minScaleDenominator and maxScaleDenominator in your SLD,
it should do the trick (if it deoesn't it's a bug).

Cheers
Andre

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thx Brent, now I don't have to prove if your suggestion works, but as soon as possible I'll try it.

Thx a lot, bye Antonello

Brent Owens wrote:

Inside of your <rule> tag I think you will need a <RasterSymbolizer> tag in order to draw the raster image. I has to go under the min/max scale denominator tags. I haven't played with raster symbolizers much at all so this will be an experiment for the both of us =)

Brent Owens
(The Open Planning Project)

Antonello wrote:

Hi Andrea,

I thought about this solution, and I tried to implement in this way:

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
        xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
        xmlns="http://www.opengis.net/sld&quot;
        xmlns:ogc="http://www.opengis.net/ogc&quot;
        xmlns:xlink="http://www.w3.org/1999/xlink&quot;
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    <NamedLayer>
        <Name>Raster puerto</Name>
        <UserStyle>
            <Title>Generic style for harbor</Title>
            <Abstract>A sample style for drow generic harbor</Abstract>
            <FeatureTypeStyle>
                <!-- Rule 1 -->
                <Rule>
                    <Name>Rule 1</Name>
                    <Title>Pueto generico Raster</Title>
                    <Abstract>Estilo de un puerto generico</Abstract>
                    <MinScaleDenominator>2500</MinScaleDenominator>
                    <MaxScaleDenominator>25000</MaxScaleDenominator>
                </Rule>
            </FeatureTypeStyle>
        </UserStyle>
    </NamedLayer>
</StyledLayerDescriptor>

but doesn't work. Please could u show me how do that.

Thank you a lot! bye Antonello

Andrea Aime wrote:

Antonello ha scritto:
   

Hi,

It's possible define a style for a coverage?! What I want to do it's really sample I want just turn off a raster layer depending of the scale: when raster pixel come out.
      

You can use minScaleDenominator and maxScaleDenominator in your SLD,
it should do the trick (if it deoesn't it's a bug).

Cheers
Andre

-------------------------------------------------------------------------

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hans-Ulrich Otto ha scritto:

Hi List,

We have a table with 3 dimensional geographic coordinates in an Oracle
10g database. EPSG is 4327.

Has anybody experiences if these can be published via WFS using the
geoserver (or more general if geoserver supports data with 3 dim
coordinates)? GML 2 in general supports 3 dim cooodinates.

Hans, it seems nobody has the experience you're looking for.
Out of the box Geoserver does not support 3d coordinates.
Yet, I think it would be possible
to do that, just the code is not setup for it.
You would need:
* a datastore that does not shave off the third dimension (shapefile
   does not, postgis does, Oracle, I have no idea)
* have the GML encoder encode the third dimension too (again, I do think
   it does not consider it since normal coordinates are 2d)

So, if all you need are the usual 2d geometries (points, linestrings, polygons), but with 3d coordinates, it may well be that a few changes
here and there on selected classes may make this work for you.
Having it working in general for Geoserver is a much harder issue.

Cheers
Andrea