Hello,
My quick thoughts:
- execute gdalinfo (http://www.gdal.org/gdalinfo.html) on your tif file
- use the extents returned from gdalinfo in your EXTENT parameter in
your mapfile
- remove projection info from your mapfile
- make sure your UNITS in your mapfile match the extent value
- test your mapfile with the shp2img commandline utility
(http://www.mapserver.org/utilities/shp2img.html)
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 11-10-14 8:56 AM, Doğukan ATALAY wrote:
i have a geo tiff file, generated it with arcmap, im sure it s working
well because tried it with quantumgis, it opened geo tiff,
i want to use tiff file with mapserver, so i installed cgi-mapserver on
ubuntu linux,
ubuntu:/var/www$ /usr/lib/cgi-bin/mapserv -v
MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE
it supports tiff,
the problem is i can t see my map:) i see only blank white area, (
http://imageshack.us/photo/my-images/198/screenshot2raw.png/ )
i want to create tales and serve it for open layers application, if you
help, i will be happy, thank you
ubuntu:/var/www/data$ ls
Deneme.tfw Deneme.tif Deneme.tif.aux.xml Deneme.tif.ovr
*map file content:*
MAP
NAME parcels_map
STATUS ON
SIZE 5000 7000
EXTENT 489885 5450946 490904 5451637
UNITS METERS
IMAGECOLOR 255 255 255
PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
''
END
WEB
TEMPLATE "template2.html"
IMAGEPATH "/var/www/tmp/"
IMAGEURL "tmp/"
END
LAYER
NAME "Deneme"
* DATA "data/Deneme.tif"*
PROJECTION
"proj=latlong"
"ellps=WGS84"
"lat_2=46"
"lat_1=46.29"
"lat_0=46.29"
"lon_0=18.11"
"datum=WGS84"
END
TYPE RASTER
STATUS ON
END
END
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users