[Mapserver-users] Problem with raster images

Ed McNierney ed at topozone.com
Fri Dec 6 17:01:46 EST 2002


Let's see how many wrong trees we can bark up <g>!

We really should do something about that STATUS ON situation.  It seems to trip up most new users....

	- Ed

-----Original Message-----
From: Jan Hartmann [mailto:jhart at frw.uva.nl]
Sent: Friday, December 06, 2002 4:44 PM
To: Martin Sarsale
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Problem with raster images


Martin,

Please try setting STATUS DEFAULT. In the past this has sometimes solved 
this sort of problem -:)

Jan Hartmann

Martin Sarsale wrote:
> Thanks a lot :)
> 
> 14ene02-g.tif TIFF 2507x1802 DirectClass 8-bit 13238kb 0.5u 0:02
> 
> 
> On Fri, 6 Dec 2002 16:09:16 -0500
> "Ed McNierney" <ed at topozone.com> wrote:
> 
> 
>>Martin -
>>
>>A quick look indicates that the problem MAY be that your raster image does not cover the same area you're mapping.
>>
>>The minimum X coordinate in your EXTENT statement in your map file is 4,571,854.  This is the left-hand edge of the map.  The X coordinate of the upper-left corner of your raster image is 4,536,934 or 1,164 pixels (at 30 units per pixel) to the left.  Is the image at least 1,164 pixels wide?  If not, it won't show up.  Likewise, the image needs to be at least 739 pixels high - the upper-left corner of the raster image is above and to the left of your map EXTENTs.  Is that what you expect?
>>
>>I should have asked the first time, but can you give us the width and height of the raster in pixels?  Thanks.
>>
>>	- Ed
>>
>>
>>
>>-----Original Message-----
>>From: Martin Sarsale [mailto:lists at runa.sytes.net]
>>Sent: Friday, December 06, 2002 3:58 PM
>>To: mapserver-users at lists.gis.umn.edu
>>Subject: Re: [Mapserver-users] Problem with raster images
>>
>>
>>Thanks for your help :)
>>           30.0000000000
>>            0.0000000000
>>            0.0000000000
>>          -30.0000000000
>>      4536934.0000000000
>>      6005021.0000000000
>>
>>(the file was created with the output of listgeo)
>>
>>On Fri, 6 Dec 2002 15:34:45 -0500
>>"Ed McNierney" <ed at topozone.com> wrote:
>>
>>
>>>Yes!
>>>
>>>"If you do have such a file, could you post the contents?  It's a six-line text file."
>>>
>>>	- Ed
>>>
>>>Ed McNierney
>>>President and Chief Mapmaker
>>>TopoZone.com / Maps a la carte, Inc.
>>>73 Princeton Street, Suite 305
>>>North Chelmsford, MA  01863
>>>ed at topozone.com
>>>(978) 251-4242 
>>>
>>>-----Original Message-----
>>>From: Martin Sarsale [mailto:lists at runa.sytes.net]
>>>Sent: Friday, December 06, 2002 3:07 PM
>>>To: mapserver-users at lists.gis.umn.edu
>>>Subject: Re: [Mapserver-users] Problem with raster images
>>>
>>>
>>>I have created my TFW file from the geotiff, but the image layer doesn't appear.
>>>stracing mapserver doesn't show anything related to the file (nor the tiff or the TFW)... any ideas?
>>>
>>>
>>>On Fri, 6 Dec 2002 13:52:58 -0500
>>>"Ed McNierney" <ed at topozone.com> wrote:
>>>
>>>
>>>>Martin -
>>>>
>>>>First, that's the problem.  The quickest solution is to use the listgeo utility (part of the libgeotiff distribution) to create a TFW file from your TIF.
>>>>
>>>>	- Ed
>>>>
>>>>-----Original Message-----
>>>>From: Martin Sarsale [mailto:lists at runa.sytes.net]
>>>>Sent: Friday, December 06, 2002 1:43 PM
>>>>To: mapserver-users at lists.gis.umn.edu
>>>>Subject: Re: [Mapserver-users] Problem with raster images
>>>>
>>>>
>>>>Ed: I don't have the TFW file, but the TIFF is geoTIFF. 
>>>>Can I build the TFW from the geoTIFF? or I should recompile mapserver to use the geotiff?
>>>>
>>>>
>>>>On Fri, 6 Dec 2002 13:27:52 -0500
>>>>"Ed McNierney" <ed at topozone.com> wrote:
>>>>
>>>>
>>>>>Martin -
>>>>>
>>>>>Do you have a world file (.TFW) of the same root name as the TIF file in the same directory?  You need to have the geographic reference information to go with the TIF so MapServer knows how to locate it geographically.  If you don't have such a file, you need one.  If you do have such a file, could you post the contents?  It's a six-line text file.
>>>>>
>>>>>	- Ed
>>>>>
>>>>>Ed McNierney
>>>>>President and Chief Mapmaker
>>>>>TopoZone.com / Maps a la carte, Inc.
>>>>>73 Princeton Street, Suite 305
>>>>>North Chelmsford, MA  01863
>>>>>ed at topozone.com
>>>>>(978) 251-4242 
>>>>>
>>>>>-----Original Message-----
>>>>>From: Martin Sarsale [mailto:lists at runa.sytes.net]
>>>>>Sent: Friday, December 06, 2002 1:18 PM
>>>>>To: mapserver-users at lists.gis.umn.edu
>>>>>Subject: [Mapserver-users] Problem with raster images
>>>>>
>>>>>
>>>>>Im trying to configure mapserver to show a background image but it's not working and Im not sure why:
>>>>>my ex1.map has:
>>>>>LAYER # Shaded Relief Raster
>>>>>  NAME "coso"
>>>>>  DATA "jul.tif"
>>>>>  STATUS ON
>>>>>  TYPE RASTER
>>>>>END
>>>>>
>>>>>but when I render the map, it shows all the other layers except this one. I've tried moving the file (jul.tif) to the same dir than ex1.map and the shapepath dir, but it still doesn't works.
>>>>>
>>>>>Then, I straced mapserver and I found that it nevers try to open the file jul.tif, so I guess there's a configuration problem, but I've no idea where it is.
>>>>>
>>>>>Some extra info:
>>>>>
>>>>>------------
>>>>>
>>>>>../mapserv -v
>>>>>MapServer version 3.6.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE
>>>>>
>>>>>------------
>>>>>
>>>>>NAME P1EX1
>>>>>EXTENT 4571854.02353 5982849.309224 4577998.955481 5978889.343811
>>>>>SIZE 400 300
>>>>>SHAPEPATH "/opt/runa/mapserver/shapes/"
>>>>>
>>>>>LAYER # start of the "states" layer object
>>>>>  NAME "states"
>>>>>  DATA "cari-amb"
>>>>>  STATUS DEFAULT
>>>>>  TYPE POLYGON
>>>>>  CLASS
>>>>>#   COLOR 220 220 220
>>>>>    OUTLINECOLOR 0 0 0
>>>>>  END # end of class object
>>>>>END # end of layer object
>>>>>LAYER # start of the "states" layer object
>>>>>  NAME "states"
>>>>>  DATA "cari-lot"
>>>>>  STATUS DEFAULT
>>>>>  TYPE POLYGON
>>>>>  CLASS
>>>>>#   COLOR 220 220 220
>>>>>    OUTLINECOLOR 200 0 0
>>>>>  END # end of class object
>>>>>END # end of layer object
>>>>>LAYER # Shaded Relief Raster
>>>>>  NAME "coso"
>>>>>  DATA "jul.tif"
>>>>>  STATUS ON
>>>>>  TYPE RASTER
>>>>>END
>>>>>
>>>>>END # end of map file
>>>>>----------
>>>>>
>>>>>pd: Where can I find a log with mapserv errors?
>>>>>
>>>>>
>>>>>thanks!
>>>>>_______________________________________________
>>>>>Mapserver-users mailing list
>>>>>Mapserver-users at lists.gis.umn.edu
>>>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>>>
>>>>>_______________________________________________
>>>>>Mapserver-users mailing list
>>>>>Mapserver-users at lists.gis.umn.edu
>>>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>>>Re
>>>>
>>>>_______________________________________________
>>>>Mapserver-users mailing list
>>>>Mapserver-users at lists.gis.umn.edu
>>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>>
>>>>_______________________________________________
>>>>Mapserver-users mailing list
>>>>Mapserver-users at lists.gis.umn.edu
>>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>>Re
>>>
>>>_______________________________________________
>>>Mapserver-users mailing list
>>>Mapserver-users at lists.gis.umn.edu
>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>
>>>_______________________________________________
>>>Mapserver-users mailing list
>>>Mapserver-users at lists.gis.umn.edu
>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>Re
>>
>>_______________________________________________
>>Mapserver-users mailing list
>>Mapserver-users at lists.gis.umn.edu
>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>
>>_______________________________________________
>>Mapserver-users mailing list
>>Mapserver-users at lists.gis.umn.edu
>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>Re
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list