[mapserver-users] Raste Display (More Information)

gabriel gabriel at ciasc.gov.br
Wed Aug 21 15:14:43 EDT 2002


RE: [mapserver-users] hints wantedThis is the output from some "TIFF Tools Overview" (tiffdump and tiffinfo) of my TIF file :

[mapserver at linux geoimagens]$ tiffdump  agronomica_trindade.tif

agronomica_trindade.tif:

Magic: 0x4949 <little-endian> Version: 0x2a

Directory 0: offset 8 (0x8) next 0 (0)

SubFileType (254) LONG (4) 1<0>

ImageWidth (256) LONG (4) 1<924>

ImageLength (257) LONG (4) 1<906>

BitsPerSample (258) SHORT (3) 3<8 8 8>

Compression (259) SHORT (3) 1<1>

Photometric (262) SHORT (3) 1<2>

SamplesPerPixel (277) SHORT (3) 1<3>

RowsPerStrip (278) LONG (4) 1<906>

StripByteCounts (279) LONG (4) 1<2511432>

XResolution (282) RATIONAL (5) 1<100>

YResolution (283) RATIONAL (5) 1<100>

PlanarConfig (284) SHORT (3) 1<1>

ResolutionUnit (296) SHORT (3) 1<2>

Predictor (317) SHORT (3) 1<1>

Software (305) ASCII (2) 15<UMAX MagicScan\0>

DateTime (306) ASCII (2) 20<1999: 5:20 15:49:21\0>

ImageDescription (270) ASCII (2) 48<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 ...>

Model (272) ASCII (2) 48<\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 ...>

37458 (0x9252) BYTE (1) 2<0x1 0xbb>

37459 (0x9253) BYTE (1) 2<0xe0 0x13>

37460 (0x9254) BYTE (1) 2<0xbe 0x6b>

37461 (0x9255) BYTE (1) 2<0x9c 0xc3>

StripOffsets (273) LONG (4) 1<228123>

 

[mapserver at linux geoimagens]$ tiffinfo  agronomica_trindade.tif

agronomica_trindade.tif: Warning, unknown field with tag 317 (0x13d) ignored.

agronomica_trindade.tif: Warning, invalid TIFF directory; tags are not sorted in ascending order.

agronomica_trindade.tif: Warning, unknown field with tag 37458 (0x9252) ignored.

agronomica_trindade.tif: Warning, unknown field with tag 37459 (0x9253) ignored.

agronomica_trindade.tif: Warning, unknown field with tag 37460 (0x9254) ignored.

agronomica_trindade.tif: Warning, unknown field with tag 37461 (0x9255) ignored.

TIFF Directory at offset 0x8

  Subfile Type: (0 = 0x0)

  Image Width: 924 Image Length: 906

  Resolution: 100, 100 pixels/inch

  Bits/Sample: 8

  Compression Scheme: None

  Photometric Interpretation: RGB color

  Date & Time: "1999: 5:20 15:49:21"

  Software: "UMAX MagicScan"

  Image Description: ""

  Model: ""

  Samples/Pixel: 3

  Rows/Strip: 906

  Planar Configuration: single image plane


  ----- Original Message ----- 
  From: gabriel 
  To: mapserver-users at lists.gis.umn.edu 
  Sent: Wednesday, August 21, 2002 3:50 PM
  Subject: Raste Display


  I have some TIF images georeferenced at MapInfo software. I would like to display them with Mapserver.

  My MS version is:
  mapserver at linux cgi-bin]$ ./mapserv -v
  MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


  According  supported formats list at http://www.remotesensing.org/gdal ,  " If no georeferencing information is available in the TIFF file itself, GDAL will also check for, and use an ESRI world file with the extention .tfw, .tiffw or .wld, as well as a MapInfo .tab file (only control points used, Coordsys ignored)." 

  Mapserver would have to work with MapInfo file.

  But It give-me this message: "msCalculateScale(): General error message. Invalid image extent."



  My .map file is:

  #
  # Start of map file
  #
  NAME RASTER_
  STATUS ON
  SIZE 400 300
  UNITS METERS
  SHAPEPATH "/home/mapserver/geoimagens"
  #
  # Projection definition, consult the PROJ.4 documentation for parameter discussion
  #
  #PROJECTION
  # "proj=utm"
  # "ellps=GRS80"
  # "zone=15"
  # "north"
  # "zone=22"
  # "south"
  # "no_defs"
  #END

  #
  # Start of web interface definition
  #
  WEB
  TEMPLATE raster.html
  IMAGEPATH "/usr/local/apache2/htdocs/ms_demo/tmp/"
  IMAGEURL "/ms_demo/tmp/"
  END

  #
  # Start of layer definitions
  #
  LAYER
  NAME "agronomica_trindade"
  TYPE RASTER
  DATA "agronomica_trindade.tif"
  STATUS DEFAULT
  END # 

  END # Map File



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020821/42c3ef95/attachment.html


More information about the mapserver-users mailing list