Hi everybody,
I have a table of polylines that I am trying to buffer into a table of polygons:
CREATE TABLE mypolys10 AS
SELECT id, ST_Buffer(p.GEOMETRY, 10) AS GEOMETRY
FROM mypolys p;
SELECT RecoverGeometryColumn('mypolys10', 'GEOMETRY', 2285, 'MULTIPOLYGON', 'XY')
This first part appears to succeed and creates my table. However, the second query fails with a an error "RecoverGeometryColumn(): validation failed".
$ /usr/local/bin/spatialite Prioritization.sqlite
SpatiaLite version ..: 3.0.1 Supported Extensions:
- 'VirtualShape' [direct Shapefile access]
- 'VirtualDbf' [direct DBF access]
- 'VirtualXL' [direct XLS access]
- 'VirtualText' [direct CSV/TXT access]
- 'VirtualNetwork' [Dijkstra shortest path]
- 'RTree' [Spatial Index - R*Tree]
- 'MbrCache' [Spatial Index - MBR cache]
- 'VirtualSpatialIndex' [R*Tree metahandler]
- 'VirtualFDO' [FDO-OGR interoperability]
- 'SpatiaLite' [Spatial SQL - OGC]
PROJ.4 version ......: Rel. 4.8.0, 6 March 2012
GEOS version ........: 3.3.5-CAPI-1.7.5
SQLite version ......: 3.7.13
Enter ".help" for instructions
spatialite> SELECT * FROM mypolys10
...> WHERE ST_GeometryType(GEOMETRY) IS NULL;
spatialite>
Unfortunately, that doesn't appear to be the issue, and so I am stumped. Any other clues as to what might be failing?
Cheers,
Peter