indexed tif images do not display {Scanned}

Siki Zoltan siki at AGT.BME.HU
Wed Jun 22 19:45:01 EDT 2005


Hi,

Here is an example

NAME sample
EXTENT 648000 243000 658000 253000
IMAGETYPE png
SHAPEPATH "/home1/www/maps/iv"
FONTSET "/home1/www/maps/iv/fonts.lst"
SYMBOLSET "/home1/www/maps/iv/iv.sym"
UNITS meters
TEMPLATEPATTERN ".*\.html"


OUTPUTFORMAT
	NAME png
	DRIVER "GD/PNG"
	MIMETYPE "image/png"
	IMAGEMODE RGB	# better image quality for photos
	EXTENSION "png"
END

WEB
	IMAGEPATH "/home1/www/maps/tmp/"
	IMAGEURL "/maps/tmp/"
	MAXSCALE 100000
#	ERROR "/iv/hiba.html"
END

SCALEBAR
	IMAGECOLOR 255 255 255
	LABEL
		COLOR 0 0 0
		SIZE TINY
	END
	STYLE 0
	SIZE 350 10
	COLOR 0 0 0
	OUTLINECOLOR 0 0 0
	UNITS METERS
	INTERVALS 5
	STATUS TRUE
END

REFERENCE
	IMAGE ivref.png
	EXTENT 648000 243000 658000 253000
	SIZE 200 200
	STATUS ON
	COLOR -1 -1 -1
	MAXBOXSIZE 100
	MINBOXSIZE 10
	MARKERSIZE 15
	MARKER 'circle'
	OUTLINECOLOR 255 0 0
END

LEGEND
    KEYSIZE 16 12
    LABEL
        TYPE BITMAP
        SIZE SMALL
        COLOR 0 0 0
    END
    STATUS ON
END

QUERYMAP
	STATUS ON
#	STYLE SELECTED
	STYLE HILITE
	COLOR 200 0 200
END

LAYER
	NAME "2003_030"
	GROUP "foto2003"
	TILEINDEX "foto/2003_030/tiles"
	TILEITEM "Location"
	TYPE RASTER
	STATUS ON
#	MAXSCALE 3500
	MINSCALE 199
END
END

And here is the dump of the fist few lines of the tileindex.
The map file is above the "foto" directory.

INFO: Open of `foto/2003_030/tiles.dbf'
using driver `ESRI Shapefile' successful.

Layer name: tiles
Geometry: Polygon
Feature Count: 77
Extent: (651000.000000, 244000.000000) - (656250.000000, 252500.100000)
Layer SRS WKT:
(unknown)
location: String (255.0)
OGRFeature(tiles):0
  location (String) = foto/2003_030/65-211-444.tif
  POLYGON ((653250.000 252500.100,654000.000 252500.100,654000 252000,653250 252000,653250.000 252500.100))

OGRFeature(tiles):1
  location (String) = foto/2003_030/65-212-333.tif
  POLYGON ((654000.000 252500.100,654750.000 252500.100,654750 252000,654000 252000,654000.000 252500.100))

OGRFeature(tiles):2
  location (String) = foto/2003_030/65-213-222.tif
  POLYGON ((653250.000 252000.100,654000.000 252000.100,654000 251500,653250 251500,653250.000 252000.100))


On Wed, 22 Jun 2005, Dennis Megarry wrote:

> Would you happen to have a sample map file showing the usage of a raster tile index?
>  
> Dennis
> 
> ________________________________
> 
> From: UMN MapServer Users List on behalf of Siki Zoltan
> Sent: Wed 6/22/2005 6:06 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] indexed tif images do not display {Scanned}
> 
> 
> 
> Hi,
> 
> You can use relative path, I use relative path to my map file.
> Recently it was discussed on the list, as far as remember you can set
> relative path to the tileindex shape.
> 
> Bye
> Zoltan
> 
> On Wed, 22 Jun 2005, Ethan Alpert wrote:
> 
> > I think you need to rerun gdaltindex. I just did a dbf dump of mine and
> > realized that the paths to the tiles are absolute paths. Not sure if
> > there's a way to construct relative path tileindexes.
> >
> > Anyone?
> >
> > -e
> >
> > -----Original Message-----
> > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On
> > Behalf Of Yar Doroshenko
> > Sent: Tuesday, June 21, 2005 9:32 PM
> > To: MAPSERVER-USERS at lists.umn.edu
> > Subject: [UMN_MAPSERVER-USERS] indexed tif images do not display
> >
> >
> > Hi Guys,
> >
> > I have created a tile index for my tif images using gdaltindex.
> > Everything works fine on my workstation, I declared a raster in my
> > mapfile. Everything worked great. Next, I copied the tif files, index
> > files and layer definition to my manager's workstation to their
> > corresponding locations. Now, both of the workstations are configured
> > the same way, but my tifs do not display on the manager's workstation.
> >
> > Any piece of advice on what could go wrong?
> >
> > Thank you,
> >
> >
> > Yar
> >
> 
> 
> 



More information about the mapserver-users mailing list