문제

A client has given me the data he wants visualised in my project - but I don't know what DB format it's in. He's pretty unclear, also..
I have access to the table structures, but don't know how to read it in. It's definitely not a flat file.

There are several files for each dataset:

  • file.dat (biggest by far)
  • file.id (small)
  • file.ind (half the size of *.dat)

The first few bytes in the *.dat file are 03 6E 02 14 14 15 19 00 (in case magic numbers are used).

Do these extensions ring any bells? Is there some software to determine the format?

도움이 되었습니까?

해결책

I found this thread on a MapInfo Google group. They say that a similar structure in file types (id, ind, dat) was used for MapInfo (later MicrosoftMaps product) databases.

The initial question is: "How to create tab file,map file,dat file,id file,ind file from excel file of site data required in mapinfo. Which application is used and how?"

And the answer is pointing to some ways to create the files.

I'm not familiar with them.. but I hope this helps you a bit :-).

다른 팁

If you are on a *nix system, you can try using the "strings" command on each file to peek at the contents. A header may give you a clue.

e.g.

strings file.dat | head

Here's an example run against a quicky sqlite3 database file.

~$ sqlite3 test.db
SQLite version 3.6.12
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> create table testtable (id INT);
sqlite> insert into testtable values (1);
sqlite> .quit
~$ strings test.db
SQLite format 3
Ktabletesttabletesttable
CREATE TABLE testtable (id INT)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 dba.stackexchange
scroll top