project:bioosm:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
project:bioosm:start [2018/06/07 23:21] – [K cemu to je] sumie-dh | project:bioosm:start [2018/07/15 14:35] – Added links to wikipedia; plaintext log sachy | ||
---|---|---|---|
Line 97: | Line 97: | ||
==== parse_tellico.sh ==== | ==== parse_tellico.sh ==== | ||
- | <code bash> | + | <code bash parse_tellico.sh> |
#!/bin/bash | #!/bin/bash | ||
# Parse Tellico database to BioOSM index.htm | # Parse Tellico database to BioOSM index.htm | ||
Line 103: | Line 103: | ||
# Print result to stdout | # Print result to stdout | ||
# | # | ||
- | # Generate minis in simg folder | ||
# find ./ -type f -exec mogrify -verbose -layers Dispose -resize 128\> | # find ./ -type f -exec mogrify -verbose -layers Dispose -resize 128\> | ||
# | # | ||
+ | # // vectorLayer.removeFeatures(atol) | ||
+ | # // map.removeLayer(vectorLayer) | ||
# | # | ||
# | # | ||
Line 112: | Line 113: | ||
# | # | ||
# | # | ||
+ | |||
+ | ICON_animalia=" | ||
+ | ICON_bacteria=" | ||
+ | ICON_fungi=" | ||
+ | ICON_chromista=" | ||
+ | ICON_plantae=" | ||
+ | ICON_plostenkoid=" | ||
+ | ICON_protista=" | ||
+ | ICON_biohazard=" | ||
+ | |||
+ | # Return icon by Regnum | ||
+ | function geticon () { | ||
+ | case " | ||
+ | " | ||
+ | echo " | ||
+ | " | ||
+ | echo " | ||
+ | " | ||
+ | echo " | ||
+ | " | ||
+ | echo " | ||
+ | " | ||
+ | echo " | ||
+ | " | ||
+ | echo " | ||
+ | *) | ||
+ | echo " | ||
+ | esac | ||
+ | } | ||
+ | |||
rm -rfv " | rm -rfv " | ||
Line 128: | Line 159: | ||
echo '< | echo '< | ||
echo ' | echo ' | ||
- | echo ' | + | echo ' |
echo ' | echo ' | ||
+ | echo ' | ||
echo ' | echo ' | ||
echo '</ | echo '</ | ||
echo "< | echo "< | ||
- | echo "< | + | echo "< |
+ | echo "< | ||
# Generate select | # Generate select | ||
Line 189: | Line 222: | ||
ox="" | ox="" | ||
oy="" | oy="" | ||
+ | datelog="" | ||
+ | |||
while IFS='' | while IFS='' | ||
Line 197: | Line 232: | ||
kdex=$(echo " | kdex=$(echo " | ||
kdey=$(echo " | kdey=$(echo " | ||
- | kdy=$(echo " | + | kdy=$(echo " |
skop_typ=$(echo " | skop_typ=$(echo " | ||
skop=$(echo " | skop=$(echo " | ||
Line 235: | Line 270: | ||
detpg=" | detpg=" | ||
detpg=" | detpg=" | ||
- | detpg=" | + | detpg=" |
if [[ " | if [[ " | ||
- | detpg=" | + | detpg=" |
fi | fi | ||
if [[ " | if [[ " | ||
- | detpg=" | + | detpg=" |
fi | fi | ||
if [[ " | if [[ " | ||
- | detpg=" | + | detpg=" |
fi | fi | ||
if [[ " | if [[ " | ||
- | detpg=" | + | detpg=" |
fi | fi | ||
if [[ " | if [[ " | ||
- | detpg=" | + | detpg=" |
fi | fi | ||
if [[ " | if [[ " | ||
- | detpg=" | + | detpg=" |
fi | fi | ||
if [[ " | if [[ " | ||
- | detpg=" | + | detpg=" |
fi | fi | ||
if [[ " | if [[ " | ||
Line 285: | Line 320: | ||
detpg=" | detpg=" | ||
fi | fi | ||
- | detpg=" | + | detpg=" |
if [[ " | if [[ " | ||
detpg=" | detpg=" | ||
Line 299: | Line 334: | ||
detpg=" | detpg=" | ||
echo " | echo " | ||
+ | |||
+ | # Plain log of entries | ||
+ | datelog=" | ||
# Pokracujem v hadovi | # Pokracujem v hadovi | ||
Line 310: | Line 348: | ||
fi | fi | ||
spoj=" | spoj=" | ||
+ | spoj=" | ||
spoj=" | spoj=" | ||
ox=" | ox=" | ||
Line 320: | Line 359: | ||
# Predchozi pozice jen 1 zaznam? | # Predchozi pozice jen 1 zaznam? | ||
if [[ " | if [[ " | ||
- | echo "var n$i = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point($ox, | + | samicon=$(geticon $(echo " |
+ | # >&2 echo " | ||
+ | |||
+ | echo "var n$i = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point($ox, | ||
echo " | echo " | ||
spoj="" | spoj="" | ||
Line 327: | Line 369: | ||
# Predchozi pozice vic zaznamu? | # Predchozi pozice vic zaznamu? | ||
if [[ " | if [[ " | ||
- | echo "var n$i = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point($ox, | + | muchicons=$(echo " |
+ | #>& | ||
+ | if [[ " | ||
+ | spojicon=$(geticon $(echo " | ||
+ | #>& | ||
+ | else | ||
+ | spojicon=" | ||
+ | fi | ||
+ | echo "var n$i = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point($ox, | ||
echo " | echo " | ||
spoj="" | spoj="" | ||
Line 341: | Line 391: | ||
fi | fi | ||
spoj=" | spoj=" | ||
+ | spoj=" | ||
spoj=" | spoj=" | ||
sam="< | sam="< | ||
- | sam=" | + | sam=" |
+ | sam=" | ||
if [[ " | if [[ " | ||
- | sam=" | + | sam=" |
fi | fi | ||
if [[ " | if [[ " | ||
- | sam=" | + | sam=" |
fi | fi | ||
if [[ " | if [[ " | ||
- | sam=" | + | sam=" |
fi | fi | ||
if [[ " | if [[ " | ||
- | sam=" | + | sam=" |
fi | fi | ||
if [[ " | if [[ " | ||
- | sam=" | + | sam=" |
fi | fi | ||
if [[ " | if [[ " | ||
- | sam=" | + | sam=" |
fi | fi | ||
if [[ " | if [[ " | ||
- | sam=" | + | sam=" |
fi | fi | ||
if [[ " | if [[ " | ||
Line 393: | Line 445: | ||
sam=" | sam=" | ||
- | #>& | ||
>&2 echo "$co $obs" | >&2 echo "$co $obs" | ||
Line 410: | Line 461: | ||
# Do not forget to print last line when WHILE ends! | # Do not forget to print last line when WHILE ends! | ||
if [[ " | if [[ " | ||
+ | muchicons=$(echo " | ||
+ | if [[ " | ||
+ | samicon=$(geticon $(echo " | ||
+ | else | ||
+ | samicon=" | ||
+ | fi | ||
sam="< | sam="< | ||
+ | else | ||
+ | samicon=$(geticon $(echo " | ||
fi | fi | ||
- | echo "var n$i = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point($kdex, | + | echo "var n$i = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point($kdex, |
echo " | echo " | ||
Line 418: | Line 477: | ||
echo "var ALL = new OpenLayers.Layer.Vector(' | echo "var ALL = new OpenLayers.Layer.Vector(' | ||
- | spagety " | + | spagety " |
echo " | echo " | ||
+ | |||
+ | # Create plaintext log JUST AFTER " | ||
+ | dateloghtm="< | ||
+ | dateloghtm=" | ||
+ | dateloghtm=" | ||
+ | dateloghtm=" | ||
+ | dateloghtm=" | ||
+ | datelogsort=$(echo -e " | ||
+ | dateloghtm=" | ||
+ | dateloghtm=" | ||
+ | echo " | ||
echo "var laycon = [vectorLayer, | echo "var laycon = [vectorLayer, | ||
Line 425: | Line 495: | ||
echo "var $spag = new OpenLayers.Layer.Vector(' | echo "var $spag = new OpenLayers.Layer.Vector(' | ||
spg=$(echo " | spg=$(echo " | ||
- | case "$spag" in | + | icon=$(geticon |
- | " | + | |
- | icon=" | + | |
- | " | + | |
- | icon=" | + | |
- | " | + | |
- | icon=" | + | |
- | " | + | |
- | icon=" | + | |
- | " | + | |
- | icon=" | + | |
- | " | + | |
- | icon=" | + | |
- | *) | + | |
- | icon=" | + | |
- | esac | + | |
spagety " | spagety " | ||
echo " | echo " | ||
Line 449: | Line 503: | ||
spg=$(echo " | spg=$(echo " | ||
echo "var Platyhelminthes = new OpenLayers.Layer.Vector(' | echo "var Platyhelminthes = new OpenLayers.Layer.Vector(' | ||
- | spagety " | + | spagety " |
echo " | echo " | ||
project/bioosm/start.txt · Last modified: 2023/09/21 12:15 by sachy