~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to ogr/ogrsf_frmts/kml/drv_kml.html

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
<p>Limited support is available for fills, line color and other styling attributes. Please try a few sample
48
48
files to get a better sense of actual behavior.</p>
49
49
 
 
50
<h3>Encoding issues</h3>
 
51
 
 
52
Expat library supports reading the following built-in encodings :
 
53
<ul>
 
54
<li>US-ASCII</li>
 
55
<li>UTF-8</li>
 
56
<li>UTF-16</li>
 
57
<li>ISO-8859-1</li>
 
58
</ul>
 
59
 
 
60
OGR 1.8.0 adds supports for Windows-1252 encoding (for previous versions, altering the encoding
 
61
mentionned in the XML header to ISO-8859-1 might work in some cases).<p>
 
62
 
 
63
The content returned by OGR will be encoded in UTF-8, after the conversion from the
 
64
encoding mentionned in the file header is.<p>
 
65
 
 
66
If your KML file is not encoded in one of the previous encodings, it will not be parsed by the
 
67
KML driver. You may convert it into one of the supported encoding with the <i>iconv</i> utility
 
68
for example and change accordingly the <i>encoding</i> parameter value in the XML header.<br>
 
69
<p>
 
70
 
 
71
When writing a KML file, the driver expects UTF-8 content to be passed in.<p>
 
72
 
50
73
<h3>Creation Options</h3>
51
74
<p>The following creation options are supported:
52
75
<ul>
61
84
<pre>ogr2ogr -f KML output.kml input.shp -dsco AltitudeMode=absolute</pre>
62
85
</li>  
63
86
</ul>
 
87
 
 
88
 
 
89
<h2>VSI Virtual File System API support</h2>
 
90
 
 
91
(Some features below might require OGR >= 1.9.0)<p>
 
92
 
 
93
The driver supports reading and writing to files managed by VSI Virtual File System API, which include
 
94
"regular" files, as well as files in the /vsizip/ (read-write) , /vsigzip/ (read-write) , /vsicurl/ (read-only) domains.<p>
 
95
 
 
96
Writing to /dev/stdout or /vsistdout/ is also supported.<p>
 
97
 
64
98
<h2>Example</h2>
65
99
The ogr2ogr utility can be used to dump the results of a PostGIS query to
66
100
KML: