[Geoserver-users] Geoserver clipping WMS polygon requests

Hi Andrea

Thanks a bundle, the new shapefiles solves our problem.

I'll read the testament to the guys who made the shapefiles, so that I won't have to send all shapefiles I want to publish to you first :slight_smile:

I guess I'll better get around to installing postgis (it's on the todo list), I'm just wondering, does postGIS supply any GUI/interface to import data into it? Or do I need a postgis compliant GIS application?

Kind regards from Iceland,
Gissur

-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: 1. febrúar 2008 11:13
To: Gissur Þórhallsson
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Geoserver clipping WMS polygon requests

Gissur Þórhallsson ha scritto:

Hi,

I'm using shapefiles. The tiles you are seeing are actually from tilecache, but I can't really see it making a difference.

Here is a permalink to the client and the area, though other areas are affecte too I think:
http://www.loftmyndir.is/kortasja/moso.asp?zoom=5&lat=410463.05266&lon=368615.98958&layers=B0TTT

I'm attaching the SLD file I'm using for that layer as well as the shape file et al. I'm using a Projection coordinate system called ISNET93 (EPSG:3057), I'm including the .prj file.
(sorry for the amount of files, the list server denied .zip extension)

I upgraded to RC3 and cleared my tilecache, but to no avail, same problem applies.

Ah, thanks for sending me the files. I've checked them and yes, I can
confirm I see the issue me too but... the issue is not with geoserver,
it's with the shapefiles.

To check the rendering I've imported the files into postgis, and they
renderer without glitches. I then exported them to shapefile again,
and that shapefile renders fine as well, which makes me think
the original shapefile has the geometry bboxes incosistent with the
actual geometry. If my memory serves me right, in shapefiles each
geometry is preceded by its bbox, this is an optimization that allows
readers to skip reading the geom if it's outside of the current
rendering area. But if the bbox is not correct, boom.

Anyways, I'm sending you back the fixed shapefile by private mail.
Cheers
Andrea

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.18/1254 - Release Date: 31.1.2008 20:30

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.18/1254 - Release Date: 31.1.2008 20:30

Gissur Þórhallsson ha scritto:

Hi Andrea

Thanks a bundle, the new shapefiles solves our problem.

I'll read the testament to the guys who made the shapefiles, so that
I won't have to send all shapefiles I want to publish to you first :slight_smile:

You may also try ogr2ogr, distributed along with gdal and the fwtools
(can make a direct shapefile to shapefile conversion).

I guess I'll better get around to installing postgis (it's on the
todo list), I'm just wondering, does postGIS supply any GUI/interface
to import data into it? Or do I need a postgis compliant GIS
application?

gui interface no, but a very handy command line tool yes:
shp2pgsql and pgsql2shp

Cheers
Andrea