Blank image being created in MS 4.6.0

Fawcett, David David.Fawcett at STATE.MN.US
Thu Aug 25 14:56:57 EDT 2005


Mike, 

It appears that your image is not geo-referenced.  Was there a jpeg world file in the same directory with this .jpg under your old setup?  

Try commenting out all projection info just to see if you can get the image to appear, that may do the trick.  Of course, if you want to use this photo with other data, you will have to get it georeferenced again.  

David.

David Fawcett
Minnesota Office of Environmental Assistance
david.fawcett at moea.state.mn.us
651.215.0200


-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
Behalf Of Mike Boos
Sent: Thursday, August 25, 2005 1:42 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0


This is the output I get from gdalinfo:
Driver: JPEG/JPEG JFIF
Size is 576, 432
Coordinate System is `'
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,  432.0)
Upper Right (  576.0,    0.0)
Lower Right (  576.0,  432.0)
Center      (  288.0,  216.0)
Band 1 Block=576x1 Type=Byte, ColorInterp=Red
Band 2 Block=576x1 Type=Byte, ColorInterp=Green
Band 3 Block=576x1 Type=Byte, ColorInterp=Blue

I tried adding projection information to the map, no result.

Mike

Brent Fraser wrote:

>Mike,
>
>  You don't have a PROJECTION definition for your map (the target image to
>be created by mapserver).  And your EXTENT coordinates look like pixel
>values instead of world coordinates (e.g. meters or degrees).
>
>  Try changing
>EXTENT 0 0 576 432
>  to
>EXTENT 300000 5000000 700000 6000000
>  or better yet, get the world extents of your input jpg file by using:
>        gdalinfo  C:\inetpub\ftproot\input_images\AUG162454635.jpg
>
>
>You might want to add
>
>PROJECTION
>  "init=epsg:32611"
>END
>
>after the EXTENT entry as well.
>
>Brent Fraser
>GeoAnalytic Inc.
>Calgary, Alberta, Canada
>
>
>----- Original Message ----- 
>From: "Mike Boos" <mboos at AUGSIGNALS.COM>
>To: <MAPSERVER-USERS at LISTS.UMN.EDU>
>Sent: Thursday, August 25, 2005 12:17 PM
>Subject: Re: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0
>
>
>  
>
>>Thanks, but neither changing the colour nor the transparency did anything.
>>
>>Mike
>>
>>Hydock,Shaun T. wrote:
>>
>>    
>>
>>>I ran into something similar, adding a class to set the color in the
>>>layer generated a viewable image for me:
>>>
>>>   CLASS
>>>     COLOR 0 100 200
>>>   END
>>>
>>>Good luck!
>>>
>>>Shaun
>>>
>>>-----Original Message-----
>>>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
>>>Behalf Of Mike Boos
>>>Sent: Thursday, August 25, 2005 2:02 PM
>>>To: MAPSERVER-USERS at LISTS.UMN.EDU
>>>Subject: [UMN_MAPSERVER-USERS] Blank image being created in MS 4.6.0
>>>
>>>Hello
>>>
>>>I'm trying to upgrade our map server from version 4.1 to 4.6.0 and am
>>>facing some hurdles. The map files work fine in version 4.1, but are all
>>>
>>>generating blank white images for me in 4.6.0. From reading the mailing
>>>lists and the documentation, I can't seem to find what's wrong with the
>>>map files. Here's an example:
>>>
>>>#epsg:32611
>>>NAME AUG21234542.map
>>>SIZE 400 400
>>>EXTENT 0 0 576 432
>>>WEB
>>>TEMPLATE ../mapServerTemplateVis.html
>>>IMAGEPATH ""
>>>IMAGEURL ""
>>>END
>>>LAYER
>>>TYPE RASTER
>>>STATUS DEFAULT
>>>DATA "C:\inetpub\ftproot\input_images\AUG162454635.jpg"
>>>PROJECTION
>>>"init=epsg:32611"
>>>END
>>>TRANSPARENCY 100
>>>END
>>>END
>>>
>>>Does anyone know what changes I need to make to have the image appear on
>>>
>>>my map?
>>>
>>>Thanks
>>>Mike Boos
>>>
>>>
>>>
>>>
>>>
>>>      
>>>
>
>
>
>  
>



More information about the mapserver-users mailing list