Hi all,

This seems strange but my map does not want to show. It is always loading. 
However it is present in the temp file (the image of the map).
Also, for the reference, the red square which is supposed to cover all the 
reference map becomes a red point like one pixel at the bottom left of the 
reference map.
Moreover, I try to use the identify or select tools and I get the result that I 
want even if it is still and always loading.
The scale bar is right.

I use pmapper 3.2
Apache 2.2.10 (with OpenSSL 0.9.8i)
PHP 5.2.6
mapserv 5.2.1 at /cgi-bin/mapserv.exe

Windows Vista

Data: shapefile

WGS 84 / UTM zone 48S
<32748> +proj=utm +zone=48 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs  
<>

Here is my map file:


MAP
    EXTENT  850278.263354 9133755.017281 919657.359886 9219380.296023
 
    UNITS meters
    SIZE 600 500
    SHAPEPATH "../../../pmapper_demodata"
    SYMBOLSET "../common/symbols/symbols-pmapper.sym"   
    FONTSET "../common/fonts/msfontset.txt" 
    RESOLUTION 96
    IMAGETYPE png
    INTERLACE OFF
    #CONFIG "PROJ_LIB" "C:/proj/nad/"
    #PROJECTION
      # ETRS-LAEA
      #"init=epsg:3035"
      #"+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 
+units=m +no_defs  no_defs"
      #"init=epsg:32748"
      #"+proj=utm +zone=48 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs"
    #END  

DEBUG on

#
# Image formates for GD
#
OUTPUTFORMAT
  NAME "png"
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE RGB
  FORMATOPTION  INTERLACE=OFF
  TRANSPARENT OFF
  EXTENSION "png"
END

OUTPUTFORMAT
  NAME "png8"
  DRIVER "GD/PNG"
  MIMETYPE "image/png"
  IMAGEMODE PC256
  FORMATOPTION  INTERLACE=OFF
  TRANSPARENT OFF
  EXTENSION "png"
END

OUTPUTFORMAT
  NAME "jpeg"
  DRIVER "GD/JPEG"
  MIMETYPE "image/jpeg"
  IMAGEMODE RGB
  FORMATOPTION "QUALITY=70"
  EXTENSION "jpg"
END

#
# Image formats for AGG
#
# OUTPUTFORMAT   ### 24 bit PNG
  # NAME 'agg_png'
  # DRIVER AGG/PNG
  # IMAGEMODE RGB
# END

# OUTPUTFORMAT  ### 32 bit PNG with alpha channel from transparency
  # NAME 'agg_pnga'
  # DRIVER AGG/PNG
  # IMAGEMODE RGBA
# END

# OUTPUTFORMAT  ### 8 bit PNG
  # NAME 'agg_png8'  
  # DRIVER AGG/PNG
  # IMAGEMODE RGB
  # FORMATOPTION "QUANTIZE_FORCE=ON"
  # FORMATOPTION "QUANTIZE_DITHER=OFF"
  # FORMATOPTION "QUANTIZE_COLORS=256"
# END

# OUTPUTFORMAT
  # NAME 'agg_jpeg'
  # DRIVER AGG/JPEG
  # IMAGEMODE RGB
# END


OUTPUTFORMAT
  NAME GTiff
  DRIVER "GDAL/GTiff"
  MIMETYPE "image/tiff"
  IMAGEMODE RGB
  #FORMATOPTION "TFW=YES"
  #FORMATOPTION "COMPRESS=PACKBITS"
  EXTENSION "tif"
END

OUTPUTFORMAT
  NAME imagemap
  MIMETYPE "text/html"
  FORMATOPTION SKIPENDTAG=OFF
  DRIVER imagemap
END

#
# Start of web interface definition
#


WEB
  TEMPLATE "map.html"
  IMAGEPATH "/ms4w/tmp/ms_tmp/"
  IMAGEURL "/ms_tmp/"
  METADATA
    #"MAPFILE_ENCODING" "ISO-8859-1" 
    #"ows_title"     "WMS Demo Server"  
    #"ows_onlineresource" "http://wms.yourserver.org?owskey=test&";   
    #"ows_srs"       "EPSG:3035 EPSG:4326"  
    #"ows_srs"       "EPSG:32748 EPSG:4326" 
  END  # Metadata
END  # Web

#
# Start of Reference map definition
#
REFERENCE
  EXTENT 850278.263354 9133755.017281 919657.359886 9219380.296023
  IMAGE "../../images/reference.gif"
  SIZE 100 121
  #SIZE    199 149
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
END  # Reference

LEGEND
END

#
# Start of ScaleBar definition
#
SCALEBAR
  STATUS off
  TRANSPARENT off
  INTERVALS 4
  SIZE 200 3
  UNITS kilometers
  COLOR 250 250 250
  OUTLINECOLOR 0 0 0
  BACKGROUNDCOLOR 100 100 100
  STYLE 0
  POSTLABELCACHE true
  LABEL
    COLOR 0 0 90
    #OUTLINECOLOR 200 200 200
    SIZE small
  END  # Label
END  # Reference



# SYMBOLS USED IN PMAPPER
# - 'circle' always necessary (used e.g. for highlight)
# - 'square' used in currecnt map file
# Symbols can also be defined via tag SYMBOLSET (see above)
Symbol
  Name 'circle'
  Type ELLIPSE
  Filled TRUE
  Points
    1 1
  END
END 

Symbol
  Name 'square'
  Type VECTOR
  Filled TRUE
  Points
    0 1
    0 0
    1 0
    1 1
    0 1
  END
END


#================== START OF LAYER SECTION =====================#

########################### Kecamatan ######################### start

LAYER
    NAME     "kecamatan_u"
    TYPE POLYGON
    DATA     "kecamatan_u"
    TRANSPARENCY 30
    PROJECTION
        "init=epsg:32748"
      END
    SIZEUNITS PIXELS
    STATUS ON
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    
    METADATA
        "DESCRIPTION"    "Kecamatan"
        "RESULT_FIELDS"    "NAMAKEC,KODE_KEC"
        "RESULT_HEADERS"     "Nama,Kode"
        "ows_title"     "kecamatan"
        #WMS_TITLE "KEcamatan"
        #WMS_ABSTRACT "Kecamatan shapefile."
        #"WMS_SRS" "epsg:32748"        
    END
    
    CLASS
        Name 'Kecamatan'
        METADATA
          END
        STYLE
            OUTLINECOLOR 50 250 10
            COLOR 200 0 0
            #SIZE 1
            #SYMBOL 1
          END
        TEMPLATE void
      END  # Class
END


END  #Map


Thank you,

 Sypou


      
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to