Andrea,
Thanks for the clarification - I understand now.
I have been investigating the transparent layer further.
FYI, this is the URL - at low zooms Geoserver sends a raster image, at
high zooms vector information is sent to GE ..
http://dpi12345:8080/geoserver/wms/kml?layers=Geology&mode=refresh&kmscore=50&kmattr=true&
I changed 'mode' to 'download', but this makes no difference.
In the Geological map there are 19,000 polygons having 51 colours. I
have only detected the missing colour for one type of Geology and that
has a 'polycolour' field of 12. This is not the lowest value - there
is a polycolour value of 5. All other polycolour values are higher.
When Geoserver sends a raster image, ALL colours appear. There is
only a problem when Geoserver sends vector output to GE.
Another note - some polygons with polycolour 12 appear properly,
others do not. It seems to be the large long polygons that have the
problem. The Geology that has the problem is river sediment so, as
you can imagine, the shapes are long as they follow rivers.
I am wondering if there is a problem with polygons that extend a long
way out of the area that is zoomed in on?
I am getting these errors to the console - are these relevant?
22 Jun 22:07:10 WARN [geotools.rendering] - Assuming rendering buffer
= 0, but estimation is not accurate, you may want to set a buffer
manually
class org.vfny.geoserver.global.GeoServerFeatureLocking
I have also attached an image.
Regards,
David
On Fri, Jun 19, 2009 at 5:42 PM, Andrea Aime<aaime@anonymised.com> wrote:
David Collins ha scritto:
Andrea,
Re: 'if there are more than 20 rules ... no filter (besides the bbox)
will be sent to the database'I think I might not be understanding what you have said. With
Geological maps, we need to use many more than 20 colours - the
Geological map that I am using for testing Geoserver at the moment has
51 colours - ie. my SLD has 51 rules based on a field called
'polycolour' and when I view it as a rasterised image in Google Earth
or uDig all the colours seem to show OK. I do have a problem, though,
when I zoom in and get vector output in GE - one of the colours is
missing (ie. transparent) but it is not the 21st rule - it is my 2nd
rule ...<Rule> <Name>12</Name> <Title>12</Title> <ogc:Filter> <ogc:PropertyIsEqualTo> <ogc:PropertyName>POLYCOLOUR</ogc:PropertyName> <ogc:Literal>12</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter> <PolygonSymbolizer> <Fill> <CssParameter name="fill">\#FFFFCC</CssParameter> <CssParameter name="fill\-opacity">1</CssParameter> </Fill> </PolygonSymbolizer> </Rule>
Can you please clarify what you mean about the 20 rule maximum?
When hitting the data storage we can decide to OR all the rule
filters into a giant query, like:select ... from table where geom in bbox and (prop = val1 or prop = val2
or prop = val3 or ...)or just assume that you're not really trying to filter your data but
just coloring each with a different color, and thus a query like:select ... from table where geom in bbox
is just as good. The threshold between the two behaviors is at 20
rules. It does not mean you cannot have more than 20 rules,
just means after 20 the query issued against the server will change.As to why the second color is not showing up in GE, might it be
because the superoverlay code is deciding that those feature are
less important and thus you have to zoom in more?Try adding &mode=download to your kml link, does it work any better?
Cheers
Andrea--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.