[postgis-users] Test failure on postgis 1.4 (layer.getExtent). Isolated in C and Python.

Simon Thépot simon.thepot at makina-corpus.com
Wed Oct 13 11:49:49 PDT 2010


I did not paste the simple Python version, 
here it is : http://pastebin.com/Pz40E63R

The loaded files are at (pasted in the C source code as commentary) :
#
http://code.djangoproject.com/browser/django/trunk/django/contrib/gis/tests/data/test_vrt/test_vrt.vrt
#
http://code.djangoproject.com/browser/django/trunk/django/contrib/gis/tests/data/test_vrt/test_vrt.csv


On Wed, 13 Oct 2010 17:43:14 +0200, Simon Thépot
<simon.thepot at makina-corpus.com> wrote:
> Hi all,
> i'm experiencing a test failure on postgis 1.4 using Python that I
> isolated in Python and C
> Python : http://pastebin.com/PYG5tdMK
> C : http://pastebin.com/KXHENU90
> 
> getExtent won't work and result in a (GRException: OGR failure).
> As i investigated, I think it is due to a GeomType that is not set for
its
> OGRFeatureDefn (GetLayerDef).
> 
> But... it seems the GeomType is set in Python (and C I think), as it
> ansers me Point25D.
> 
> The C version seems pretty straight forward and I hope someone may give
me
> a hand on this, been stuck on it all the day... :(
> 
> Thanks a lot for any insight,
> Cheers,
> Simon Thepot
> _______________________________________________
> 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