Pitney Bowes MapXtreme User Manual

Page 483

Advertising
background image

Appendix B: Customizing MapXtreme

Location of Application Data Files

MapXtreme v7.1

490

Developer Guide

By default, MapXtreme applications look in the following directories for data files:

C:\Program Files\Common Files\MapInfo\MapXtreme\7.x.x—This is the directory the
MapXtreme installer places these files.

The directory where your application is located. For a Windows application, this is the directory
where the .exe file is located. For web applications, this is the directory where the Web.config file
is located.

MapInfo.CoreEngine assembly folder—This directory is the last place any application looks.

The list of directories corresponding to the above locations is obtained via the
ISessions.AppDataPaths property which returns the list as an array of strings. While you cannot add
to this list programmatically, you can add to it by defining a custom section in the application’s
configuration file. This is illustrated in the sample code below. Note that the order in which additional
paths are defined determines the order in which they are searched, and all custom locations are
searched before the default locations listed above.

The following example shows the <SpecialPath> tag:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<configSections>

<section name="MapInfo.CoreEngine"
type="MapInfo.Engine.ConfigSectionHandler,
MapInfo.CoreEngine, Version=6.8.0.536, Culture=neutral,
PublicKeyToken=93e298a0f6b95eb1" />

</configSections>
<MapInfo.CoreEngine>

<ApplicationDataPaths>

<SpecialPath>

<LocalApplicationData>YourCorporation\Your

Application<\LocalApplicationData>

<\SpecialPath>

</ApplicationDataPaths>

</MapInfo.CoreEngine>

</configuration>

Projection file

MapInfoCoordinateSystemSet.xml

Vector symbol file

MapInfow.fnt

Custom symbol directory

CustSymb

Nadcon files

*.las, *.los

jgd2000 files

jgd2000.*

File Type

Filename

Advertising