XML templates for windPRO projects: Difference between revisions

From Wiki-WindPRO
Jump to navigation Jump to search
Line 56: Line 56:


  <nowiki><Name>Project name</Name>
  <nowiki><Name>Project name</Name>
<Country>2 letter country ID</Country>
  <Country>2 letter country ID</Country>
<SitePosEast>Site center longitude WGS 84 datum</SitePosEast>
  <SitePosEast>Site center longitude WGS 84 datum</SitePosEast>
<SitePosNorth>Site center latitude WGS 84 datum</SitePosNorth>
  <SitePosNorth>Site center latitude WGS 84 datum</SitePosNorth>
<TimeZone>Time zone in Windows notation
  <TimeZone>Time zone in Windows notation (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones)</TimeZone>
(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time
  <DefaultSystem1>Coordinate system used in GUI</DefaultSystem1>
Zones)</TimeZone>
  <ViewDatum>Datum, only for geographical coordinate system </ViewDatum>
<DefaultSystem1>Coordinate system used in GUI</DefaultSystem1>
  <Zone>Zone for coordinate system, if needed</Zone>
<ViewDatum>Datum, only for geographical coordinate system </ViewDatum>
  <LatNorth>true for latitude positive north, false for positive south</LatNorth>
<Zone>Zone for coordinate system, if needed</Zone>
  <LongEast> true for longitude positive east, false for positive west</LongEast>
<LatNorth>true for latitude positive north, false for positive south</LatNorth>
  <SiteDescription >Site description </SiteDescription >
<LongEast> true for longitude positive east, false for positive west</LongEast>
  <MapColl> Collection of background maps, two types are supported
<SiteDescription >Site description </SiteDescription >
  <Item>
<MapColl> Collection of background maps, two types are supported
    <MapID>Negative integer, must be unique for each map</MapID>
<Item>
    <FormatID>For bitmap files with ESRI world file: 10003 </FormatID>
<MapID>Negative integer, must be unique for each map</MapID>
    <Path>Full file name for bitmap file (*.tif, *.jpg etc </Path>
<FormatID>For bitmap files with ESRI world file: 10003 </FormatID>
    <ScaleInt>Scale of map as integer, e.g. 25000</ScaleInt>
<Path>Full file name for bitmap file (*.tif, *.jpg etc </Path>
    <Text>Map name</Text>
<ScaleInt>Scale of map as integer, e.g. 25000</ScaleInt>
    <System>Coordinate system in world file</System>
<Text>Map name</Text>
    <Datum>Datum in world file</Datum>
<System>Coordinate system in world file</System>
    <Zone>Zone in world file</Zone>
<Datum>Datum in world file</Datum>
  </Item>
<Zone>Zone in world file</Zone>
  <Item>
</Item>
    <FormatID>For WindPRO *.bmi files: 10001</FormatID>
<Item>
    <Path>Full file name for *.bmi file</Path>
<FormatID>For WindPRO *.bmi files: 10001</FormatID>
    <Text>Map name</Text>
<Path>Full file name for *.bmi file</Path>
  </Item>
<Text>Map name</Text>
  </MapColl></nowiki>
</Item>
</MapColl></nowiki>


=== Lists ===
=== Lists ===

Revision as of 11:04, 26 January 2018

Purpose

This paper describes an XML file used to set up initial data for a windPRO project


Disclaimer

This windPRO feature is still in an experimental stage. The XML format relies heavily on the internal structures of windPRO and can be changed from version to version.


Use

The XML template can be created or edited in any tool, either a simple text editor or specialized XML editor. The XML template can be used as argument to a command line launch of windPRO or selected in an open dialog.

Command line launch

windPRO can be launched from a command line (or batch file) as:

wpstart /P=xxxx.xml

Notice that windPRO must be shut down. There is currently no support for creating a new project in a running instance of windPRO.

Open XML template

From a running instance of windPRO, an XML template can be selected in the Open dialog. Note that XML can't be selected as file type, the user must either type the full file name or *.xml and search for the XML template


Format of XML template

The current supported format is described. The format may be enhanced or changed in the future.

Main structure

<?xml version="1.0" ?>
<WindPROProjectInitialize >
  <Filename>c:\Windpro data\projects\newtest.w32p</Filename>
  <Maindata/>
  <Layers/>
  <Objects/>
</WindPROProjectInitialize>

Filename

File name for the new project. <Filename>Full file name (*.w32p)</Filename>

Maindata

The Maindata tag contains the data from WindPRO project properties.

<Name>Project name</Name>
  <Country>2 letter country ID</Country>
  <SitePosEast>Site center longitude WGS 84 datum</SitePosEast>
  <SitePosNorth>Site center latitude WGS 84 datum</SitePosNorth>
  <TimeZone>Time zone in Windows notation (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones)</TimeZone>
  <DefaultSystem1>Coordinate system used in GUI</DefaultSystem1>
  <ViewDatum>Datum, only for geographical coordinate system </ViewDatum>
  <Zone>Zone for coordinate system, if needed</Zone>
  <LatNorth>true for latitude positive north, false for positive south</LatNorth>
  <LongEast> true for longitude positive east, false for positive west</LongEast>
  <SiteDescription >Site description </SiteDescription >
  <MapColl> Collection of background maps, two types are supported
  <Item>
    <MapID>Negative integer, must be unique for each map</MapID>
    <FormatID>For bitmap files with ESRI world file: 10003 </FormatID>
    <Path>Full file name for bitmap file (*.tif, *.jpg etc </Path>
    <ScaleInt>Scale of map as integer, e.g. 25000</ScaleInt>
    <Text>Map name</Text>
    <System>Coordinate system in world file</System>
    <Datum>Datum in world file</Datum>
    <Zone>Zone in world file</Zone>
  </Item>
  <Item>
    <FormatID>For WindPRO *.bmi files: 10001</FormatID>
    <Path>Full file name for *.bmi file</Path>
    <Text>Map name</Text>
  </Item>
  </MapColl>

Lists

Samples