On Fri, Jan 3, 2014 at 2:46 PM, Gunnar Aastrand Grimnes
<[email protected]>wrote:
> Hi geoservers,
>
> I am having a weird problem with GeoServer rendering a layer from a
> PostGIS table. I am afraid this will be the least coherent bug-report
> ever, but maybe someone has seen something similar?
>
> The layer is a bunch of polygons covering some parts of the sea in
> Europe. It will sometimes render correctly, and sometimes not. I
> attach a screenshot of both correct and broken rendering.
>
> The table itself was created from a shape-file using shp2pgsql.
>
> Sometimes, re-initialising the database from a dump will give me the
> right version, but then restoring a dump of the initial state of the
> DB will leave it fixed.
>
> We're deploying the same GeoServer and PostGIS on several windows
> machine, from XP to Win7, and it sometimes works out of the box and
> sometimes not. 32/64bit also makes no reproducable difference.
>
> I first noticed with GeoServer 2.4.1, and it was sometimes fixed by
> upgrading to 2.4.2 or 2.4.3 (but not always), but then downgrading
> again to 2.4.1 to verify would not break it again.
>
> If I change the style to be a polygon with a line - it seems the
> actual outline is in the right place, just the polygon fill is broken.
>
> I'm sorry I cannot be more specific or helpful - but has anyone got
> any idea what could be happening?
>
> It looks almost like it gets confused about inside/outside the polygons?
>
>From what I see, it seems your data is not really made of polygons, but of
separate lines,
that would form the outline of the polygon, without being one.
The SLD rule when you apply a fill style against a line is to unite its
last and
first element, and then treat the result as a polygon, and fill it, which
gives you
the output you see in the "bad map".
Cheers
Andrea
--
*== GeoSolutions will be closed for seasonal holidays from 23/12/2013 to
06/01/2014 ==*
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users