Res: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to load images

Randy James rjames57 at YAHOO.COM
Thu Jul 14 09:32:10 PDT 2005


could be the permissions of the cgi-bin folder? Are the permissions different for
the /raster folder?

Randy

--- Ezequias Rodrigues da Rocha <ezequias at RECIFE.PE.GOV.BR> wrote:

> Ed,
>  
> It is working now, but let me say what occours:
>  
> 1- I have the image on the cgi-bin folder
> 2- My map file is: 
>         shapepath "/var/www/cgi-bin/"
>         LAYER
>         NAME "Imagem23"
>         data "recorte_23.tif"
>         STATUS default
>         TYPE RASTER
>         PROCESSING "DITHER=YES"
>         PROCESSING "BANDS=1,2,3"
>         END
> 3 - The error reported when I try to load on the Browser is:
> 
>         msDrawMap(): Image handling error. Failed to draw layer named 
> Imagem23'. 
>         msDrawRaster(): Unable to access file. (recorte_23.tif) 
> 
> 4 - a) I copy the image to the folder /raster 
>       b) Change the LAYER parameter to:
>       data "raster/recorte_23.tif"
> 
>  5- The image appears on browser
> 
> If I didn't make the step 4a the message on step 3 will be repeated.
> 
> Does it make any sense ?
> 
> Sincerely
> Ezequias
> 
>  
>  
>  
>  
> -------Mensagem original-------
>  
> De: Ed McNierney
> Data: 07/14/05 12:41:47
> Para: Ezequias Rodrigues da Rocha
> Cc: MAPSERVER-USERS at LISTS.UMN.EDU
> Assunto: RE: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to
> load images
>  
> Ezequias -
>  
> OK - you will want to get to a TILEINDEX, I think, if your layers are simply
> separate images that all belong together as a single set of one type of
> image.
>  
> But you don't need to worry about that now. Just make sure the DATA
> statement in each LAYER specifies the full pathname.
>  
> I suggest you try to get ONE image working properly first, then get the
> other 115 working. Did you have one working at all?
>  
> - 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 
>  
>  
>  
>  
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
> Behalf Of Ezequias Rodrigues da Rocha
> Sent: Thursday, July 14, 2005 12:08 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] Res: Re: [UMN_MAPSERVER-USERS] Problem to
> load images
>  
>  
>  
> I have no TILEINDEX and I don't know how to use it on mapserver.
>  
> My map file have yes 116 layers.
>  
> Sincerely
> Ezequias
> -------Mensagem original-------
>  
> De: Ed McNierney
> Data: 07/14/05 12:33:15
> Para: MAPSERVER-USERS at LISTS.UMN.EDU
> Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images
>  
> Ezequias -
>  
> Please always reply to the whole list, so everyone can help - thanks!
>  
> MapServer may be strange but it should be consistent. Do you have a
> TILEINDEX for these 116 images or are they each specified in a separate
> LAYER in your map file? It doesn't matter where the images are (if the
> permissions are OK) but you should start by putting the full path to each
> image in either the map file LAYER block or in the TILEINDEX shapefile.
>  
> - 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 
>  
>  
>  
>  
> From: Ezequias Rodrigues da Rocha [mailto:ezequias at recife.pe.gov.br] 
> Sent: Thursday, July 14, 2005 11:59 AM
> To: Ed McNierney
> Subject: Res: Re: [UMN_MAPSERVER-USERS] Problem to load images
>  
>  
> Ed,
>  
>  
> Mapsever works strange. Some file works on the cgi-bin folder others on
> cgi-bin/raster.
>  
> I am working with 116 images too. I don't know if it makes any difference.
>  
> Sincerely
> Ezequias
>  
> -------Mensagem original-------
>  
> De: Ed McNierney
> Data: 07/14/05 11:44:53
> Para: MAPSERVER-USERS at LISTS.UMN.EDU
> Assunto: Re: [UMN_MAPSERVER-USERS] Problem to load images
>  
> Ezequias -
>  
> This is probably due to the paths to the data. Your error message reports a
> relative path, which depends on the "current directory" on your server. It
> is easier to always use full pathnames (starting with a "/") to your data
> files when you're getting started. Try putting the whole path in your map
> file to see if that solves the problem.
>  
> - 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 
>  
>  
>  
>  
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
> Behalf Of Ezequias Rodrigues da Rocha
> Sent: Thursday, July 14, 2005 10:40 AM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] Problem to load images
>  
>  
> Hi list,
>  
> My browser reported the error above:
>  
> msDrawRaster(): Unable to access file. (raster/recorte_01.tif) 
>  
> Any suggestions ?
>  
> all my files are -rwxrwxrwx
>  
>  
>  
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Atenciosamente (Sincerely)
> Ezequias Rodrigues da Rocha
> * www.recife.pe.gov.br
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> A pior das democracias ainda é melhor do que a melhor das ditaduras
> The worst of democracies is still better than the better of dictatorships
> MSN Messenger: ezequias at hotmail.com 
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> 



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 



More information about the MapServer-users mailing list