I have a mapserver installed (Ubuntu Linux 14.04 LTS) with a world.map file which gives me a proper result when I access it as follows:
http://localhost:19090/wms?map=world&layer=world&mode=map&FORMAT=imageHowever, when I access it using:
http://localhost:19090/wms?map=worl...96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUEthen I get the following error:
msProcessProjection(): Projection library error. proj error "major axis or radius = 0 or not given" for "init=epsg:4326:+epsgaxis=ne"Mapserver version: 7.0.0
I have already tried out the solutions that Googling this error generally gives me, namely:
Driver: GTiff/GeoTIFFFiles: world.tifSize is 1350, 675Coordinate System is:GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]]Origin = (-180.000000000000000,90.000000000000000)Pixel Size = (0.266666666666667,-0.266666666666667)Metadata: AREA_OR_POINT=AreaImage Structure Metadata: INTERLEAVE=PIXELCorner Coordinates:Upper Left (-180.0000000, 90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)Lower Left (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)Upper Right ( 180.0000000, 90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"N)Lower Right ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"S)Center ( 0.0000000, 0.0000000) ( 0d 0' 0.01"E, 0d 0' 0.01"N)Band 1 Block=512x512 Type=Byte, ColorInterp=RedBand 2 Block=512x512 Type=Byte, ColorInterp=GreenBand 3 Block=512x512 Type=Byte, ColorInterp=BlueThe full map file I am using is as follows:
MAP NAME "world" CONFIG "MS_ERRORFILE" "/wmserver/data/logs/mapservice_errors.log" CONFIG "PROJ_LIB" "/wmserver/deps/proj.4-master/share/proj" CONFIG "ON_MISSING_DATA" "LOG" DEBUG 5 EXTENT -180.000 -90.000 180.000 90.000 SHAPEPATH "/wmserver/data/service_data/data/wms" IMAGECOLOR 255 255 255 SIZE 1350 675 WEB METADATA "wms_title" "Georbis WMS Server" "wms_author" "VizExperts" "wms_onlineresource" "http://localhost:19090/wms?map=world&" "wms_enable_request" "*" "wms_srs" "EPSG:4326" "wms_feature_info_mime_type" "text/html" "wms_format" "image/jpg" END END PROJECTION "init=epsg:4326" "proj=latlong" "ellps=WGS84" "datum=WGS84" END LAYER NAME world TYPE RASTER DATA "world.tif" METADATA "wms_title" "BlueWorld Map" "wms_srs" "EPSG:4326" "wms_server_version" "1.1.1" END PROJECTION "init=epsg:4326" "proj=latlong" "ellps=WGS84" "datum=WGS84" END ENDENDMapserver error log:
[Mon Sep 14 04:34:57 2015].834042 msWMSLoadGetMapParams(): enabling non-square pixels.[Mon Sep 14 04:34:57 2015].834072 msProcessProjection(): Projection library error. proj error "major axis or radius = 0 or not given" for "init=epsg:4326:+epsgaxis=ne"[Mon Sep 14 04:34:57 2015].834103 mapserv request processing time (msLoadMap not incl.): 0.000s[Mon Sep 14 04:34:57 2015].834118 msFreeMap(): freeing map at 0x1fa2b60.What am I doing wrong?
أكثر...
http://localhost:19090/wms?map=world&layer=world&mode=map&FORMAT=imageHowever, when I access it using:
http://localhost:19090/wms?map=worl...96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUEthen I get the following error:
msProcessProjection(): Projection library error. proj error "major axis or radius = 0 or not given" for "init=epsg:4326:+epsgaxis=ne"Mapserver version: 7.0.0
I have already tried out the solutions that Googling this error generally gives me, namely:
- Made sure that the epsg file is located in the PROJ_LIB folder
- Exporting PROJ_LIB folder using an environment variable
- Checking that the definition of epsg:4326 is in the epsg file
Driver: GTiff/GeoTIFFFiles: world.tifSize is 1350, 675Coordinate System is:GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]]Origin = (-180.000000000000000,90.000000000000000)Pixel Size = (0.266666666666667,-0.266666666666667)Metadata: AREA_OR_POINT=AreaImage Structure Metadata: INTERLEAVE=PIXELCorner Coordinates:Upper Left (-180.0000000, 90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)Lower Left (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)Upper Right ( 180.0000000, 90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"N)Lower Right ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"S)Center ( 0.0000000, 0.0000000) ( 0d 0' 0.01"E, 0d 0' 0.01"N)Band 1 Block=512x512 Type=Byte, ColorInterp=RedBand 2 Block=512x512 Type=Byte, ColorInterp=GreenBand 3 Block=512x512 Type=Byte, ColorInterp=BlueThe full map file I am using is as follows:
MAP NAME "world" CONFIG "MS_ERRORFILE" "/wmserver/data/logs/mapservice_errors.log" CONFIG "PROJ_LIB" "/wmserver/deps/proj.4-master/share/proj" CONFIG "ON_MISSING_DATA" "LOG" DEBUG 5 EXTENT -180.000 -90.000 180.000 90.000 SHAPEPATH "/wmserver/data/service_data/data/wms" IMAGECOLOR 255 255 255 SIZE 1350 675 WEB METADATA "wms_title" "Georbis WMS Server" "wms_author" "VizExperts" "wms_onlineresource" "http://localhost:19090/wms?map=world&" "wms_enable_request" "*" "wms_srs" "EPSG:4326" "wms_feature_info_mime_type" "text/html" "wms_format" "image/jpg" END END PROJECTION "init=epsg:4326" "proj=latlong" "ellps=WGS84" "datum=WGS84" END LAYER NAME world TYPE RASTER DATA "world.tif" METADATA "wms_title" "BlueWorld Map" "wms_srs" "EPSG:4326" "wms_server_version" "1.1.1" END PROJECTION "init=epsg:4326" "proj=latlong" "ellps=WGS84" "datum=WGS84" END ENDENDMapserver error log:
[Mon Sep 14 04:34:57 2015].834042 msWMSLoadGetMapParams(): enabling non-square pixels.[Mon Sep 14 04:34:57 2015].834072 msProcessProjection(): Projection library error. proj error "major axis or radius = 0 or not given" for "init=epsg:4326:+epsgaxis=ne"[Mon Sep 14 04:34:57 2015].834103 mapserv request processing time (msLoadMap not incl.): 0.000s[Mon Sep 14 04:34:57 2015].834118 msFreeMap(): freeing map at 0x1fa2b60.What am I doing wrong?
أكثر...