[postgis-users] Problems with PostGIS and Proj4 on Cygwin

Armin Burger armin.burger at libero.it
Tue Jun 4 14:43:37 PDT 2002


Hello all,

I compiled successfully Postgres 7.2/PostGIS 0.7.1 on Cygwin/Windows NT. The
system runs fine, only there are problems with re-projection using the Proj 4
functionality compiled into PostGIS.

I tested the re-projection creating a view like

CREATE VIEW corinegb
AS SELECT code,landcover,transform(the_geom, 102091) AS the_geom FROM corine;

and then selecting the records of that view. I got an error like the
following

NOTICE:  Error occurred while executing PL/pgSQL function transform
NOTICE:  line 2 at return
ERROR: transform: couldnt project polygon;

I tried another projection and I could query the view data. But when
converting them to a shapefile with pgsql2shp, the shapefile seemed to be
corrupt. ArcView only shows all polygons condensed to one line and then
crashes.

Running Postgres/PostGIS on Linux with the same data and queries works fine
without any problems.

Any ideas what could cause the problems on Cygwin? Problems with the Proj 4
installation?

Armin

--
 Armin Burger
 Via della fiera, 7 -  I-39050 Cornaiano BZ -  Italia
_




More information about the postgis-users mailing list