[FWTools] Mapserver, Global.map and The Swedish RT-90

Ingimar Erlingsson ingimar.Erlingsson at raa.se
Tue Aug 30 03:37:26 EDT 2005


Hello!

Having a Swedish shapefile describing the counties in Sweden.
My ogrinfo says the following:

**********************************************************
**********************************************************
C:\ms4w\Apache\suecia>ogrinfo -al -summary svelan_2002_general.shp
INFO: Open of `svelan_2002_general.shp'
using driver `ESRI Shapefile' successful.

Layer name: svelan_2002_general
Geometry: Polygon
Feature Count: 26
Extent: (1198493.000000, 6114582.000000) - (1884297.000000, 7670799.500000)
Layer SRS WKT:
(unknown)
AREA: Real (13.6)
PERIMETER: Real (13.6)
RY_LN97_: Real (11.0)
RY_LN97_ID: Real (11.0)
LANSKOD: Integer (2.0)
LANSNAMN: String (30.0)
LAN_KOD: String (2.0)
BOKSTAV: String (4.0)
**********************************************************
**********************************************************

There is no information in the 'Layer SRS WKT'.

In the global map I did enter the Extent, taken from ogrinfo,  as in 
EXTENT 1198493 6114582 1884297 767079

Mapserver should be able to generate the swedish RT-90 on the fly, so I've heard,
if it is defined in the global.map.

In the global.map I did enter the following:

PROJECTION
     "proj=tmerc"
     "ellps=bessel"
     "towgs84:414.1055246174,41.3265500042,603.0582474221,0.8551163377,-2.1413174055,7.0227298286,0.0"
     "lat_0=0.0000000000"
     "lon_0=15.0000000000"
     "k_0=1.0000000000"
     "x_0=1500000.0000000000"
END
- where towgs84 should be on the same line  
"towgs84:414.1055246174,41.3265500042,603.0582474221,0.8551163377,-2.1413174055,7.0227298286,0.0"

And for the layer I entered:
PROJECTION
         "proj=latlong"
         "ellps=WGS84"
     END

Still Having problems with the extent, my browser says:
" loadMapInternal(): General error message. Given map extent is invalid. "

Could anyone help on this one ?

Best regards, Ingimar




More information about the FWTools mailing list