[Mapserver-users] File formats (MapInfo and DXF)

Michael Roach burntmage at yahoo.com
Tue Sep 23 00:14:24 EDT 2003


--0-2023524445-1064290464=:24549
Content-Type: text/plain; charset=us-ascii

 You can use the Mapinfo files directly in your layers. Assuming you have OGR compiled in. You really don't need shp files unless you are planning to upload the data to a PostGIS DB. I don't know of any Free program that will convert DXF to SHP. But, there is a library that will read and write DXF data at http://www.coin3d.org/Dime/about.php

LAYER	NAME county 	TYPE POLYGON	CONNECTIONTYPE OGR	CONNECTION "/opt/mapdata/county.TAB"	STATUS DEFAULT	CLASS	  OUTLINECOLOR 100 100 100	  COLOR 255 200 150	END #CLASS  END #LAYER


LAYER    NAME county_annot    CONNECTIONTYPE OGR    CONNECTION "/opt/mapdata/county.TAB"    STATUS DEFAULT    FORCE TRUE    TYPE ANNOTATION    LABELITEM "name"    CLASS      COLOR 100 100 100       LABEL        MINDISTANCE 125	POSITION CC        SIZE tiny         COLOR 100 100 100       END #LABEL    END #CLASS  END #LAYER


-------------------------------------------------------------------------------------------------------------------------------

Matthew Haines <mhaines94108 at hotmail.com> wrote:
I'm struggling with file formats. I've spent all day poking around in the 
archives and
googling around. Here's my problem:

The New York City (Bytes of the Big Apple) map files come with the map part 
in
what seems to be shapefile format. They unzip as .shp, .shx, .prj, and 
.dbf. But the
street names seem to be in a .DXF file.

I have gotten things up and running using the shapefile and am happily 
panning
and zooming across the outline map of the Manhattan streets. But I can't 
figure out
how to convert the data in the .DXF file so I can display them. (I assume 
I'll add
them as a layer.) I can also get that data in what seems to be MapInfo 
files
(.TAB, .DAT, .ID, and .MAP).

Are there any free converters for these? It seems like back in 2000 there 
were
several. But I've installed OGR and GeoExplorer, and they won't touch the 
files.

Thanks,

Matthew Haines
http://www.nycPropertyResearch.com



---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
--0-2023524445-1064290464=:24549
Content-Type: text/html; charset=us-ascii

<DIV>&nbsp;You can use the Mapinfo files directly in your layers. Assuming you have OGR compiled in. You really don't need shp files unless you are planning to upload the data to a PostGIS DB. I don't know of any Free program that will convert DXF to SHP. But, there is a library that will read and write DXF data at <A href="http://www.coin3d.org/Dime/about.php">http://www.coin3d.org/Dime/about.php</A></DIV>
<DIV><PRE>LAYER
	NAME county 
	TYPE POLYGON
	CONNECTIONTYPE OGR
	CONNECTION "/opt/mapdata/county.TAB"
	STATUS DEFAULT
	CLASS
	  OUTLINECOLOR 100 100 100
	  COLOR 255 200 150
	END #CLASS
  END #LAYER</PRE><PRE><!--StartFragment --><PRE>LAYER
    NAME county_annot
    CONNECTIONTYPE OGR
    CONNECTION "/opt/mapdata/county.TAB"
    STATUS DEFAULT
    FORCE TRUE
    TYPE ANNOTATION
    LABELITEM "name"
    CLASS
      COLOR 100 100 100 
      LABEL
        MINDISTANCE 125
	POSITION CC
        SIZE tiny 
        COLOR 100 100 100 
      END #LABEL
    END #CLASS
  END #LAYER</PRE></PRE></DIV>
<DIV>-------------------------------------------------------------------------------------------------------------------------------<BR><BR><B><I>Matthew Haines &lt;mhaines94108 at hotmail.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I'm struggling with file formats. I've spent all day poking around in the <BR>archives and<BR>googling around. Here's my problem:<BR><BR>The New York City (Bytes of the Big Apple) map files come with the map part <BR>in<BR>what seems to be shapefile format. They unzip as .shp, .shx, .prj, and <BR>.dbf. But the<BR>street names seem to be in a .DXF file.<BR><BR>I have gotten things up and running using the shapefile and am happily <BR>panning<BR>and zooming across the outline map of the Manhattan streets. But I can't <BR>figure out<BR>how to convert the data in the .DXF file so I can display them. (I assume <BR>I'll add<BR>them as a layer.) I can also get that data in what seems to be MapInfo <BR>files<BR>(.TAB, .DAT, .ID, and .MAP).<BR><BR>Are there any free converters for these? It seems like back in 2000 there <BR>were<BR>several. But I've installed OGR and GeoExplorer, and they
 won't touch the <BR>files.<BR><BR>Thanks,<BR><BR>Matthew Haines<BR>http://www.nycPropertyResearch.com<BR><BR></BLOCKQUOTE><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com">Yahoo! SiteBuilder</a> - Free, easy-to-use web site design software
--0-2023524445-1064290464=:24549--



More information about the mapserver-users mailing list