[postgis-devel] invalid memory alloc request size
strk at refractions.net
strk at refractions.net
Mon Jun 13 04:04:47 PDT 2005
Which GEOS version ?
Does content of lwgeom/postgis_geos_version.h matches it ?
What RCS id of lwgeom/lwgeom_geos.c and lwgeom/lwgeom_geos_wrapper.cpp ?
Please uncomment the PGIS_DEBUG_CONVERTER #define in lwgeom_geos.c
to see wheter it's pgis->geos or geos->pgis failing.
--strk;
On Mon, Jun 13, 2005 at 11:32:24AM +0200, Markus Schaber wrote:
> Hello, Strk,
>
> strk at refractions.net wrote:
> > Can you reproduce with any non-GEOS function ?
> > Does the problem show up with *all* GEOS functions ?
> > Did you try geosnoop() ?
>
> lwhead=# select geosnoop('GEOMETRYCOLLECTION EMPTY'::geometry);
> ERROR: invalid memory alloc request size 0
>
> >From some further testing, it seems that only GEOS functions are broken,
> but on both my ia32 and another ia64 machine. Pure PostGIS and Proj4
> functions seems to work fine.
>
> However, it seems that the brokenness depends on the data, only "empty"
> geometries are broken. (AFAIR, they are all converted to the same
> internally, right?)
>
> lwgeom_patched=# select isvalid('SRID=4326;POINT(1 1)'::geometry);
> isvalid
> ---------
> t
> (1 row)
>
> lwgeom_patched=# select geosnoop('LINESTRING EMPTY'::geometry);
> ERROR: invalid memory alloc request size 0
>
> lwgeom_patched=# select geosnoop('LINESTRING(1 1)'::geometry);
> ERROR: geometry requires more points
>
> lwgeom_patched=# select geosnoop('MULTIPOINT(1 1)'::geometry);
> geosnoop
> --------------------------------------------------------------
> 0104000000010000000101000000000000000000F03F000000000000F03F
> (1 row)
>
> lwgeom_patched=# select geosnoop('MULTIPOINT EMPTY'::geometry);
> ERROR: invalid memory alloc request size 0
>
>
> Markus
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
More information about the postgis-devel
mailing list