[mapserver-users] Screen is square blank square window

Jeff McKenna jmckenna at gatewaygeomatics.com
Wed Jun 8 11:34:54 PDT 2022


Hi Jeremy,

I would start always with making sure that your mapfile generates a 
valid map image, through the commandline with shp2img (or map2img with 
MapServer 8), see https://mapserver.org/utilities/shp2img.html  Such as:

   shp2img -m mdm61vectorCaribe.map -o ttt.png -all_debug 3

Make sure your boundaries layer appears nicely in your map image, and 
then once you have that ready, move onto your application request or WMS 
GetMap testing, etc.

PS. be careful with your EPSG:900913 use, as this is long deprecated (in 
most FOSS4G software now) as EPSG:3857 is recommended instead.  Read 
more about this at https://mapserver.org/mapfile/projection.html  But 
don't worry about the fun projection issues yet, start with 
shp2img/map2img first.

-jeff



-- 
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-06-08 3:19 p.m., Jeremy JK wrote:
> Hello all,
> When I call on mapserver I see nothing in the browser window
> only a grey square against a black background
> Thanks for your help
> 
> this is my mapserver petition:
> 
> http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mdm61vectorCaribe.map&LAYERS=cbarbados_administrativeboundaries&FORMAT=image%2Fpng&MAXRESOLUTION=4891.969809375&MINZOOMLEVEL=5&ZOOMOFFSET=5&TATO=0&LAYERNAME=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FIRM=059&SRS=EPSG%3A900913&BBOX=-12281420.399711,-1098306.4872519,-4405349.0063027,4850328.8011857&WIDTH=805&HEIGHT=608 
> <http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mdm61vectorCaribe.map&LAYERS=cbarbados_administrativeboundaries&FORMAT=image%2Fpng&MAXRESOLUTION=4891.969809375&MINZOOMLEVEL=5&ZOOMOFFSET=5&TATO=0&LAYERNAME=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FIRM=059&SRS=EPSG%3A900913&BBOX=-12281420.399711,-1098306.4872519,-4405349.0063027,4850328.8011857&WIDTH=805&HEIGHT=608>
> 
> This is the log file
> 52, -6635790.2658974118530750 1476490.8980501613114029, 
> -6635788.7212414033710957 1476485.6568205237854272, 
> -6635788.5621886961162090 1476485.1171328218188137, 
> -6635786.9534297138452530 1476479.6583917171228677, 
> -6635783.4353540828451514 1476467.1054714780766517, 
> -6635779.1915921270847321 1476450.7408135060686618, 
> -6635777.6594455474987626 1476444.0638863830827177, 
> -6635776.2385215582326055 1476434.2757148493546993, 
> -6635775.0103269824758172 1476422.8186795604415238, 
> -6635773.4231182178482413 1476408.2214688013773412, 
> -6635772.0777894463390112 1476396.2395822617691010, 
> -6635770.4671615911647677 1476382.4886730741709471, 
> -6635768.7171466927975416 1476359.7367921238765121, 
> -6635766.8391131982207298 1476343.5201003090478480))
> [Wed Jun  8 14:18:21 2022].812616 msPostGISLayerNextShape called.
> [Wed Jun  8 14:18:21 2022].812648 msPostGISLayerFreeItemInfo called.
> [Wed Jun  8 14:18:21 2022].812659 msPostGISLayerClose called: the_geom 
> from caribe.barbados_administrativeboundaries using unique gid using 
> srid=900913
> [Wed Jun  8 14:18:21 2022].812736 
> msConnPoolRelease(cbarbados_administrativeboundaries,user=postgres 
> password=StrongAdminP at ssw0rd dbname=postgis_db host=127.0.0.1 
> port=5432,0x5648bf2b6100)
> [Wed Jun  8 14:18:21 2022].812752 msDrawMap(): Layer 20 
> (cbarbados_administrativeboundaries), 0.783s
> [Wed Jun  8 14:18:21 2022].834235 msPostGISLayerIsOpen called.
> [Wed Jun  8 14:18:21 2022].843507 msConnPoolClose(user=postgres 
> password=StrongAdminP at ssw0rd dbname=postgis_db host=127.0.0.1 
> port=5432,0x5648bf2b6100)
> 
> 
> 
> 
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list