Skip to content

Commit

Permalink
manual: db.in.ogr add column type detection for CSV (#4883)
Browse files Browse the repository at this point in the history
* manual: db.in.ogr add column type detection for CSV

Improve CSV import example with GDAL related column type autodetection (suggested by @cmbarton).

Fixes #4674 (see also related issue #4593).

* minor HTML fixes

* imageryintro.html: fix typo; add missing img alt; add missing </li>
  • Loading branch information
neteler committed Dec 27, 2024
1 parent b42fdd2 commit bd53b24
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion general/g.tempfile/g.tempfile.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h2>NOTES</h2>
tempfiles that have been left behind, the programmer should
make every effort to remove these files. They often get
large and take up disk space. If you write <code>/bin/sh</code> scripts,
learn to use the <code>/bin/sh<code> related <code>trap</code> command. If you
learn to use the <code>/bin/sh</code> related <code>trap</code> command. If you
write <code>/bin/csh</code> scripts, learn to use the <code>/bin/csh</code>
related <code>onintr</code> command.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h2>SEE ALSO</h2>

<h2>TODO</h2>

Update this document with x,y,z<->E,N,H information
Update this document with x,y,z&lt;-&gt;E,N,H information

<h2>AUTHORS</h2>

Expand Down
7 changes: 5 additions & 2 deletions imagery/imageryintro.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h3>Image processing in general</h3>
interaction with the sun energy reflected back into space by
ground/vegetation/soil needs to be corrected. The need of
removing atmospheric artifacts stems from the fact that the
atmosphericic conditions are changing over time. Hence, to gain
atmospheric conditions are changing over time. Hence, to gain
comparability between Earth surface images taken at different
times, atmospheric need to be removed converting at-sensor values
which are top of atmosphere to surface reflectance values.
Expand Down Expand Up @@ -114,7 +114,7 @@ <h3>Semantic label information</h3>
a different group with identical semantic labels.

<div align="center" style="margin: 10px">
<img src="band_references_scheme.png" width="600" height="435" border="0"><br>
<img src="band_references_scheme.png" alt="GRASS GIS band references scheme" width="600" height="435" border="0"><br>
<i>
New enhanced classification workflow involving semantic labels.
</i>
Expand Down Expand Up @@ -204,16 +204,19 @@ <h3>Image classification</h3>
or <a href="g.gui.iclass.html">g.gui.iclass</a>, <a href="i.maxlik.html">i.maxlik</a>)
using the Maximum Likelihood classification method</li>
</ul>
</li>
<li> Combined radiometric/geometric (segmentation based) classification:
<ul>
<li> Supervised classification (<a href="i.gensigset.html">i.gensigset</a>,
<a href="i.smap.html">i.smap</a>)</li>
</ul>
</li>
<li> Object-oriented classification:
<ul>
<li> Unsupervised classification (segmentation based:
<a href="i.segment.html">i.segment</a>)</li>
</ul>
</li>
</ul>

Kappa statistic can be calculated to validate the results
Expand Down
2 changes: 1 addition & 1 deletion raster3d/r3.to.rast/r3.to.rast.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ <h2>SEE ALSO</h2>

<h2>AUTHORS</h2>

S&ouml;ren Gebbert
S&ouml;ren Gebbert<br>
Vaclav Petras, <a href="https://geospatial.ncsu.edu/geoforall/">NCSU GeoForAll Lab</a>
3 changes: 2 additions & 1 deletion scripts/db.in.ogr/db.in.ogr.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ <h3>Import CSV file</h3>

<div class="code"><pre>
# NOTE: create koeppen_gridcode.csvt first for automated type recognition
db.in.ogr input=koeppen_gridcode.csv output=koeppen_gridcode
db.in.ogr input=koeppen_gridcode.csv output=koeppen_gridcode gdal_doo="AUTODETECT_TYPE=YES"
db.describe koeppen_gridcode -c
db.select table=koeppen_gridcode
</pre></div>

Expand Down
2 changes: 1 addition & 1 deletion scripts/r.mapcalc.simple/r.mapcalc.simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h2>NOTES</h2>
<li>The variable names are case-insensitive to allow the original
uppercase as well as lowercase as in option names
(unless the <b>-c</b> flag is used).</li>
<li>Option names for each map are just one letter (not amap, etc.).
<li>Option names for each map are just one letter (not amap, etc.).</li>
<li>Output option name is <b>output</b> as for other modules
(not outfile).</li>
<li>Raster map names can be optionally quoted (the <b>-q</b> flag).</li>
Expand Down
2 changes: 1 addition & 1 deletion vector/v.edit/v.edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h3>Tool description</h3>

<li><b>chtype</b> - Change feature type of selected geometry
objects. Points are converted to centroids, centroids to points,
lines to boundaries and boundaries to lines.
lines to boundaries and boundaries to lines.</li>

<li><b>vertexadd</b> - Add vertex(ces) to the given vector lines
or boundaries. Location of the new vertex is given by <b>coord</b>
Expand Down

0 comments on commit bd53b24

Please sign in to comment.