traceview:
same, still slow
在 2012年12月10日星期一UTC+8下午9时02分26秒,sandro furieri写道:> SELECT AsBinary(SimplifyPreserveTopology(Geometry, ?))
> FROM polygon
> WHERE ROWID IN (
> SELECT pkid
> FROM idx_polygon_Geometry
> WHERE
> MBRintersects(buildmbr(xmin,ymin,xmax,ymax),buildmbr(?,?,?,?))
> );
>
the above SQL query doesn't seems to access the Spatial Index
in an efficient way.
rewriting the SQL query as follows seems to be more reasonable:
SELECT AsBinary(SimplifyPreserveTopology(Geometry, ?))
FROM polygon
WHERE ROWID IN (
SELECT ROWID
FROM SpatialIndex
WHERE f_table_name = 'polygon'
AND search_frame = BuildMbr(?,?,?,?)
);
bye Sandro
--
Il messaggio e' stato analizzato alla ricerca di virus o
contenuti pericolosi da MailScanner, ed e'
risultato non infetto.
--
You received this message because you are subscribed to the Google Groups "SpatiaLite Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spatialite-users/-/mBzkl1NOkjcJ.
To post to this group, send email to spatiali...@googlegroups.com.
To unsubscribe from this group, send email to spatialite-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spatialite-users?hl=en.
-- Micha Silver GIS Consulting http://www.surfaces.co.il
MBRintersects(buildmbr(xmin,ymin,xmax,ymax),buildmbr(?,?,?,?)
SimplifyPreserveTopology