[mapserver-users] Projection library error - EPSG Issue
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.mapmode=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 10 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 10 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 10 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
Re: [mapserver-users] Projection library error - EPSG Issue
On 11-02-09 08:56 AM, phil7g wrote: 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.mapmode=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): Phil, First, could you confirm that /usr/share/proj/epsg (or possibly /usr/local/share/proj/epsg) has a definition for 31466? Second, if you enable PROJ.4 level debugging you can get output on where the epsg init file is being searched for. I would normally try this by setting the PROJ_DEBUG environment variable to any value (ie. on) and then running the request at the commandline. PROJ.4 will write some debug output to stderr. If you can't easily do things at the commandline set the environment variable in your mapserv wrapper script or in the apache config file, and then inspect the apache error log. eg. warmerda@gdal65[214]% setenv PROJ_DEBUG ON warmerda@gdal65[215]% proj +init=epsg:31466 pj_open_lib(epsg): call fopen(/home/warmerda/bld/share/proj/epsg) - succeeded If the epsg init file is not properly being found, consider setting the global PROJ_LIB environment variable to point to the directory where it is, or move it to the directory PROJ.4 is looking in. If you lack the definition add this to your epsg init file: # DHDN / 3-degree Gauss-Kruger zone 2 31466 +proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=250 +y_0=0 +ellps=bessel +towgs84=582,105,414,1.04,0.35,-3.08,8.3 +units=m +no_defs (note from 31466 to is all one line) Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users