Hi,

MID/MIF is a very simple ASCII interchange format used by MapInfo. I believe
MapInfo exports svg. 

Alternatively it would not be much of a project to simply write a translator
that would take the mif to svg. 

Adding mid attributes requires a decision. 

You can:
A. ignore attributes
B. add a single attribute in the svg id
C. add multiple attributes as custom namespace attributes
D. put the attributes in a SQL database like MySQL, PostgreSQL and link the
records to your svg through the id attribute. 

E. Or you can turn them into a GIS system and import both vectors and
attributes to PostGIS using something like the ogr translation utilities:
http://www.remotesensing.org:16080/ogr/ogr_formats.html This gives you the
most flexibility of exporting to svg using geospatial queries, but you have
to be able to write your own query result exporter.

Example MIF:
version 300
Charset "WindowsLatin1"
CoordSys Earth Projection 1, 0
columns 3
Layer       CHAR(30)
Name        CHAR(45)
Elevation   DECIMAL(10,4)
data
LINE -67.38353230 44.72273359 -67.38208967 44.72243561
  Pen (1,02,255)
PLINE        6
-67.46127510 44.60689620 
-67.46411123 44.60698373 
-67.46554349 44.60724517 
-67.46670605 44.60835186 
-67.46708750 44.60849848 
-67.46904664 44.60894944 
 Pen (1,02,0)
PLINE        6
-67.46117178 44.60707425 
-67.46407399 44.60716382 
-67.46539431 44.60740483 
-67.46653682 44.60849242 
-67.46698775 44.60866576 
-67.46887331 44.60909978 
 Pen (1,02,0)
 
Associated MID
"WATER" "river"         20.00   
"WATER" "stream"                5.00    
"WATER" "North Platte"  18.00   

Possible svg export using method B:
<path style="stroke:blue;fill:none;" id="North Platte" d="M-67.46117178
-44.60707425 L-67.46407399 -44.60716382  L-67.46539431 -44.60740483
L-67.46653682 -44.60849242  L-67.46698775 -44.60866576  L-67.46887331
-44.60909978"/>

randy

-----Original Message-----
From: janos_peter_nagy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 7:43 AM
To: svg-developers@yahoogroups.com
Subject: [svg-developers] MID/MIF to SVG conversion



Hi,

I have a bunch of MID/MIF files and I would like to convert them to 
SVG format. Can anyone give me a hint of how to do this ?

Thanks





-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
---- 
Yahoo! Groups Links



 





-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to