1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<refentry id='spatialite_xml_load'>
<refmeta>
<refentrytitle>spatialite_xml_load</refentrytitle>
<manvolnum>1</manvolnum>
</refmeta>
<refnamediv>
<refname>spatialite_xml_load</refname>
<refpurpose>
parse any XML document, and create and populate a DB-file
</refpurpose>
</refnamediv>
<refsynopsisdiv id='synopsis'>
<cmdsynopsis>
<command>spatialite_xml_load</command>
<arg choice='opt'><option>-h</option></arg>
<arg choice='opt'><option>-x</option> <replaceable>pathname</replaceable></arg>
<arg choice='opt'><option>-d</option> <replaceable>pathname</replaceable></arg>
<arg choice='opt'><option>-cg</option></arg>
<arg choice='opt'><option>-xl</option></arg>
<arg choice='opt'><option>-nl</option> <replaceable>num</replaceable></arg>
<arg choice='opt'><option>-pl</option> <replaceable>num</replaceable></arg>
<arg choice='opt'><option>-jo</option></arg>
<arg choice='opt'><option>-cs</option> <replaceable>num</replaceable></arg>
<arg choice='opt'><option>-m</option></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 id='description'>
<title>DESCRIPTION</title>
<para>
<command>spatialite_xml_load</command> will parse any generic XML
document of unlimited complexity, and will consequently create and
populate a DB-file faithfully translating the XML tree into many
relationally joined DBMS tables.
</para>
<para>
The whole translation is performed in such a way so to be sure that
absolutely no information will be never lost or suppressed.
</para>
<para>
If two (or even more) XML files share exactly the same identical
logical layout (i.e. they all support the same identical formal schema
definition) this tool is capable to merge all them within the same
DB-file.
</para>
<para>
There are no imposed size-limits: some huge GML files as big as many GBs
have been successfully loaded by using this tool.
</para>
</refsect1>
<refsect1 id='options'>
<title>OPTIONS</title>
<variablelist>
<varlistentry>
<term><option>-h</option></term>
<term><option>--help</option></term>
<listitem>
<para>show help message</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-x</option> <replaceable>pathname</replaceable></term>
<term><option>--xml-path</option> <replaceable>pathname</replaceable></term>
<listitem>
<para>the XML file path</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-d</option> <replaceable>pathname</replaceable></term>
<term><option>--db-path</option> <replaceable>pathname</replaceable></term>
<listitem>
<para>the SpatiaLite DB path</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-cg</option></term>
<term><option>--collapsed-gml</option></term>
<listitem>
<para>collapsed GML Geometries</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-xl</option></term>
<term><option>--xlink-href</option></term>
<listitem>
<para>special GML xlink:href handling</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-nl</option> <replaceable>num</replaceable></term>
<term><option>--nl-level</option> <replaceable>num</replaceable></term>
<listitem>
<para>tree-level for table-names (default: 0)</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-pl</option> <replaceable>num</replaceable></term>
<term><option>--parent-levels</option> <replaceable>num</replaceable></term>
<listitem>
<para>how many ancestors for table-names (default: \-1)</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-jo</option></term>
<term><option>--journal-off</option></term>
<listitem>
<para>unsafe [but faster] mode</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-cs</option> <replaceable>num</replaceable></term>
<term><option>--cache-size</option> <replaceable>num</replaceable></term>
<listitem>
<para>DB cache size (how many pages)</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-m</option></term>
<term><option>--in-memory</option></term>
<listitem>
<para>using IN-MEMORY database</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
</refentry>
|