So gdalinfo with Upper Left  (    0.0,    0.0) etc. means that gdal cannot get 
the correct georeferencing for your images. They are placed at coordinates 
(0,0) instead and then the WMS BBOX does not intersect the image area and 
server is sending a white map for you. And "ERROR 1: Maximum number of 
characters allowed reached." suggests that for some part of the system the file 
path is too long.  I have never seen such an error but I would still take it 
seriously and have a try placing the images into a a place like 
/mnt/pathtest/image_01.ecw

-Jukka Rahkonen-
________________________________
Lähettäjä: Simon Mercier [[email protected]]
Lähetetty: 28. syyskuuta 2011 20:36
Vastaanottaja: Rahkonen Jukka
Kopio: [email protected]
Aihe: Re: [mapserver-users] TILEINDEX layer problem mapserver 6.0.1

Hi,

here:

simmer01@sigtest:~$ gdalinfo /mnt/EntrepotImageJPG/
BDImages_JPG_1M/ECW/Images_AN2000_MTM07_MRN_100cm/05400_00800054f07_u.ecw
ERROR 1: Maximum number of characters allowed reached.
Driver: ECW/ERDAS Compressed Wavelets (SDK 3.x)
Files: 
/mnt/EntrepotImageJPG/BDImages_JPG_1M/ECW/Images_AN2000_MTM07_MRN_100cm/05400_00800054f07_u.ecw

       
/mnt/EntrepotImageJPG/BDImages_JPG_1M/ECW/Images_AN2000_MTM07_MRN_100cm/05400_00800054f07_u.ecw.aux.xml
Size is 8000, 8000
Coordinate System is:
PROJCS["NAD_1983_MTM_7",
    GEOGCS["GCS_North_American_1983",
        DATUM["North_American_Datum_1983",
            SPHEROID["GRS_1980",6378137.0,298.257222101]],
        PRIMEM["Greenwich",0.0],
        UNIT["Degree",0.0174532925199433]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["False_Easting",304800.0],
    PARAMETER["False_Northing",0.0],
    PARAMETER["Central_Meridian",-70.5],
    PARAMETER["Scale_Factor",0.9999],
    PARAMETER["Latitude_Of_Origin",0.0],
    UNIT["Meter",1.0]]
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0, 8000.0)
Upper Right ( 8000.0,    0.0)
Lower Right ( 8000.0, 8000.0)
Center      ( 4000.0, 4000.0)
Band 1 Block=8000x1 Type=Byte, ColorInterp=Gray
  Overviews: 4000x4000, 2000x2000, 1000x1000, 500x500, 250x250


2011/9/28 Rahkonen Jukka 
<[email protected]<mailto:[email protected]>>
Hi,

Could you send also a gdalinfo report about one of the your .ecw images?

-Jukka Rahkonen-


________________________________
Lähettäjä: Simon Mercier 
[[email protected]<mailto:[email protected]>]
Lähetetty: 28. syyskuuta 2011 19:55
Vastaanottaja: Rahkonen Jukka
Kopio: [email protected]<mailto:[email protected]>
Aihe: Re: VS: [mapserver-users] TILEINDEX layer problem mapserver 6.0.1

Thank you for your reply Jukka

I tried but still dont work.  My raster is ecw file with an .xml file for the 
spatial reference specification.  I try to add a .wld extension but no result.  
If I remove the WMS_EXTENT tag, no raster appears on my map.  In my previous 
message you can see the raster index shapefile.  Realy strange !

/mnt/EntrepotImageJPG/BDImages_JPG_1M/ECW/Images_AN2000_MTM07_MRN_100cm/05400_00800054f07_u.ecw
/mnt/EntrepotImageJPG/BDImages_JPG_1M/ECW/Images_AN2000_MTM07_MRN_100cm/05400_00800054f07_u.ecw.aux.xml
/mnt/EntrepotImageJPG/BDImages_JPG_1M/ECW/Images_AN2000_MTM07_MRN_100cm/05400_00800054f07_u.wld


My log with NO  WMS_EXTENT
[Wed Sep 28 12:52:38 2011].74323 msDrawRasterLayerLow(T_AN2000_MTM7): entering.
[Wed Sep 28 12:52:38 2011].90072 msResampleGDALToMap(): no overlap ... no 
result.
[Wed Sep 28 12:52:38 2011].156145 msResampleGDALToMap(): no overlap ... no 
result.
[Wed Sep 28 12:52:38 2011].224133 msResampleGDALToMap(): no overlap ... no 
result.
[Wed Sep 28 12:52:38 2011].280705 msDrawMap(): Layer 0 (T_AN2000_MTM7), 0.211s

My log with WMS_EXTENT
[Wed Sep 28 12:53:32 2011].877755 msDrawRasterLayerLow(T_AN2000_MTM7): entering.
[Wed Sep 28 12:53:32 2011].895340 msResampleGDALToMap in effect: cellsize = 
36.250000
[Wed Sep 28 12:53:32 2011].896076 msDrawGDAL(T_AN2000_MTM7): using 
RAW_WINDOW=2618 4796 188 102<tel:4796%20188%20102>, dst=0,0,188,102
[Wed Sep 28 12:53:32 2011].896184 msDrawRasterLayerGDAL(): red,green,blue,alpha 
bands = 1,0,0,0
[Wed Sep 28 12:53:33 2011].149187 msResampleGDALToMap in effect: cellsize = 
36.250000
[Wed Sep 28 12:53:33 2011].149416 msDrawGDAL(T_AN2000_MTM7): using 
RAW_WINDOW=2618 4796 188 102, dst=0,0,188,102
[Wed Sep 28 12:53:33 2011].149445 msDrawRasterLayerGDAL(): red,green,blue,alpha 
bands = 1,0,0,0
[Wed Sep 28 12:53:33 2011].268406 msResampleGDALToMap in effect: cellsize = 
36.250000
[Wed Sep 28 12:53:33 2011].268784 msDrawGDAL(T_AN2000_MTM7): using 
RAW_WINDOW=2618 4796 188 102, dst=0,0,188,102
[Wed Sep 28 12:53:33 2011].268825 msDrawRasterLayerGDAL(): red,green,blue,alpha 
bands = 1,0,0,0
[Wed Sep 28 12:53:33 2011].444422 msDrawMap(): Layer 0 (T_AN2000_MTM7), 0.571s



2011/9/28 Rahkonen Jukka 
<[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>
Hi,

It must come from this new feature, capture from 
http://mapserver.org/ogc/wms_server.html

"wms_extent
WMS TAG Name: BoundingBox (WMS1.1.1, sect. 6.5.6)
Description: (Optional) Used for the layer’s BoundingBox tag for cases where it 
is impossible (or very inefficient) for MapServer to probe the data source to 
figure its extents. The value for this metadata is “minx miny maxx maxy” 
separated by spaces, with the values in the layer’s projection units. If 
wms_extent is provided then it has priority and MapServer will NOT try to read 
the source file’s extents.
For Rasters served through WMS, MapServer can now use the wms_extent metadata 
parameter to register the image. If a .wld file cannot be found, MapServer will 
then look for the wms_extent metadata parameter and use the extents of the 
image and the size of the image for georegistration"
I would first remove the EXTENT from LAYER and wms_extent from layer metadata 
and see what happens then. You would get a visual hint about what happens by 
making the tileindex shapefile as a normal vector polygon layer and by showing 
it above the imagery layer.

-Jukka Rahkonen-

 Simon Mercier  wrote:

 > Hi list, I try to migrate a map service to Mapserver 6.0.1 that work 
 > perfectly with a Mapserver 5.0.3 and I have a strange behavior with a 
 > TILEINDEX layer.  If you look the picture(in yellow you have the raster 
 > coverage)(http://mapcoop.org/www-demo/bugorthos.JPG), you see that my image 
 > coverage is not the same scale? The raster coverage fit exactly with the 
 > WMS_EXTENT tag of my TILEINDEX layer.  Moreover, if I comment the WMS_EXTENT 
 > tag no raster appears in my map.  Images are ECW files and projection is 
 > EPSG:32187.  The GETMAP is EPSG:32198.  I had to compile GDAL 1.8.0 to use 
 > ECW driver.  Did I miss something?  Where should I look?

/cgi-bin/orthos_sim?REQUEST=
GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=T_AN2000_MTM7&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:32198&BBOX=-452656.626506024,-11030.1204819277,279310.277253593,647379.518072289&WIDTH=1015&HEIGHT=913

MAP
   NAME "orthos_sim"
   EXTENT -1100000 -23500 1100000 2253500
   CONFIG MS_ERRORFILE         "/var/services/mapserv/logs/mapserv-sim.log"
   WEB
       QUERYFORMAT "text/xml"
       BROWSEFORMAT "text/xml"
       IMAGEPATH   "/tmp/"
       IMAGEURL    "/ms_tmp/"
       METADATA
           "wms_title"                      "orthos"
           "wms_abstract"                "Service web d'imagerie Orthosphoto"
           "wms_description"             "Ce service "
           "wms_keywordlist"             "orthophotographie"
           "wms_onlineresource"         "http://sigdev/cgi-bin/orthos_sim?";
           "wms_server_version"                    "1.1.1"
           "wms_format"                            "image/png"
           "wms_getcontext_enabled"                "1"
           "ows_enable_request"                    "*"
       END
   END
   PROJECTION
       "init=epsg:32198"
   END
       LAYER
               NAME "T_AN2000_MTM7"
               TYPE RASTER
               debug 5
               EXTENT 160000 4960000 450000 5450000
               TILEINDEX "/var/www/wms/tmp/AN2000_MTM07.shp"
               TILEITEM "location"
               METADATA
                       "wms_title"    "T_AN2000_MTM7"
                       "wms_name"  "an 2000 mtm 07"
                       "wms_kaywordlist"  "orthos"
                       "wms_abstract"  "Couche d'orthos"
                       "wms_srs"    "EPSG:32198 EPSG:900913 EPSG:32184 
EPSG:32186 EPSG:32187 EPSG:32188 EPSG:32189 EPSG:32190"
                       "wms_extent"   "160000 4960000 450000 5450000"
               END
               PROJECTION
                       "init=epsg:32187"
               END
       END
END

--
Simon Mercier
Saint-Nicolas, QC
Canada G7A 4Y2
www.mgeospatial.com<http://www.mgeospatial.com><http://www.mgeospatial.com/>
linkedIn : http://ca.linkedin.com/in/simonmercier
twitter : http://twitter.com/simonmercier



--
Simon Mercier

LinkedIn : http://ca.linkedin.com/in/simonmercier
Twitter : http://twitter.com/simonmercier




--
Simon Mercier

LinkedIn : http://ca.linkedin.com/in/simonmercier
Twitter : http://twitter.com/simonmercier

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to