Re: [mapserver-users] !-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --
Avin, I am not sure I completely understand your question. Are you looking for IMAGEPATH and IMAGEURL in the WEB section of the mapfile? http://mapserver.org/mapfile/web.html David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of avin mohanza Sent: Wednesday, July 31, 2013 6:50 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] !-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE -- i am working on a mapserver template, i want to change the [img] but i dont know what to change.. i have changed it into the location of my map image. and also change it into location of temporary directories where the image stored. i have seen the example on the internet, they change it with the directory where the image map is produced in temporary directoy. input type=image name=img src=[img] width=400 height=300 border=0/input -- View this message in context: http://osgeo-org.1560.x6.nabble.com/DISPLAY-THE-MAPSERVER-CREATED-MAP-IMAGE-tp5069882.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ 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] tif tile not visible
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=WGS84END OUTPUTFORMATNAMEpng DRIVER GD/PNGMIMETYPEimage/png IMAGEMODE RGBAEXTENSION png END WEB #IMAGEPATH /home/www/gis/tmp/IMAGEPATH /media/D_Drive/www/gis/tmp/ IMAGEURLgis/tmp/ END LAYER DATAOCEAN_LatLonD_region // Shape file renders NAMEOCEAN TYPEPOLYGON STATUS ON CLASS STYLE COLOR 153 255 255 #99B3CC END END PROJECTION +proj=longlat +ellps=WGS84END END LAYER NAMETerrain_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 NAMETerrain_Tiles // tif raster layer not visible TILEINDEX NEDTiles.shp TILEITEM location TYPERASTER STATUS ON OPACITY 100 MAXSCALEDENOM 82500 PROJECTION +proj=longlat +ellps=WGS84END 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
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
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
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
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