Template:Countryshape

From OpenGeofiction Encyclopedia
Jump to: navigation, search


§ Important technical notes to users
This template and the corresponding tags are not up to date. Please extract country shapes directly from JSON data.

How to add data

  1. Go to the relation area calculator tool
    1. Insert the number of the territory relation you want to add. You can find the relation number in the territory overview map.
    2. Press the "enter" key.
    3. To save storage, insert "Simplify=5" for small countries or "Simplify=10" for large countries and press the "enter" key again.
    4. Select "Multimap" and press the "Download" button.
    5. Copy the list of coordinates.
  2. Find the A-Code of the country you want to add. The A-code might be listed in the list of country codes.
    1. Add the code attached below to the "Countryshape template" (please comply with the alphabetical order), including the A-Code and the list of coordinates.
  3. Now you can easily add the country's shape to all multimaps by using the code attached below.

Code to add in the template

-->{{ #ifeq:{{{1}}} | A-CODE |
LAT1,LONG1:LAT2,LONG2:LAT3,LONG3:LAT4,LONG4:...:LATN,LONGN }}<!--

Code to use in the multimap

| polygon = {{Countryshape|A-CODE}} ~Title=... ~Text=... ~Color=... ~Weight=... ~Fillcolor=... ~Opacity=... ~Fillopacity=...

Examples

{{Countryshape | V }}

43.65594991256823,129.99298095703128:43.650981839898684,130.0932312011719:43.529633517604296,130.35552978515628:43.542575722469245,130.51345825195315:43.560491112629286,130.57388305664065:43.64899449575359,130.7304382324219:43.79092385423621,130.5546569824219:43.86126736277113,130.5107116699219:43.87710797572525,130.49148559570315:43.88304712020558,130.45852661132815:43.923615428841146,130.4393005371094:43.96119063892027,130.33218383789065:43.96020212186707,130.23880004882815:43.967121395851485,130.2030944824219:43.96316762368559,130.16876220703128:43.92757183247526,130.13580322265628:43.93251696697599,130.09460449218753:43.91570183215612,130.0602722167969:43.87017822557581,130.01495361328128:43.863247669619895,129.9504089355469:43.82065657651688,129.91882324218753:43.825610591407596,129.8844909667969:43.804800966308385,129.84329223632815:43.79389779242341,129.78973388671878:43.76315996157264,129.75677490234378:43.726452188547015,129.74578857421878:43.717519867330786,129.72244262695315:43.68773584519811,129.70046997070315:43.68574971761676,129.76226806640628:43.65893055889356,129.7966003417969:43.66985832954974,129.91470336914065:43.650981839898684,129.94354248046878:43.65594991256823,129.99160766601565

{{Countryshape | M }}

48.850258199721495,129.15527343750003:48.83579746243093,128.94653320312503:49.0306652257167,127.80395507812501:48.75618876280552,127.72705078125001:48.158757304569235,128.287353515625:47.87214396888731,128.82568359375003:47.58393661978137,129.15527343750003:47.50978034953473,129.41894531250003:47.34626718205302,129.29809570312503:47.14489748555398,129.29809570312503:47.002733906678834,129.71557617187503:46.33934333161124,129.48486328125003:45.94351068030587,129.49584960937503:45.65244828675087,129.26513671875003:45.1510532655634,129.37500000000003:44.87144275016589,129.11132812500003:44.692088041727786,129.24316406250003:44.62175409623327,129.52880859375003:44.29240108529008,129.51782226562503:44.174324837518924,129.27612304687503:43.937461690316646,129.18823242187503:43.70759350405296,129.46289062500003:43.691707903073805,129.66064453125003:43.929549935614595,130.10009765625003:43.96119063892027,130.33081054687503:43.65197548731187,130.79223632812503:43.76315996157264,130.86914062500003:43.96119063892027,130.74829101562503:44.18220395771566,131.02294921875003:44.33170718680922,130.98999023437503:44.61393394730628,131.08886718750003:44.879228141635274,131.30859375000003:45.49094569262732,131.27563476562503:45.67548217560647,131.39648437500003:45.966424541310275,131.71508789062503:46.126556302418514,131.75903320312503:46.55130547880643,132.33032226562503:46.98774725646568,132.57202148437503:47.15984001304432,132.81372070312503:47.22702939886733,133.30810546875003:47.4057852900587,133.72558593750003:47.628380027447164,133.82446289062503:47.754097979680026,134.04418945312503:47.95314495015594,134.08813476562503:48.085418575511994,133.97827148437503:48.23930899024907,133.97827148437503:48.30512072140391,133.83544921875003:48.26125565204099,133.52783203125003:48.07807894349862,133.05541992187503:48.10743118848039,132.59399414062503:48.30512072140391,131.86889648437503:48.60385760823255,129.97924804687503:48.719961222646276,129.84741210937503:48.828565527993234,129.25415039062503

Test

Loading map...