Hello,
Thanks for the example - I will look into it.
Cheers,
Adrian
Rahkonen Jukka wrote:
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:
Hello everybody,
I'm trying to display a map generated from openstreetmaps and
saved as several shapefile layers. The map was obtained from:
http://download.geofabrik.de/osm/europe/
The shapefile "roads.shp" has a data type of "LINESTRING":
[r...@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
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users