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

GEODATA DAYS 2024

#1 Thu 17 July 2014 16:48

Adri91
Juste Inscrit !
Date d'inscription: 6 May 2013
Messages: 1

[MAPSERVER] Geotiff à bande unique "Gray"

Bonjour.

Je dispose d'un serveur MapServer.
J'y ai publié un raster mais celui-ci s'affiche très mal. En effet, seul le noir apparait. Et seulement des traits fins.
J'ai testé celui-ci sur Q-GIS et la, il est en couleur.
Second test sous GeoServer et miracle, il s'affiche en couleur.
Je ne peux pas utiliser Geoserver car il est bien trop lent. J'ai environ 50000 raster a mettre en place.
Je pense qu'il s'agit d'un élément à ajouter dans le MapFile mais je ne suis pas sur.
Pourriez vous m'aider d'il vous plait.

Voici le gdalinfo de mon tiff :

Code:

Driver: GTiff/GeoTIFF
Files: testTiff.tif
Size is 731, 1028
Coordinate System is:
LOCAL_CS["RGF93 / Lambert-93",
    GEOGCS["RGF93",
        DATUM["unknown",
            SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    AUTHORITY["EPSG","2154"],
    UNIT["metre",1]]
Origin = (651662.025050802160000,6828152.948514731600000)
Pixel Size = (3.072425700148884,-3.072425700148884)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  651662.025, 6828152.949)
Lower Left  (  651662.025, 6824994.495)
Upper Right (  653907.968, 6828152.949)
Lower Right (  653907.968, 6824994.495)
Center      (  652784.997, 6826573.722)
Band 1 Block=731x1 Type=UInt16, ColorInterp=Gray
Band 2 Block=731x1 Type=UInt16, ColorInterp=Undefined
Band 3 Block=731x1 Type=UInt16, ColorInterp=Undefined
Band 4 Block=731x1 Type=UInt16, ColorInterp=Undefined

Et voici le MapFile :

Code:

MAP
    NAME map_testTiff
    IMAGETYPE PNG
    EXTENT 651662.025 6824994.495 653907.968 6828152.949
    SIZE 731 1028
    MAXSIZE 8192
    PROJECTION
        "init=epsg:2154"
    END
    OUTPUTFORMAT
        NAME "png"
        DRIVER "AGG/PNG"
        MIMETYPE "image/png"
        IMAGEMODE "RGB"
        EXTENSION "png"
    END
    LAYER
        NAME layer_testTiff
        DATA "./testTiff.tif"
        STATUS DEFAULT
        EXTENT 651662.025 6824994.495 653907.968 6828152.949
        TYPE RASTER
        PROJECTION
            "init=epsg:2154"
        END
        METADATA
            "wms_title" "testTiff"
        END
    END
END

Merci beaucoup

Adrien

Dernière modification par Adri91 (Fri 18 July 2014 08:33)

Hors ligne

 

Pied de page des forums

Powered by FluxBB