HI! I'm tring to integrate pmapper 1.0.5 (latest) in the following env:
-Windows XP pro
-Apache 2.0.54
-PHP 5.0.5
-php_mapscript 4.6
Simple map file with 1 layer! (tif)
Results:
Basically the map frame keeps loading ! I see manyJavascript errors..
It seems like the Layer selector (frame) is not loading properlly!
The maps are generaged in the tmp dir. PLus I can see this when I try to
print the map!
Notice: Undefined property: GLAYER::$labelItem in
C:\pmapper\www\pmapper2\incphp\group.php on line 194
Notice: Undefined index: existsXYLayer in
C:\pmapper\www\pmapper2\incphp\print\print.php on line 58
Notice: Undefined variable: legIconPath in
C:\pmapper\www\pmapper2\incphp\print\print.php on line 297
<... PLUS the IMAGE generated >
Any help will be apreciated!
Cheers,
-Eric Allard
Here's my config and mapfile.
;*********************************************************************************
; Copyright (c) 2002-2005 Armin Burger
;
; Permission is hereby granted, free of charge, to any person obtaining
; a copy of this software and associated documentation files (the
"Software"),
; to deal in the Software without restriction, including without limitation
; the rights to use, copy, modify, merge, publish, distribute, sublicense,
; and/or sell copies of the Software, and to permit persons to whom the
Software
; is furnished to do so, subject to the following conditions:
;
; The above copyright notice and this permission notice shall be included
; in all copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS
; FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR
OR
; COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER
; IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
; CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
;**********************************************************************************
;************************************************;
; CONFIGURATION FILE FOR MAPSERVER APPLICATION ;
; Is read by init.php ;
; Change according to application ;
; Comments are semicolons ; ;
;************************************************;
[GENERAL]
; p.mapper version
pmapper = 1.9.5
;===============================
; Character encoding settings
; Default character set
; UTF-8
;------------------------
defCharset = UTF-8
; if map file contains non-ASCII characters
; eg for layer DESCRIPTION or CLASS names, set value to 1
;----------------------------------------------------------
map2unicode = 1
;========================================================
;========================================================
;========================================================
;========================================================
;========================================================
; FIXME (EA))
;========================================================
;========================================================
;========================================================
;========================================================
;========================================================
gSlide=
;==================================================
; MapServer Version
; necessary only if extension dl() function is used
; corresponding to naming of php_mapscript-x.dll/.so
; e.g. for php_mapscript_44.dll set
; msVersion = 44
;--------------------------------------------------
msVersion = 46
;=======================================
; MAP FILE
; Use slashes (/), no backslashes (\)
;---------------------------------------
mapFile = C:/pmapper/www/pmapper2/config/pueblo.map
;=================================
; LAYERS/GROUPS DEFINED MANUALLY
;=================================
; ALL groups displayed in TOC in this order
; - without definition, the order from map file will be taken.
; - separated with commas
;-----------------------------------------------------------
allGroups = landsat1
; Default Groups (visible at start)
;----------------------------------
defGroups = landsat1
; Groups/Layers that shall be mutually disabled
; if one is clicked, the other ones will be disabled
;-------------------------------------------------------------
;mutualDisableList = landsat1, Concesiones
; Automatically refresh map when selection of
; layers/grouops has changed in TOC
;--------------------------------------------
layerAutoRefresh = 1
;==============================================
;
; SETTINGS FOR IDENTIFY/SEARCH/SELECT
;
;----------------------------------------------
; Limit for results of selection with select tool or search
;----------------------------------------------------------
limitResult = 300
; Highlight color for identify/search zoom in
; RGB values, separated with commas
;---------------------------------------------
highlightColor = 0, 255, 255
; Defines if SELECT function causes feature highlight
;-----------------------------------------------------
highlightSelected = on
; AUTOZOOM: zoom in automatically after results are displayed
; possible values: off search nquery (= select)
;-------------------------------------------------------------
autoZoom = search
; Add button 'zoom to All Features' to result table
; - possible values: off search nquery (= select)
;---------------------------------------------------
;zoomAll = search nquery
zoomAll = off
; WINDOW DESIGN:
; Query results (identify/search) in separate WINDOW or FRAME
;-------------------------------------------------------------
infoWin = window
;infoWin = frame
; Automatically align column contents of result tables of queries
; with regard to data type (default, numeric, currency, etc)
; algorithm in 'sorttable.js', function 'ts_alignCols(table)'
;-----------------------------------------------------------------
alignQueryResults = 1
; Extent buffer for zoom extent for point layers in queries
;-----------------------------------------------------------------
pointBuffer = 10000
;=============================================
; LEGEND: ICONS SIZE AND FORMAT, LEGEND STYLE
;---------------------------------------------
; Categories Style:
; - tree or flat
;-----------------------------------------
catStyle = tree
;catStyle = flat
; Group/Layer Style:
; - tree or flat
;-----------------------------------------
grpStyle = tree
;grpStyle = flat
; Legend Style:
; - attached: together with TOC
; - swap: swapping with TOC
; - popup: separate popup over map
;-----------------------------------------
legStyle = attached
;legStyle = swap
;legStyle = popup ;;;; experimental ;;;;
; Use categories to thematically group layers
; categories defined in incphp/custom.php
; works for TOC setting 'flat' and 'tree'
; 1 = yes, 0 = no
;--------------------------------------------
useCategories = 0
; Layer list (TOC) automatically updated according to scale
;-----------------------------------------------------------
scaleLayers = 1
; Icon Width in pixels
;----------------------
icoW = 18
; Icon Height in pixels
;-----------------------
icoH = 14
; Image format for map and legend icons
; - possible values: png jpeg gif
;---------------------------------------
;imgFormat = jpeg
imgFormat = png
; alternative Image format for map
; useful eg. for imagery data
; - possible values: png jpeg gif
altImgFormat = jpeg
; layer list (comma separated) that shall activate alternative
; image format when one of these layers has status ON
altImgFormatLayers = landsat1
;=============================================================
; DEFINE START AND END SCALE FOR ZOOM SLIDER
; => Adapt to specific extents of the datasets
; or use 'max' for automatically calculate from map file
; -> in file 'map.phtml'
;-------------------------------------------------------------
;sliderMax = 40000000
sliderMax = 500000
sliderMin = 10000
;=============================================================
; TOOLBAR ORIENTATION
; - vertical or horizontal
;-------------------------------------------------------------
toolBarOrientation = vertical
;toolBarOrientation = horizontal
;==============================================================
; PDF PRINT RESOLUTION
; - Factor to increase resolution for better image quality
;--------------------------------------------------------------
pdfres = 2
;==============================================================
; DPI levels for map download
; - used in downloaddlg.phtml
;--------------------------------------------------------------
dpiLevels = 150, 200, 300
;==============================================================
; Enable pan mode if right mouse button is pressed
; independent of selected tool
;--------------------------------------------------------------
enableRightMousePan = 1
MAP
NAME "Test"
STATUS ON
EXTENT 255000 2005000 380000 2067500
UNITS meters
#EXTENT -15 30 40 70
#UNITS dd
SIZE 900 900
SHAPEPATH "../data"
SYMBOLSET "../data/symbols/symbols35.sym"
#FONTSET "../data/fonts/msfontset.txt"
RESOLUTION 96
IMAGETYPE png
INTERLACE OFF
#PROJECTION
# # ETRS-LAEA
# # <3035> +proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000
+ellps=GRS80 +units=m +no_defs no_defs <>
# "proj=laea"
# "lat_0=52.000000"
# "lon_0=10.000000"
# "x_0=4321000"
# "y_0=3210000"
# "ellps=GRS80"
# "units=m"
# "no_defs"
#END
###############################################
# DEFINE OUTPUT FORMATS
###############################################
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
FORMATOPTION INTERLACE=OFF
TRANSPARENT OFF
END
#------ USED ON PUEBLO Mapfile -------
# OUTPUTFORMAT
# NAME "png"
# MIMETYPE "image/png"
# DRIVER "GD/PNG"
# EXTENSION "png"
# IMAGEMODE RGB
# TRANSPARENT FALSE
# END
OUTPUTFORMAT
NAME png8
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
FORMATOPTION INTERLACE=OFF
TRANSPARENT OFF
END
OUTPUTFORMAT
NAME GTiff
DRIVER "GDAL/GTiff"
MIMETYPE "image/tiff"
IMAGEMODE RGB
#FORMATOPTION "TFW=YES"
#FORMATOPTION "COMPRESS=PACKBITS"
END
OUTPUTFORMAT
NAME imagemap
MIMETYPE "text/html"
FORMATOPTION SKIPENDTAG=ON
DRIVER imagemap
END
###############################################
# Web
WEB
TEMPLATE "map.html"
IMAGEPATH "C:/pmapper/www/pmapper2/tmp/"
IMAGEURL "/pmapper2/tmp/"
METADATA
END # Metadata
END
###############################################
# Start of Reference map definition
#
REFERENCE
EXTENT 255000 2005000 380000 2067500
IMAGE "../keymap.png"
SIZE 199 149
COLOR 255 -1 -1
OUTLINECOLOR 255 0 0
END # Reference
###############################################
# NOT DEFINED BY PMAPPER
LEGEND
END
###############################################
# Start of ScaleBar definition
#
SCALEBAR
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 255 255 255
OUTLINECOLOR 0 0 0
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 DEFINITIONS
LAYER
# GROUP main
NAME "landsat1"
STATUS On
DATA "RepDom_250k_N27.tif"
TYPE RASTER
#UNITS METERS
#SIZEUNITS PIXEL
METADATA
END
END # Layer
END #MAP
--
View this message in context:
http://www.nabble.com/Windows-Install...-t1736913.html#a4719833
Sent from the Pmapper-users forum at Nabble.com.