<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Salve.</div><div>Ho alcuni shapefile di grosse dimensioni che devo tagliare su dei confini. Ho provato a farlo direttamente con ogr2ogr visto che sia qgis che gvsig (non ho provato con grass) impiegavano tempi biblici.</div><div>La stringa che ho utilizzato č pių o meno la seguente:</div><div>ogr2ogr -clipsrclayer layer.shp output.shp input.shp</div><div>oppure </div><div>ogr2ogr -clipsrc layer.shp output.shp input.shp</div><div><br></div><div>Nel primo caso mi restituisce il layer in input ma non tagliato, mentre nel secondo mi da errore perchč non riconosce il datasource.</div><div><br></div><div>Qualcuno ha mai provato? <br></div><div><br></div><div>P.S.: Sto provando a tagliare con postgis in questo momento. Utilizzo la seguente query:</div><div>create table grid_cut as select g."campo1",Intersection(g.the_geom,
 f.the_geom) AS the_geom from layer1 f, layer2 g where f.the_geom && g.the_geom and Intersects(g.the_geom, f.the_geom);</div><div><br></div><div>Con spatialite funzionerebbe?</div><div><br></div><div>Grazie a tutti!</div><div><br></div><div>Francesco<br></div><div><br></div></div></body></html>