On vendredi 30 décembre 2016 16:47:37 CET Jukka Rahkonen wrote:
> Hi,
>
> When checked with ogrinfo your data seems to have a few dummy attributes
> without a name and defined as strings with zero length. That does not
> feel normal. However, OpenOffice does not list those dummy attributes.
> Which software creates such DBF files?
Jukka,
I think the .dbf is OK, although a bit unusual. There's a 0x0D header record terminator immediately after the end of the last valid field definition, and then substanial padding (more than 32 bytes) before the beginning of the record section, but the header length (bytes 8-9) is consistant with that.
(I've just fixed in GDAL trunk the DBF reader to take into account such cases)
Even
On vendredi 30 décembre 2016 07:15:08 CET Steven Elster wrote:
> Even, How do I download the fix? What location does this refer to? "I've
> just fixed in GDAL trunk the DBF reader to take into account such cases"
Sorry: I side-tracked a bit the topic as Jukka mentionned the use of the ogrinfo utility that is part of the GDAL/OGR software : http://gdal.org/
I just committed the fix in the source tree (https://trac.osgeo.org/gdal/changeset/37038). Windows builds at http://gisinternals.com/development.php that done tomorrow (they must be at least 37038) will have the fix.
This will have no influence on Spatialite own DBF reader of course.
Even
How can I send my Spatialite data to qGIS and update it when I make changes in Spatialite.
When you do an SQL in Spatialite and makes changes, are these supposed to automatically show up in qGIS or do you need to save the file, then re-drag in into qGIS.
Is this how its done: ALTER TABLE old_name RENAME TO new_name;
Also, I am trying to use Spatilite-GIS but can't figure out which folder to tell it to connect to?Sandro, Wow! Clearly, I have an antiquated mind-set re tables. Thank you very much!! Now, since "a whole database is completely stored within just a single file" and since some other software programs want to know where my database(s) is, apparently I need to know the name of the file that I am working on? For instance, I see a single file on my hard drive that has been getting larger and larger. It is: C:\Users\se\Documents\spatialite\db.sqlite. Could this be the file in question? (I also see lots of new entries in temp directories: C:\Users\se\AppData\Local\Temp\XXX.) I ask this, because right now, when I open up the Spatialite GUI, I see one database and the tables I have created, but when I load qGIS and the qSpatialite plug-in, it shows be another database.
And, what do I have to do in order for qGis to know that I have made changes and that it should update its screen? Do an sql * into a new table? Issue a COMMIT command or include ACID in a command? Then drag qGis's screen a bit, thereby forcing it to reload the database?