<div dir="ltr"><div><div><div>Thanks to Jeff for the answer.<br></div><br>I simplified the mapfile to make it easier to read.<br></div><br>Below I give the mapfile with these additional elements. I do not have warnings anymore with a GetCapabilities request but the image I get whith a GetMap request is still incomplete.<br></div><br>Note that I get an error (<i>msProcessProjection(): Projection library error. proj error "projection not named" for ""</i>) with a projection block in the layer section if I declare the real projection definition (<i>"+proj=longlat +a=6378160 +b=6356775 +no_defs "</i>). No error with <i>"+init=epsg:4326"</i> which is closed to the real projection definition. As I have read somewhere that if not present the projection is read in the data file, I have removed it (the image I get is the same).<br><br><br><br>MAP<br> STATUS ON<br> NAME "foo"<br> CONFIG "MS_ERRORFILE" "stderr"<br> IMAGETYPE "agg"<br> MAXSIZE 8192<br> EXTENT -180 -90 180 90<br> PROJECTION<br> "init=epsg:4326"<br> END<br> OUTPUTFORMAT<br> NAME "agg"<br> DRIVER "AGG/PNG"<br> MIMETYPE "image/png8"<br> IMAGEMODE "PC256"<br> EXTENSION "png"<br> END<br> WEB<br> METADATA<br> "ows_enable_request" "*"<br> "ows_sld_enabled" "true"<br> "wms_feature_info_mime_type" "text/html"<br> "ows_onlineresource" "<a href="http://127.0.0.1:8080/wms">http://127.0.0.1:8080/wms</a>"<br> "wms_title" "WMS"<br> "wms_srs" "epsg:4326"<br> END<br> END <br> LAYER<br> STATUS ON<br> TYPE RASTER<br> NAME "polar_orbiting_avhrr4"<br> DATA "/tmp/polar_orbiting_avhrr4.tiff"<br> OFFSITE 0 0 0<br> PROCESSING "RESAMPLE=NEAREST"<br> METADATA<br> "wms_title" "foo"<br> END<br> #PROJECTION<br> # "init=epsg:4326"<br> #END<br> #PROJECTION<br> # "+proj=longlat +a=6378160 +b=6356775 +no_defs"<br> #END<br> END<br>END<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-12 13:37 GMT+00:00 Jeff McKenna <span dir="ltr"><<a href="mailto:jmckenna@gatewaygeomatics.com" target="_blank">jmckenna@gatewaygeomatics.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2015-08-12 10:08 AM, fred p wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I do not manage do fully render in a Mapserver WMS a raster that crosses<br>
the antimeridian when I request a -180°/+180° longitude bbox.<br>
<br>
This is the request :<br>
mapserv -nh<br>
"QUERY_STRING=map=mapfile.map&layers=polar_orbiting_avhrr4&styles=&service=WMS&format=image%2Fpng&request=GetMap&height=400&width=800&version=1.1.1&bbox=-179.99%2C-89.99%2C179.99%2C89.99&exceptions=application%2Fvnd.ogc.se_inimage&srs=EPSG%3A4326&transparent=TRUE<br>
<br>
In the result image, I only get the western side of the raster, near the<br>
+180°. Nothing for the eastern part near the -180°.<br>
<br>
How to solve this problem ?<br>
<br>
This is a description of the raster :<br>
Driver: GTiff/GeoTIFF<br>
Files: /tmp/polar_orbiting_avhrr4.tiff<br>
Size is 7021, 4321<br>
Coordinate System is:<br>
GEOGCS["unnamed ellipse",<br>
DATUM["unknown",<br>
SPHEROID["unnamed",6378160,298.2539162964669]],<br>
PRIMEM["Greenwich",0],<br>
UNIT["degree",0.0174532925199433]]<br>
Origin = (135.000000000000000,0.000000000000000)<br>
Pixel Size = (0.009257940464321,-0.009257116408239)<br>
Metadata:<br>
AREA_OR_POINT=Area<br>
Image Structure Metadata:<br>
INTERLEAVE=BAND<br>
Corner Coordinates:<br>
Upper Left ( 135.0000000, 0.0000000) (135d 0' 0.00"E, 0d 0' 0.01"N)<br>
Lower Left ( 135.0000000, -40.0000000) (135d 0' 0.00"E, 40d 0' 0.00"S)<br>
Upper Right ( 200.000, 0.000) (200d 0' 0.00"E, 0d 0' 0.01"N)<br>
Lower Right ( 200.000, -40.000) (200d 0' 0.00"E, 40d 0' 0.00"S)<br>
Center ( 167.5000000, -20.0000000) (167d30' 0.00"E, 20d 0' 0.00"S)<br>
Band 1 Block=7021x1 Type=Byte, ColorInterp=Gray<br>
<br>
<br>
This is the mapfile contents :<br>
MAP<br>
STATUS ON<br>
NAME "foo"<br>
CONFIG "MS_ERRORFILE" "stderr"<br>
IMAGETYPE "agg"<br>
MAXSIZE 8192<br>
PROJECTION<br>
"init=epsg:4326"<br>
END<br>
OUTPUTFORMAT<br>
NAME "agg"<br>
DRIVER "AGG/PNG"<br>
MIMETYPE "image/png8"<br>
IMAGEMODE "PC256"<br>
EXTENSION "png"<br>
END<br>
WEB<br>
METADATA<br>
"ows_enable_request" "*"<br>
"ows_sld_enabled" "true"<br>
"wms_feature_info_mime_type" "text/html"<br>
"wms_srs" "epsg:4326"<br>
END<br>
END<br>
LAYER<br>
STATUS ON<br>
TYPE RASTER<br>
NAME "polar_orbiting_avhrr4"<br>
DATA "/tmp/polar_orbiting_avhrr4.tiff"<br>
OFFSITE 0 0 0<br>
PROCESSING "RESAMPLE=NEAREST"<br>
END<br>
END<br>
<br>
<br>
<br>
</blockquote>
<br>
By the looks of your layer, before tackling any problems, be sure to execute a GetCapabilities request to your service, and be sure to remove any "WARNING" messages returned. For example, I bet that you have warnings for missing metadata of wms_title, wms_srs, as well as missing PROJECTION block for your layer.<br>
<br>
It's good practice to first remove the warnings on any WMS service (because those warnings will cause problems for downstream users of your service).<br>
<br>
-jeff<br>
<br>
-- <br>
Jeff McKenna<br>
MapServer Consulting and Training Services<br>
<a href="http://www.gatewaygeomatics.com/" rel="noreferrer" target="_blank">http://www.gatewaygeomatics.com/</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br></div>