[mapserver-users] Projection library error - EPSG Issue

phil7g phil7g at gmx.net
Wed Feb 9 08:56:26 EST 2011


Hi!

Im experiencing a problem when trying to set up a GIS with mapserver and
mepbender. First of all, this link leads to a working version of my data in
the "map-mode" of mapserver
http://gis-test.geomatik.rub.de/cgi-bin/mapserv?map=/srv/www/htdocs/GIS2/Studieren_in_Bochum.map&mode=map
. As soon as I want to move the data to mapbender by using a wms/wfs in
order to add a gui etc., I'm getting an error message
(msProcessProjection(): Projection library error. no system list, errno: 2).
I've no idea what's wrong here and would be very thankful for any
suggestion. Could it be a problem with the EPSG-file or the EPSG-path in the
mapfile? In mapbender, the only given choice when trying to change the
EPSG-Code for my WMS is "4326"... but it should be 31466 (as you can see in
the mapfile below)... If you need more data to analyse the problem, just
tell me and I'll provide it.

Eagerly awaiting your answers,

best regards,

Phil

So long!

Here is the mapfile (as you can see, I've already tried to fix the problem.
"init=epsg:31466" produced the error - msProcessProjection(): Projection
library error. no system list, errno: 2, as well):

MAP

  NAME "Studieren_in_Bochum"
  # Map image size
  STATUS on	
  SIZE 800 600
  UNITS meters
  EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335
  FONTSET "./Fonts/Fonts.txt"
  SYMBOLSET "./Symbols/Symbols.txt"
  SHAPEPATH "./Shapes/"
  CONFIG "PROJ_LIB" "./EPSG/"
  PROJECTION
    #"init=epsg:31466"	
    "proj=tmerc"
    "ellps=bessel"
    "datum=potsdam"
    "no_defs"
  END

  # Background color for the map canvas -- change as desired
  IMAGECOLOR 255 255 140
  IMAGEQUALITY 95
  IMAGETYPE png


  # Legend
  LEGEND
    IMAGECOLOR 255 255 255
    OUTLINECOLOR 0 0 0
    KEYSIZE 30 20
    STATUS embed
    POSITIon UR
    TRANSPARENT off				 	 
  END
  # SCALEBAR
  SCALEBAR
    STATUS embed
    STYLE 0
    UNITS kilometers
    INTERVALS 3
    TRANSPARENT true
    OUTLINECOLOR 0 0 0	 	
  END

  # Web interface definition. only the template parameter
  # is required to display a map. See MapServer documentation
  WEB
    # Set IMAGEPATH to the path where MapServer should
    # write its output.
    IMAGEPATH "./srv/www/htdocs/maptemp/"

    # Set IMAGEURL to the url that points to IMAGEPATH
    # as defined in your web server configuration
    IMAGEURL "./maptemp/"

    #Scale range at which web interface will operate
    # Template and header/footer settings
    # only the template parameter is required to display a map. See
MapServer documentation
    #TEMPLATE template.html

    METADATA
      #WMS
      "wms_TITLE" "WMS Studieren in Bochum"
      "wms_ABSTRACT" "WMS Studieren in Bochum"
      "wms_FEATURE_INFO_MIME_TYPE" "text/html"
      "wms_onLINESOURCE"
"http://gis-test.geomatik.rub.de/cgi-bin/mapserv?map=/srv/www/htdocs/GIS2/Studieren_in_Bochum.map"
      "wms_SRS" "EPSG:31466"
      #WFS 
      "wfs_TITLE" "WFS Studieren in Bochum"
      "wfs_ABSTRACT" "WFS Studieren in Bochum"
      "wfs_onLINESOURCE"
"http://gis-test.geomatik.rub.de/cgi-bin/mapserv?map=/srv/www/htdocs/GIS2/Studieren_in_Bochum.map"
      "wfs_SRS" "EPSG:31466"
    END
  END

  LAYER
    NAME "OePNVLinien"
    TYPE LINE
    DUMP true
  EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335
    DATA "OePNVLinien.shp"
    METADATA
      "wms_title" "OePNVLinien"
      "wfs_title" "OePNVLinien"
      "wfs_featureid" "Linie"
      "gml_include_items" "all"
    END
    #MINSCALEDENOM 1 
    #MAXSCALEDENOM 100000
    STATUS default
    TRANSPARENCY 100
    #PROJECTION
    #"proj=longlat"
    #"ellps=WGS84"
    #"datum=WGS84"
    #"no_defs"
    #END
    CLASS
       NAME "OePNV-Linien" 
       STYLE
         WIDTH 2 
         COLOR 255 0 0
       END
    END
  END

  LAYER
    NAME "Studentenwohnheime"
    TYPE POINT
    DUMP true
  EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335
    DATA "Studentenwohnheime.shp"
    METADATA
      "wms_title" "Studentenwohnheime"
      "wfs_title" "Studentenwohnheime"
      "wfs_featureid" "Point_ID"
      "gml_include_items" "all"	
    END
    #MINSCALEDENOM 1 
    #MAXSCALEDENOM 100000
    STATUS default
    TRANSPARENCY 100
    #PROJECTION
    #"proj=longlat"
    #"ellps=WGS84"
    #"datum=WGS84"
    #"no_defs"
    #END
    CLASS
       NAME "Studentenwohnheime" 
       STYLE
         SYMBOL "Studentenwohnheime"
	 MAXSIZE 10
       END
    END
  END

  LAYER
    NAME "Sport_und_Freizeit"
    TYPE POINT
    DUMP true
  EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335
    DATA "Sport_und_Freizeit.shp"
    METADATA
      "wms_title" "Sport_und_Freizeit"
      "wfs_title" "Sport_und_Freizeit"
      "wfs_featureid" "Linie"
      "gml_include_items" "all"
    END
    #MINSCALEDENOM 1 
    #MAXSCALEDENOM 100000
    STATUS default
    TRANSPARENCY 100
    #PROJECTION
    #"proj=longlat"
    #"ellps=WGS84"
    #"datum=WGS84"
    #"no_defs"
    #END
    CLASS
       NAME "Sport und Freizeit" 
       STYLE
         SYMBOL "Sport_und_Freizeit" 
	 MAXSIZE 10
       END
    END
  END

  LAYER
    NAME "OePNVHaltestellen"
    TYPE POINT
    DUMP true
  EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335
    DATA "OePNVHaltestellen.shp"
    METADATA
      "wms_title" "OePNVHaltestellen"
      "wfs_title" "OePNVHaltestellen"
      "wfs_featureid" "Name"
      "gml_include_items" "all"
    END
    #MINSCALEDENOM 1 
    #MAXSCALEDENOM 100000
    STATUS default
    TRANSPARENCY 100
    #PROJECTION
    #"proj=longlat"
    #"ellps=WGS84"
    #"datum=WGS84"
    #"no_defs"
    #END
    CLASS
       NAME "OePNV-Haltestellen" 
       STYLE
         SYMBOL "OePNVHaltestellen"
	 MAXSIZE 10
       END
    END
  END

  LAYER
    NAME "Medizinische_Einrichtungen"
    TYPE POINT
    DUMP true
  EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335
    DATA "Medizinische_Einrichtungen.shp"
    METADATA
      "wms_title" "Medizinische_Einrichtungen"
      "wfs_title" "Medizinische_Einrichtungen"
      "wfs_featureid" "Point_ID"
      "gml_include_items" "all"
    END
    #MINSCALEDENOM 1 
    #MAXSCALEDENOM 100000
    STATUS default
    TRANSPARENCY 100
    #PROJECTION
    #"proj=longlat"
    #"ellps=WGS84"
    #"datum=WGS84"
    #"no_defs"
    #END
    CLASS
       NAME "Medizinische Einrichtungen" 
       STYLE
         SYMBOL "Medizinische_Einrichtungen"
 	 MAXSIZE 10
       END
    END
  END

  LAYER
    NAME "Kirchliche_Einrichtungen"
    TYPE POINT
    DUMP true
  EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335
    DATA "Kirchliche_Einrichtungen.shp"
    METADATA
      "wms_title" "Kirchliche_Einrichtungen"
      "wfs_title" "Kirchliche_Einrichtungen"
      "wfs_featureid" "Point_ID"
      "gml_include_items" "all"
    END
    #MINSCALEDENOM 1 
    #MAXSCALEDENOM 100000
    STATUS default
    TRANSPARENCY 100
    #PROJECTION
    #"proj=longlat"
    #"ellps=WGS84"
    #"datum=WGS84"
    #"no_defs"
    #END
    CLASS
       NAME "Kirchliche Einrichtungen" 
       STYLE
         SYMBOL "Kirchliche_Einrichtungen"
	 MAXSIZE 10
       END
    END
  END

  LAYER
    NAME "Gemischtes_Studentenleben"
    TYPE POINT
    DUMP true
  EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335
    DATA "Gemischtes_Studentenleben.shp"
    METADATA
      "wms_title" "Gemischtes_Studentenleben"
      "wfs_title" "Gemischtes_Studentenleben"
      "wfs_featureid" "Point_ID"
      "gml_include_items" "all"
    END
    #MINSCALEDENOM 1 
    #MAXSCALEDENOM 100000
    STATUS default
    TRANSPARENCY 100
    #PROJECTION
    #"proj=longlat"
    #"ellps=WGS84"
    #"datum=WGS84"
    #"no_defs"
    #END
    CLASS
       NAME "Gemischtes Studentenleben" 
       STYLE
         SYMBOL "Gemischtes_Studentenleben"
	 MAXSIZE 10
       END
    END
  END

  LAYER
    NAME "Gastronomie"
    TYPE POINT
    DUMP true
  EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335
    DATA "Gastronomie.shp"
    METADATA
      "wms_title" "Gastronomie"
      "wfs_title" "Gastronomie"
      "wfs_featureid" "Point_ID"
      "gml_include_items" "all"
    END
    #MINSCALEDENOM 1 
    #MAXSCALEDENOM 100000
    STATUS default
    TRANSPARENCY 100
    #PROJECTION
    #"proj=longlat"
    #"ellps=WGS84"
    #"datum=WGS84"
    #"no_defs"
    #END
    CLASS
       NAME "Gastronomie" 
       STYLE
         SYMBOL "Gastronomie"
	 MAXSIZE 10
       END
    END
  END

END

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Projection-library-error-EPSG-Issue-tp6007730p6007730.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list