[gdal-dev] ogrinfo don't understand spatialiute multigeometry

Andrea Peri aperi2007 at gmail.com
Sun Aug 5 05:24:40 PDT 2012


Hi Even,

I finish the tests on your patch for spatilaite multigeometry.

There si some trouble with ogrinfo .
I guess is the same problem I just see on MapServer when I try a
GetFeatureInfo on a MultiGeometry layer.

I try this:

start a new db spatialite named "test.sqlite" and run this scripts:

-----------
create table prova(pk_uid integer primary key, nome varchar(10));
select AddGeometryColumn('prova','GEOMETRY',3003,'MULTIPOLYGON','XY');
select AddGeometryColumn('prova','BBOX',3003,'POLYGON','XY');

INSERT INTO PROVA (NOME,GEOMETRY,BBOX) VALUES (
    'A',
    ST_GeomFromText(
        'MULTIPOLYGON (((30 20, 10 40, 45 40, 30 20)),((15 5, 40 10, 10 20,
5 10, 15 5)))',
        3003
    ),
    ST_Envelope(
        ST_GeomFromText(
            'MULTIPOLYGON (((30 20, 10 40, 45 40, 30 20)),((15 5, 40 10, 10
20, 5 10, 15 5)))',
            3003
        )
    )
);
-------------

After ,
I try the

ogrinfo test.sqlite

It return:

INFO: Open of `test.sqlite'
      using driver `SQLite' successful.
1: prova(GEOMETRY) (Multi Polygon)
2: prova(BBOX) (Polygon)

So it is ok .

But when I try this other call:

ogrinfo test.sqlite prova

it return:

INFO: Open of `test.sqlite'
      using driver `SQLite' successful.
FAILURE: Couldn't fetch requested layer prova!

I'm not sure if this is the same problem I see with GetFeatureInfo of
MapServer.

Thx,


-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120805/f164cdd5/attachment.html>


More information about the gdal-dev mailing list