Wicri:GalliumV1/Génération wiki : Différence entre versions
De Wicri Terre
imported>Jacques Ducloy m (1 révision importée) |
(Aucune différence)
|
Version actuelle datée du 6 juillet 2017 à 21:38
Cette page introduit un test de génération de pages wiki contenant des cartes avec géolocalisation pour la version GalliumV1 du Serveur d'exploration sur le gallium.
Voit aussi :
Commandes de génération
- Pour le wiki Terre
cat <<... > GalliumV1/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 GalliumV1/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 GalliumV1 -t "Carte France" \
-u Gallium/GalliumV1/Site/fr/Main/ExplorationRegion \
>>GalliumV1/export.xml
HfdCat GalliumV1/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 GalliumV1 -t "Carte Allemagne Lands" \
-u Gallium/GalliumV1/Site/fr/Main/ExplorationRegion \
>>GalliumV1/export.xml
HfdCat GalliumV1/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 GalliumV1 -t "Carte Allemagne NUTS2" \
-u Gallium/GalliumV1/Site/fr/Main/ExplorationRegion \
>>GalliumV1/export.xml
HfdCat GalliumV1/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 GalliumV1 -t "Carte Europe" \
-u Gallium/GalliumV1/Site/fr/Main/ExplorationPays \
>>GalliumV1/export.xml
HfdCat GalliumV1/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 GalliumV1 -t "Carte Monde" \
-u Gallium/GalliumV1/Site/fr/Main/ExplorationPays \
>>GalliumV1/export.xml
cat <<... >> GalliumV1/export.xml
</mediawiki>
...
- Pour le wiki France
cat <<... > GalliumV1/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 GalliumV1/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 GalliumV1 -t "Carte test" \
-u Terre/Gallium/GalliumV1/Site/fr/Main/ExplorationRegion \
>>GalliumV1/exportFrance.xml
cat <<... >> GalliumV1/exportFrance.xml
</mediawiki>
...