[mapserver-users] Blank image after map request

RODIER BATISSE, ALEXANDRE alexandre.rodier at carm.es
Wed Dec 17 01:28:29 PST 2008


Hi Jeff and all others than help me.

 

I tried all your advice and i changed this tips:

 

* I set STATUS layer tag to DEFAULT

* I changed wms_onlineresource tag to  "http://localhost/cgi-bin/mapserv?map=/ms4w/Apache/htdocs/map/mosaico.map&"

* I checked EXTENT tag to correct extents

* I changed "wms_latlongbounding" layer tag to the correct extents

* I checked gdalinfo for both mosaico.ecw and mosaico.tif image files, and this is the result:

C:\ms4w\tools\gdal-ogr>gdalinfo c:\ms4w\Apache\htdocs\raster\mosaico.ecw

Driver: ECW/ERMapper Compressed Wavelets

Files: c:\ms4w\Apache\htdocs\raster\mosaico.ecw

Size is 302480, 316380

Coordinate System is `'

Origin = (556560.000000000000000,4293110.000000000000000)

Pixel Size = (0.500000000000000,-0.500000000000000)

Corner Coordinates:

Upper Left  (  556560.000, 4293110.000)

Lower Left  (  556560.000, 4134920.000)

Upper Right (  707800.000, 4293110.000)

Lower Right (  707800.000, 4134920.000)

Center      (  632180.000, 4214015.000)

Band 1 Block=302480x1 Type=Byte, ColorInterp=Red

  Overviews: arbitrary

Band 2 Block=302480x1 Type=Byte, ColorInterp=Green

  Overviews: arbitrary

Band 3 Block=302480x1 Type=Byte, ColorInterp=Blue

  Overviews: arbitrary

 

C:\ms4w\tools\gdal-ogr>gdalinfo c:\ms4w\Apache\htdocs\raster\mosaico.tif

Driver: GTiff/GeoTIFF

Files: c:\ms4w\Apache\htdocs\raster\mosaico.tif

Size is 33910, 31638

Coordinate System is:

PROJCS["UTM Zone 30, Northern Hemisphere",

    GEOGCS["ETRS89",

        DATUM["unknown",

            SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],

        PRIMEM["Greenwich",0],

        UNIT["degree",0.0174532925199433]],

    PROJECTION["Transverse_Mercator"],

    PARAMETER["latitude_of_origin",0],

    PARAMETER["central_meridian",-3],

    PARAMETER["scale_factor",0.9996],

    PARAMETER["false_easting",500000],

    PARAMETER["false_northing",0],

    UNIT["metre",1,

        AUTHORITY["EPSG","9001"]]]

Origin = (556560.000000000000000,4293110.000000000000000)

Pixel Size = (5.000000000000000,-5.000000000000000)

Metadata:

  AREA_OR_POINT=Area

Image Structure Metadata:

  COMPRESSION=LZW

  INTERLEAVE=PIXEL

Corner Coordinates:

Upper Left  (  556560.000, 4293110.000) (  2d20'55.64"W, 38d47'5.69"N)

Lower Left  (  556560.000, 4134920.000) (  2d21'40.71"W, 37d21'33.38"N)

Upper Right (  726110.000, 4293110.000) (  0d23'52.18"W, 38d45'27.90"N)

Lower Right (  726110.000, 4134920.000) (  0d26'52.05"W, 37d20'0.44"N)

Center      (  641335.000, 4214015.000) (  1d23'20.00"W, 38d 3'46.30"N)

Band 1 Block=33910x1 Type=Byte, ColorInterp=Red

Band 2 Block=33910x1 Type=Byte, ColorInterp=Green

Band 3 Block=33910x1 Type=Byte, ColorInterp=Blue

 

It likes ok, but gdalinfo does not return coordinate system data for ecw image, when i changed ecw header info to ETRS89 and NUTM30.

 

* I tried shp2img with both ecw and tif images, and in both cases the result is a 800x500 blank image.

* I tried getcapabilities with this url: http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/map/mosaico.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

And it returnsme file in attached.

 

And finally, I tried Getmap with http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/map/mosaico.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=Getmap&LAYERs=mosaico&SRS=EPSG:25830&bbox=556560,4134920,707800,4293920&format=image/png&width=800&height=500 and it returns 800x500 balnk image.

 

Conclusion: I don't know what i can also do.

 

---------------------------------------------

Alexandre Rodier

Asistencia Técnica del SIGA

 

Servicio de Información e Integración Ambiental

Dirección General de Patrimonio Natural y Biodiversidad

Consejería de Agricultura y Agua.

c/ Arquitecto Emilio Piñero, 1 Entresuelo C

30.007 Murcia

Tel. 968246272

Correo-e: alexandre.rodier at carm.es

http://www.carm.es/medioambiente

---------------------------------------------

 

-----Mensaje original-----
De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Jeff McKenna
Enviado el: miércoles, 17 de diciembre de 2008 0:10
Para: mapserver-users at lists.osgeo.org
Asunto: Re: [mapserver-users] Blank image after map request

 

RODIER BATISSE, ALEXANDRE wrote:

> Hi everyone,

> 

>  

> 

> I am begining with mapserver for windows and i have this problem:

> 

>  

> 

> Mapserver work (theorycally) fine, because 

> http://localhost/cgi-bin/mapserv.exe request in web navigator answer "No 

> query information to decode. QUERY_STRING is set, but empty".

> 

>  

> 

> I have a .map file in c:\ms4w\Apache\htdocs\map\ directory. (I put it in 

> anex).

> 

>  

> 

> But when a try to make a map request mapserver give a blank image 

> (800x500 pixel)

> 

>  

> 

> Whyyyyyyy!!!

> 

 

I would also start with creating a valid map image with the shp2img 

utility 

(http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img) 

and once that works move to debugging your application (or request).

 

-jeff

 

 

-- 

Jeff McKenna

FOSS4G Consulting and Training Services

http://www.gatewaygeomatics.com/

 

 

_______________________________________________

mapserver-users mailing list

mapserver-users at lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081217/98494352/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getcapabilities.1&REQUEST=GetCapabilities
Type: application/octet-stream
Size: 7886 bytes
Desc: getcapabilities.1&REQUEST=GetCapabilities
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081217/98494352/attachment.obj>


More information about the MapServer-users mailing list