[mapserver-users] tif tile not visible

2013-07-31 Thread Michael McInnis
Dear Mapserver List,
I'm migrating some .php/.map files from mapserver 5 to mapserver 6.2.1 and hit 
a snag with one of my map layers.Below is the generic.map file and the OCEAN 
shapefile as well as Terrain_250 tif image layers display fine. When I try the 
Terrain_Tiles layer I don't see the tile image rendered. This seems to have a 
tile index shape file that exists which has a polygon grid of "location" paths 
to the corresponding tif tile, all of which appear to exist and have the wide 
open permissions.I can display the shape file and referenced tif tiles in QGIS 
so I know all the data is good. 
Am I missing something to establish this shapefile --> tif tile linkage?
Thanks
MAP EXTENT  -180 -90 180 90 IMAGECOLOR  153 179 204 
IMAGETYPE   PNG24   SHAPEPATH   data/   FONTSET 
data/fonts/fonts.list   UNITS   MILES   SIZE 1000 1000  # Added 
PROJECTION  #"+proj=mill +units=m"  "+proj=longlat 
+ellps=WGS84"END OUTPUTFORMATNAMEpng
 DRIVER  "GD/PNG"MIMETYPE"image/png"
 IMAGEMODE   RGBAEXTENSION   "png"   END
 WEB #IMAGEPATH  "/home/www/gis/tmp/"IMAGEPATH  
 "/media/D_Drive/www/gis/tmp/"   IMAGEURL"gis/tmp/"  END
LAYER   DATA"OCEAN_LatLonD_region"  
  // Shape file renders NAME"OCEAN" 
TYPEPOLYGON STATUS  ON  CLASS   
STYLE   COLOR   153 255 255 #99B3CC 
END END PROJECTION  
"+proj=longlat +ellps=WGS84"END END LAYER   
NAME"Terrain_250"   
 // tif raster layer rendersDATA
"250K_US_HiRes_LatLong.tif" TYPERASTER  STATUS  
ON  OPACITY 50  #MINSCALEDENOM  82500   
PROJECTION  "+proj=longlat +ellps=WGS84"
END END LAYER   NAME"Terrain_Tiles" 
// tif raster layer not visible 
TILEINDEX   "NEDTiles.shp"  TILEITEM
"location"  TYPERASTER  STATUS  
ON  OPACITY 100 MAXSCALEDENOM   82500   
PROJECTION  "+proj=longlat +ellps=WGS84"END 
ENDEND
QUERYMAPSTATUS  ON  STYLE   HILITEEND

Michael McInnis
6033 44th Ave. N.E.
Seattle, WA 98115
206 517-4701  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] tif tile not visible

2013-07-31 Thread Jeff McKenna
On 2013-07-31 5:05 PM, Michael McInnis wrote:
> Dear Mapserver List,
> 
> I'm migrating some .php/.map files from mapserver 5 to mapserver 6.2.1
> and hit a snag with one of my map layers.
> Below is the generic.map file and the OCEAN shapefile as well as
> Terrain_250 tif image layers display fine. When I try the Terrain_Tiles
> layer I don't see the tile image rendered. This seems to have a tile
> index shape file that exists which has 
> a polygon grid of "location" paths to the corresponding tif tile, all of
> which appear to exist and have the wide open permissions.
> I can display the shape file and referenced tif tiles in QGIS so I know
> all the data is good. 
> 
> Am I missing something to establish this shapefile --> tif tile linkage?
> 

Try using shp2img with the -all_debug 5 switch on your mapefile and then
analyze the messages.  Likely the location paths + shapepath is off.
Give it a look.

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/


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


Re: [mapserver-users] tif tile not visible

2013-07-31 Thread Rahkonen Jukka
Hi,

My first bet is that the reason is in
MAXSCALEDENOM 82500
You must zoom pretty close for turning this layer on. Other possibility is that 
location field points to a relative or absolute file location which is not 
valid for your test system.

Add DEBUG 5 into your layer and MS_ERRORFILE into your map and you will get 
more into into your log. And it would make your mapfile easier to read if you 
keep the keywords and values in same line.

-Jukka Rahkonen-


Michael McInnis wrote:

> Dear Mapserver List,

> I'm migrating some .php/.map files from mapserver 5 to mapserver 6.2.1 and 
> hit a snag with one of my map layers.
> Below is the generic.map file and the OCEAN shapefile as well as Terrain_250 
> tif image layers display fine. When I try the Terrain_Tiles layer I don't see 
> the tile image rendered. This seems to have a tile index shape file that 
> exists which has
a polygon grid of "location" paths to the corresponding tif tile, all of which 
appear to exist and have the wide open permissions.
> I can display the shape file and referenced tif tiles in QGIS so I know all 
> the data is good.

> Am I missing something to establish this shapefile --> tif tile linkage?

> Thanks

MAP
EXTENT -180 -90 180 90
IMAGECOLOR 153 179 204
IMAGETYPE PNG24
SHAPEPATH data/
FONTSET data/fonts/fonts.list
UNITS MILES
SIZE 1000 1000 # Added
PROJECTION
  #"+proj=mill +units=m"
"+proj=longlat +ellps=WGS84"
END
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
END
WEB
#IMAGEPATH "/home/www/gis/tmp/"
IMAGEPATH "/media/D_Drive/www/gis/tmp/"
IMAGEURL "gis/tmp/"
END

LAYER
DATA "OCEAN_LatLonD_region"// Shape file renders
NAME "OCEAN"
TYPE POLYGON
STATUS ON
CLASS
STYLE
COLOR 153 255 255 #99B3CC
END
END
PROJECTION
  "+proj=longlat +ellps=WGS84"
END
END
LAYER
NAME "Terrain_250"// tif 
raster layer renders
DATA "250K_US_HiRes_LatLong.tif"
TYPE RASTER
STATUS ON
OPACITY 50
#MINSCALEDENOM 82500
PROJECTION
  "+proj=longlat +ellps=WGS84"
END
END
LAYER
NAME "Terrain_Tiles" // tif 
raster layer not visible
TILEINDEX "NEDTiles.shp"
TILEITEM "location"
TYPE RASTER
STATUS ON
OPACITY 100
MAXSCALEDENOM 82500
PROJECTION
  "+proj=longlat +ellps=WGS84"
END
END
END

QUERYMAP
STATUS ON
STYLE HILITE
END


Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] tif tile not visible

2013-07-31 Thread Michael McInnis
I got the error log working and it says "Unable to access file. Corrupt, empty 
or missing file '/blah/blah/blah/33114.TIF' which I can copy the path and cd to 
fine. I can display that tif in QGIS.
I don't need to install tilecache to get this map layer to work do I?

Michael McInnis
6033 44th Ave. N.E.
Seattle, WA 98115
206 517-4701

> From: jukka.rahko...@mmmtike.fi
> To: mmcinni...@msn.com; mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] tif tile not visible
> Date: Wed, 31 Jul 2013 20:41:00 +
> 
> Hi,
> 
> My first bet is that the reason is in
> MAXSCALEDENOM 82500
> You must zoom pretty close for turning this layer on. Other possibility is 
> that location field points to a relative or absolute file location which is 
> not valid for your test system.
> 
> Add DEBUG 5 into your layer and MS_ERRORFILE into your map and you will get 
> more into into your log. And it would make your mapfile easier to read if you 
> keep the keywords and values in same line.
> 
> -Jukka Rahkonen-
> 
> 
> Michael McInnis wrote:
> 
> > Dear Mapserver List,
> 
> > I'm migrating some .php/.map files from mapserver 5 to mapserver 6.2.1 and 
> > hit a snag with one of my map layers.
> > Below is the generic.map file and the OCEAN shapefile as well as 
> > Terrain_250 tif image layers display fine. When I try the Terrain_Tiles 
> > layer I don't see the tile image rendered. This seems to have a tile index 
> > shape file that exists which has
> a polygon grid of "location" paths to the corresponding tif tile, all of 
> which appear to exist and have the wide open permissions.
> > I can display the shape file and referenced tif tiles in QGIS so I know all 
> > the data is good.
> 
> > Am I missing something to establish this shapefile --> tif tile linkage?
> 
> > Thanks
> 
> MAP
> EXTENT -180 -90 180 90
> IMAGECOLOR 153 179 204
> IMAGETYPE PNG24
> SHAPEPATH data/
> FONTSET data/fonts/fonts.list
> UNITS MILES
> SIZE 1000 1000 # Added
> PROJECTION
>   #"+proj=mill +units=m"
> "+proj=longlat +ellps=WGS84"
> END
> OUTPUTFORMAT
> NAME png
> DRIVER "GD/PNG"
> MIMETYPE "image/png"
> IMAGEMODE RGBA
> EXTENSION "png"
> END
> WEB
> #IMAGEPATH "/home/www/gis/tmp/"
> IMAGEPATH "/media/D_Drive/www/gis/tmp/"
> IMAGEURL "gis/tmp/"
> END
> 
> LAYER
> DATA "OCEAN_LatLonD_region"// Shape file 
> renders
> NAME "OCEAN"
> TYPE POLYGON
> STATUS ON
> CLASS
> STYLE
> COLOR 153 255 255 #99B3CC
> END
> END
> PROJECTION
>   "+proj=longlat +ellps=WGS84"
> END
> END
> LAYER
> NAME "Terrain_250"// tif 
> raster layer renders
> DATA "250K_US_HiRes_LatLong.tif"
> TYPE RASTER
> STATUS ON
> OPACITY 50
> #MINSCALEDENOM 82500
> PROJECTION
>   "+proj=longlat +ellps=WGS84"
> END
> END
> LAYER
> NAME "Terrain_Tiles" // 
> tif raster layer not visible
> TILEINDEX "NEDTiles.shp"
> TILEITEM "location"
> TYPE RASTER
> STATUS ON
> OPACITY 100
> MAXSCALEDENOM 82500
> PROJECTION
>   "+proj=longlat +ellps=WGS84"
> END
> END
> END
> 
> QUERYMAP
> STATUS ON
> STYLE HILITE
> END
> 
> 
> Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] tif tile not visible

2013-07-31 Thread Rahkonen Jukka
Hi,

Error means that for some reason Mapserver does not find the file from path 
/blah/blah/blah/33114.TIF. I am not sure why.  I would create a new tileindex 
file with gdaltindex tool by using the -write_absolute_path switch 
http://www.gdal.org/gdaltindex.html
There is nothing more to do than making the tileindex file to work and find the 
real images.

-Jukka Rahkonen-

 Michael McInnis wrote.

> I got the error log working and it says "Unable to access file. Corrupt, 
> empty or missing file '/blah/blah/blah/33114.TIF' which I can copy the path 
> and cd to fine. I can display that tif in QGIS.

> I don't need to install tilecache to get this map layer to work do I?

Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701

> From: jukka.rahko...@mmmtike.fi
> To: mmcinni...@msn.com; mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] tif tile not visible
> Date: Wed, 31 Jul 2013 20:41:00 +
>
> Hi,
>
> My first bet is that the reason is in
> MAXSCALEDENOM 82500
> You must zoom pretty close for turning this layer on. Other possibility is 
> that location field points to a relative or absolute file location which is 
> not valid for your test system.
>
> Add DEBUG 5 into your layer and MS_ERRORFILE into your map and you will get 
> more into into your log. And it would make your mapfile easier to read if you 
> keep the keywords and values in same line.
>
> -Jukka Rahkonen-
>
> 
> Michael McInnis wrote:
>
> > Dear Mapserver List,
>
> > I'm migrating some .php/.map files from mapserver 5 to mapserver 6.2.1 and 
> > hit a snag with one of my map layers.
> > Below is the generic.map file and the OCEAN shapefile as well as 
> > Terrain_250 tif image layers display fine. When I try the Terrain_Tiles 
> > layer I don't see the tile image rendered. This seems to have a tile index 
> > shape file that exists which has
> a polygon grid of "location" paths to the corresponding tif tile, all of 
> which appear to exist and have the wide open permissions.
> > I can display the shape file and referenced tif tiles in QGIS so I know all 
> > the data is good.
>
> > Am I missing something to establish this shapefile --> tif tile linkage?
>
> > Thanks
>
> MAP
> EXTENT -180 -90 180 90
> IMAGECOLOR 153 179 204
> IMAGETYPE PNG24
> SHAPEPATH data/
> FONTSET data/fonts/fonts.list
> UNITS MILES
> SIZE 1000 1000 # Added
> PROJECTION
> #"+proj=mill +units=m"
> "+proj=longlat +ellps=WGS84"
> END
> OUTPUTFORMAT
> NAME png
> DRIVER "GD/PNG"
> MIMETYPE "image/png"
> IMAGEMODE RGBA
> EXTENSION "png"
> END
> WEB
> #IMAGEPATH "/home/www/gis/tmp/"
> IMAGEPATH "/media/D_Drive/www/gis/tmp/"
> IMAGEURL "gis/tmp/"
> END
>
> LAYER
> DATA "OCEAN_LatLonD_region" // Shape file renders
> NAME "OCEAN"
> TYPE POLYGON
> STATUS ON
> CLASS
> STYLE
> COLOR 153 255 255 #99B3CC
> END
> END
> PROJECTION
> "+proj=longlat +ellps=WGS84"
> END
> END
> LAYER
> NAME "Terrain_250" // tif raster layer renders
> DATA "250K_US_HiRes_LatLong.tif"
> TYPE RASTER
> STATUS ON
> OPACITY 50
> #MINSCALEDENOM 82500
> PROJECTION
> "+proj=longlat +ellps=WGS84"
> END
> END
> LAYER
> NAME "Terrain_Tiles" // tif raster layer not visible
> TILEINDEX "NEDTiles.shp"
> TILEITEM "location"
> TYPE RASTER
> STATUS ON
> OPACITY 100
> MAXSCALEDENOM 82500
> PROJECTION
> "+proj=longlat +ellps=WGS84"
> END
> END
> END
>
> QUERYMAP
> STATUS ON
> STYLE HILITE
> END
>
>
> Michael McInnis 6033 44th Ave. N.E. Seattle, WA 98115 206 517-4701
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users