RE: [Geoserver-devel] big problem upgrading to geoserver beta3 from beta1 release

Hi Artie,

Thanks very much for this information. It turns out that the only real problem was with the gt2-main.jar distributed with the beta3 release, and once I replaced that with the one you suggested below, beta3 started working with PostGIS 1.0.0.

On a positive note, I immediately noticed that beta3 is very much faster than the beta1 release.

Best regards,
Bob Cook

-----Original Message-----
From: Artie Konin [mailto:a-thor@anonymised.com]
Sent: Friday, May 13, 2005 11:59 PM
To: Robert Cook
Cc: geoserver-devel@lists.sourceforge.net
Subject: RE: [Geoserver-devel] big problem upgrading to geoserver beta3 from beta1 release

Greetings, Robert.

I had set the SRIDs in the FeatureTypes and I also tried turning
off WKB (set to 'false'). I've tested with a GeoServer beta3 on
Windows and another one on Linux, with both versions pointing to the
same PostGIS datasource, Postgres version 8.0, PostGIS version
1.0.0rc5.

As far as I know, the storage format for geometry objects is changed
in postgis 1.0.0. Geometries are now stored in "hexadecimal canonical
representation", i.e. there is a bunch of hex digits in geometry
columns instead of text. I also tried postgis 1.0.0 with GeoServer and
got the same results as you :slight_smile: But as I did this mostly out of
curiosity, I didn't dug into the matter and just rolled back to 0.9.1.
I thought that might be the case that GeoTools doesn't understand
that hexadecimal geometry format, but after you mentioned that all
worked well for GeoServer beta1 I'm no longer sure that this
assumption is correct.

As a quick solution you can temporarily switch to PostGIS 0.9.1 till
the problem is resolved if you don't have any special requirements
for 1.0.0. The former is working with GeoServer 1.3 beta3 (or should
I say, with corresponding GeoTools? :slight_smile:

BTW, looking at your logs I noticed lines with following content:

[SEVERE] org.geotools.renderer.lite.LiteRenderer2$DefaultRenderListener
- expected java.lang.Integer , but got java.lang.String

  I believe that is a consequence of a recent (now-fixed) bug in GeoTools.
I suggest you to get current gt-main.jar from svn, there is the link:
http://svn.refractions.net/geoserver/trunk/geoserver/lib/gt2-main.jar
With this jar's version from beta3 you'll probably run into troubles with
PostGIS datastore even with PostGIS 0.9.1.

--
WBR,
Artie