[maplab-users] problem of symbol

Philippe-H.Viard at equipement.gouv.fr Philippe-H.Viard at equipement.gouv.fr
Fri Jun 24 03:47:46 EDT 2005


thousand excuses, it had a small error.  here good file MAP


> hello with all.  
> I have a problem of symbol.  
> I have to create a symbol of the type TRUETYPE.  
> in MAPLAB, the apperçu functions parfaitememt.  
> but when I use MAPSERVER/CHAMELEON, the turned over image gives me this
> error "ERROR RENDERING MAP IMAGE".  
> How to make to correct that ?????? 
> I join my file MAP
> *********************************************************************
> bonjour à tous.
> j'ai un probleme de symbole.
> j'ai créer un symbole de type TRUETYPE.  
> Dans MAPLAB , l'apperçu fonctionne parfaitememt.  
> mais quand j'utilise MAPSERVER/CHAMELEON,l'image retournée me donne cette
> erreur "ERROR RENDERING MAP IMAGE".  
> Comment faire pour corriger cela ??????.  
> je joins mon fichier MAP
> 
> **********************************************************************
> 
MAP
  NAME "test2sig"
  STATUS ON
  EXTENT 826426 2322214 960485 2401303 
  SIZE 500 400 
  SHAPEPATH "./samples/data/data-dep"
  SYMBOLSET "./samples/etc/symbols.sym"
  FONTSET "./samples/etc/fonts.list"
  IMAGETYPE GIF
  UNITS METERS
  RESOLUTION 300
  REFERENCE
    STATUS ON
    IMAGE "./dep.png"
    SIZE 250 169 
    COLOR 0 0 255
    OUTLINECOLOR 255 0 0
  END
  PROJECTION
    "init=epsg:27582" 
  END
  SCALEBAR
    STATUS ON
    COLOR 0 0 255
    OUTLINECOLOR 0 0 0
    BACKGROUNDCOLOR 255 255 0
    TRANSPARENT ON
    UNITS KILOMETERS
    INTERVALS 5
    SIZE 500 5 
    STYLE 1
    POSITION UC
  END
  SYMBOL
    NAME "h-ac2"
    TYPE VECTOR
    POINTS
       40 0 40 80 -99 -99 0 40 80 40
    END
  END
  SYMBOL
    NAME "h-ac3"
    TYPE VECTOR
    POINTS
       0 30 60 30 -99 -99 30 0 30 60
    END
  END
  SYMBOL
    NAME "h-a1"
    TYPE PIXMAP
    IMAGE "h-a1-2.png"
  END
  SYMBOL
    NAME "epaisseur"
    TYPE ELLIPSE
    POINTS
       1 1
    END
  END
  SYMBOL           
    NAME "fleche"  
    TYPE TRUETYPE  
    CHARACTER "}"  
    FONT "arial"   
    GAP 100        
  END              
  #démarrage des couches
  # Début couche Scan25
  LAYER
    NAME "RASTERGLOBAL"
    GROUP "Images"
    STATUS ON
    TYPE RASTER
    TILEINDEX "./samples/data/data-dep/raster.shp"
    TILEITEM "location"
    UNITS METERS
    SIZEUNITS METERS
    TRANSPARENCY 50
    CLASS
      NAME "Digital Raster Graphic"
    END
  END
  # Fin couche Scan25  
  # Début couche Adco88
  LAYER
    NAME "commune"
    GROUP "Limites administratives"
    STATUS ON
    DATA "./ADCO88_region"
    TYPE POLYGON
    UNITS METERS
    SIZEUNITS METERS
    OFFSITE 252 252 252
    HEADER "./commune_header.html"
    FOOTER "./commune_footer.html"
    TEMPLATE "./commune_query.html"
    CLASS
      NAME "classe_commune"
      LABEL
        TYPE TRUETYPE
        FONT "sans-italic"
        SIZE 12
        POSITION AUTO
        COLOR 0 0 0
        OUTLINECOLOR 255 0 0
      END
      STYLE
        SYMBOL 0
        COLOR -1 -1 -1
        OUTLINECOLOR 0 0 0
        BACKGROUNDCOLOR -1 -1 -1
      END
    END
  END
  # Fin couche Adco88  
  # Début couche
  LAYER
    NAME "A1"
    GROUP "Servitude"
    STATUS ON
    DATA "./a1/a1"
    TYPE POLYGON
    UNITS METERS
    SIZEUNITS METERS
    HEADER "./commune_header.html"
    FOOTER "./commune_footer.html"
    TEMPLATE "./commune_query.html"
    CLASS
      NAME "classe_A1"
      STYLE
        SYMBOL "h-a1"
        COLOR 0 0 0
        OUTLINECOLOR -1 -1 -1
        BACKGROUNDCOLOR -1 -1 -1
      END
    END
  END
  # Fin couche
  # Début couche A1 contour sans données
  LAYER
    NAME "A1"
    GROUP "Servitude"
    STATUS ON
    DATA "./a1/a1"
    TYPE LINE
    UNITS METERS
    SIZEUNITS PIXELS
    CLASS
      NAME "classe_A1"
      STYLE
        SYMBOL "epaisseur"
        COLOR 0 0 0
        SIZE 3
      END
    END
  END
  # Fin couche
  # Début couche
  LAYER
    NAME "AC2"
    GROUP "Servitude"
    STATUS ON
    DATA "./ac2/ac2_region"
    TYPE POLYGON
    UNITS METERS
    SIZEUNITS METERS
    OFFSITE 252 252 252
    HEADER "./commune_header.html"
    FOOTER "./commune_footer.html"
    TEMPLATE "./commune_query.html"
    CLASS
      NAME "classe_AC2"
      STYLE
        SYMBOL "h-ac2"
        COLOR 255 0 0
        OUTLINECOLOR 255 0 0
      END
    END
  END
  # Fin couche
  # Début couche
  LAYER
    NAME "AC3"
    GROUP "Servitude"
    STATUS ON
    DATA "./ac3/ac3_region"
    TYPE POLYGON
    UNITS METERS
    SIZEUNITS METERS
    OFFSITE 252 252 252
    HEADER "./commune_header.html"
    FOOTER "./commune_footer.html"
    TEMPLATE "./commune_query.html"
    CLASS
      NAME "classe_ac3"
      STYLE
        SYMBOL "h-ac3"
        COLOR 0 108 191
        OUTLINECOLOR 0 0 0
      END
    END
  END
  # Fin couche
  # Début couche              
  LAYER
    NAME "I4a"
    GROUP "Servitude"
    STATUS ON
    DATA "./i4a/i4a_polyline"
    TYPE LINE
    UNITS METERS
    SIZEUNITS PIXELS
    CLASS
      STYLE
        SYMBOL "epaisseur"
        COLOR 255 0 0
        SIZE 3
      END
      STYLE
        SYMBOL "fleche"
        COLOR 255 0 0
        SIZE 20
        OFFSET -1 1 
      END
    END
  END
# Fin couche                
END




> Bonne journée @ tous
> 
> Philippe VIARD
> Opérateur SIG SUH/EPT 
> tél : 03-29-69-14-22
> télécopie : 03-29-69-13-12
> mailto:philippe-h.viard at equipement.gouv.fr
> 



More information about the Maplab-users mailing list