[Qgis-developer] Field width when converting MID-MIF to SHP
zoltans at geograph.co.za
Mon Mar 10 11:51:16 PDT 2014
I know this is more an OGR question, but rather than signing up to
another list, I'm hoping someone here knows the answer.
I want to create _a lot_ of blank SHP files with schemas I currently
have in CSV files.
(For me) the easiest way is to create a script that reads the CSV files
and generates empty (geometry wise) Mapinfo MID-MIF filesets.
I then use ogr2ogr to batch convert these into empty shapefiles that
have the correct attribute schema.
In the MIF file I can say "character 36", or Decimal 6,0 or Real.
Can I get any reassurance that the resulting DBF file will contain the
36 char length character field - If I look at the table in QGIS, I do
not know how wide the attribute field is.
Likewise for integer and real data types I too need to nail down the
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
GIS and Photogrammetric Service
P.O. Box 7, Muizenberg 7950, South Africa.
Fax: +27-86-6115323 www.geograph.co.za
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-developer