Wicri:IndiumV1/Génération wiki : Différence entre versions
De Wicri Terre
imported>Jacques Ducloy m (1 révision importée) |
(→Commandes de génération) |
||
(3 révisions intermédiaires par le même utilisateur non affichées) | |||
Ligne 4 : | Ligne 4 : | ||
* [[Wicri:IndiumV1/Paramètres, data|paramétrage de la génération des données]], [[Wicri:IndiumV1/Paramètres, fr|paramétrage de l'interface]] | * [[Wicri:IndiumV1/Paramètres, data|paramétrage de la génération des données]], [[Wicri:IndiumV1/Paramètres, fr|paramétrage de l'interface]] | ||
+ | |||
==Commandes de génération== | ==Commandes de génération== | ||
+ | <source lang="sh"> | ||
+ | EXPLOR_AREA=$WICRI_ROOT/Terre/explor/Indium.storage/IndiumV1 | ||
+ | export EXPLOR_AREA | ||
+ | export LC_ALL='C' | ||
+ | </source> | ||
+ | <source lang="sh" dilib:file="GremilleV2/bin/generPagesWiki.sh"> | ||
+ | |||
+ | MediaWikiExportCommand -c fileBegin > $EXPLOR_AREA/exportMaps.xml | ||
+ | |||
+ | HfdCat $EXPLOR_AREA/Data/Main/Exploration/AffRegion.i.hfd \ | ||
+ | | SxmlCut idx/l \ | ||
+ | | MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/France/localisationRegionFrance.dict \ | ||
+ | -m France -f "France location map-Regions.svg" -s 650 \ | ||
+ | -a IndiumV1 -t "Carte France" \ | ||
+ | -h https://wicri-demo.istex.fr/Wicri/Terre/explor \ | ||
+ | >> $EXPLOR_AREA/exportMaps.xml | ||
+ | |||
+ | HfdCat $EXPLOR_AREA/Data/Main/Exploration/AffRegion.i.hfd \ | ||
+ | | SxmlCut idx/l \ | ||
+ | | MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Allemagne/localisationLandsAllemagne.dict \ | ||
+ | -m Allemagne -f "Germany location map.svg" -s 650 \ | ||
+ | -a IndiumV1 -t "Carte Allemagne Lands" \ | ||
+ | -h https://wicri-demo.istex.fr/Wicri/Terre/explor \ | ||
+ | >> $EXPLOR_AREA/exportMaps.xml | ||
+ | |||
+ | HfdCat $EXPLOR_AREA/Data/Main/Exploration/AffRegion.i.hfd \ | ||
+ | | SxmlCut idx/l \ | ||
+ | | MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Allemagne/localisationRegionAllemagneNuts2.dict \ | ||
+ | -m Allemagne -f "Germany (+districts) location map.svg" -s 650 \ | ||
+ | -a IndiumV1 -t "Carte Allemagne NUTS2" \ | ||
+ | -h https://wicri-demo.istex.fr/Wicri/Terre/explor \ | ||
+ | >> $EXPLOR_AREA/exportMaps.xml | ||
+ | |||
+ | |||
+ | HfdCat $EXPLOR_AREA/Data/Main/Exploration/AffPays.i.hfd \ | ||
+ | | SxmlCut idx/l \ | ||
+ | | MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Europe/localisationPaysEurope.dict \ | ||
+ | -m Europe -f "Europe laea location map.svg" -s 650 \ | ||
+ | -a IndiumV1 -t "Carte Europe" \ | ||
+ | -h https://wicri-demo.istex.fr/Wicri/Terre/explor -I AffPays.i \ | ||
+ | >> $EXPLOR_AREA/exportMaps.xml | ||
+ | |||
+ | HfdCat $EXPLOR_AREA/Data/Main/Exploration/AffPays.i.hfd \ | ||
+ | | SxmlCut idx/l \ | ||
+ | | MediaWikiGeoStatMap -i -o w -g $DILIB/data/Wicri/Europe/localisationPaysEurope.dict \ | ||
+ | -g $DILIB/data/Wicri/Amerique/localisationPaysAmerique.dict \ | ||
+ | -g $DILIB/data/Wicri/Asie/localisationPaysAsie.dict \ | ||
+ | -g $DILIB/data/Wicri/Afrique/localisationPaysAfrique.dict \ | ||
+ | -g $DILIB/data/Wicri/Oceanie/localisationPaysOceanie.dict \ | ||
+ | -m Monde -f "1000pxWorld location map (equirectangular 180).svg.png" -s 1000 \ | ||
+ | -a IndiumV1 -t "Carte Monde" \ | ||
+ | -h https://wicri-demo.istex.fr/Wicri/Terre/explor -I AffPays.i \ | ||
+ | >> $EXPLOR_AREA/exportMaps.xml | ||
+ | |||
+ | |||
+ | MediaWikiExportCommand -c fileEnd >> $EXPLOR_AREA/exportMaps.xml | ||
+ | |||
+ | </source> | ||
+ | |||
+ | ==Commandes de génération (pour mémoire, ancienne version)== | ||
;Pour le wiki Terre: | ;Pour le wiki Terre: |
Version actuelle datée du 7 mars 2024 à 11:43
Cette page introduit un test de génération de pages wiki contenant des cartes avec géolocalisation pour la version IndiumV1 du Serveur d'exploration sur l'indium.
Voit aussi :
Commandes de génération
EXPLOR_AREA=$WICRI_ROOT/Terre/explor/Indium.storage/IndiumV1
export EXPLOR_AREA
export LC_ALL='C'
MediaWikiExportCommand -c fileBegin > $EXPLOR_AREA/exportMaps.xml
HfdCat $EXPLOR_AREA/Data/Main/Exploration/AffRegion.i.hfd \
| SxmlCut idx/l \
| MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/France/localisationRegionFrance.dict \
-m France -f "France location map-Regions.svg" -s 650 \
-a IndiumV1 -t "Carte France" \
-h https://wicri-demo.istex.fr/Wicri/Terre/explor \
>> $EXPLOR_AREA/exportMaps.xml
HfdCat $EXPLOR_AREA/Data/Main/Exploration/AffRegion.i.hfd \
| SxmlCut idx/l \
| MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Allemagne/localisationLandsAllemagne.dict \
-m Allemagne -f "Germany location map.svg" -s 650 \
-a IndiumV1 -t "Carte Allemagne Lands" \
-h https://wicri-demo.istex.fr/Wicri/Terre/explor \
>> $EXPLOR_AREA/exportMaps.xml
HfdCat $EXPLOR_AREA/Data/Main/Exploration/AffRegion.i.hfd \
| SxmlCut idx/l \
| MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Allemagne/localisationRegionAllemagneNuts2.dict \
-m Allemagne -f "Germany (+districts) location map.svg" -s 650 \
-a IndiumV1 -t "Carte Allemagne NUTS2" \
-h https://wicri-demo.istex.fr/Wicri/Terre/explor \
>> $EXPLOR_AREA/exportMaps.xml
HfdCat $EXPLOR_AREA/Data/Main/Exploration/AffPays.i.hfd \
| SxmlCut idx/l \
| MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Europe/localisationPaysEurope.dict \
-m Europe -f "Europe laea location map.svg" -s 650 \
-a IndiumV1 -t "Carte Europe" \
-h https://wicri-demo.istex.fr/Wicri/Terre/explor -I AffPays.i \
>> $EXPLOR_AREA/exportMaps.xml
HfdCat $EXPLOR_AREA/Data/Main/Exploration/AffPays.i.hfd \
| SxmlCut idx/l \
| MediaWikiGeoStatMap -i -o w -g $DILIB/data/Wicri/Europe/localisationPaysEurope.dict \
-g $DILIB/data/Wicri/Amerique/localisationPaysAmerique.dict \
-g $DILIB/data/Wicri/Asie/localisationPaysAsie.dict \
-g $DILIB/data/Wicri/Afrique/localisationPaysAfrique.dict \
-g $DILIB/data/Wicri/Oceanie/localisationPaysOceanie.dict \
-m Monde -f "1000pxWorld location map (equirectangular 180).svg.png" -s 1000 \
-a IndiumV1 -t "Carte Monde" \
-h https://wicri-demo.istex.fr/Wicri/Terre/explor -I AffPays.i \
>> $EXPLOR_AREA/exportMaps.xml
MediaWikiExportCommand -c fileEnd >> $EXPLOR_AREA/exportMaps.xml
Commandes de génération (pour mémoire, ancienne version)
- Pour le wiki Terre
cat <<... > IndiumV1/export.xml
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.8/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.8/ http://www.mediawiki.org/xml/export-0.8.xsd"
version="0.8"
xml:lang="fr">
...
HfdCat IndiumV1/Data/Main/Exploration/AffRegion.i.hfd \
| SxmlCut idx/l \
| MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/France/localisationRegionFrance.dict \
-m France -f "France location map-Regions.svg" -s 650 \
-a IndiumV1 -t "Carte France" \
-u Indium/IndiumV1/Site/fr/Main/ExplorationRegion \
>>IndiumV1/export.xml
HfdCat IndiumV1/Data/Main/Exploration/AffRegion.i.hfd \
| SxmlCut idx/l \
| MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Allemagne/localisationLandsAllemagne.dict \
-m Allemagne -f "Germany location map.svg" -s 650 \
-a IndiumV1 -t "Carte Allemagne Lands" \
-u Indium/IndiumV1/Site/fr/Main/ExplorationRegion \
>>IndiumV1/export.xml
HfdCat IndiumV1/Data/Main/Exploration/AffRegion.i.hfd \
| SxmlCut idx/l \
| MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Allemagne/localisationRegionAllemagneNuts2.dict \
-m Allemagne -f "Germany (+districts) location map.svg" -s 650 \
-a IndiumV1 -t "Carte Allemagne NUTS2" \
-u Indium/IndiumV1/Site/fr/Main/ExplorationRegion \
>>IndiumV1/export.xml
HfdCat IndiumV1/Data/Main/Exploration/AffPays.i.hfd \
| SxmlCut idx/l \
| MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/Europe/localisationPaysEurope.dict \
-m Europe -f "Europe laea location map.svg" -s 650 \
-a IndiumV1 -t "Carte Europe" \
-u Indium/IndiumV1/Site/fr/Main/ExplorationPays \
>>IndiumV1/export.xml
HfdCat IndiumV1/Data/Main/Exploration/AffPays.i.hfd \
| SxmlCut idx/l \
| MediaWikiGeoStatMap -i -o w -g $DILIB/data/Wicri/Europe/localisationPaysEurope.dict \
-g $DILIB/data/Wicri/Amerique/localisationPaysAmerique.dict \
-g $DILIB/data/Wicri/Asie/localisationPaysAsie.dict \
-g $DILIB/data/Wicri/Afrique/localisationPaysAfrique.dict \
-g $DILIB/data/Wicri/Oceanie/localisationPaysOceanie.dict \
-m Monde -f "1000pxWorld location map (equirectangular 180).svg.png" -s 1000 \
-a IndiumV1 -t "Carte Monde" \
-u Indium/IndiumV1/Site/fr/Main/ExplorationPays \
>>IndiumV1/export.xml
cat <<... >> IndiumV1/export.xml
</mediawiki>
...
- Pour le wiki France
cat <<... > IndiumV1/exportFrance.xml
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.8/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.8/ http://www.mediawiki.org/xml/export-0.8.xsd"
version="0.8"
xml:lang="fr">
...
HfdCat IndiumV1/Data/Main/Exploration/AffRegion.i.hfd \
| SxmlCut idx/l \
| MediaWikiGeoStatMap -o w -g $DILIB/data/Wicri/France/localisationRegionFrance.dict \
-m France -f "France location map-Regions.svg" -s 650 \
-a IndiumV1 -t "Carte test" \
-u Terre/Indium/IndiumV1/Site/fr/Main/ExplorationRegion \
>>IndiumV1/exportFrance.xml
cat <<... >> IndiumV1/exportFrance.xml
</mediawiki>
...