Hi all,
i'm a newby in mapserver and pmapper. I installed ms4w and pmapper, and the
demo map of pmapper works well. Now i'm trying to create my own map. i put
my shp in  pmapper_demodata directory, i've created my mapfile called
pmapper_demo.map (i renamed the original pmapper_demo.map to
pmapper_demo_old.map). After renaming  the original config_default.xml to
config_default_old.xml, i've created a new config_default.xml.
This is my new pmapper_demo.map

MAP
NAME "mymap"
EXTENT 372797.287300 4681289.484700 376277.571600 4684126.949000
UNITS METERS
PROJECTION
        "init=epsg:32633"
END

STATUS ON
SHAPEPATH "../../../pmapper_demodata/"
SYMBOLSET "../common/symbols/symbols-pmapper.sym"
FONTSET "../common/fonts/msfontset.txt"


IMAGETYPE png
INTERLACE OFF
RESOLUTION 96
SIZE 600 500
IMAGECOLOR 255 255 255
WEB
    TEMPLATE "map.html"
    IMAGEPATH "/ms4w/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
END

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

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

LAYER
NAME "ctr5k_359101_pol"
DATA "ctr5k_359101_pol"
STATUS ON
TYPE POLYGON
PROJECTION
     "init=epsg:32633"
END
TEMPLATE void
CLASSITEM "CLASS"
CLASS
    NAME     "suolo"
        EXPRESSION "3"
    STYLE
        SIZE 1
            COLOR 255 0 0
        END
END
METADATA
    "DESCRIPTION" "suolo"
    "RESULT_FIELDS" "CLASS,DESC_"
    "RESULT_HEADERS" "classe,descrizione"
    "ows_title"      "suolo"
END
END
END


This is my new config_default.xml



<pmapper>
    <ini>
        <pmapper>
            <pmTitle>p.mapper - A MapServer PHP/MapScript
Framework</pmTitle>
            <debugLevel>3</debugLevel>
            <plugins>export</plugins>
            <plugins>scalebar</plugins>
            <plugins>transparency</plugins>
        </pmapper>
        <config>
            <pm_config_location>default</pm_config_location>
            <pm_javascript_location>javascript</pm_javascript_location>
            <pm_print_configfile>common/print.xml</pm_print_configfile>
            <pm_search_configfile>inline</pm_search_configfile>
        </config>
        <map>
            <mapFile>pmapper_demo.map</mapFile>
            <tplMapFile>common/template.map</tplMapFile>
            <categories>
                <category name="cat_admin">
                    <group>ctr5k_359101_pol</group>
                </category>
            </categories>
            <allGroups>
                <group>ctr5k_359101_pol</group>
            </allGroups>
            <defGroups>
                <group>ctr5k_359101_pol</group>
            </defGroups>
            <layerAutoRefresh>1</layerAutoRefresh>
            <imgFormat>png</imgFormat>
            <altImgFormatLayers>
                <layer>ctr5k_359101_pol</layer>
            </altImgFormatLayers>
            <sliderMax>30000</sliderMax>
            <sliderMin>500</sliderMin>
        </map>
        <query>
            <limitResult>300</limitResult>
            <highlightColor>0 255 255</highlightColor>
            <highlightSelected>1</highlightSelected>
            <autoZoom>nquery</autoZoom>
            <autoZoom>search</autoZoom>
            <zoomAll>search</zoomAll>
            <zoomAll>nquery</zoomAll>
            <infoWin>dynwin</infoWin>
            <alignQueryResults>1</alignQueryResults>
            <pointBuffer>10000</pointBuffer>
            <shapeQueryBuffer>0.02</shapeQueryBuffer>
        </query>
        <ui>
            <tocStyle>tree</tocStyle>
            <legendStyle>attached</legendStyle>
            <useCategories>1</useCategories>
            <catWithCheckbox>1</catWithCheckbox>
            <scaleLayers>1</scaleLayers>
            <icoW>18</icoW>
            <icoH>14</icoH>
        </ui>
        <locale>
            <defaultLanguage>en</defaultLanguage>
            <defaultCharset>UTF-8</defaultCharset>
            <map2unicode>1</map2unicode>
        </locale>
        <print>
            <printImgFormat>png</printImgFormat>
            <printAltImgFormat>jpeg</printAltImgFormat>
            <pdfres>2</pdfres>
        </print>
        <download>
            <dpiLevels>150</dpiLevels>
            <dpiLevels>200</dpiLevels>
            <dpiLevels>300</dpiLevels>
        </download>
        <php>
            <pearDbClass>MDB2</pearDbClass>
            <defaultTimeZone>Europe/Vienna</defaultTimeZone>
        </php>
        <pluginsConfig>
            <export>
                <formats>XLS</formats>
                <formats>CSV</formats>
                <formats>PDF</formats>
            </export>
        </pluginsConfig>
    </ini>
    <searchlist version="1.0">
        <dataroot>$</dataroot>
        <searchitem name="ctr5k_359101_pol" description="suolo">
            <layer type="shape" name="ctr5k_359101_pol">
                <field type="s" name="CLASS" description="CLASSE"
wildcard="0" />
            </layer>
        </searchitem>
        <!--
        <searchitem name="countries" description="Country">
            <layer type="shape" name="countries">
                <field type="s" name="ISOCODE" description="Country"
wildcard="2">
                    <definition type="options" connectiontype="ms"
sort="asc" firstoption="*">
                        <mslayer encoding="ISO-8859-1" keyfield="ISOCODE"
showfield="NAME_EN"/>
                    </definition>
                </field>
            </layer>
        </searchitem> -->
        <!-- Sample for suggest function -->
        <!--<searchitem name="cities_suggest_ms" description="Cities Suggest
MS">
            <layer type="ms" name="cities10000eu">
                <field type="s" name="NAME" description="City" wildcard="2">
                    <definition type="suggest" connectiontype="ms"
minlength="1" startleft="1" sort="asc">
                        <mslayer encoding="UTF-8"/>
                    </definition>
                </field>
            </layer>
        </searchitem> -->
    </searchlist>


</pmapper>

Well it doesn't work. The browser displays a black screen and the
coordinates don't change from X=0 Y=0, in the toc i have my layer. If i try
to zoom in/out nothing changes except for a "loading bar" which remains
fixed on the screen.
I've checked   in ms_tmp folder and i've found temporary png with my layer
correctly displayed.
I've checked the epsg and extent coordinates by qgis and ogrinfo

C:\ms4w\tools\gdal-ogr>ogrinfo -al -so
C:\ms4w\apps\pmapper\pmapper_demodata\ctr
5k_359101_pol.shp
INFO: Open of `C:\ms4w\apps\pmapper\pmapper_demodata\ctr5k_359101_pol.shp'
      using driver `ESRI Shapefile' successful.

Layer name: ctr5k_359101_pol
Geometry: 3D Polygon
Feature Count: 1833
Extent: (372797.287300, 4681289.484700) - (376277.571600, 4684126.949000)
Layer SRS WKT:
PROJCS["WGS_1984_UTM_Zone_33N",
    GEOGCS["GCS_WGS_1984",
        DATUM["WGS_1984",
            SPHEROID["WGS_1984",6378137.0,298.257223563]],
        PRIMEM["Greenwich",0.0],
        UNIT["Degree",0.0174532925199433]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["False_Easting",500000.0],
    PARAMETER["False_Northing",0.0],
    PARAMETER["Central_Meridian",15.0],
    PARAMETER["Scale_Factor",0.9996],
    PARAMETER["Latitude_Of_Origin",0.0],
    UNIT["Meter",1.0]]
OBJECTID: Integer (9.0)
LAYER: Integer (9.0)
CLASS: String (1.0)
DESC_: String (50.0)
TOPONIMO: String (50.0)
Shape_Leng: Real (19.11)
Shape_Area: Real (19.11)

Can anybody help me, please? i'm getting mad.
Thanks to all and sorry for my bad english.

Marco

P.S.
I havent in pmapper directories any config.ini or pmapper_php.php.
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to