[postgis-users] Win32 Installer for Postgis 1.0.0-rc5 now available

strk at refractions.net strk at refractions.net
Tue Mar 29 04:39:31 PST 2005


THere's also a patch for multi() and a change in lwpostgis.sql
(requiring dump/reload).


Index: lwgeom_functions_basic.c
===================================================================
RCS file: /home/cvs/postgis/postgis/lwgeom/lwgeom_functions_basic.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -U2 -r1.114 -r1.115
--- lwgeom_functions_basic.c    24 Mar 2005 16:28:48 -0000      1.114
+++ lwgeom_functions_basic.c    28 Mar 2005 09:47:57 -0000      1.115
@@ -1359,4 +1359,17 @@
        LWGEOM *lwgeom;
        int type;
+       int SRID=-1;
+       BOX2DFLOAT4 *box;
+
+       /*
+        * This funx is a no-op only if a bbox cache is already present
+        * in input. If bbox cache is not there we'll need to handle
+        * automatic bbox addition FOR_COMPLEX_GEOMS.
+        */
+       if ( TYPE_GETTYPE(geom->type) >= MULTIPOINTTYPE &&
+               TYPE_HASBBOX(geom->type) )
+       {
+               PG_RETURN_POINTER(geom);
+       }

        // deserialize into lwgeoms[0]
@@ -1368,8 +1381,12 @@
        {
                type += 3;
+               SRID = lwgeom->SRID;
+               box = lwgeom->bbox;
+               lwgeom->SRID=-1;
+               lwgeom->bbox=NULL;
                lwgeoms[0] = lwgeom;
+
                lwgeom = (LWGEOM *)lwcollection_construct(type,
-                       lwgeom->SRID, lwgeom->bbox, 1,
-                       lwgeoms);
+                       SRID, box, 1, lwgeoms);
        }

--strk;
On Tue, Mar 29, 2005 at 02:17:21PM +0200, TECHER Jean David wrote:
> Hi Marc
> 
> Happy to see U!!!
> 
> Last week-end on a Debian Sarge AMD 64, I had to patching the dumper
> pgsql2shp (thanks to strk)
> in order to haing it to work...Thansk to Sandro,  all works now: importing
> WKB data, queries and so on :-)
> 
> In the file pgsql2shp.c, I had to replace lne 1915
> 
> int junk
> 
> by
> 
> size_t junk;
> 
> That was not fixed in RC5..So Marc, I only wanted to notice it for people
> who have a AMD 64 computer on windows....
> ----------------------------------------------------------------
> TECHER Jean David
> Responsable Informatique 01MAP
> e-mail: davidtecher at yahoo.fr
> Bureau: 04 67 45 60 27
> Portable: 06 85 37 36 75
> site perso : http://techer.pascal.free.fr/postgis/
> site pro: http://www.01map.com/download/
> K-S:"The greatest trick the devil pulled off was convincing people he didn't
> exist"
> ------------------------------------------------------------
> ----- Original Message -----
> From: "Mark Cave-Ayland" <m.cave-ayland at webbased.co.uk>
> To: <postgis-users at postgis.refractions.net>
> Sent: Tuesday, March 29, 2005 1:25 PM
> Subject: [postgis-users] Win32 Installer for Postgis 1.0.0-rc5 now available
> 
> 
> Hi everyone,
> 
> I've just updated the Win32 installer to PostGIS 1.0.0-rc5, GEOS 2.1.1 and
> PROJ 4.4.9. At the moment I can't think of anything to match Paul's crucible
> and elixir metaphor, so I'm just going to say that the download can be found
> at http://www.webbased.co.uk/mca/. Please report any issues back to the
> mailing lists.
> 
> 
> Happy Testing!
> 
> Mark.
> 
> ------------------------
> WebBased Ltd
> South West Technology Centre
> Tamar Science Park
> Plymouth
> PL6 8BT
> 
> T: +44 (0)1752 791021
> F: +44 (0)1752 791023
> W: http://www.webbased.co.uk
> 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> 
> 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list