[Geoserver-users] Weird rendering error

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?

Cheers,

- Gunnar

--
http://gromgull.net

map_broken.png

map_working.png

Hi Gunnar,
If you enable logging at the Geotools-developer level, and trigger this bug, what shows up in the logs? It seems like a bug so I’d suggest reporting it to JIRA with the applicable log segments.
Cheers,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

On 3 January 2014 13:46, Gunnar Aastrand Grimnes <gromgull@anonymised.com> 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?

Cheers,

  • Gunnar


http://gromgull.net


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
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Fri, Jan 3, 2014 at 2:46 PM, Gunnar Aastrand Grimnes
<gromgull@anonymised.com>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

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