Re: [mapserver-users] error in raster layer

2011-04-08 Thread morteza shabihkhani
Thank you,

Because I'm new in Mapserver, I don't know how to track the errors. Could
you please help me to check the permissions.



On Fri, Apr 8, 2011 at 2:45 AM, fruitwerks fruitwe...@gmail.com wrote:

 That error is fairly vague. The first thing I would look at is
 permissions. Also a good rule of thumb is to not use () in file or
 directory names.

 On Thu, Apr 7, 2011 at 9:16 PM, morteza shabihkhani
 m.shabihkh...@gmail.com wrote:
  Hello all,
 
  I want to create a very simple raster layer, but I faced to this error:
 
  msDrawMap(): Image handling error. Failed to draw layer named
 'elevation'.
  msDrawRaster(): Unable to access file. stcon using full path stcon
 
  this is my layer:
 
  LAYER
NAME elevation
TYPE raster
STATUS on
DATA stcon
 
 
PROJECTION
  init=epsg:2260
 
END
 
CLASS
   STYLE
OUTLINECOLOR 0 200 0
   END
END
 
  END
 
  I checked paths and names, and everything is correct.
 
  I should note that I try to look at the only raster layer of itasca, but
  although all other layers are working very well, running this layer
 causes
  this error:
 
  msDrawMap(): Image handling error. Failed to draw layer named 'drgs'.
  msDrawRaster(): Image handling error. Unrecognized or unsupported image
  format drawEPP(): Image handling error.
  /var/www/Mapserver/Amin(Itasca)/data/drgncimq1926.tif is not an EPPL
 file.
 
  Thank you in advance for your help.
 
  Amin
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 



 --

 ___
 Any use, dissemination, distribution, posting on Internet bulletin
 boards, disclosure or copying of this e-mail or any information
 contained herein by or to anyone other than the intended recipient(s)
 is strictly prohibited. Use of this content for any other purpose is a
 violation of International Copyright Laws.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] error in raster layer

2011-04-08 Thread morteza shabihkhani
Frank

Thank you for your response. In fact, I'm not very familiar with binaries,
but as I remember, I had installed GDAL/OGR before I installed Mapserv. How
can I check that my installation process was correct?

about the path, I have provided the path in my mapfile and the mapfile call
this layer (in separate file). To make sure I replaced another shapefile
(polygon layer) in the same path into this layer, and it worked. Also, I'm
using linux, which I think doesn't need extension for files, but anyway my
layer file has the extension of .lay. In addition, for the polygon layer
with the same situation every thing is working very well. Thanks a lot.

Regards,



On Fri, Apr 8, 2011 at 10:42 AM, Frank Warmerdam warmer...@pobox.comwrote:

 On 11-04-08 12:16 AM, morteza shabihkhani wrote:

 Hello all,

 I want to create a very simple raster layer, but I faced to this error:

 msDrawMap(): Image handling error. Failed to draw layer named 'elevation'.
 msDrawRaster(): Unable to access file. stcon using full path stcon

 this is my layer:

 LAYER
   NAME elevation
   TYPE raster
   STATUS on
   DATA stcon


 Morteza,

 I don't think you mentioned what binaries you are using.  Could you confirm
 that the mapserv -v output includes INPUT=GDAL?  The error -
 particularly
 the EPPL one, could mean you don't even have GDAL raster support built in.

 In the above case, are you really really really sure the path is right?
 You haven't provided any path so it ought to be evaluated relative to the
 mapfile but to be very sure I'd suggest supplying a full path.  Also, does
 your file really have no extension?  MapServer isn't going to guess an
 extension!

 Best regards,
 --

 ---+--
 I set the clouds in motion - turn up   | Frank Warmerdam,
 warmer...@pobox.com
 light and sound - activate the windows | http://pobox.com/~warmerdam
 and watch the world go round - Rush| Geospatial Programmer for Rent


 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] error in raster layer

2011-04-07 Thread morteza shabihkhani
Hello all,

I want to create a very simple raster layer, but I faced to this error:

msDrawMap(): Image handling error. Failed to draw layer named 'elevation'.
msDrawRaster(): Unable to access file. stcon using full path stcon

this is my layer:

LAYER
  NAME elevation
  TYPE raster
  STATUS on
  DATA stcon


  PROJECTION
init=epsg:2260

  END

  CLASS
 STYLE
  OUTLINECOLOR 0 200 0
 END
  END

END

I checked paths and names, and everything is correct.

I should note that I try to look at the only raster layer of itasca, but
although all other layers are working very well, running this layer causes
this error:

msDrawMap(): Image handling error. Failed to draw layer named 'drgs'.
msDrawRaster(): Image handling error. Unrecognized or unsupported image
format drawEPP(): Image handling error.
/var/www/Mapserver/Amin(Itasca)/data/drgncimq1926.tif is not an EPPL file.

Thank you in advance for your help.

Amin
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users