<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
Thanks for the example - I will look into it.<br>
<br>
Cheers,<br>
Adrian<br>
<br>
Rahkonen Jukka wrote:
<blockquote
 cite="mid:CC197224AC75CE4DB23F739B16891B86F73396@tikka.haapa.mmm.fi"
 type="cite">
  <pre wrap="">Hi,

This layer shows OSM roads for me from the same shapefiles that you are
trying to use. 

LAYER
        NAME "OSM_roads"
        STATUS ON
        DATA "d:\Data\OSM\roads"
        TYPE LINE
        UNITS METERS
        METADATA
          "wms_title"    "OSM_tiet"
        END
        CLASS
        NAME "roads"
        OUTLINECOLOR 0 255 0
        END
        PROJECTION
          "init=epsg:4326" 
        END
  END    

Check that EXTENT in your mapfile suits the data.

-Jukka Rahkonen-
 

Adrian Popa wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Hello everybody,

I'm trying to display a map generated from openstreetmaps and 
saved as several shapefile layers. The map was obtained from: 
<a class="moz-txt-link-freetext" href="http://download.geofabrik.de/osm/europe/">http://download.geofabrik.de/osm/europe/</a>
The shapefile "roads.shp" has a data type of "LINESTRING":

[root@alarms romania-osm-shp]# ogrinfo -al roads.shp | head -30
INFO: Open of `roads.shp'
      using driver `ESRI Shapefile' successful.

Layer name: roads
Geometry: Line String
Feature Count: 51469
Extent: (20.379788, 43.653826) - (29.712869, 48.221387) Layer SRS WKT:
GEOGCS["GCS_WGS_1984",
    DATUM["WGS_1984",
        SPHEROID["WGS_1984",6378137,298.257223563]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.017453292519943295]]
osm_id: Real (16.0)
name: String (32.0)
type: String (16.0)
oneway: Integer (1.0)
OGRFeature(roads):0
  osm_id (Real) =             1349
  name (String) = Bulevardul Mircea Eliade
  type (String) = tertiary
  oneway (Integer) = 0
  LINESTRING (26.093111799999999 44.469673499999999,26.093683899999998
44.469124899999997,26.094064299999999 44.468571799999999,26.0961094
44.465648600000002)

I've tried creating the MAP file with a layer type of 
LINE/LINESTRING/POLYGON, but the map would not display the 
layer (however mapserver would generate an image).

My version of mapserver is 4.10.3 (fedora core 8).

My question is: can I display this data type directly with 
mapserver, or do I need to convert it to something else? Is 
my version of mapserver too old to display this data?

Thanks.

Adrian

_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
</body>
</html>