<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span>Ciao Sandro,</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>grazie per l'immediata risposta. In effetti "sospettavo" che ci fosse qualche problema alla base. Spatialite l'ho installato dalle repo di mint, ed è la versione 1.2.1-3. Ho messo questa perchè quando ho provato a compilare l'ultima mi dava sempre un errore. Per la precisione questo errore:</span></div><div style="background-color: transparent;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;">Classdef.h:48:31: fatal error:
 spatialite/gg_wfs.h: File o directory non esistente</div><div style="background-color: transparent;"><span></span></div><div style="background-color: transparent;">compilation terminated.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>Così ho pensato che nonostante fosse vecchia sarebbe stata più stabile. E invece.....</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Cmq spatialite (non GUI) va perfettamente....e per adesso sto
 facendo tutto da shell. Però vorrei risolvere, prima (prima del passaggio a Mint, con Ubuntu 12.04) tutto funzionava perfettamente.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Francesco</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">Da:</span></b> "a.furieri@lqt.it" <a.furieri@lqt.it><br> <b><span style="font-weight:
 bold;">A:</span></b> gfoss@lists.gfoss.it <br> <b><span style="font-weight: bold;">Inviato:</span></b> Martedì 23 Luglio 2013 12:30<br> <b><span style="font-weight: bold;">Oggetto:</span></b> Re: [Gfoss] problemi spatialite<br> </font> </div> <div class="y_msg_container"><br>On Tue, 23 Jul 2013 10:01:52 +0100 (BST), Francesco Geri wrote:<br>> e in particolare mi da 2 messaggi di errore: il primo è<br>> CreateSpatialMetaData error: no such table: spatial_ref_sys , e poi<br>> CreateSpatialMetaData error: cannot rollback - no transaction is<br>> active<br>><br><br>Ciao Francesco,<br><br>il secondo errore e' semplicemente la diretta conseguenza del primo:<br>per qualche motivo (da chiarire) nel tuo DB non esiste affatto la<br>tavola "spatial_ref_sys", che e' obbligatoria in ogni DB spatialite.<br><br><br>> Il secondo problema è sulla creazione di una nuova tabella<br>> geometrica. Il classico comando SELECT<br>>
 AddGeometryColumn('specie_rilievo', 'Geometry', 32632, 'POINT', 2); <br>> mi<br>> restituisce sempre valore 0<br>><br><br>ovvio, non esistendo la tavola "spatial_ref_sys" la AddGeometryColumn<br>non puo' certo funzionare<br><br><br>> Anche qui faccio un INSERT a mano sulla tabella geometry_columns e<br>> risolvo il problema.<br>><br><br>no, cosi' non "risolvi" proprio nulla; stai semplicemente aggiungendo<br>ulteriori informazioni non valide e non verificate in un DB che e'<br>severamente danneggiato.<br><br>per inciso: fare INSERT/UPDATE/DELETE "a mano libera" sulla<br>"geometry_columns" e' uno dei metodi di maggiore successo<br>(praticamente infallibile, abbiamo lunga e documenta esperienza<br>in merito) per ottenere un DB corrotto, che funziona a gamba zoppa<br>e che prima o poi ti dara' certamente pesanti problemi.<br><br>usa sempre le apposite funzioni SQL (p.es. AddGeometryColum) per<br>manipolare le tavole dei metadati in modo
 sicuro ed affidabile.<br>se queste funzioni SQL falliscono sistematicamente, e' un segnale<br>chiaro che sotto c'e' qualche problema abbastanza serio da<br>risolvere in via prioritaria.<br><br><br>> P.S.: Il SO è Mint 14, il PC è a 64 bit<br>><br><br>ok; ma quale versione di Spatialite_GUI stai utilizzando ?<br>presa da dove ?<br><br>il comportamento atteso per tutte le versioni recenti di spatialite_gui<br>e' che quando crei un nuovo DB vengono create automaticamente tutte<br>le meta-tavole (compresa ovviamente la "spatial_ref_sys"), e vengono<br>anche immediatamente inizializzate caricando tutto il dataset EPSG.<br><br>l'impressione e' che probabilmente stai cercando di utilizzare un<br>eseguibile non perfettamente funzionante, e forse di qualche versione<br>decisamente arcaica ed ormai largamente obsoleta.<br><br>ciao sandro<br><br><br>-- <br>Il messaggio e' stato analizzato alla ricerca di virus o<br>contenuti pericolosi da MailScanner, ed
 e'<br>risultato non infetto.<br><br>_______________________________________________<br><a ymailto="mailto:Gfoss@lists.gfoss.it" href="mailto:Gfoss@lists.gfoss.it">Gfoss@lists.gfoss.it</a><br><a href="http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss" target="_blank">http://lists.gfoss.it/cgi-bin/mailman/listinfo/gfoss</a><br>Questa e' una lista di discussione pubblica aperta a tutti.<br>I messaggi di questa lista non hanno relazione diretta con le posizioni dell'Associazione GFOSS.it.<br>666 iscritti al 22.7.2013<br><br></div> </div> </div>  </div></body></html>