Customer Service | Training | Contact Us
You are here: Home > Downloads > ArcScripts > Search Results > Script Details Login | Feedback | Help

Generic Map Application: Using parameters from an XML inifile



contact author | download help | add bookmark | view bookmarks
Author Avron Polakow
File Name iniParms.zip
Language C#
Last Modified Nov 8 2009
Status of work Other Copyright/License
Software ArcGIS Server
File Size 1.16 kb
Downloads 113

ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.


Summary
The inifile, iniParms.xml, controls this GENERIC application. The application can be used as a GENERIC VIEWER for different
MAP applications by customising the iniParms.XML file without compilation.

iniParms.xml enables:
    * UI Layout
    * Map setup
    * Layer display information:
        eg to override information in the database
    * MapServices
    * Maps to Display in the Mapnifier
    * etc.
Any further control aspects can be added to this iniParms.xml.

This is the runtime compiled version and the source cannot be changed using VS2008. The source code is not available here.

Only the iniParms.xml file can edited to customise the application.
--------------------------------------------------------------

To see how the application can be customed by editing the iniParms.xml file Install the application on a Windows Internet Server (IIS) as follows:

1 - Unzip AS16657.zip into any directory

2 - Create a Virtual Directory in IIS as follows (preferably
        on your own computer if you have IIS installed):
        * Open the IIS manager
        * Right Click on the Default Web Site
        * Select New>Virtual Directory...
        * With the Wizard Create a new virtual directory for this
            application (say temp)

3 - Browse with URL: http://localhost/temp

4 - Now with an editor (notepad, etc) open up the iniParms.xml
        file and change the following line:
            <direction>ltr</direction>
        to: <direction>rtl</direction>

5 - Browse again with URL: http://localhost/temp
    * The navigation should now be on the right
      and the tools on the left


6 - Now try altering the following values
        <xmin>-130</xmin>
        <ymin>10</ymin>
        <xmax>-70</xmax>
        <ymax>60</ymax>

to:
        <xmin>-100</xmin>
        <ymin>30</ymin>
        <xmax>-80</xmax>
        <ymax>50</ymax>
 &...

  the complete description can be found in the readme.txt file included in the zipfile download.