[Chameleon] Path or Directory In Chameleon

Pssdal Bakosurtanal pssdal at gmail.com
Tue Mar 7 20:36:29 EST 2006


Dear Expert,

Chameleon has cleared directory structure like as :
-web/samples/
|---data/
|     |__ 50000/
|               |___diox
|               |          |___ diox1.shp, diox1.dbf
|               |___gnlh
|___ map/
|___ etc/
|___ htdocs/

My problem is when I created sub folder under htdocs like as below
-htdocs/
|___ diox/
|         |____ diox1.map
|         |____ diox1.phtml
|         |____ diox1.html
|         |____ diox1.xml
|___ gnlh/
|___ etc/

and I want to use this subfolder to collect files of mapfile, html file,
phtml file and also xml.file,
for example I would like to put diox1.map, diox1.html,diox1.phtml and
diox1.xml under subfolder of "diox".

When I try to to access http://server/map/diox/diox1.phtml I can't see
anything?
Could you help me where is the problem?

Here is detail of my script :
1. setting httpd.d
    httpd_pssdalweb.conf :
=============================
Alias /pssdalweb/ "/ms4w/apps/pssdalweb/"
<Directory "/ms4w/apps/pssdalweb/">
  AllowOverride None
  Options Indexes FollowSymLinks Multiviews
  Order allow,deny
  Allow from all
</Directory>
====================================
  httpd_map.conf :
========================================
Alias /map/ "/ms4w/apps/pssdalweb/spasial/htdocs/50000/"
<Directory "/ms4w/apps/pssdalweb/spasial/htdocs/50000/">
  AllowOverride None
  Options Indexes FollowSymLinks Multiviews
  Order allow,deny
  Allow from all
</Directory>
=========================================

2. Mapfiles diox1.map
============================================
.......
  SHAPEPATH      "../data/50000/"
  IMAGECOLOR     255 255 255
  FONTSET     ../etc/fonts.txt
  SYMBOLSET     ../etc/symbols.sym
  UNITS        dd

....
  IMAGEPATH "/ms4w/tmp/ms_tmp/"
  IMAGEURL "/ms4w/tmp/ms_tmp/"
#  LOG "/MS4W/tmp/gmap.log"
..........
  # Start of LAYER DEFINITIONS ---------------------------------------------

LAYER # Hidrologi
    GROUP "Hidrologi"

    NAME         hidr

    METADATA
      "DESCRIPTION"   "HIDROLOGI"
      "RESULT_FIELDS" "Keterangan"
      "GROUP" "Hidrologi"
      "LAYER" "hidr11"
    END

    DATA         "hidr/hidr11"
    STATUS       ON
    TYPE         POLYGON

    TEMPLATE "ttt_query.html"

    TOLERANCE 5

    TOLERANCEUNITS     PIXELS

    PROJECTION
      "init=epsg:4326"
    END

    CLASS
      NAME   "Keterangan"
      COLOR      190 198 97
      OUTLINECOLOR 0 0 0
    END

.....
END # Dissolved Oxygen Kutim

END # end of map file
=================================================

3. html file : diox1.html
=================================================
.............
<div align="center" id="TitleLayer" name="TitleLayer">
<!-- TITLE -->
<cwc2 type="Title" label="Kutai Timur Propinsi Kalimantan Timur"
labelclass="title">
</cwc2>
<!-- SESSIONEXPIRED -->
<cwc2 type="SessionExpired" text="Your session has expired.">
</cwc2>
</div>
......

<div align="left" id="LegendLayer" name="LegendLayer">
<table cellspacing="0" cellpadding="2">
  <cwc2 type="XMLThemeLegend" popupwidth="400" popupheight="400">
        <selection name="SampleLegend"
template="htdocs/50000/diox/diox1.html"
themefile="htdocs/50000/diox/diox1_themes.xml"
contextfile="htdocs/50000/diox/diox1.map"
rendererfile="indonesia_renderer.html"/>
    </cwc2>
.......
==========================================================

4. phtml file diox1.phtml
========================================]
...
$szTemplate = "./50000/diox/diox1.html";
$szMapFile = "../htdocs/50000/diox/diox1.map";
.....
==============================================

5.xml file diox1.xml
=================================
<themes>
    <global>
        <separator name="Separator" isVisible="yes" src="http://..."/>
        <themeParams bold="true" font="Arial, Helvetica, sans-serif"
size="2"   extendAbstract="true" icon="images/unknown.gif"
extendContext="false"/>
        <groupParams bold="false"  font="arial" size="8.25"
extendAbstract="true" icon="images/unknown.gif" visible="true"/>
    </global>

    <theme name="Hidrologi" type="checkbox" ABSTRACT="TBA">
        <group name="Hidrologi" ABSTRACT="TBA" visible="true"
icon="images/hidro.gif">
            <layer name="hidr"/>
        </group>
    </theme>

    <theme name="Jalan" type="checkbox" ABSTRACT="TBA">
        <group name="Jalan Kutim" ABSTRACT="TBA" visible="true"
icon="images/jalan.gif">
            <layer name="jln"/>
        </group>
    </theme>

    <theme name="D A S" type="checkbox" ABSTRACT="TBA">
        <group name="Sungai" ABSTRACT="TBA" visible="true"
icon="images/sngl.gif">
            <layer name="sngl9"/>
        </group>
    </theme>

    <theme name="Analisis" type="checkbox" ABSTRACT="TBA">
        <group name="Dissolved Oxygen" ABSTRACT="TBA" visible="true"
icon="images/pnt.gif">
            <layer name="diox"/>
        </group>
    </theme>

    <theme name="Lain" type="checkbox" ABSTRACT="TBA" extralayers="true">
    </theme>
</themes>
 ================================================================

regards,
Pssdal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060308/696bd1b9/attachment.html


More information about the Chameleon mailing list