[maplab-users] Could not preview map in MapEdit

Bob English renglish at direcway.com
Mon Jul 5 09:18:59 EDT 2004


Hi All,

My name is Bob English.  I'm a research assistant building a MapServer
application for a forestry project funded under a grant at UMass in Amherst,
MA.  You can view a web built by a grad student for the project at
http://forest.fnr.umass.edu/acorn/firstpage.index.html

I had the same preview problem as Charlie.  The error message and the config
file are below.  The mapfile gets written to the ms_tmp directory as you can
see, but it can't be read.  The // after ms_tmp looks like the problem.  A
parsing problem in the code?  or something I messed up?  I tried many
configurations to no avail.

Thanks,
Bob
____________________________________________________________________________
___
Warning: MapServer Error in msLoadMap(): (OUTPUTFORMAT):(125) in
c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\common\wrapper\map_session.php on
line 215

Fatal error: Failed to open map file
c:/inetpub/wwwroot/tmp/ms_tmp//40e88c3aabf6a.map in
c:\inetpub\wwwroot\maplab-2.1-rc3\htdocs\common\wrapper\map_session.php on
line 215

____________________________________________________________________________
________


__________________________________________________________________________
<app-context>

    <!-- Edit the following <param-value> parameters to configure your
MapLab
         installation. See <description> for an explanation of each
         parameter's use.

         e.g. <context-param>
                <param-name>working_path</param-name>
                  <param-value>e:/msapps/</param-value>
                  <description> Mapedit working directory for map files.
                  </description>
              </context-param>

         In this case, you would modify
"<param-value>e:/msapps/</param-value>"
         to a local directory that holds your map files, so it would become:

            <context-param>
              <param-name>working_path</param-name>
                <param-value>c:/mapserver-apps/</param-value>
                <description> Mapedit working directory for map files.
                </description>
            </context-param>


         NOTE: Some parameters may not be in use by MapLab at this time
               (i.e. the ones with <description> Not used by MapLab at this
               time. </description>) so you do not have to modify them.

    -->

    <context-param>
      <param-name>app_path</param-name>
      <param-value>c:/inetpub/wwwroot/maplab-2.1-rc3/</param-value>
      <description> Absolute path to MapLab installation
directory.</description>
    </context-param>

    <context-param>
      <param-name>file_browser_root</param-name>
      <param-value>c:/inetpub/wwwroot/</param-value>
      <description> Absolute path to the root directory for the file browser
dialog.  This will be the highest directory a user can browse to in the file
browser dialog.</description>
    </context-param>

    <context-param>
      <param-name>allow_browsing</param-name>
      <param-value>true</param-value>
      <description> Allow browsing on the server : true is yes and false is
no.</description>
    </context-param>

    <context-param>
        <param-name>convert_old_files</param-name>
        <param-value>true</param-value>
        <description>Convert old mapfiles to 4.0 format : true is yes and
false is no.</description>
    </context-param>

    <context-param>
        <param-name>group_name</param-name>
        <param-value>users</param-value>
        <description>UNIX ONLY: Group name used when creating a new file or
project. Used for permission access. The Web Server user must be a member of
this group in order for this to work.</description>
    </context-param>

    <context-param>
        <param-name>new_file_permission</param-name>
        <param-value>0664</param-value>
        <description>UNIX ONLY: New file permission in 0XXX format. First
digit must always be 0. Second is for owner permission and must always be
equal or greater than 6, third for group and last one for other. Possible
values for each three permission is 7 (read, write and execute), 6 (read and
write), 5 (read and execute), 4 (read only).</description>
    </context-param>

    <context-param>
      <param-name>mapscript_module</param-name>
      <param-value>php_mapscript_36.dll</param-value>
      <description> Mapscript module name (i.e. php_mapscript_36.dll for
Windows installations or php_mapscript.so for Unix
installations).</description>
    </context-param>

    <context-param>
      <param-name>log_path</param-name>

<param-value>c:/inetpub/wwwroot/maplab-2.1-rc3/maplablog/</param-value>
      <description> Directory in which to write log files. </description>
    </context-param>

    <context-param>
      <param-name>log_level</param-name>
      <param-value>LOG_OFF</param-value>
      <description> Control the application runtime logging level.  Must be
one of LOG_OFF, LOG_QUIET, LOG_VERBOSE or LOG_ALL.</description>
    </context-param>

    <context-param>
      <param-name>tmp_map_path</param-name>
      <param-value>c:/tmp/ms_tmp</param-value>
      <description> Directory in which to write tmp map files.</description>
    </context-param>

    <context-param>
      <param-name>tmp_img_path</param-name>
      <param-value>c:/tmp/ms_tmp</param-value>
      <description> Directory in which to write temporary image
files.</description>
    </context-param>

    <context-param>
      <param-name>tmp_web_img_path</param-name>
      <param-value>/ms_tmp</param-value>
      <description> URL where browser can find temporary image (see
tmp_image_path).</description>
    </context-param>

    <context-param>
      <param-name>image_type</param-name>
      <param-value>PNG</param-value>
      <description>Output image type (eg: PNG, GIF). Must be uppercase. This
image format MUST be supported by your browser and GD (on the server).
Please don't change that value unless you know what you'r
doing.</description>
    </context-param>

   <context-param>
      <param-name>rosa_file</param-name>
      <param-value>rosa/rosa.jar</param-value>
      <description> Path to ROSA Java Applet.  THIS MUST BE A RELATIVE
PATH.</description>
    </context-param>

    <context-param>
      <param-name>default_navigation_mode</param-name>
      <param-value>ROSA</param-value>
      <description> The default mode of the map preview.  Must be either
ROSA or HTML.
      </description>
    </context-param>

    <!-- for now, only expert is used. It will activate the Edit Source
mode -->
    <context-param>
      <param-name>execution_mode</param-name>
      <param-value>2</param-value>
      <description>MapEdit execution mode (0 => DEMO, 1 => NORMAL, 2 =>
EXPERT).</description>
    </context-param>

    <context-param>
      <param-name>demo_path</param-name>
      <param-value>c:/tmp/ms_tmp</param-value>
      <description>MapEdit DEMO mapfile path (when DEMO mode is
set.)</description>
    </context-param>

    <context-param>
        <param-name>allow_config</param-name>
        <param-value>TRUE</param-value>
        <description>This paramter controls access to the XML configuration
tool by enabling/disabling the toolbar button.</description>
    </context-param>

    <context-param>
      <param-name>version</param-name>
      <param-value>2.1-rc3</param-value>
      <description>MapLab Suite version. This value is set by Makefile.  YOU
DO NOT NEED TO MODIFY THIS VALUE.</description>
    </context-param>

    <context-param>
      <param-name>installed_packages</param-name>
      <param-value>|MapEdit |MapBrowser |GMapFactory</param-value>
      <description>Currently installed packages separated by "|". This value
is set by Makefile. YOU DO NOT NEED TO MODIFY THIS VALUE.</description>
    </context-param>

    <context-param>
      <param-name>build_date</param-name>
      <param-value>Mon Oct 27 15:52:41 EST 2003</param-value>
      <description>Build date and time. This value is set by Makefile. YOU
DO NOT NEED TO MODIFY THIS VALUE.</description>
    </context-param>

</app-context>



More information about the Maplab-users mailing list