[Mapserver-users] Once again: no options found in 'init' file

Bjoern Platzen bplatzen at sosnetz.de
Tue Aug 5 12:30:26 EDT 2003


Hello List,

by searching through the archives, I saw that this seems to be a common 
problem. But I did not find any solution that helped me...

I'm trying to project a lat/lon-WGS84-Layer on Gauss-Kruger-Layers. In 
my mapfile it looks like this:

# Start of map file
NAME mgla2
STATUS ON
SIZE 6400 6400
SYMBOLSET symbols/symbols.sym
EXTENT 2523000 5680000 2539000 5663000
UNITS METERS
SHAPEPATH "gis_data"
FONTSET /usr/local/httpd/htdocs/parkinfoneuss/font/font.list
IMAGECOLOR 255 250 238
IMAGETYPE png

#
# Start of web interface definition
#
WEB
  TEMPLATE rahmen.html
  MINSCALE 3500
  MAXSCALE 200000
  IMAGEPATH "/usr/local/httpd/htdocs/parkinfo/tmp/"
  IMAGEURL "tmp/"
  LOG "/usr/local/httpd/htdocs/parkinfo/mg.log"
  error "http://moers.office.sos/parkinfo/error.htm"
END

PROJECTION
  "init=epsg:31466"
END

LAYER
  NAME bebauung_de012w
  TYPE Polygon
  STATUS on
  DATA bebauung_de012w
      CLASS
        COLOR 255 165 165
        OUTLINECOLOR -1 -1 -1
     END  # CLASS
END  # LAYER

LAYER
  NAME industrie_de012w
  TYPE Polygon
  STATUS on
  DATA industrie_de012w
      CLASS
        COLOR 165 165 165
        OUTLINECOLOR -1 -1 -1
     END  # CLASS
END  # LAYER

#...some more layers...

LAYER
  NAME 'oe'#this is a lat/long-Layer
  TYPE Polygon
  STATUS on
  DATA oeffentl_einr_de012w
  CLASS
    COLOR 205 44 65
  END#CLASS
  PROJECTION
    "init=epsg:4326"
  END#projection
END#Layer

#...some more layers...
END
#End of mapfile

Now I get the Error
msProcessProjection(): Projection library error. no options found in 
'init' file

I tried as well
platzen at codefabrik:~/parkinfo/mg/karte> proj -v +init=epsg:31466
#Transverse Mercator
#       Cyl, Sph&Ell
# +init=epsg:31466 +proj=tmerc +lat_0=0 +lon_0=6 +k=1.000000 
+x_0=2500000
# +y_0=0 +ellps=bessel +units=m +no_defs
-> epsg:31466 seems to work

and 

platzen at codefabrik:~/parkinfo/mg/karte> proj -v +init=epsg:4326
Rel. 4.4.7, 31 March 2003
<proj>:
+proj=latlong unsuitable for use with proj program.
program abnormally terminated
-> epsg:4326 does _not_ seem to work

Then I checked my epsg-file unter /usr/local/share/proj/ and i found
# WGS 84
<4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  no_defs <>

So I think, the error comes because of epsg:4326 but I have no idea, why 
it comes and how to workaround...

Any help would be _very_ appreciated...

thanks,

Bjoern.

-- 
small office solutions
info at sosnetz.de  -  http://www.sosnetz.de




More information about the mapserver-users mailing list