Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site. Si vous continuez à utiliser ce dernier, nous considèrerons que vous acceptez l'utilisation des cookies. J'ai compris ! ou En savoir plus !.
banniere

Le portail francophone de la géomatique


Toujours pas inscrit ? Mot de passe oublié ?
Nom d'utilisateur    Mot de passe              Toujours pas inscrit ?   Mot de passe oublié ?

Annonce

Printemps des cartes 2024

#1 Tue 30 March 2010 11:25

j-ben
Participant occasionnel
Lieu: Toulouse
Date d'inscription: 10 Sep 2008
Messages: 16

[mapserver+gdaltindex] msTiledSHPTryOpen(): Unable to access file

Bonjour, je suis sur un Ubuntu Server 8.04 virtualisé.

J'ai recompilé gdal avec l'ecw et mapserveur avec ce gdal.

Mes images sont sur un disque sur le réseau que je monte de la façon suivante.

Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda1
UUID=47427382-bb3f-46e0-b40f-8a4cf15afbc0 /               ext3    relatime,errors=remount-ro 0       1
# /dev/sda5
UUID=e9b01e34-13ef-480b-a9d3-9aac5528793d none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
//gamelle/sigcarto    /mnt    cifs    username=username,workgroup=workgroup,password=password,uid=uid  1    2

J'arrive à accéder de manière unitaire aux images présentes dans ce disque.

Code:

    LAYER
        NAME "scan1000"
        DATA "/mnt/POLE_STAT_INFO_GEO/SIG/BD_GEO/Petite_Echelle/IGN/Scan1000/2009/SC1000_0050_7130_L93.TIF"
        TYPE RASTER
        STATUS ON
        
        PROJECTION
            'proj=lcc'
            'lat_1=49'
            'lat_2=44'
            'lat_0=46.5'
            'lon_0=3'
            'x_0=700000'
            'y_0=6600000'
            'ellps=GRS80'
            'towgs84=0,0,0,0,0,0,0'
            'units=m'
            'no_defs'
        END
        METADATA
              'ows_title' 'scan1000'
              'ows_include_items' 'ALL'
           END
    END

Lorsque je construis un index d'image avec gdaltindex, il est impossible à Mapserver d'accéder aux images (cf pièce-jointe)

Code:

    LAYER
        NAME "scanreg"
        STATUS ON
        TYPE LINE
        TILEINDEX "/var/www/index_scanreg.shp"
        TILEITEM "LOCATION"
        PROJECTION
            'proj=lcc'
            'lat_1=49'
            'lat_2=44'
            'lat_0=46.5'
            'lon_0=3'
            'x_0=700000'
            'y_0=6600000'
            'ellps=GRS80'
            'towgs84=0,0,0,0,0,0,0'
            'units=m'
            'no_defs'
        END
        METADATA
              'ows_title' 'scanreg'
              'ows_include_items' 'ALL'
        END
    END

Merci de me renseigner sur ce comportement plus qu'inattendue.

Cordialement.

J-ben

Dernière modification par j-ben (Tue 30 March 2010 11:26)


Fichier(s) joint(s) :
Pour accéder aux fichiers vous devez vous inscrire.

Le savoir est la seul chose qui augmente quand on le partage.
J'aimerai bien changer le monde, mais pas moyen de mettre la main sur le code source ...

Hors ligne

 

#2 Tue 30 March 2010 14:40

tiolebucheron
Participant actif
Lieu: Rouen
Date d'inscription: 26 Mar 2006
Messages: 147

Re: [mapserver+gdaltindex] msTiledSHPTryOpen(): Unable to access file

Bonjour

Regarde ton fichier DBF. Le chemin de ton TileIndex est surement incorrect. Utilise les liens logiques pour le reconstituer.


Tio

Dernière modification par tiolebucheron (Tue 30 March 2010 14:42)

Hors ligne

 

#3 Tue 30 March 2010 15:35

j-ben
Participant occasionnel
Lieu: Toulouse
Date d'inscription: 10 Sep 2008
Messages: 16

Re: [mapserver+gdaltindex] msTiledSHPTryOpen(): Unable to access file

Voici l'explorateur sur le dossier cible et le bdf. Il me semble correct tous les deux mais l'erreur persiste. Ci joint les comandes 'ln et gdaltindex' que j'ai tapé.

Code:

moi@os:/var/www$ ln /mnt/ .... /SC25_TOUR_ECW_LAMB93_D14/ /home/sig/data/raster/scan25_14
moi@os:/var/www$ gdaltindex  index_scan25_14.shp  /home/sig/data/raster/scan25_14/*.ecw
ERROR 4: Unable to open index_scan25_14.shp or index_scan25_14.SHP.
Creating new index file...
moi@os:/var/www$

merci

Dernière modification par j-ben (Tue 30 March 2010 15:38)


Fichier(s) joint(s) :
Pour accéder aux fichiers vous devez vous inscrire.

Le savoir est la seul chose qui augmente quand on le partage.
J'aimerai bien changer le monde, mais pas moyen de mettre la main sur le code source ...

Hors ligne

 

#4 Tue 30 March 2010 15:43

tiolebucheron
Participant actif
Lieu: Rouen
Date d'inscription: 26 Mar 2006
Messages: 147

Re: [mapserver+gdaltindex] msTiledSHPTryOpen(): Unable to access file

Peux tu faire un head index_scan25_14.dbf!!
Tio.

Hors ligne

 

#5 Tue 30 March 2010 15:47

j-ben
Participant occasionnel
Lieu: Toulouse
Date d'inscription: 10 Sep 2008
Messages: 16

Re: [mapserver+gdaltindex] msTiledSHPTryOpen(): Unable to access file

voilà la sortie

Code:

moi@os:/var/www$ head index_scan25_14.dbf
 /home/sig/data/raster/scan25_14/SC25_TOUR_0390_6870_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0390_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0390_6920_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0390_6930_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0400_6860_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0400_6870_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0400_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0400_6890_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0400_6910_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0400_6920_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0400_6930_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0400_6940_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0400_6950_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0410_6860_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0410_6870_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0410_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0410_6890_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0410_6900_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0410_6910_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0410_6920_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0410_6930_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0420_6860_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0420_6870_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0420_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0420_6890_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0420_6900_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0420_6910_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0420_6920_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0420_6930_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0430_6870_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0430_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0430_6890_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0430_6900_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0430_6910_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0430_6920_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0430_6930_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0440_6870_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0440_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0440_6890_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0440_6900_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0440_6910_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0440_6920_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0440_6930_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0450_6870_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0450_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0450_6890_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0450_6900_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0450_6910_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0450_6920_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0450_6930_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0460_6870_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0460_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0460_6890_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0460_6900_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0460_6910_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0460_6920_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0470_6870_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0470_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0470_6890_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0470_6900_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0470_6910_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0470_6920_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0480_6870_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0480_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0480_6890_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0480_6900_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0480_6910_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0480_6920_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0480_6930_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0480_6940_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0490_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0490_6890_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0490_6900_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0490_6910_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0490_6920_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0490_6930_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0490_6940_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0500_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0500_6890_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0500_6900_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0500_6910_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0500_6920_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0500_6930_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0510_6880_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0510_6890_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0510_6900_L93.ecw                                                                                                                                                                                                     /home/sig/data/raster/scan25_14/SC25_TOUR_0510_6910_L93.ecw                                                                                                                                                                                                    sig@applissig:/var/www$

Le savoir est la seul chose qui augmente quand on le partage.
J'aimerai bien changer le monde, mais pas moyen de mettre la main sur le code source ...

Hors ligne

 

#6 Tue 30 March 2010 16:00

tiolebucheron
Participant actif
Lieu: Rouen
Date d'inscription: 26 Mar 2006
Messages: 147

Re: [mapserver+gdaltindex] msTiledSHPTryOpen(): Unable to access file

as tu fait un gdalinfo --formats | grep ECW.

AH!!

regarde ton
SHAPEPATH '/var/www/websig/data/'

Il regarde les données à partir de cette adresse.
si tu as mis "/var/www/" il va pointer sur /var/www/home/sig/data/raster/scan25_14/SC25_TOUR_0390_6870_L93.ecw 

Regarde de ce coté.
Tio

Hors ligne

 

#7 Tue 30 March 2010 16:23

j-ben
Participant occasionnel
Lieu: Toulouse
Date d'inscription: 10 Sep 2008
Messages: 16

Re: [mapserver+gdaltindex] msTiledSHPTryOpen(): Unable to access file

j'arrive à accéder individuellement à toutes les images avec mapserver en passant :
par le point de montage /mnt
par le lien logique /home/sig/data/...
que les images soient tif ou ecw

mais impossible dès qu'il sagit de passer par le shape généré par gdaltindex

J'ai mis SHAPEPATH "/" comme ça pas de souci. J'ai mis les adresses complètes des répertoire et des fichier. J'ai toujours la même erreur.


pour info

Code:

moi@os:/var/www$ gdalinfo --formats | grep ECW
  ECW (rw): ERMapper Compressed Wavelets
  JP2ECW (rw+): ERMapper JPEG2000
moi@os:/var/www$

merci
j-ben

Dernière modification par j-ben (Tue 30 March 2010 16:34)


Le savoir est la seul chose qui augmente quand on le partage.
J'aimerai bien changer le monde, mais pas moyen de mettre la main sur le code source ...

Hors ligne

 

#8 Tue 30 March 2010 16:29

tiolebucheron
Participant actif
Lieu: Rouen
Date d'inscription: 26 Mar 2006
Messages: 147

Re: [mapserver+gdaltindex] msTiledSHPTryOpen(): Unable to access file

Essaye de créer ton index dans ton répertoire où se trouve les ecw pour savoir si c'est un problème de path!.

Tio

Hors ligne

 

#9 Tue 30 March 2010 16:48

j-ben
Participant occasionnel
Lieu: Toulouse
Date d'inscription: 10 Sep 2008
Messages: 16

Re: [mapserver+gdaltindex] msTiledSHPTryOpen(): Unable to access file

j'ai créé l'index dans /home/sig/data/raster/scan25_14/ qui est un lien du repertoire ou sont stoqué les images. Le dbf de l'index ne contient que les nom de fichier ecw, sans répertoire.

Code:

sig@applissig:~/data/raster/scan25_14$ gdaltindex index_scan25_14.shp *.ecw
ERROR 4: Unable to open index_scan25_14.shp or index_scan25_14.SHP.
Creating new index file...
sig@applissig:~/data/raster/scan25_14$ head index_scan25_14.dbf
 SC25_TOUR_0390_6870_L93.ecw                                                                                                                                                                                                                                     SC25_TOUR_0390_6880_L93.ecw                                                                                                                                                                                                                                     SC25_TOUR_0390_6920_L93.ecw                                                                                                                                                                                                                                     SC25_TOUR_0390_6930_L93.ecw                                                                                                                                                                                                                                     SC25_TOUR_0400_6860_L93.ecw                                                                                                                                                                                                                                     SC25_TOUR_0400_6870_L93.ecw                                                                                                                                                                                                                                     SC25_TOUR_0400_6880_L93.ecw                                                                                                                                                                                                                                     SC25_TOUR_0400_6890_L93.ecw                                                                                                                                                                                                                                     SC25_TOUR_0400_6910_L93.ecw                                                                                                                                                                                                                                     SC25_TOUR_0400_6920_L93.ecw                                                                                                                                                                                                                                     SC25_TOUR_0400_6930_L93.ecw

puis dans le mapfile :

Code:

    ....

    SHAPEPATH        "/" 

    ....

    LAYER 
        NAME "scan25_14" 
        STATUS ON 
        TYPE LINE 
        TILEINDEX "/home/sig/data/raster/scan25_14/index_scan25_14.shp" 
        TILEITEM "LOCATION" 
        PROJECTION 
            'proj=lcc' 
            'lat_1=49' 
            'lat_2=44' 
            'lat_0=46.5' 
            'lon_0=3' 
            'x_0=700000' 
            'y_0=6600000' 
            'ellps=GRS80' 
            'towgs84=0,0,0,0,0,0,0' 
            'units=m' 
            'no_defs' 
        END 
        METADATA 
              'ows_title' 'scan25_14' 
              'ows_include_items' 'ALL' 
         END 
    END

Si c'est suffisant ?

merci Tio,

J-ben


Fichier(s) joint(s) :
Pour accéder aux fichiers vous devez vous inscrire.

Le savoir est la seul chose qui augmente quand on le partage.
J'aimerai bien changer le monde, mais pas moyen de mettre la main sur le code source ...

Hors ligne

 

#10 Tue 30 March 2010 17:35

j-ben
Participant occasionnel
Lieu: Toulouse
Date d'inscription: 10 Sep 2008
Messages: 16

Re: [mapserver+gdaltindex] msTiledSHPTryOpen(): Unable to access file

Bon, j'ai un peu tout réorganisé

le mapfileest dans /home/sig/data/
le shapepath du mapfile est '/home/sig/data/map4.map'

Les images ecw dans /home/sig/data/raster/scan25_14/ grâce à un lien vers /mnt/ ... /SC25_TOUR_ECW_LAMB93_D14/

l'index gdal : /home/sig/data/index_scan25_14.shp ou /home/sig/data/raster/scan25_14/index_scan25_14.shp  => sans succès.

et voilà mon mapfile en entier :

Code:

# Map file created from QGIS project file D:/Quantum_GIS_Enceladus/cartoutils.qgs
# Edit this file to customize for your map interface
# (Created with PyQgis MapServer Export plugin)
MAP
  NAME "Cartoutils"
  # Map image size
  SIZE 1000 1000
  UNITS meters

    EXTENT 99224 6000000 1240000 7110000
    FONTSET        "./fonts/fonts.list"
    SYMBOLSET      "./symbols/symbols35.sym"
    SHAPEPATH        "/home/sig/data/"
      PROJECTION
        'proj=lcc'
        'lat_1=49'
        'lat_2=44'
        'lat_0=46.5'
        'lon_0=3'
        'x_0=700000'
        'y_0=6600000'
        'ellps=GRS80'
        'towgs84=0,0,0,0,0,0,0'
        'units=m'
        'no_defs'
      END


  IMAGECOLOR 193 221 255
  IMAGEQUALITY 95
  IMAGETYPE png

  OUTPUTFORMAT
    NAME png
    DRIVER 'GD/PNG'
    MIMETYPE 'image/png'
    IMAGEMODE RGBA
    EXTENSION 'png'
  END


  LEGEND
      IMAGECOLOR 255 255 255
    STATUS ON
    KEYSIZE 18 12
    LABEL
      TYPE BITMAP
      SIZE MEDIUM
      COLOR 0 0 89
    END
  END

  # Web interface definition. Only the template parameter
  # is required to display a map. See MapServer documentation
  WEB
    # Set IMAGEPATH to the path where MapServer should
    # write its output.
    IMAGEPATH '/tmp/'

    # Set IMAGEURL to the url that points to IMAGEPATH
    # as defined in your web server configuration
    IMAGEURL '/tmp/'

    # WMS server settings
    METADATA
      'ows_title'           'Cartoutils'
      'ows_onlineresource'  'http://mon.host/cgi-bin/mapserv?map=/home/sig/data/map4.map&'
      'ows_srs'             'EPSG:2154'
      "wfs_title"            "Cartoutils wfs"
      "wfs_onlineresource"   "http://mon.host/cgi-bin/mapserv?map=/home/sig/data/map4.map&"  ## Recommended
      "wfs_srs"               "EPSG:2154"  ## Recommended
    END

    #Scale range at which web interface will operate
    # Template and header/footer settings
    # Only the template parameter is required to display a map. See MapServer documentation
        LOG wmslog.log
        TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
  END

    LAYER
        NAME "scan25_14"
        STATUS ON
        TYPE LINE
        TILEINDEX "raster/scan25_14/index_scan25_14.shp"
        TILEITEM "LOCATION"
        PROJECTION
            'proj=lcc'
            'lat_1=49'
            'lat_2=44'
            'lat_0=46.5'
            'lon_0=3'
            'x_0=700000'
            'y_0=6600000'
            'ellps=GRS80'
            'towgs84=0,0,0,0,0,0,0'
            'units=m'
            'no_defs'
        END
        METADATA
              'ows_title' 'scan25_14'
              'ows_include_items' 'ALL'
           END
    END

    LAYER
        NAME "scan25_dalle"
        DATA "raster/scan25_14/SC25_TOUR_0390_6870_L93.ecw"
        TYPE RASTER
        STATUS ON
        
        PROJECTION
            'proj=lcc'
            'lat_1=49'
            'lat_2=44'
            'lat_0=46.5'
            'lon_0=3'
            'x_0=700000'
            'y_0=6600000'
            'ellps=GRS80'
            'towgs84=0,0,0,0,0,0,0'
            'units=m'
            'no_defs'
        END
        METADATA
              'ows_title' 'scan_dalle'
              'ows_include_items' 'ALL'
           END
    END

END

Ci-joint la copie d'écran montrant la réception de la couche scan_dalle et l'erreur de la couche scan25_14

Merci à Toi Tio smile

Dernière modification par j-ben (Tue 30 March 2010 17:41)


Fichier(s) joint(s) :
Pour accéder aux fichiers vous devez vous inscrire.

Le savoir est la seul chose qui augmente quand on le partage.
J'aimerai bien changer le monde, mais pas moyen de mettre la main sur le code source ...

Hors ligne

 

#11 Tue 30 March 2010 18:39

tiolebucheron
Participant actif
Lieu: Rouen
Date d'inscription: 26 Mar 2006
Messages: 147

Re: [mapserver+gdaltindex] msTiledSHPTryOpen(): Unable to access file

Ah!! tu as un soucis dans ton mapfile : Le type est raster.

Code:

    LAYER # CARTE IGN Scan_reg
        NAME "scan_reg"
        GROUP "carte_ign"
        STATUS ON
        TYPE RASTER
        TILEINDEX "ref/ign/scan_reg.shp"
        MINSCALEDENOM 124999 
        #MAXSCALEDENOM 175000
        TILEITEM "location"
        PROJECTION
            "init=epsg:27572"
        END
        METADATA
            "wms_title" "Scan Regional"
            "wms_srs" "EPSG:27572"
        END
    END

Un exemple de mon mapfile.

PS un normand toi aussi!!

Hors ligne

 

#12 Tue 30 March 2010 22:43

j-ben
Participant occasionnel
Lieu: Toulouse
Date d'inscription: 10 Sep 2008
Messages: 16

Re: [mapserver+gdaltindex] msTiledSHPTryOpen(): Unable to access file

Ho, la vache l'erreur trop explicite sad

Merci, Beaucoup big_smile   Je teste  ça demain et espère mettre RÉSOLU demain smile

Oui normand, de Caen.



********
EDIT
********

Bonne solution. MERCI big_smile

Dernière modification par j-ben (Fri 02 April 2010 12:17)


Le savoir est la seul chose qui augmente quand on le partage.
J'aimerai bien changer le monde, mais pas moyen de mettre la main sur le code source ...

Hors ligne

 

Pied de page des forums

Powered by FluxBB