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 18:18] – [Kusy zdrojaku k nezapomenuti] ruza | project:bioosm:start [2018/07/15 14:35] – Added links to wikipedia; plaintext log sachy | ||
---|---|---|---|
Line 3: | Line 3: | ||
{{template>: | {{template>: | ||
name=Biologicke zbrane ve vasem okoli| | name=Biologicke zbrane ve vasem okoli| | ||
- | image= bioosm:biohazard.svg?200 | | + | image= bioosm:bioosm.jpg?400 | |
founder=[[user: | founder=[[user: | ||
- | interested=[[user: | + | interested=[[user: |
sw=CC| | sw=CC| | ||
hw=N/A| | hw=N/A| | ||
Line 11: | Line 11: | ||
~~META: | ~~META: | ||
status = active | status = active | ||
- | & | + | & |
~~ | ~~ | ||
[[http:// | [[http:// | ||
+ | |||
+ | ==== K cemu to je ==== | ||
+ | |||
+ | * interaktivni mapa vhodna k zobrazovani vetsiho mnozstvi fotek, brmlabi wiki, sluzby typu phtagr a soup se zdaly nevhodne k publikaci tohoto typu obsahu, wiki by byla prilis obludna, na beznych sdilecich obrazkovych sluzbach se neda nic pohodlne dohledavat a davat tam biologicky smysluplne a prehledne popisky | ||
+ | * monitoring zivocichu a rostlin podle zajmu prispevovatelu | ||
+ | * snadne klikaci katalogovani nalezu skrze Tellico nevyzadujici coding skills | ||
+ | * TODO - jednoduche selekce zajmoveho okruhu subjektu [napr. podle rodu, biotopu, datumu] na mape | ||
+ | * procvicovani temne magie commandu grep, sed a regexpu | ||
==== Jak to funguje ==== | ==== Jak to funguje ==== | ||
Line 89: | 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 95: | 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 104: | 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 120: | 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 181: | Line 222: | ||
ox="" | ox="" | ||
oy="" | oy="" | ||
+ | datelog="" | ||
+ | |||
while IFS='' | while IFS='' | ||
Line 189: | 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 227: | 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 277: | Line 320: | ||
detpg=" | detpg=" | ||
fi | fi | ||
- | detpg=" | + | detpg=" |
if [[ " | if [[ " | ||
detpg=" | detpg=" | ||
Line 291: | Line 334: | ||
detpg=" | detpg=" | ||
echo " | echo " | ||
+ | |||
+ | # Plain log of entries | ||
+ | datelog=" | ||
# Pokracujem v hadovi | # Pokracujem v hadovi | ||
Line 302: | Line 348: | ||
fi | fi | ||
spoj=" | spoj=" | ||
+ | spoj=" | ||
spoj=" | spoj=" | ||
ox=" | ox=" | ||
Line 312: | 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 319: | 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 333: | 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 385: | Line 445: | ||
sam=" | sam=" | ||
- | #>& | ||
>&2 echo "$co $obs" | >&2 echo "$co $obs" | ||
Line 402: | 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 410: | 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 417: | 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 441: | 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