Difference between revisions of "Exchange with mobile application"

From wiki.fine.cz
Jump to navigation Jump to search
m
m
Line 6: Line 6:
'''Data file for exchange with mobile application'''
'''Data file for exchange with mobile application'''


* Data file has ZIP format with extension <code>.g5zip</code>
* Data file has [[wikipedia:ZIP_(file_format)|ZIP format]] with extension <code>.g5zip</code>
*Contains file <code>Index.xml</code> specifying "what is in the ZIP file"
*Contains file <code>Index.xml</code> specifying "what is in the ZIP file"
*Contains other XML files with Template specifications  
*Contains other XML files with [[Named Data Template|Template specifications]]
*Optionally conains XML files with Data definitions
*Optionally conains XML files with [[Named Data Container|Data definitions]]
*Contains other files with attachments of various types (<code>jpg</code>, <code>pdf</code>, ...)
*Contains other files with attachments of [[File (Named Data Type)|various types]] (<code>jpg</code>, <code>pdf</code>, ...)


==== Example of Index.xml ====
==== Example of Index.xml ====

Revision as of 23:44, 27 March 2022

There are some limitations to Data and Template XML file used for exchange data with mobile application:

  • only GUIDs are used to identify items and enumerations
  • coordinates X and Y are specified in GPS coordinates as Latitude and Longitude - data types in Template will be specified here in detail

Data file for exchange with mobile application

Example of Index.xml

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

<G5ZipIndex>

  <UnitSystem Value="Metric" />

  <Language Value="EN" />

  <Category TemplateType="Single" Template="ProjectTemplate.xml" DataType="Single" Data="ProjectData.xml" Root="ProjectData">

  <Category TemplateType="Single" Template="PointsTemplate.xml" DataType="Multi" Data="Points.xml" Root="Points">

  <Category TemplateType="Multi" Template="FiledtTests.xml" DataType="Multi" Data="FieldTests.xml" Root="FieldTests">

</G5ZipIndex>

Example of other XMLs

TemplateXML Type="Single"

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

<Root>

  <Template GUID="{2BBF3527-B079-423B-9A34-AC5666693C36}">

    ...

  </Template>

</Root>


TemplateXML Type="Multi"

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

<Root>

  <Template GUID="...">

    ...

  </Template>

  <Template GUID="...">

    ...

  </Template>

  ...

</Root>


DataXML Type="Single"

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

<Root>

  <Data Template="{2BBF3527-B079-423B-9A34-AC5666693C36}">

    ...

  </Data>

</Root>


DataXML Type="Multi"

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

<Root>

  <Data Template="...">

    ...

  </Data>

  <Data Template="...">

    ...

  </Data>

  ...

</Root>