[Portugal] HELP MAPSERVER

Hugo hfpmartins at gmail.com
Fri May 13 10:46:41 EDT 2011


Olá a todos,

Estou com alguns problemas com o mapserver e preciso da ajuda da malta do
Mapserver!
Neste momento estou apenas a tentar publicar um ficheiro raster (carta
militar) mas não sei o que se passa que qdo chamo o url (
http://localhost/cgi-bin/mapserv?map=/home/hfpm/Desktop/teste/teste2.map&mode=map)
apenas me devolve uma imagem branca. Se publicar uma shapefile tudo funciona
bem. Eis o meu mapfile com a shape e com o raster (a shape é mostrada mas
não o raster):

MAP
 CONFIG  "MS_ERRORFILE" "/tmp/mapserver.log"
 DEBUG 5
 NAME "TESTE-MAPSERVER"
 EXTENT -86861.223691 -301747.706447 72084.420840 -228246.008574
 UNITS METERS
 SIZE 800 600
 IMAGETYPE PNG
 SHAPEPATH "/home/hfpm/Desktop/teste/final/warp"

 OUTPUTFORMAT
  NAME "aggpng24"
  DRIVER AGG/PNG
  MIMETYPE "image/png"
  IMAGEMODE RGB
  EXTENSION "png"
 END

 PROJECTION
  "init=epsg:3763"
 END

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

 WEB
  IMAGEPATH '/tmp/'
  IMAGEURL '/tmp/'
  METADATA
   'ows_title'           'TESTE-MAPSERVER'
   'ows_onlineresource'  '
http://localhost/cgi-bin/mapserv?map=/home/hfpm/Desktop/teste/teste.map'
   'ows_srs'             'EPSG:3763'
  END
  TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
 END

 LAYER
  NAME "cartograma"
  DATA 'cartograma_rgb.shp'
  STATUS DEFAULT
  TYPE POLYGON
  CLASS
   NAME "Concelhos"
   STYLE
    COLOR 220 220 220
    OUTLINECOLOR 176 176 176
   END
  END
 END

 LAYER
    NAME 'CM'
    PROCESSING "DITHER=YES"
    PROCESSING "RESAMPLE=AVERAGE"
    TYPE RASTER
    DUMP FALSE
    TEMPLATE fooOnlyForWMSGetFeatureInfo
    EXTENT 32002.688 -239999.086 48005.188 -229996.586
    DATA '/home/hfpm/Desktop/teste/final/warp/566.tif'
    METADATA
      'ows_title' '566'
    END
    STATUS ON
    TRANSPARENCY 100
    PROJECTION
    "init=epsg:3763"
    END
  END
END

Inicialmente pensei que fosse algum problema com o extent mas fazendo um
gdalinfo ao raster eis o que obtenho ( e de onde tirei o extent para
configurar no layer raster):

Coordinate System is:
PROJCS["ETRS89 / Portugal TM06",
    GEOGCS["ETRS89",
        DATUM["European_Terrestrial_Reference_System_1989",
            SPHEROID["GRS 1980",6378137,298.2572221010002,
                AUTHORITY["EPSG","7019"]],
            AUTHORITY["EPSG","6258"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4258"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",39.66825833333333],
    PARAMETER["central_meridian",-8.133108333333334],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","3763"]]
Origin = (32002.688000000001921,-229996.586000000010245)
Pixel Size = (2.500000000000004,-2.500000000000004)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (   32002.688, -229996.586) (  7d46'14.62"W, 37d35'44.95"N)
Lower Left  (   32002.688, -239999.086) (  7d46'16.19"W, 37d30'20.52"N)
Upper Right (   48005.188, -229996.586) (  7d35'22.31"W, 37d35'42.45"N)
Lower Right (   48005.188, -239999.086) (  7d35'24.67"W, 37d30'18.02"N)
Center      (   40003.938, -234997.836) (  7d40'49.45"W, 37d33' 1.61"N)

No log do mapserver aparece o seguinte:

[Fri May 13 15:41:40 2011].243884 CGI Request 1 on process 7701
[Fri May 13 15:41:40 2011].244208 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Fri May 13 15:41:40 2011].246110 msDrawMap(): Layer 0 (cartograma), 0.002s
[Fri May 13 15:41:40 2011].246125 msDrawMap(): Drawing Label Cache, 0.000s
[Fri May 13 15:41:40 2011].246130 msDrawMap() total time: 0.002s
[Fri May 13 15:41:40 2011].249876 msSaveImage() total time: 0.004s
[Fri May 13 15:41:40 2011].249960 mapserv request processing time (loadmap
not incl.): 0.006s
[Fri May 13 15:41:40 2011].249966 msFreeMap(): freeing map at 0x2460230.

Todos os contributos são bem-vindos :)

Abc,
Hugo



-- 
Hugo Martins
LabNT - ISEGI UNL
Campus de Campolide
1070-312 Lisboa
N 38°43'56.84", W 9°9'35.74"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/portugal/attachments/20110513/483b4c0d/attachment.html


More information about the Portugal mailing list