beginner: How to use shapes files
Julien Buratto
julien at LINKAS.IT
Thu Mar 1 05:56:25 PST 2007
A person told me to use MapInfo to convert my .TAB MAP ID DAT files to
shapes, so I did use the mapinfo "Universal translator" to convert to
ESRI shapes.
I don't know how to:
- get the EXTENT values
- keep on I'm halted now
The 4 files 302010.MAP TAB ID DAT are now:
-rw-r--r-- 1 root root 448977 1 mar 12:09 302010_point.dbf
-rw-r--r-- 1 root root 409 1 mar 12:09 302010_point.prj
-rw-r--r-- 1 root root 41288 1 mar 12:09 302010_point.shp
-rw-r--r-- 1 root root 11868 1 mar 12:09 302010_point.shx
-rw-r--r-- 1 root root 696332 1 mar 12:09 302010_polyline.dbf
-rw-r--r-- 1 root root 409 1 mar 12:09 302010_polyline.prj
-rw-r--r-- 1 root root 2740308 1 mar 12:09 302010_polyline.shp
-rw-r--r-- 1 root root 18356 1 mar 12:09 302010_polyline.shx
-rw-r--r-- 1 root root 227852 1 mar 12:09 302010_region.dbf
-rw-r--r-- 1 root root 409 1 mar 12:09 302010_region.prj
-rw-r--r-- 1 root root 356176 1 mar 12:09 302010_region.shp
-rw-r--r-- 1 root root 6068 1 mar 12:09 302010_region.shx
-rw-r--r-- 1 root root 466496 1 mar 12:09 302010_text.dbf
-rw-r--r-- 1 root root 409 1 mar 12:09 302010_text.prj
-rw-r--r-- 1 root root 22332 1 mar 12:09 302010_text.shp
-rw-r--r-- 1 root root 6452 1 mar 12:09 302010_text.shx
I've then tryed to create a map file for one of these, the 302010_region
NAME DEMO
SIZE 800 300
IMAGECOLOR 255 255 255
EXTENT 0 0 5000000000 50000000000
LAYER
DEBUG ON
NAME "302010_region"
TYPE POLYGON
STATUS DEFAULT
DATA "302010_region.shp"
CLASS
NAME "Province"
STYLE
OUTLINECOLOR 120 120 120
COLOR 255 255 0
END
END
END # layer
END
but I get a white image and I still don't know how to set the EXTENT
values, my ogrinfo are:
> > ogrinfo 302010_region.shp
INFO: Open of `302010_region.shp'
using driver `ESRI Shapefile' successful.
1: 302010_region (Polygon)
ogrinfo 302010_region.shp 302010_region -summary
INFO: Open of `302010_region.shp'
using driver `ESRI Shapefile' successful.
Layer name: 302010_region
Geometry: Polygon
Feature Count: 746
Extent: (2357848.406000, 4801375.000000) - (2364688.910000, 4807086.623000)
Layer SRS WKT:
PROJCS["Monte Mario / Italy zone 2",
GEOGCS["MonteMario",
DATUM["MonteMario",
SPHEROID["International_1924",6378388,297.0000000000601]],
PRIMEM["Greenwich",0],
UNIT["Degree",0.017453292519943295]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",15],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",2520000],
PARAMETER["false_northing",0],
UNIT["Meter",1]]
ID: Integer (11.0)
TIPO: String (15.0)
LIVELLO: String (15.0)
NUMFOGLIO: Integer (11.0)
NOMFOGLIO: String (30.0)
DESCRIZION: String (100.0)
TOPONIMO: String (60.0)
QUOTA1: Real (31.15)
QUOTA2: Real (31.15)
Can anyone give a hint on how to procede ? I'm getting stuck in seeing
white gifs :-D
Thanks
J
More information about the MapServer-users
mailing list