repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
drivesense/server | src/helpers/client.js | 263 | import axios from 'axios';
export default token => {
return axios.create({
headers: token ? {Authorization: `Bearer ${token}`} : {},
baseURL: process.env.WEBPACK_ENV !== 'client' ? `http://${process.env.API_HOST}:${process.env.API_PORT}/` : '/'
});
} | mit |
BillysInterns/hv-client | tests/elevate/HVObjects/Generic/AwakeningTest.php | 906 | <?php
/**
* Created by JetBrains PhpStorm.
* User: bnissen
* Date: 11/4/13
* Time: 2:55 PM
* To change this template use File | Settings | File Templates.
*/
namespace elevate\test\HVObjects\Generic;
use elevate\HVObjects\Generic\Date\DateTime;
use elevate\HVObjects\Generic\Date\Date;
use elevate\HVObjects\Generic\Date\Time;
use elevate\HVObjects\Generic\Awakening;
use elevate\test\HVObjects\BaseObjectTest;
class AwakeningTest extends BaseObjectTest
{
public static function setUpBeforeClass ()
{
self::$sampleXMLPath = __DIR__ . '/../SampleXML/Generic/Awakening.xml';
self::$objectNamespace = 'elevate\HVObjects\Generic\Awakening';
$date = new Date(1991, 2, 4);
$time = new Time(4, 20, 28, 9);
$dateTime = new DateTime($date, $time);
self::$testObject = new Awakening($dateTime, 10);
parent::setUpBeforeClass();
}
} | mit |
smallproject/library_system | source/Library_system/Library_system/Database/UnitOfWork/AccountUow.cs | 1905 | using System;
using System.Text;
using System.Windows.Forms;
namespace Library_system.Database.UnitOfWork
{
interface IAccountUow : IBase
{
Account Account { get; set; }
void ReadVarAccount();
}
class AccountUow : IAccountUow
{
public bool Create()
{
using (dbContext = new LibrarySystemContext())
{
try
{
dbContext.Accounts.Add(Account);
dbContext.SaveChanges();
}
catch (Exception e)
{
MessageBox.Show(e.Message);
throw new NotImplementedException();
}
}
return true;
}
public bool Update()
{
throw new NotImplementedException();
}
public bool Delete()
{
throw new NotImplementedException();
}
private LibrarySystemContext dbContext;
public Account Account { get; set; }
public void ReadVarAccount()
{
StringBuilder text = new StringBuilder();
//needs to created ienumerator for account class
//to enable foreach loop
//foreach (var data in Account)
//{
// text.AppendLine(Account.);
//}
text.AppendLine(Account.FirstName);
text.AppendLine(Account.LastName);
text.AppendLine(Account.BirthDate.ToString());
text.AppendLine(Account.Gender);
text.AppendLine(Account.MobileNumber);
text.AppendLine(Account.Email);
try
{
MessageBox.Show(text.ToString());
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
}
}
}
| mit |
CBurbidge/Konnie | Konnie/Runner/TaskRunner.cs | 3389 | using System;
using System.Collections.Generic;
using System.IO.Abstractions;
using System.Linq;
using Konnie.InzOutz;
using Konnie.Model.FilesHistory;
using Konnie.Model.Tasks;
using Konnie.Runner.Logging;
namespace Konnie.Runner
{
/// <summary>
/// This is the concrete class to run stuff.
/// This should have minimum logic in it, just build up dependencies and run the files.
/// </summary>
public class TaskRunner : IKonnieRunner
{
private const string VerboseLogFilePath = "VerboseLog.log";
public void Run(KonnieProgramArgs args, ILogger loggerInj = null, IFileSystem fsInj = null)
{
var fs = fsInj ?? new FileSystem();
var logger = loggerInj ?? new ConsoleLogger(args.Verbose);
logger.Verbose($"Project directory is '{args.ProjectDir}'");
logger.Verbose($"Task is '{args.Task}'");
logger.Verbose("Files:");
foreach (var file in args.Files)
{
logger.Verbose($"Konnie file: '{file}'");
}
args.Validate(fs);
try
{
var historyFileConverter = new HistoryFileConverter(logger, fs);
var filesHistoryFactory = new FilesHistoryFactory(logger, fs, historyFileConverter);
var kFileCombiner = new KFileCombiner(logger, fs);
var filesHistory = filesHistoryFactory.Create(args.HistoryFile, args.Task);
var fileSystemHandler = new FileSystemHandler(args.ProjectDir, filesHistory, logger);
var kFile = kFileCombiner.Combine(args.Files);
if (kFile.IsValid(args.Task) == false)
{
throw new CombinedKFileIsInvalid(args.Files);
}
var taskToRun = kFile.Tasks.Single(t => t.Name == args.Task);
var anySubTasksNeedToRun = kFile.SubTasks
.Any(
st => taskToRun.SubTasksToRun.Contains(st.Name)
&& st.NeedToRun(fileSystemHandler));
var anyOfTheKonnieFilesAreDifferent = args.Files.Any(f =>
{
var lastModified = fs.File.GetLastWriteTime(f);
logger.Verbose($"LastWriteTime of file '{f}' is {lastModified}");
return filesHistory.FileIsDifferent(f, lastModified);
});
var runKonnie = anySubTasksNeedToRun || anyOfTheKonnieFilesAreDifferent;
if (runKonnie)
{
logger.Terse("Running Konnie.");
foreach (var subTaskName in taskToRun.SubTasksToRun)
{
var subTask = kFile.SubTasks.Single(st => st.Name == subTaskName);
subTask.Run(fileSystemHandler, kFile.VariableSets);
}
logger.Verbose("Commiting changes to file history.");
filesHistory.CommitChanges();
logger.Terse("All done.");
}
else
{
logger.Terse("Not run as doesn't need to.");
}
}
catch (Exception e) // catch everything and throw out the verbose log.
{
logger.Terse("Konnie failed to run task. Exception message is:");
logger.Terse(e.Message);
var verboseLog = logger.GetLog(LogType.Verbose);
try
{
var dateStampedFilePath = VerboseLogFilePath + DateTime.Now.ToString("s").Replace(":", "");
var verboseLogFilePath = fs.Path.Combine(args.ProjectDir, dateStampedFilePath);
fs.File.WriteAllText(verboseLogFilePath, verboseLog);
logger.Terse($"Verbose log written to '{verboseLogFilePath}'");
}
catch (Exception fileWriteEx)
{
throw new Exception(verboseLog + Environment.NewLine + fileWriteEx.Message);
}
throw e;
}
}
}
public interface IKonnieRunner
{
void Run(KonnieProgramArgs args, ILogger logger, IFileSystem fs);
}
} | mit |
tomjebo/Open-XML-SDK | src/DocumentFormat.OpenXml/GeneratedCode/Packaging/StyleDefinitionsPart.g.cs | 1401 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using DocumentFormat.OpenXml.Framework;
using System;
using System.Collections.Generic;
namespace DocumentFormat.OpenXml.Packaging
{
/// <summary>
/// Defines the StyleDefinitionsPart
/// </summary>
[ContentType(ContentTypeConstant)]
[RelationshipTypeAttribute(RelationshipTypeConstant)]
public partial class StyleDefinitionsPart : StylesPart, IFixedContentTypePart
{
internal const string ContentTypeConstant = "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml";
internal const string RelationshipTypeConstant = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles";
/// <summary>
/// Creates an instance of the StyleDefinitionsPart OpenXmlType
/// </summary>
internal protected StyleDefinitionsPart()
{
}
/// <inheritdoc/>
public sealed override string ContentType => ContentTypeConstant;
/// <inheritdoc/>
public sealed override string RelationshipType => RelationshipTypeConstant;
/// <inheritdoc/>
internal sealed override string TargetName => "styles";
/// <inheritdoc/>
internal sealed override string TargetPath => ".";
}
}
| mit |
dblock/slack-ruby-client | spec/slack/web/api/mixins/conversations_list_spec.rb | 898 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Slack::Web::Client do
context 'conversations_setTopic' do
it 'does not invoke conversations_list', vcr: { cassette_name: 'web/conversations_setTopic' } do
rc = subject.conversations_setTopic({ channel: 'C018Y6VH39D', topic: 'new topic' })
expect(rc.channel.topic.value).to eq 'new topic'
end
it 'resolves IDs via conversations_list', vcr: { cassette_name: 'web/conversations_setTopic_one_page' } do
rc = subject.conversations_setTopic({ channel: '#1', topic: 'new topic' })
expect(rc.channel.topic.value).to eq 'new topic'
end
it 'paginates to resolve IDs', vcr: { cassette_name: 'web/conversations_setTopic_paginated' } do
rc = subject.conversations_setTopic({ channel: '#topic', topic: 'new topic' })
expect(rc.channel.topic.value).to eq 'new topic'
end
end
end
| mit |
jcollado/rabbithole | stubs/pika.py | 196 | class URLParameters(object):
def __init__(self, server):
pass
class BlockingConnection(object):
def __init__(self, parameters):
pass
def channel(self):
pass
| mit |
mcw0933/kimono_rss | spec/lib/kimono_labs_client/utils_spec.rb | 486 | require 'rails_helper'
require 'json'
RSpec.describe KimonoLabsClient::Utils do
context 'given a diff to perform' do
let(:a) { JSON.parse('{ "field1": "value", "field2": 5 }') }
let(:b) { JSON.parse('{ "field2": 5, "field1": "value" }') }
subject { described_class }
it 'detects diffs' do
expect(subject.diff(nil, a)).equal? true
end
it 'does not detect false positives when diffing' do
expect(subject.diff(b, a)).equal? false
end
end
end
| mit |
propelorm/Propel3 | src/Generator/Behavior/Sortable/Component/SortableManager/MoveDownMethod.php | 1354 | <?php
/**
* This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
namespace Propel\Generator\Behavior\Sortable\Component\SortableManager;
use Propel\Generator\Builder\Om\Component\BuildComponent;
use Propel\Generator\Builder\Om\Component\NamingTrait;
/**
* @author Marc J. Schmidt <marc@marcjschmidt.de>
* @author Cristiano Cinotti <cristianocinotti@gmail.com>
*/
class MoveDownMethod extends BuildComponent
{
use NamingTrait;
public function process()
{
$body = "
if (\$this->isLast(\$entity)) {
return;
}
if (null === \$con) {
\$con = Configuration::getCurrentConfiguration()->getConnectionManager({$this->getEntityMapClassName()}::DATABASE_NAME)->getWriteConnection();
}
\$con->transaction(function () use (\$entity, \$con) {
\$next = \$this->getNext(\$entity);
\$this->swapWith(\$entity, \$next, \$con);
});
";
$this->addMethod('moveDown')
->addSimpleParameter('entity', $this->getObjectClassName())
->addSimpleParameter('con', 'ConnectionInterface', null)
->setDescription('Move the object higher in the list, i.e. exchanges its rank with the one of the next object')
->setBody($body)
;
}
}
| mit |
jhanley634/testing-tools | problem/nearby_zips/show_nearby_zips.py | 3752 | #! /usr/bin/env python
# Copyright 2018 John Hanley.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# The software is provided "AS IS", without warranty of any kind, express or
# implied, including but not limited to the warranties of merchantability,
# fitness for a particular purpose and noninfringement. In no event shall
# the authors or copyright holders be liable for any claim, damages or
# other liability, whether in an action of contract, tort or otherwise,
# arising from, out of or in connection with the software or the use or
# other dealings in the software.
import os
import folium
import sqlalchemy as sa
import unyt
import uszipcode
class NearbyZips:
def __init__(self):
self.search = uszipcode.SearchEngine()
def _get_zipcode_table(self):
con = self.search.ses.connection()
meta = sa.MetaData(bind=con)
return sa.Table('simple_zipcode', meta, autoload=True)
def zips_near(self, zipcode):
zipcode = f'{int(zipcode):05d}'
r = self.search.by_zipcode(zipcode)
lng_bounds = r.bounds_west, r.bounds_east
lat_bounds = r.bounds_south, r.bounds_north
zips = self._get_zipcode_table()
q = (self.search.ses
.query(zips.c.zipcode)
.filter(zips.c.zipcode_type == 'Standard')
# NW, NE, SE, SW
.filter((zips.c.bounds_north.between(*lat_bounds)
& zips.c.bounds_west.between(*lng_bounds))
| (zips.c.bounds_north.between(*lat_bounds)
& zips.c.bounds_east.between(*lng_bounds))
| (zips.c.bounds_south.between(*lat_bounds)
& zips.c.bounds_east.between(*lng_bounds))
| (zips.c.bounds_south.between(*lat_bounds)
& zips.c.bounds_west.between(*lng_bounds)))
.order_by(zips.c.zipcode)
)
return list({zipcode for zipcode, in q})
def plot_zips(self, zipcodes, fspec='~/Desktop/map.html'):
r = self.search.by_zipcode(zipcodes[0])
map_ = folium.Map(
location=(r.lat, r.lng),
tiles='Stamen Terrain',
)
for zipcode in zipcodes:
self._plot_zip(zipcode, map_)
map_.save(os.path.expanduser(fspec))
def _plot_zip(self, zipcode, map_):
r = self.search.by_zipcode(zipcode)
radius = r.radius_in_miles * unyt.mile
nw = r.bounds_north, r.bounds_west
se = r.bounds_south, r.bounds_east
sp = ' '
msg = f'{zipcode}, radius{sp}={sp}{radius}'
folium.Circle(
location=[r.lat, r.lng],
radius=radius.to_value('m'),
tooltip=msg,
color='purple',
).add_to(map_)
folium.CircleMarker(
location=[r.lat, r.lng],
radius=6, # px
popup=msg,
color='purple',
fill=True,
fill_opacity=.7,
).add_to(map_)
folium.Rectangle(
bounds=(nw, se),
tooltip=msg,
color='DarkBlue',
).add_to(map_)
if __name__ == '__main__':
nz = NearbyZips()
nz.plot_zips(nz.zips_near(90210))
| mit |
autofac/Autofac.Extras.MvvmCross | src/Autofac.Extras.MvvmCross/AutofacPropertyInjectorOptions.cs | 956 | //-----------------------------------------------------------------------
// <auto-generated />
//-----------------------------------------------------------------------
namespace Autofac.Extras.MvvmCross
{
using Autofac.Core;
using global::MvvmCross.IoC;
/// <summary>
/// Autofac property injection options.
/// </summary>
/// <seealso cref="Autofac.Extras.MvvmCross.IAutofacPropertyInjectorOptions" />
public class AutofacPropertyInjectorOptions : MvxPropertyInjectorOptions, IAutofacPropertyInjectorOptions
{
/// <summary>
/// Gets or sets the mechanism that determines properties to inject.
/// </summary>
/// <value>
/// An <see cref="IPropertySelector" /> that allows for custom determination of
/// which properties to inject when property injection is enabled.
/// </value>
public IPropertySelector PropertyInjectionSelector { get; set; }
}
}
| mit |
kazinduzi/kasoko | application/backend/controllers/configuration/PluginsController.php | 1174 | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of PluginsController
*
* @author Emmanuel Ndayiragije <endayiragije@gmail.com>
*/
class ConfigurationPluginsController extends Admin_controller
{
/**
* Constructor
*
* @param \Request $req
* @param \Response $res
*/
public function __construct(\Request $req = null, \Response $res = null)
{
parent::__construct($req, $res);
$this->Template->setViewSuffix('phtml');
}
/**
* IndexAction
*/
public function index()
{
$this->Template->setFilename('plugins/overview');
$this->title = __('plugins overview');
$listPlugins = \library\Plugin::getList();
$allInstalledPlugins = \library\Plugin::getAllInstalled();
$allActivePlugins = \library\Plugin::getAllActive();
$this->listPlugins = $listPlugins;
$this->allActivePlugins = $allActivePlugins;
$this->allInstalledPlugins = $allInstalledPlugins;
}
}
| mit |
microsoftgraph/msgraph-sdk-java | src/main/java/com/microsoft/graph/requests/AuthenticationMethodConfigurationCollectionResponse.java | 846 | // Template Source: BaseEntityCollectionResponse.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.requests;
import com.microsoft.graph.models.AuthenticationMethodConfiguration;
import com.microsoft.graph.http.BaseCollectionResponse;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Authentication Method Configuration Collection Response.
*/
public class AuthenticationMethodConfigurationCollectionResponse extends BaseCollectionResponse<AuthenticationMethodConfiguration> {
}
| mit |
bbonnin/mongo2els | src/main/java/io/millesabords/mongo2els/RealtimeIndexing.java | 2361 | package io.millesabords.mongo2els;
import org.bson.Document;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.client.Client;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Streaming mode of Mongo2Els.
*
* @author Bruno Bonnin
*/
public class RealtimeIndexing implements OplogListener {
private static Logger LOGGER = LoggerFactory.getLogger(RealtimeIndexing.class);
private final Client elsClient;
private final Config cfg = Config.get();
public RealtimeIndexing(final Client elsClient) {
this.elsClient = elsClient;
}
@Override
public void onOplog(final Document oplog) {
//TODO : use of the projection. For the moment, index the whole document
final String elsIndex = cfg.get(Config.ELS_INDEX);
final String elsType = cfg.get(Config.ELS_TYPE);
final boolean useMongoId = cfg.getBoolean(Config.ELS_USE_MONGO_ID);
final String operation = oplog.getString("op"); // operation : u=update, i=insert, d=delete
if ("i".equalsIgnoreCase(operation)) {
final Document obj = (Document) oplog.get("o");
String id = null;
if (!useMongoId) {
obj.put(cfg.get(Config.ELS_MONGO_ID_NAME), obj.remove("_id"));
}
else {
id = obj.remove("_id").toString();
}
try {
elsClient
.prepareIndex(elsIndex, elsType, id)
.setSource(obj)
.get();
}
catch (final ElasticsearchException e) {
LOGGER.error("Index doc=" + obj, e);
}
}
else if ("d".equalsIgnoreCase(operation)) {
final Document obj = (Document) oplog.get("o");
try {
if (useMongoId) {
elsClient
.prepareDelete(elsIndex, elsType, obj.get("_id").toString())
.get();
}
else {
LOGGER.warn("No more 'delete by query' in Elasticsearch");
}
}
catch (final ElasticsearchException e) {
LOGGER.error("Index doc=" + obj, e);
}
}
else {
// Ignore other operations
}
}
}
| mit |
rodjek/bluster | lib/bluster/errors.rb | 120 | class Bluster
class ObjectCacheNotFound < StandardError
end
class RedisConnectionError < StandardError
end
end
| mit |
jswanner/markdown-buttons | tests/integration/components/markdown-h3-test.js | 1609 | import hbs from 'htmlbars-inline-precompile';
import { moduleForComponent, test } from 'ember-qunit';
moduleForComponent('markdown-h3', 'Integration | Component | markdown h3', {
integration: true
});
test('with cursor in default position tokens are appended', function(assert) {
assert.expect(1);
this.set('value', 'some text here');
this.on('valueDidChange', (value) => {
assert.equal(value, 'some text here### ', 'updated value');
});
this.render(hbs`
{{#markdown-h3 action="valueDidChange" for='input'}}button text{{/markdown-h3}}
{{input id='input' value=(readonly value)}}
`);
this.$('button').click();
});
test('with cursor in specific position tokens wrap position', function(assert) {
assert.expect(1);
this.set('value', 'some text here');
this.on('valueDidChange', (value) => {
assert.equal(value, 'some ### text here', 'updated value');
});
this.render(hbs`
{{#markdown-h3 action="valueDidChange" for='input'}}button text{{/markdown-h3}}
{{input id='input' value=(readonly value)}}
`);
this.$('input').get(0).setSelectionRange(5, 5);
this.$('button').click();
});
test('tokens wrap selected text', function(assert) {
assert.expect(1);
this.set('value', 'some text here');
this.on('valueDidChange', (value) => {
assert.equal(value, 'some ### text here', 'updated value');
});
this.render(hbs`
{{#markdown-h3 action="valueDidChange" for='input'}}button text{{/markdown-h3}}
{{input id='input' value=(readonly value)}}
`);
this.$('input').get(0).setSelectionRange(5, 9);
this.$('button').click();
});
| mit |
VanceKingSaxbeA/FTSE-Engine | App/BLZ.php | 8676 | /*Owner & Copyrights: Vance King Saxbe. A.*//*Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe@yahoo.com. Development teams from Power Dominion Enterprise, Precieux Consulting. Project sponsored by GoldSax Foundation, GoldSax Group and executed by GoldSax Manager.*/
$stream = file_get_contents('BLZLAST.txt');
$avgp = "1860.50";
$high = "1912.00";
$low = "1853.00";
echo "&L=".$stream."&N=BLZ&";
$temp = file_get_contents("BLZTEMP.txt", "r");
if ($stream != $temp ) {
$mhigh = ($avgp + $high)/2;
$mlow = ($avgp + $low)/2;
$llow = ($low - (($avgp - $low)/2));
$hhigh = ($high + (($high - $avgp)/2));
if ( $stream > $temp ) {
if ( ($stream > $mhigh ) && ($stream < $high)) { echo "&sign=au" ; }
if ( ($stream < $mlow ) && ($stream > $low)) { echo "&sign=ad" ; }
if ( $stream < $llow ) { echo "&sign=as" ; }
if ( $stream > $hhigh ) { echo "&sign=al" ; }
if ( ($stream < $hhigh) && ($stream > $high)) { echo "&sign=auu" ; }
if ( ($stream > $llow) && ($stream < $low)) { echo "&sign=add" ; }
//else { echo "&sign=a" ; }
}
if ( $stream < $temp ) {
if ( ($stream >$mhigh) && ($stream < $high)) { echo "&sign=bu" ; }
if ( ($stream < $mlow) && ($stream > $low)) { echo "&sign=bd" ; }
if ( $stream < $llow ) { echo "&sign=bs" ; }
if ( $stream > $hhigh ) { echo "&sign=bl" ; }
if ( ($stream < $hhigh) && ($stream > $high)) { echo "&sign=buu" ; }
if ( ($stream > $llow) && ($stream < $low)) { echo "&sign=bdd" ; }
// else { echo "&sign=b" ; }
}
$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$time = date('h:i:s',$new_time);
$filename= 'BLZ.txt';
$file = fopen($filename, "a+" );
fwrite( $file, $stream.":".$time."\r\n" );
fclose( $file );
if (($stream > $mhigh ) && ($temp<= $mhigh ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$time = date('h:i:s',$new_time);
$risk = ($stream - $low) * (200000/$stream);
$risk = (int)$risk;
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :".$stream. ":Approaching:PHIGH:".$high.":Buy Cost:".$risk."\r\n");
fclose( $filedash );
}
if (($stream < $mhigh ) && ($temp>= $mhigh ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$risk = ($high - $stream) * (200000/$stream);
$risk = (int)$risk;
$time = date('h:i:s',$new_time);
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :". $stream.":Moving Down:PHIGH:".$high.":short Cost:".$risk."\r\n");
fclose( $filedash );
}
if (($stream > $mlow ) && ($temp<= $mlow ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$time = date('h:i:s',$new_time);
$risk = ($stream - $low) * (200000/$stream);
$risk = (int)$risk;
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :".$stream. ":Moving Up:PLOW:".$low.":Buy Cost:".$risk."\r\n");
fclose( $filedash );
}
if (($stream < $mlow ) && ($temp>= $mlow ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$risk = ($high - $stream) * (200000/$stream);
$risk = (int)$risk;
$time = date('h:i:s',$new_time);
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :". $stream.":Approaching:PLOW:".$low.":short Cost:".$risk."\r\n");
fclose( $filedash );
}
if (($stream > $high ) && ($temp<= $high ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$time = date('h:i:s',$new_time);
$risk = ($stream - $low) * (200000/$stream);
$risk = (int)$risk;
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :".$stream. ":Breaking:PHIGH:".$high.":Buy Cost:".$risk."\r\n");
fclose( $filedash );
}
if (($stream > $hhigh ) && ($temp<= $hhigh ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$time = date('h:i:s',$new_time);
$risk = ($stream - $low) * (200000/$stream);
$risk = (int)$risk;
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :".$stream. ":Moving Beyond:PHIGH:".$high.":Buy Cost:".$risk."\r\n");
fclose( $filedash );
}
if (($stream < $hhigh ) && ($temp>= $hhigh ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$time = date('h:i:s',$new_time);
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :". $stream. ":Coming near:PHIGH:".$high.":Buy Cost:".$risk."\r\n");
fclose( $filedash );
}
if (($stream < $high ) && ($temp>= $high ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$time = date('h:i:s',$new_time);
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :". $stream. ":Retracing:PHIGH:".$high."\r\n");
fclose( $filedash );
}
if (($stream < $llow ) && ($temp>= $llow ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$risk = ($high - $stream) * (200000/$stream);
$risk = (int)$risk;
$time = date('h:i:s',$new_time);
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :". $stream.":Breaking Beyond:PLOW:".$low.":short Cost:".$risk."\r\n");
fclose( $filedash );
}
if (($stream < $low ) && ($temp>= $low ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$risk = ($high - $stream) * (200000/$stream);
$risk = (int)$risk;
$time = date('h:i:s',$new_time);
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :". $stream.":Breaking:PLOW:".$low.":short Cost:".$risk."\r\n");
fclose( $filedash );
}
if (($stream > $llow ) && ($temp<= $llow ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$time = date('h:i:s',$new_time);
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :". $stream.":Coming near:PLOW:".$low.":short Cost:".$risk."\r\n");
fclose( $filedash );
}
if (($stream > $low ) && ($temp<= $low ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$time = date('h:i:s',$new_time);
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :". $stream.":Retracing:PLOW:".$low."\r\n");
fclose( $filedash );
}
if (($stream > $avgp ) && ($temp<= $avgp ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$risk = ($stream - $low) * (200000/$stream);
$risk = (int)$risk;
$avgp = number_format($avgp, 2, '.', '');
$time = date('h:i:s',$new_time);
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :".$stream. ":Sliding up:PAVG:".$avgp.":Buy Cost:".$risk."\r\n");
fclose( $filedash );
}
if (($stream < $avgp ) && ($temp>= $avgp ))
{$my_time = date('h:i:s',time());
$seconds2add = 19800;
$new_time= strtotime($my_time);
$new_time+=$seconds2add;
$risk = ($high - $stream) * (200000/$stream);
$risk = (int)$risk;
$avgp = number_format($avgp, 2, '.', '');
$time = date('h:i:s',$new_time);
$filedash = fopen("C:\wamp\www\alert.txt", "a+");
$wrote = fputs($filedash, "Emblaze Ld :".$stream. ":Sliding down:PAVG:".$avgp.":Short Cost:".$risk."\r\n");
fclose( $filedash );
}
}
$filedash = fopen("BLZTEMP.txt", "w");
$wrote = fputs($filedash, $stream);
fclose( $filedash );
//echo "&chg=".$json_output['cp']."&";
?>
/*email to provide support at vancekingsaxbe@powerdominionenterprise.com, businessaffairs@powerdominionenterprise.com, For donations please write to fundraising@powerdominionenterprise.com*/ | mit |
lyschoening/meteor-ejson-python | ejson/__init__.py | 4456 | from base64 import b64decode, b64encode
import calendar
from collections import OrderedDict
from datetime import date, datetime
import json
import six
EJSON_KEYWORDS = ("$date", "$type", "$value", "$escape", "$binary")
try:
from datetime import timezone
except ImportError:
from datetime import tzinfo, timedelta
class timezone(tzinfo):
def __init__(self, utcoffset, name=None):
self._utcoffset = utcoffset
self._name = name
def utcoffset(self, dt):
return self._utcoffset
def tzname(self, dt):
return self._name
def dst(self, dt):
return timedelta(0)
timezone.utc = timezone(timedelta(0), 'UTC')
class UnknownTypeError(ValueError):
pass
class EJSONEncoder(json.JSONEncoder):
def __init__(self, *args, **kwargs):
self.custom_type_hooks = kwargs.pop('custom_type_hooks', ())
json.JSONEncoder.__init__(self, *args, **kwargs)
def encode(self, o):
if self.check_circular:
markers = {}
else:
markers = None
def _encode(o):
if isinstance(o, (list, tuple, dict)):
if markers is not None:
marker_id = id(o)
if marker_id in markers:
raise ValueError("Circular reference detected")
markers[marker_id] = o
try:
if isinstance(o, dict):
dict_cls = OrderedDict if isinstance(o, OrderedDict) else dict
if any(kw in o for kw in EJSON_KEYWORDS):
return {"$escape": dict_cls((k, _encode(v)) for k, v in o.items())}
return dict_cls((k, _encode(v)) for k, v in o.items())
else:
return [_encode(v) for v in o]
finally:
if markers is not None:
del markers[marker_id]
if isinstance(o, date):
return {"$date": int(calendar.timegm(o.timetuple()) * 1000)}
if isinstance(o, datetime):
return {"$date": int(calendar.timegm(o.utctimetuple()) * 1000)}
if six.PY3 and isinstance(o, six.binary_type):
return {"$binary": b64encode(o).decode()}
for dict_cls, name, f in self.custom_type_hooks:
if isinstance(o, dict_cls):
return {"$type": name, "$value": f(o)}
return o
return json.JSONEncoder.encode(self, _encode(o))
class EJSONDecoder(json.JSONDecoder):
def __init__(self, *args, **kwargs):
self.custom_type_hooks = dict(kwargs.pop('custom_type_hooks', ()))
json.JSONDecoder.__init__(self, *args, **kwargs)
def _decode_escaped(self, o):
if isinstance(o, dict):
if self.object_pairs_hook is not None:
return self.object_pairs_hook((k, self._decode(v)) for k, v in o.items())
return {k: self._decode(v) for k, v in o.items()}
return self._decode(o)
def _decode(self, o):
if isinstance(o, dict):
if len(o) == 1:
if "$escape" in o:
return self._decode_escaped(o['$escape'])
if "$date" in o:
return datetime.fromtimestamp(o["$date"] / 1000.0, timezone.utc)
if "$binary" in o:
return b64decode(o['$binary'])
if len(o) == 2 and "$type" in o and "$value" in o:
try:
reviver = self.custom_type_hooks[o['$type']]
except KeyError:
raise UnknownTypeError(o["$type"])
return reviver(o["$value"])
if self.object_pairs_hook is not None:
return self.object_pairs_hook((k, self._decode(v)) for k, v in o.items())
return {k: self._decode(v) for k, v in o.items()}
if isinstance(o, (list, tuple)):
return [self._decode(v) for v in o]
return o
def decode(self, s, *args, **kwargs):
o = json.JSONDecoder.decode(self, s, *args, **kwargs)
return self._decode(o)
def dumps(obj, *args, **kwargs):
return json.dumps(obj, *args, cls=kwargs.pop('cls', EJSONEncoder), **kwargs)
def loads(obj, *args, **kwargs):
return json.loads(obj, *args, cls=kwargs.pop('cls', EJSONDecoder), **kwargs)
| mit |
GitsAndGlamour/lyre.com_lamp_stack | vendor/composer/autoload_files.php | 1158 | <?php
// autoload_files.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
'667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php',
'1d1b89d124cc9cb8219922c9d5569199' => $vendorDir . '/hamcrest/hamcrest-php/hamcrest/Hamcrest.php',
'bd9634f2d41831496de0d3dfe4c94881' => $vendorDir . '/symfony/polyfill-php56/bootstrap.php',
'2c102faa651ef8ea5874edb585946bce' => $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php',
'e7223560d890eab89cda23685e711e2c' => $vendorDir . '/psy/psysh/src/Psy/functions.php',
'5255c38a0faeba867671b61dfda6d864' => $vendorDir . '/paragonie/random_compat/lib/random.php',
'f0906e6318348a765ffb6eb24e0d0938' => $vendorDir . '/laravel/framework/src/Illuminate/Foundation/helpers.php',
'58571171fd5812e6e447dce228f52f4d' => $vendorDir . '/laravel/framework/src/Illuminate/Support/helpers.php',
'752af1c2bdb339e8474c3c31b22b7d54' => $vendorDir . '/illuminate/html/helpers.php',
);
| mit |
sigopt/sigopt-python | test/cli/test_cluster_destroy.py | 957 | from click.testing import CliRunner
from mock import Mock, patch
from sigopt.cli import cli
class TestClusterDestroyCli(object):
def test_cluster_destroy_command(self):
services = Mock()
cluster = Mock()
cluster.name = "foobar"
cluster.provider_string = "aws"
services.cluster_service.get_connected_cluster.return_value = cluster
runner = CliRunner()
with patch('sigopt.orchestrate.controller.OrchestrateServiceBag', return_value=services):
result = runner.invoke(cli, ["cluster", "destroy"])
services.kubernetes_service.cleanup_for_destroy.assert_called_once()
services.cluster_service.destroy.assert_called_once_with(
cluster_name="foobar",
provider_string="aws",
)
assert result.output.splitlines() == [
"Destroying cluster foobar, this process may take 20-30 minutes or longer...",
"Successfully destroyed kubernetes cluster: foobar",
]
assert result.exit_code == 0
| mit |
i-square/LeetCode | 561-array-partition-i/array-partition-i_[AC1_62ms].cpp | 1155 | // Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possible.
//
//
// Example 1:
//
// Input: [1,4,3,2]
//
// Output: 4
// Explanation: n is 2, and the maximum sum of pairs is 4 = min(1, 2) + min(3, 4).
//
//
//
// Note:
//
// n is a positive integer, which is in the range of [1, 10000].
// All the integers in the array will be in the range of [-10000, 10000].
class Solution {
public:
int arrayPairSum(vector<int>& nums) {
int ret = 0;
bool flag = true;
array<int, 20001> hashtable{ 0 };
for (const auto n : nums) {
++hashtable[n + 10000];
}
for (int i = 0; i < 20001;) {
if (hashtable[i] > 0) {
if (flag) {
flag = false;
ret += (i - 10000);
--hashtable[i];
} else {
flag = true;
--hashtable[i];
}
} else
++i;
}
return ret;
}
};
| mit |
tomvansteijn/idfpy | idfpy/cli.py | 2105 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Tom van Steijn, Royal HaskoningDHV
from idfpy import calc
from idfpy import io
from pathlib import Path
import click
def match_shape(idffile, desired_shape):
'''check if the shape of idffile with is equal to desired shape'''
desired_nrow, desired_ncol = desired_shape
header = io.read_header(idffile)
return (
header['nrow'] == desired_nrow and
header['ncol'] == desired_ncol
)
@click.command()
@click.argument('pattern', type=str)
@click.argument('method', type=click.Choice(['min', 'max', 'sum', 'mean']))
@click.argument('outfile', type=str)
def stack(pattern, method, outfile, path='.'):
'''stack and aggregate idf's using min, max or mean'''
p = Path(path)
idffiles = [f for f in p.glob(pattern) if not f == outfile]
if not len(idffiles):
raise ValueError('no match for \'{p:}\''.format(p=pattern))
header = io.read_header(idffiles[0])
shape = header['nrow'], header['ncol']
arrays = (io.read_array(f) for f in idffiles if match_shape(f, shape))
io.write_array(outfile, calc.agg(*arrays, method=method), header)
@click.command()
@click.argument('pattern', type=str)
@click.option('--epsg', type=int, default=28992, help='The coordinate reference system')
def idf2tif(pattern, epsg, path='.'):
'''stack and aggregate idf's using min, max or mean'''
from idfpy import idfraster
p = Path(path)
for idffile in p.glob(pattern):
with idfraster.IdfRaster(str(idffile)) as src:
src.to_raster(str(idffile.with_suffix('.tif')), epsg=epsg, driver='GTiff')
@click.command()
@click.argument('pattern', type=str)
@click.option('--epsg', type=int, default=28992, help='The coordinate reference system')
def idf2asc(pattern, epsg, path='.'):
'''stack and aggregate idf's using min, max or mean'''
from idfpy import idfraster
p = Path(path)
for idffile in p.glob(pattern):
with idfraster.IdfRaster(str(idffile)) as src:
src.to_raster(str(idffile.with_suffix('.asc')), epsg=epsg, driver='AAIGrid') | mit |
cicixiaoyan/OA_WEBApp | OA_WEBApp/src/pages/home-new/home-new.ts | 5206 | // import { LoginService } from './../login/LoginService';
import { Component, ViewChild, ViewEncapsulation } from '@angular/core';
import { IonicPage, NavController, Nav, NavParams, ModalController, Events } from 'ionic-angular';
import { Storage } from '@ionic/storage';
export interface HomePageInterface {
title: string;
component: any;
icon: string;
index?: number;
color: string;
}
@IonicPage()
@Component({
selector: 'page-home-new',
templateUrl: 'home-new.html',
})
export class HomeNewPage {
appPages: HomePageInterface[] = [
{ title: '消息', component: "MessagePage", index: 1, icon: 'ios-mail', color: "positive" },
{ title: '公告管理', component: "AnnouncementPage", icon: 'ios-notifications', color: "royal" },
{ title: '通讯录', component: "Contacts", icon: 'md-call', color: "energized" },
{ title: '待办事项', component: "Backlog", index: 2, icon: 'ios-calendar', color: "assertive" },
{ title: '邮件', component: "Mail", icon: 'ios-cog', color: "calm" },
{ title: '设置', component: "TabsPage", index: 3, icon: 'ios-cog', color: "calm" },
];
colorList = [
"#4ddc9a", "#2fcbdd", "#fb942b", "#d26bd3", "#4f97ec", "#f66b56", "#b6dd2f", "#edc240"
];
list = [
{
"name": "会议管理",
"children": [
{
"name": "我的会议",
"page": "MeetingPage",
"icon": "icon-huiyikaihuitaolun",
},
{
"name": "会议记录",
"page": "MeetingMinutesPage",
"icon": "icon-huiyijiyao",
},
{
"name": "会议查询",
"page": "MeetingSearchPage",
"icon": "icon-bhjmeeting",
},
{
"name": "会议室管理",
"page": "MeetingRoomPage",
"icon": "icon-huiyishi",
}
]
},
{
"name": "车辆管理",
"children": [
{
"name": "司机档案",
"page": "DriverPage",
"icon": "icon-sijiguanli",
},
{
"name": "车辆查看",
"page": "CarPage",
"icon": "icon-cheliangdangan",
},
{
"name": "车辆申请",
"page": "VehicleApplicationPage",
"icon": "icon-icon-test",
},
{
"name": "车辆调度",
"page": "VehicleSchedulingPage",
"icon": "icon-cheliangpaiban",
}
]
},
{
"name": "人事管理",
"children": [
{
"name": "培训维护",
"page": "TrainingMaintenancePage",
"icon": "icon-msnui-maintain",
},
{
"name": "员工档案维护",
"page": "StaffFileMaintenance",
"icon": "icon-danganguanli",
},
{
"name": "工种设置",
"page": "JobTypesSetPage",
"icon": "icon-type_master",
},
{
"name": "合同查询",
"page": "ContractListPage",
"icon": "icon-hetongchaxun1",
},
{
"name": "合同维护",
"page": "ContractMaintenancePage",
"icon": "icon-hetong",
},
{
"name": "合同续签",
"page": "ContractRenewPage",
"icon": "icon-hetongchaxun1",
},
{
"name": "申请档案查看",
"page": "FileApplicationListPage",
"icon": "icon-hetongchaxun1",
},
// {
// "name": "档案申请审批",
// "page": "FileApplicationReviewPage",
// "icon": "icon-hetongchaxun1",
// }
]
},
{
"name": "考勤管理",
"children": [
{
"name": "假期分组设定",
"page": "HolidayGroupSettingsPage",
"icon": "icon-qunzuduoren",
"show": false
},
{
"name": "员工考勤设定",
"page": "StaffAttendanceSettingsPage",
"icon": "icon-kaoqinbiao",
"show": false
},
{
"name": "考勤审批说明",
"page": "AttendanceAuditInstructionsPage",
"icon": "icon-shenpi",
"show": false
}
]
},
];
constructor(public navCtrl: NavController,
public navParams: NavParams,
private modalCtrl: ModalController,
public storage: Storage, public events: Events) {
this.storage.get("menus").then(Menu => {
if (!!Menu) this.setMenu(Menu);
});
this.events.subscribe('menu:open', Menu => this.setMenu(Menu));
}
private setMenu(menu) {
for (let item of this.list) {
let show = false;
for (let subitem of item.children) {
subitem["show"] = false;
for (let value of menu) {
if (value == subitem.name) {
subitem["show"] = true;
show = true;
continue;
}
}
}
item["show"] = show;
}
}
ionViewDidLoad() {
console.log('ionViewDidLoad HomeNewPage');
}
open(name) {
this.navCtrl.push(name);
}
seletcTab(index) {
this.navCtrl.parent.select(index);
}
}
| mit |
ThePaladinsForge/lib | forge/lite_logger.py | 6921 | #!/usr/bin/env python
from inspect import getframeinfo
from inspect import stack
from threading import Lock
from threading import Event
from threading import Thread
from time import clock
from time import sleep
from weakref import ref
from colorama import Fore
from colorama import Style
from colorama import init as colorama_init
from enum import IntEnum
__copyright__ = "Copyright 2015 The Paladin's Forge"
__license__ = "MIT"
__email__ = "ThePaladinsForge@gmail.com"
__version__ = "1.0"
__status__ = "Development"
class LogLevel(IntEnum):
VERBOSE = 6,
DEBUG = 5,
INFO = 4,
WARNING = 3,
ERROR = 2,
CRITICAL = 1,
OFF = 0
class _LiteLog(object):
def __init__(self, logger_ref, log_level=LogLevel.VERBOSE):
self._logger_ref = logger_ref
self._output_level = log_level
def verbose(self, msg):
if self._output_level >= LogLevel.VERBOSE:
self._enqueue(LogLevel.VERBOSE, clock(), LiteLogger.get_caller(), msg)
def debug(self, msg):
if self._output_level >= LogLevel.DEBUG:
self._enqueue(LogLevel.DEBUG, clock(), LiteLogger.get_caller(), msg)
def info(self, msg):
if self._output_level >= LogLevel.INFO:
self._enqueue(LogLevel.INFO, clock(), LiteLogger.get_caller(), msg)
def warning(self, msg):
if self._output_level >= LogLevel.WARNING:
self._enqueue(LogLevel.WARNING, clock(), LiteLogger.get_caller(), msg)
def error(self, msg):
if self._output_level >= LogLevel.ERROR:
self._enqueue(LogLevel.ERROR, clock(), LiteLogger.get_caller(), msg)
def critical(self, msg):
if self._output_level >= LogLevel.CRITICAL:
self._enqueue(LogLevel.CRITICAL, clock(), LiteLogger.get_caller(), msg)
def _enqueue(self, log_level, ts, caller, msg):
logger = self._logger_ref()
if logger:
logger.enqueue_msg(log_level, ts, caller, msg)
class LiteLogger(object):
""" class documentation """
INSTANCE = None
def __new__(cls, *args, **kwargs):
if cls.INSTANCE is None:
assert cls == LiteLogger, "%s can not derive from SimpleLogger class." % cls.__name__
return object.__new__(cls, args, kwargs)
else:
return cls.INSTANCE() # INSTANCE is a ref
def __init__(self, enable_threading=False):
if LiteLogger.INSTANCE is None:
colorama_init()
LiteLogger.INSTANCE = ref(self)
self._lock = Lock()
from random import random
self.id = random()
self._msg_queue = []
self._color = False
self._output_level = LogLevel.INFO
self._thread_shutdown = Event()
self._thread = Thread(target=self._thread_write_messages)
if enable_threading:
self.set_threading(True)
def __repr__(self):
return str()
def shutdown(self):
# Ensure threading is off and remove reference to provide proper class cleanup
self.set_threading(False)
LiteLogger.INSTANCE = None
@staticmethod
def get_caller():
s = stack()[2]
parse_len = 25
caller = getframeinfo(s[0])
full_file_name = "{}:{}".format(caller.filename, caller.lineno)
if len(full_file_name) > parse_len:
file_name = "...{}".format(full_file_name[-parse_len + 3:])
else:
fmt_str = "{{0:>{}}}".format(parse_len)
file_name = fmt_str.format(full_file_name)
return file_name
def get_log(self, log_level=LogLevel.INFO):
return _LiteLog(ref(self), log_level)
def set_output_level(self, level=LogLevel.INFO):
self._output_level = level
def set_threading(self, active):
if active is True:
self._enable_threading()
else:
if self._thread.is_alive():
self._disable_threading()
def set_color(self, active):
if active is True:
self._enable_color()
else:
self._disable_color()
def write_messages(self):
with self._lock:
msg_list, self._msg_queue = self._msg_queue, []
for msg in msg_list:
print(self._format(*msg))
def enqueue_msg(self, log_level, ts, caller, msg):
if log_level <= self._output_level:
msg_obj = (log_level, ts, caller, msg)
with self._lock:
self._msg_queue.append(msg_obj)
def _thread_write_messages(self):
while not self._thread_shutdown.is_set():
sleep(.0001)
self.write_messages()
def _enable_threading(self):
self._thread_shutdown.clear()
self._thread = Thread(target=self._thread_write_messages)
self._thread.setDaemon(True)
self._thread.start()
def _disable_threading(self):
self._thread_shutdown.set()
self._thread.join()
self.write_messages()
def _enable_color(self):
self._color = True
def _disable_color(self):
self._color = False
def _format(self, log_level, time_stamp, caller, msg):
msg = str(msg)
log_name = "INVALID"
log_name_prefix = ""
log_name_suffix = ""
if log_level == LogLevel.VERBOSE:
log_name = "VERBOSE"
if self._color:
log_name_prefix = Fore.WHITE
log_name_suffix = Style.RESET_ALL
elif log_level == LogLevel.DEBUG:
log_name = "DEBUG"
if self._color:
log_name_prefix = Fore.WHITE
log_name_suffix = Style.RESET_ALL
elif log_level == LogLevel.INFO:
log_name = "INFO"
if self._color:
log_name_prefix = Fore.WHITE
log_name_suffix = Style.RESET_ALL
elif log_level == LogLevel.WARNING:
log_name = "WARNING"
if self._color:
log_name_prefix = Fore.YELLOW
log_name_suffix = Style.RESET_ALL
elif log_level == LogLevel.ERROR:
log_name = "ERROR"
if self._color:
log_name_prefix = Fore.RED
log_name_suffix = Style.RESET_ALL
elif log_level == LogLevel.CRITICAL:
log_name = "CRITICAL"
if self._color:
log_name_prefix = "{}{}".format(Fore.RED, Style.BRIGHT)
log_name_suffix = Style.RESET_ALL
header = "{}{:<8}{} : {} : {{}}".format(log_name_prefix, log_name, log_name_suffix, caller)
next_line = "\n{}{{}}".format(" " * len("{:<8} : {} : ".format(log_name, caller)))
output = ""
for idx, msg_part in enumerate(msg.split("\n")):
if idx == 0:
output += header.format(msg_part)
else:
output += next_line.format(msg_part)
return output
| mit |
codemargonda-master/ccc-system | frontend/app/src/MailForm.js | 655 | import React, {Component} from 'react';
import './App.css';
class MailForm extends Component {
render() {
return (
<div className="col-md-5 col-sm-6 col-xs-12">
<div className="footer-text">Dapatkan berita terbaru & event yang akan datang</div>
<div className="row">
<div className="col-md-8 col-sm-8 col-xs-8">
<input className="footer-input" type="text" name="email" placeholder="Email"/>
</div>
<div className="col-md-4 col-sm-4 col-xs-4">
<div className="footer-button">Daftar</div>
</div>
</div>
</div>
);
}
}
export default MailForm;
| mit |
Rickedb/OpenProtocolIntepreter | src/OpenProtocolInterpreter/LinkCommunication/Mid9998.cs | 3435 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenProtocolInterpreter.LinkCommunication
{
/// <summary>
/// MID: Communication acknowledge error
/// Description:
/// This message is used in conjunction with the use of header sequence number.
/// Message sent by: Controller and Integrator:
/// This message is sent immediately after the message is received on application link level and if the check of the header is found to be wrong in any way.
/// The acknowledge substitute the use of NoAck flag and all subscription data special acknowledging.
/// </summary>
class Mid9998 : Mid
{
private const int length = 27;
public const int MID = 9998;
private const int revision = 1;
public Mid9998() : base(MID, revision, null, null, null, new DataField[]
{
new DataField((int)UsedsAs.MESSAGE_NUMBER, 16, 2),
new DataField((int)UsedsAs.NUMBER_OF_MESSAGES, 18, 1),
new DataField((int)UsedsAs.SEQUENCE_NUMBER, 19, 1)
})
{
}
protected override string BuildHeader()
{
string header = string.Empty;
header += HeaderData.Length.ToString().PadLeft(4, '0');
header += HeaderData.Mid.ToString().PadLeft(4, '0');
header += HeaderData.Revision.ToString().PadLeft(3, '0');
header += HeaderData.NoAckFlag.ToString().PadLeft(1, ' ');
header += (HeaderData.StationID != null) ? HeaderData.StationID.ToString().PadLeft(2, '0') : HeaderData.StationID.ToString().PadLeft(2, ' ');
header += (HeaderData.SpindleID != null) ? HeaderData.SpindleID.ToString().PadLeft(2, '0') : HeaderData.SpindleID.ToString().PadLeft(2, ' ');
string usedAs = " ";
if (HeaderData.UsedAs != null)
{
usedAs = string.Empty;
foreach (DataField field in HeaderData.UsedAs)
usedAs += field.Value.ToString().PadLeft(field.Size, ' ');
}
header += usedAs;
return header;
}
protected override Header ProcessHeader(string package)
{
Header header = base.ProcessHeader(package);
header.UsedAs.ToList()[(int)UsedsAs.MESSAGE_NUMBER].Value = (!string.IsNullOrWhiteSpace(package.Substring(16, 2))) ? package.Substring(16, 2) : null;
header.UsedAs.ToList()[(int)UsedsAs.NUMBER_OF_MESSAGES].Value = (!string.IsNullOrWhiteSpace(package.Substring(18, 1))) ? package.Substring(18, 1) : null;
header.UsedAs.ToList()[(int)UsedsAs.SEQUENCE_NUMBER].Value = (!string.IsNullOrWhiteSpace(package.Substring(19, 1))) ? package.Substring(19, 1) : null;
return header;
}
public override string Pack()
{
return base.Pack();
}
public override Mid Parse(string package)
{
ProcessHeader(package);
return this;
}
public enum UsedsAs
{
SEQUENCE_NUMBER,
NUMBER_OF_MESSAGES,
MESSAGE_NUMBER
}
public enum ErroCodes
{
INVALID_LENGTH = 1,
INVALID_REVISION = 2,
INVALID_SEQUENCE_NUMBER = 3,
INCONSISTENCY_OF_NUMBER_OF_MESSAGES = 4
}
}
}
| mit |
trein/inmapper-ws | src/main/java/com/inmapper/ws/service/MappingServiceImpl.java | 3580 | package com.inmapper.ws.service;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Multimap;
import com.inmapper.ws.algorithm.MappingAlgorithm;
import com.inmapper.ws.exception.InvalidMobilePositionException;
import com.inmapper.ws.exception.ResourceNotFoundException;
import com.inmapper.ws.model.domain.RoomMapping;
import com.inmapper.ws.model.domain.UserLocation;
import com.inmapper.ws.model.domain.UserSession;
import com.inmapper.ws.model.to.MobileSessionTo;
import com.inmapper.ws.model.to.RoomMappingTo;
import com.inmapper.ws.model.to.RoomPointTo;
import com.inmapper.ws.repository.RoomMappingRepository;
/**
* Service implementation orchestrating mobile sensor data conversion and persistence.
*
* @author trein
*/
@Service
@Transactional(readOnly = true)
public class MappingServiceImpl implements MappingService {
private static final Logger LOGGER = LoggerFactory.getLogger(MappingServiceImpl.class);
private final RoomMappingRepository repository;
private final MappingAlgorithm algorithm;
@Autowired
public MappingServiceImpl(MappingAlgorithm algorithm, RoomMappingRepository repository) {
this.algorithm = algorithm;
this.repository = repository;
}
@Override
@Transactional(readOnly = false)
public String handlePosition(MobileSessionTo position) throws InvalidMobilePositionException {
validatePosition(position);
List<UserLocation> locations = this.algorithm.decodePosition(position);
RoomMapping mapping = getOrCreateMapping(position);
mapping.appendSession(position.getToken(), locations);
this.repository.save(mapping);
LOGGER.debug("Saved new location for room {} as {}", position.getRoomId(), locations);
return mapping.getRoomId();
}
private RoomMapping getOrCreateMapping(MobileSessionTo position) {
RoomMapping mapping = this.repository.findByRoomId(position.getRoomId());
if (mapping == null) {
mapping = new RoomMapping(position.getRoomId());
}
return mapping;
}
private void validatePosition(MobileSessionTo position) throws InvalidMobilePositionException {
if (!position.isValid()) {
throw new InvalidMobilePositionException("Invalid position received");
}
}
@Override
public RoomMappingTo retrieveRoomLocations(String roomId) throws ResourceNotFoundException {
RoomMapping mapping = this.repository.findByRoomId(roomId);
Multimap<String, RoomPointTo> mappings = ArrayListMultimap.create();
if (mapping == null) {
throw new ResourceNotFoundException(roomId);
}
for (UserSession userSession : mapping.getSessions()) {
for (UserLocation location : userSession.getLocations()) {
String mobileId = userSession.getMobileId();
RoomPointTo point = new RoomPointTo(roomId, mobileId, location.getX(), location.getY());
mappings.put(mobileId, point);
}
}
LOGGER.debug("Found mappings for room {} as {}", roomId, mappings);
return new RoomMappingTo(mappings.asMap());
}
}
| mit |
InnovateUKGitHub/innovation-funding-service | common/ifs-sil-resources/src/main/java/org/innovateuk/ifs/sil/email/resource/SilEmailBody.java | 1556 | package org.innovateuk.ifs.sil.email.resource;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Represents the body of an email sent to the SIL API
*/
public class SilEmailBody {
@JsonProperty("ContentType")
private String contentType;
@JsonProperty("Content")
private String content;
/**
* For JSON marshalling only
*/
public SilEmailBody() {
// no-arg constructor
}
public SilEmailBody(String contentType, String content) {
this.contentType = contentType;
this.content = content;
}
public String getContentType() {
return contentType;
}
public String getContent() {
return content;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SilEmailBody that = (SilEmailBody) o;
return new EqualsBuilder()
.append(contentType, that.contentType)
.append(content, that.content)
.isEquals();
}
@Override
public int hashCode() {
return new HashCodeBuilder(17, 37)
.append(contentType)
.append(content)
.toHashCode();
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
}
| mit |
leylabmpi/pyTecanFluent | tests/test_Fluent.py | 1239 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# import
## batteries
import os
import sys
import pytest
## 3rd party
import pandas as pd
## package
from pyTecanFluent import Fluent
from pyTecanFluent import Labware
# data dir
test_dir = os.path.join(os.path.dirname(__file__))
data_dir = os.path.join(test_dir, 'data')
# tests
def test_db():
db = Fluent.db()
RackTypes = db.RackTypes()
assert isinstance(RackTypes, list)
RackType = db.RackTypes()[0]
v = db.get_labware(RackType)
assert isinstance(v, dict)
def test_aspirate():
asp = Fluent.Aspirate()
asp.RackLabel = 'test'
asp.RackType = 'test'
assert isinstance(asp.cmd(), str)
def test_dispense():
disp = Fluent.Dispense()
disp.RackLabel = 'test'
disp.RackType = 'test'
assert isinstance(disp.cmd(), str)
def test_comment():
c = Fluent.Comment()
assert isinstance(c.cmd(), str)
def test_waste():
w = Fluent.Waste()
assert isinstance(w.cmd(), str)
def test_gwl():
gwl = Fluent.gwl()
with pytest.raises(AssertionError):
gwl.add(Fluent.Aspirate())
def test_labware():
lw = Labware.labware()
gwl = Fluent.gwl()
ret = lw.add_gwl(gwl)
assert ret is None
| mit |
pingpongcms/settings | Database/Seeders/SettingsDatabaseSeeder.php | 353 | <?php namespace Pingpong\Cms\Settings\Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class SettingsDatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call(__NAMESPACE__ . '\\SettingsTableSeeder');
}
}
| mit |
caraldi/portland-restaurant-review | server/lib/setup-mongoose.js | 756 | const mongoose = require('mongoose');
const dbURI = process.env.MONGODB_URI || 'mongodb://localhost/restaurant-review';
mongoose.Promise = Promise;
mongoose.connect(dbURI);
mongoose.connection.on('connected', function () {
console.log('Mongoose default connection open to ' + dbURI);
});
mongoose.connection.on('error', function (err) {
console.log('Mongoose default connection error: ' + err);
});
mongoose.connection.on('disconnected', function () {
console.log('Mongoose default connection disconnected');
});
process.on('SIGINT', function () {
mongoose.connection.close(function () {
console.log('Mongoose default connection disconnected through app termination');
process.exit(0);
});
});
module.exports = mongoose.connection;
| mit |
erdc/proteus | proteus/tests/ProjScheme_with_EV/test_ns_convergence.py | 11854 | #!/usr/bin/env python
"""
Test module for projection scheme
"""
from builtins import range
from builtins import object
from proteus.iproteus import *
from proteus import Comm
comm = Comm.get()
Profiling.logLevel=1
Profiling.verbose=True
import os
import numpy as np
import tables
from . import (parameters,
NS_convergence_so, NS_convergence,
twp_navier_stokes_p,
twp_navier_stokes_n,
pressureincrement_p,
pressureincrement_n,
pressure_p,
pressure_n,
pressureInitial_p,
pressureInitial_n)
class TestProjScheme(object):
@classmethod
def setup_class(cls):
pass
@classmethod
def teardown_class(cls):
pass
def reload_modules(self):
reload(NS_convergence)
reload(NS_convergence_so)
reload(twp_navier_stokes_p)
reload(twp_navier_stokes_n)
reload(pressureincrement_p)
reload(pressureincrement_n)
reload(pressure_p)
reload(pressure_n)
reload(pressureInitial_p)
reload(pressureInitial_n)
def setup_method(self,method):
self.verbose=True
self._scriptdir = os.path.dirname(__file__)
def teardown_method(self,method):
pass
def test_no_stab(self):
# Set parameters for this test
parameters.ct.USE_SUPG_NS=0
parameters.ct.ARTIFICIAL_VISCOSITY_NS=0
parameters.ct.INT_BY_PARTS_PRESSURE=0
# RELOAD MODULES
self.reload_modules()
pnList = [(twp_navier_stokes_p, twp_navier_stokes_n),
(pressureincrement_p, pressureincrement_n),
(pressure_p, pressure_n),
(pressureInitial_p, pressureInitial_n)]
self.so = NS_convergence_so
pList=[]
nList=[]
sList=[]
for (pModule,nModule) in pnList:
pList.append(pModule)
if pList[-1].name == None:
pList[-1].name = pModule.__name__
nList.append(nModule)
for i in range(len(pnList)):
sList.append(default_s)
self.so.name += "_no_stab"
# NUMERICAL SOLUTION #
ns = proteus.NumericalSolution.NS_base(self.so,
pList,
nList,
sList,
opts)
ns.calculateSolution('no_stab')
# COMPARE VS REFERENCE #
actual = tables.open_file('NS_convergence_no_stab.h5','r')
if self.verbose:
print (np.amax(actual.root.p_t11) - np.amin(actual.root.p_t11))
print (np.amax(actual.root.u_t11) - np.amin(actual.root.u_t11))
print (np.amax(actual.root.v_t11) - np.amin(actual.root.v_t11))
assert np.isclose(np.amax(actual.root.p_t11) - np.amin(actual.root.p_t11),
0.57387646058,
atol=1e-10)
assert np.isclose(np.amax(actual.root.u_t11) - np.amin(actual.root.u_t11),
1.68689338205,
atol=1e-10)
assert np.isclose(np.amax(actual.root.v_t11) - np.amin(actual.root.v_t11),
1.68689335359,
atol=1e-10)
actual.close()
def test_supg_with_shock_capturing(self):
# Set parameters for this test
parameters.ct.USE_SUPG_NS=1
parameters.ct.ARTIFICIAL_VISCOSITY_NS=1
parameters.ct.INT_BY_PARTS_PRESSURE=0
# RELOAD MODULES
self.reload_modules()
pnList = [(twp_navier_stokes_p, twp_navier_stokes_n),
(pressureincrement_p, pressureincrement_n),
(pressure_p, pressure_n),
(pressureInitial_p, pressureInitial_n)]
self.so = NS_convergence_so
pList=[]
nList=[]
sList=[]
for (pModule,nModule) in pnList:
pList.append(pModule)
if pList[-1].name == None:
pList[-1].name = pModule.__name__
nList.append(nModule)
for i in range(len(pnList)):
sList.append(default_s)
self.so.name += "_supg"
# NUMERICAL SOLUTION #
ns = proteus.NumericalSolution.NS_base(self.so,
pList,
nList,
sList,
opts)
ns.calculateSolution('supg')
# COMPARE VS REFERENCE #
actual = tables.open_file('NS_convergence_supg.h5','r')
if self.verbose:
print (np.amax(actual.root.p_t11) - np.amin(actual.root.p_t11))
print (np.amax(actual.root.u_t11) - np.amin(actual.root.u_t11))
print (np.amax(actual.root.v_t11) - np.amin(actual.root.v_t11))
assert np.isclose(np.amax(actual.root.p_t11) - np.amin(actual.root.p_t11),
0.691428927609,
atol=1e-10)
assert np.isclose(np.amax(actual.root.u_t11) - np.amin(actual.root.u_t11),
1.68689322528,
atol=1e-10)
assert np.isclose(np.amax(actual.root.v_t11) - np.amin(actual.root.v_t11),
1.68689322528,
atol=1e-10)
actual.close()
def test_ev(self):
# Set parameters for this test
parameters.ct.USE_SUPG_NS=0
parameters.ct.ARTIFICIAL_VISCOSITY_NS=2
parameters.ct.INT_BY_PARTS_PRESSURE=0
# RELOAD MODULES
self.reload_modules()
pnList = [(twp_navier_stokes_p, twp_navier_stokes_n),
(pressureincrement_p, pressureincrement_n),
(pressure_p, pressure_n),
(pressureInitial_p, pressureInitial_n)]
self.so = NS_convergence_so
pList=[]
nList=[]
sList=[]
for (pModule,nModule) in pnList:
pList.append(pModule)
if pList[-1].name == None:
pList[-1].name = pModule.__name__
nList.append(nModule)
for i in range(len(pnList)):
sList.append(default_s)
self.so.name += "_ev"
# NUMERICAL SOLUTION #
ns = proteus.NumericalSolution.NS_base(self.so,
pList,
nList,
sList,
opts)
ns.calculateSolution('ev')
# COMPARE VS REFERENCE #
actual = tables.open_file('NS_convergence_ev.h5','r')
if self.verbose:
print (np.amax(actual.root.p_t11) - np.amin(actual.root.p_t11))
print (np.amax(actual.root.u_t11) - np.amin(actual.root.u_t11))
print (np.amax(actual.root.v_t11) - np.amin(actual.root.v_t11))
assert np.isclose(np.amax(actual.root.p_t11) - np.amin(actual.root.p_t11),
0.700588229005,
atol=1e-10)
assert np.isclose(np.amax(actual.root.u_t11) - np.amin(actual.root.u_t11),
1.68689331381,
atol=1e-10)
assert np.isclose(np.amax(actual.root.v_t11) - np.amin(actual.root.v_t11),
1.68689327141,
atol=1e-10)
actual.close()
def test_edge_based_visc_1(self):
# Set parameters for this test
parameters.ct.USE_SUPG_NS=0
parameters.ct.ARTIFICIAL_VISCOSITY_NS=3 # via smoothness indicator
parameters.ct.INT_BY_PARTS_PRESSURE=1
# RELOAD MODULES
self.reload_modules()
pnList = [(twp_navier_stokes_p, twp_navier_stokes_n),
(pressureincrement_p, pressureincrement_n),
(pressure_p, pressure_n),
(pressureInitial_p, pressureInitial_n)]
self.so = NS_convergence_so
pList=[]
nList=[]
sList=[]
for (pModule,nModule) in pnList:
pList.append(pModule)
if pList[-1].name == None:
pList[-1].name = pModule.__name__
nList.append(nModule)
for i in range(len(pnList)):
sList.append(default_s)
self.so.name += "_edge_based_visc_1"
# NUMERICAL SOLUTION #
ns = proteus.NumericalSolution.NS_base(self.so,
pList,
nList,
sList,
opts)
ns.calculateSolution('edge_based_visc_1')
# COMPARE VS REFERENCE #
actual = tables.open_file('NS_convergence_edge_based_visc_1.h5','r')
if self.verbose:
print (np.amax(actual.root.p_t11) - np.amin(actual.root.p_t11))
print (np.amax(actual.root.u_t11) - np.amin(actual.root.u_t11))
print (np.amax(actual.root.v_t11) - np.amin(actual.root.v_t11))
assert np.isclose(np.amax(actual.root.p_t11) - np.amin(actual.root.p_t11),
0.56488226811,
atol=1e-10)
assert np.isclose(np.amax(actual.root.u_t11) - np.amin(actual.root.u_t11),
1.68689324190,
atol=1e-10)
assert np.isclose(np.amax(actual.root.v_t11) - np.amin(actual.root.v_t11),
1.68689318024,
atol=1e-10)
actual.close()
def test_edge_based_visc_2(self):
# Set parameters for this test
parameters.ct.USE_SUPG_NS=0
parameters.ct.ARTIFICIAL_VISCOSITY_NS=4 # via entropy viscosity
parameters.ct.INT_BY_PARTS_PRESSURE=1
# RELOAD MODULES
self.reload_modules()
pnList = [(twp_navier_stokes_p, twp_navier_stokes_n),
(pressureincrement_p, pressureincrement_n),
(pressure_p, pressure_n),
(pressureInitial_p, pressureInitial_n)]
self.so = NS_convergence_so
pList=[]
nList=[]
sList=[]
for (pModule,nModule) in pnList:
pList.append(pModule)
if pList[-1].name == None:
pList[-1].name = pModule.__name__
nList.append(nModule)
for i in range(len(pnList)):
sList.append(default_s)
self.so.name += "_edge_based_visc_2"
# NUMERICAL SOLUTION #
ns = proteus.NumericalSolution.NS_base(self.so,
pList,
nList,
sList,
opts)
ns.calculateSolution('edge_based_visc_2')
# COMPARE VS REFERENCE #
actual = tables.open_file('NS_convergence_edge_based_visc_2.h5','r')
if self.verbose:
print (np.amax(actual.root.p_t11) - np.amin(actual.root.p_t11))
print (np.amax(actual.root.u_t11) - np.amin(actual.root.u_t11))
print (np.amax(actual.root.v_t11) - np.amin(actual.root.v_t11))
assert np.isclose(np.amax(actual.root.p_t11) - np.amin(actual.root.p_t11),
0.71189509274,
atol=1e-8)
assert np.isclose(np.amax(actual.root.u_t11) - np.amin(actual.root.u_t11),
1.68689324820,
atol=1e-8)
assert np.isclose(np.amax(actual.root.v_t11) - np.amin(actual.root.v_t11),
1.68689335043,
atol=1e-8)
actual.close()
| mit |
issuran/BeblueTodo | BeBlueTodoApp/BeBlueTodoApp/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs | 272 | namespace BeBlueTodoApp.Areas.HelpPage.ModelDescriptions
{
public class KeyValuePairModelDescription : ModelDescription
{
public ModelDescription KeyModelDescription { get; set; }
public ModelDescription ValueModelDescription { get; set; }
}
} | mit |
kenxu95/admin-ankommen | src/app/pages/profile/profile.routing.ts | 465 | import { Routes, RouterModule } from '@angular/router';
import { Profile } from './profile.component';
import { ViewProfile } from './components/viewProfile';
import { EditAssets } from './components/editAssets';
const routes: Routes = [
{
path: '',
component: Profile,
children: [
{ path: 'view', component: ViewProfile },
{ path: 'editassets', component: EditAssets }
]
}
];
export const routing = RouterModule.forChild(routes); | mit |
rajasharan/Android-BezierCurve-sample | app/src/main/java/com/rajasharan/curvepaths/MainActivityFragment.java | 1023 | package com.rajasharan.curvepaths;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A placeholder fragment containing a simple view.
*/
public class MainActivityFragment extends Fragment {
public static Fragment newInstance(String title) {
Fragment f = new MainActivityFragment();
Bundle args = new Bundle();
args.putString("title", title);
f.setArguments(args);
return f;
}
public MainActivityFragment() {
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
if (getArguments().getString("title").equalsIgnoreCase(MainActivity.CUBIC)) {
return inflater.inflate(R.layout.fragment_cubic, container, false);
}
else {
return inflater.inflate(R.layout.fragment_quad, container, false);
}
}
}
| mit |
czim/laravel-jsonapi | tests/Helpers/Resources/AbstractTest/TestAbstractEloquentResource.php | 1401 | <?php
namespace Czim\JsonApi\Test\Helpers\Resources\AbstractTest;
use Czim\JsonApi\Support\Resource\AbstractEloquentResource;
class TestAbstractEloquentResource extends AbstractEloquentResource
{
protected $availableAttributes = [
'name',
'title',
'accessor',
'date_accessor',
];
protected $availableIncludes = [
'comments',
'alternative-key',
'not-a-relation',
'method-does-not-exist',
];
protected $includeRelations = [
'alternative-key' => 'comments',
'not-a-relation' => 'testMethod',
];
protected $defaultIncludes = [
'comments',
];
protected $includeReferences = [
'comments',
];
protected $availableFilters = [
'some-filter',
'test',
];
protected $defaultFilters = [
'some-filter' => 13,
];
protected $availableSortAttributes = [
'title',
'id',
];
protected $defaultSortAttributes = [
'-id',
];
protected $dateAttributes = [
'date-accessor',
];
protected $dateAttributeFormats = [
'updated-at' => 'Y-m-d H:i',
'date-accessor' => 'Y-m-d',
];
public function getAccessorAttribute()
{
return 'custom';
}
public function getDateAccessorAttribute()
{
return '2017-01-02 03:04:05';
}
}
| mit |
sudheerpal/Learning-Angular2 | manish/src/app/components/ideas/idea-create.component.ts | 1090 | import { Component } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { Idea } from '../../models/idea';
import { HttpService } from '../../services/http/http.service';
@Component({
selector: 'idea-create',
templateUrl: 'app/views/ideas/create.html'
})
export class IdeaCreateComponent {
ideaForm: FormGroup
constructor(fb: FormBuilder, private httpService: HttpService) {
this.ideaForm = fb.group({
'projectName': [null, Validators.compose([Validators.required, Validators.minLength(10), Validators.maxLength(100)])],
'description': [null, Validators.compose([Validators.required, Validators.minLength(20), Validators.maxLength(250)])]
});
}
submitForm(value: Idea): void {
if(!value.projectName.trim() || !value.description.trim()) {
return;
}
var url = 'ideas';
this.httpService.post(url, value)
.then(data => {
console.log(data);
})
}
}
| mit |
mamuz/PhpDependencyAnalysis | tests/unit/PhpDATest/Parser/AdtTraverserTest.php | 3112 | <?php
/**
* The MIT License (MIT)
*
* Copyright (c) 2019 Marco Muths
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
namespace PhpDATest\Parser;
use PhpDA\Parser\AdtTraverser;
class AdtTraverserTest extends \PHPUnit_Framework_TestCase
{
/** @var AdtTraverser */
protected $fixture;
/** @var \PhpDA\Parser\Visitor\Required\AdtCollector | \Mockery\MockInterface */
protected $adtCollector;
/** @var \PhpDA\Parser\Visitor\Required\NameResolver | \Mockery\MockInterface */
protected $nameResolver;
/** @var \Symfony\Component\Finder\SplFileInfo | \Mockery\MockInterface */
protected $file;
protected function setUp()
{
$this->adtCollector = \Mockery::mock('PhpDA\Parser\Visitor\Required\AdtCollector');
$this->adtCollector->shouldIgnoreMissing();
$this->nameResolver = \Mockery::mock('PhpDA\Parser\Visitor\Required\NameResolver');
$this->nameResolver->shouldIgnoreMissing();
$this->file = \Mockery::mock('Symfony\Component\Finder\SplFileInfo');
$this->file->shouldIgnoreMissing();
$this->fixture = new AdtTraverser;
}
public function testTraversing()
{
$stmtNode = \Mockery::mock('PhpParser\Node');
$this->adtCollector->shouldReceive('flush')->once();
$this->adtCollector->shouldReceive('getStmts')->once()->andReturn(array(array($stmtNode)));
$this->fixture->bindAdtCollector($this->adtCollector);
$this->nameResolver->shouldReceive('setFile')->once()->with($this->file);
$this->fixture->bindNameResolver($this->nameResolver);
$this->fixture->bindFile($this->file);
$nodes = array('foo', 'bar');
$stmts = $this->fixture->getAdtStmtsBy($nodes);
foreach ($stmts as $nodes) {
foreach ($nodes as $node) {
self::assertSame($stmtNode, $node);
}
}
}
public function testThrowExceptionForBindingFileWithoutNameResolver()
{
self::expectException('DomainException');
$this->fixture->bindFile($this->file);
}
}
| mit |
anthill-platform/anthill-social | anthill/social/model/social/google.py | 3170 |
import datetime
from anthill.common.social import APIError
from anthill.common.social.apis import GoogleAPI
from .. social import SocialAPI, SocialAuthenticationRequired
from .. token import NoSuchToken
class GoogleSocialAPI(SocialAPI, GoogleAPI):
def __init__(self, application, tokens, cache):
SocialAPI.__init__(self, application, tokens, "google", cache)
GoogleAPI.__init__(self, cache)
async def call(self, gamespace, account_id, method, *args, **kwargs):
"""
Makes google API call.
Validates everything, gathers tokens and then awaits `method` with all information.
"""
try:
token_data = await self.tokens.get_token(
gamespace,
account_id,
self.credential_type)
except NoSuchToken:
raise SocialAuthenticationRequired(self.credential_type, None)
expires_at = token_data.expires_at
access_token = token_data.access_token
data = token_data.payload
try:
if datetime.datetime.now() > expires_at:
raise APIError(403, "token expired")
kwargs["access_token"] = access_token
result = await method(*args, **kwargs)
except APIError as e:
if e.code == 401:
raise SocialAuthenticationRequired(self.credential_type, token_data.username)
if (e.code > 400) and (e.code <= 499):
# probably, token expired, try generating new token
if "refresh_token" in data:
refresh_token = data["refresh_token"]
try:
new_token = await self.api_refresh_token(refresh_token, gamespace)
except APIError:
raise SocialAuthenticationRequired(self.credential_type, token_data.username)
access_token = new_token["access_token"]
expires_in = new_token["expires_in"]
await self.import_data(gamespace, account_id, access_token, expires_in, None)
# after generating a new token, try again
kwargs["access_token"] = access_token
result = await method(*args, **kwargs)
return result
raise e
else:
return result
async def list_friends(self, gamespace, account_id):
raise NotImplementedError()
def has_friend_list(self):
return False
async def get_social_profile(self, gamespace, username, account_id, env=None):
user_info = await self.call(
gamespace,
account_id,
self.api_get_user_info)
return user_info
async def import_social(self, gamespace, username, auth):
access_token = auth.access_token
expires_in = auth.expires_in
data = {k: v for k, v in {
"refresh_token": auth.refresh_token
}.items() if v}
result = await self.import_data(
gamespace,
username,
access_token,
expires_in, data)
return result
| mit |
thomasgalliker/ValueConverters.NET | ValueConverters.Forms/BoolToColorConverter.cs | 471 | using Xamarin.Forms;
namespace ValueConverters
{
/// <summary>
/// Converts a bool value to Color.
/// </summary>
/// <remarks>
/// By default, TrueValue is Color.Accent, FalseValue is Color.Default.
/// </remarks>
public class BoolToColorConverter : BoolToValueConverter<Color>
{
public BoolToColorConverter()
{
this.TrueValue = Color.Accent;
this.FalseValue = Color.Default;
}
}
}
| mit |
thijser/ARGAME | ARGame/Assets/Scripts/Network/RotationUpdate.cs | 2738 | //----------------------------------------------------------------------------
// <copyright file="RotationUpdate.cs" company="Delft University of Technology">
// Copyright 2015, Delft University of Technology
//
// This software is licensed under the terms of the MIT License.
// A copy of the license should be included with this software. If not,
// see http://opensource.org/licenses/MIT for the full license.
// </copyright>
//----------------------------------------------------------------------------
namespace Network
{
/// <summary>
/// An serverUpdate object that describes a changed rotation of a game object.
/// The rotation is caused by the remote player.
/// </summary>
public class RotationUpdate : AbstractUpdate
{
/// <summary>
/// Initializes a new instance of the <see cref="Network.RotationUpdate"/> class.
/// </summary>
/// <param name="type">The serverUpdate type.</param>
/// <param name="rotation">The rotation.</param>
/// <param name="id">The Id of this serverUpdate.</param>
public RotationUpdate(UpdateType type, float rotation, int id)
{
this.Type = type;
this.Rotation = rotation;
this.Id = id;
}
/// <summary>
/// Gets the rotation if this serverUpdate object.
/// </summary>
public float Rotation { get; private set; }
/// <summary>
/// Tests whether this RotationUpdate is equal to the given object
/// </summary>
/// <param name="obj">The object to test against.</param>
/// <returns>True if this RotationObject is equal to <c>obj</c>, false otherwise.</returns>
public override bool Equals(object obj)
{
RotationUpdate that = obj as RotationUpdate;
if (that == null)
{
return false;
}
return this.Id == that.Id && this.Rotation == that.Rotation;
}
/// <summary>
/// Returns a hash code for this RotationUpdate.
/// </summary>
/// <returns>a hash code.</returns>
public override int GetHashCode()
{
return (typeof(RotationUpdate).GetHashCode() * this.Id) ^ this.Rotation.GetHashCode();
}
/// <summary>
/// Returns a string representation of this RotationUpdate.
/// </summary>
/// <returns>A string describing this RotationUpdate.</returns>
public override string ToString()
{
return "<RotationUpdate[ID=" + this.Id + ", Rotation=" + this.Rotation + "]>";
}
}
}
| mit |
phpie/users-plugin | src/Controller/AppController.php | 530 | <?php
namespace Pie\Users\Controller;
use App\Controller\AppController as BaseController;
use Cake\Core\Configure;
use Pie\Users\Controller\Component\UsersAuthComponent;
/**
* App Controller
*
* @property UsersAuthComponent $UsersAuth
*
* @package Users\Controller
*/
class AppController extends BaseController
{
/**
* {@inheritdoc}
*/
public function initialize()
{
parent::initialize();
$this->loadComponent('Cookie');
$this->loadComponent('Pie/Users.UsersAuth');
}
}
| mit |
pixonic/ctop | src/main/java/com/pixonic/ctop/util/MetricUtils.java | 2658 | package com.pixonic.ctop.util;
import com.codahale.metrics.ConsoleReporter;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.graphite.Graphite;
import com.codahale.metrics.graphite.GraphiteReporter;
import com.pixonic.ctop.metrics.MetricsCollector;
import com.pixonic.ctop.metrics.MetricsType;
import java.net.InetSocketAddress;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
public class MetricUtils {
public static MetricsCollector registerMetricsReporter(MetricsType metricsType, Properties properties) {
MetricRegistry metricRegistry = new MetricRegistry();
MetricsCollector metricsCollector = null;
switch (metricsType) {
case GRAPHITE: {
System.out.println("Registering Graphite Reporter");
String graphiteHost = properties.getProperty("graphite.host").trim();
int graphitePort = Integer.parseInt(properties.getProperty("graphite.port", "2003").trim());
String graphitePrefix = properties.getProperty("graphite.prefix", "ctop").trim();
int graphiteFreqInterval = Integer.parseInt(properties.getProperty("graphite.freq", "1").trim());
Graphite graphite = new Graphite(new InetSocketAddress(graphiteHost, graphitePort));
GraphiteReporter graphiteReporter = GraphiteReporter.forRegistry(metricRegistry)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.prefixedWith(graphitePrefix)
.build(graphite);
graphiteReporter.start(graphiteFreqInterval, TimeUnit.MINUTES);
metricsCollector = new MetricsCollector(metricRegistry);
Runtime.getRuntime().addShutdownHook(new Thread(graphiteReporter::stop));
break;
}
case CONSOLE: {
ConsoleReporter consoleReporter = ConsoleReporter.forRegistry(metricRegistry)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.build();
consoleReporter.start(1, TimeUnit.SECONDS);
metricsCollector = new MetricsCollector(metricRegistry);
Runtime.getRuntime().addShutdownHook(new Thread(consoleReporter::stop));
break;
}
case NONE:
default: {
System.out.println("No reporters registered!");
break;
}
}
return metricsCollector;
}
}
| mit |
PRkudupu/Angular2 | app/users/user-list.component.ts | 1021 | import {Component, OnInit} from '@angular/core';
//Import interface
import {IUser} from './user';
import {User} from './Models/user.model';
@Component({
templateUrl: 'app/users/user-list.component.html',
styleUrls:['app/users/user-list.component.css']
})
//Angular Component
export class UserComponent {
firstName1 :string;
lastName :string;
//Constructor
constructor(){
this.firstName1="test"
}
//New instance of user Model
languages=['English','Spanish','Other'];
userModel=new User('','')
isFullTime = false;
MI="";
sexType='';
firstNameToUpperCase(value:string){
//Check if the value exists
if(value.length > 0)
{
//Fetch the first character and turn it into upper and leave the rest
this.userModel.firstName=value.charAt(0).toUpperCase() + value.slice(1);
}
else
{
this.userModel.firstName=value;
}
}
addUsers(model:User){
alert('hello');
console.log(model);
}
}
| mit |
zachatrocity/hTunes | hTunes/hTunes/AboutBox1.cs | 3388 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace hTunes
{
partial class About : Form
{
public About()
{
InitializeComponent();
this.Text = String.Format("About {0}", AssemblyTitle);
this.labelProductName.Text = AssemblyProduct;
this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
this.labelCompanyName.Text = "Zach Russell and Dylan Watson";
this.textBoxDescription.Text = "A simple music program written in WPF. Used to create and edit playlists in a xml file.";
}
#region Assembly Attribute Accessors
public string AssemblyTitle
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
if (attributes.Length > 0)
{
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
if (titleAttribute.Title != "")
{
return titleAttribute.Title;
}
}
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
}
}
public string AssemblyVersion
{
get
{
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}
public string AssemblyDescription
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
}
}
public string AssemblyProduct
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyProductAttribute)attributes[0]).Product;
}
}
public string AssemblyCopyright
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
}
}
public string AssemblyCompany
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyCompanyAttribute)attributes[0]).Company;
}
}
#endregion
}
}
| mit |
iovation/launchkey-java | sdk/src/test/java/com/iovation/launchkey/sdk/crypto/jwe/Jose4jJWEServiceTest.java | 17802 | package com.iovation.launchkey.sdk.crypto.jwe;
import com.iovation.launchkey.sdk.crypto.JCECrypto;
import org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.Provider;
import java.security.PublicKey;
import java.security.interfaces.RSAPrivateKey;
import java.security.Security;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import static org.junit.Assert.*;
/**
* Copyright 2017 iovation, Inc. All rights reserved.
* <p>
* Licensed under the MIT License.
* You may not use this file except in compliance with the License.
* A copy of the License is located in the "LICENSE.txt" file accompanying
* this file. This file is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
public class Jose4jJWEServiceTest {
private final Provider provider = new BouncyCastleFipsProvider();
private Jose4jJWEService jweService;
private KeyPair keyPair;
private PublicKey publicKey;
private String publicKeyID;
private Map<String, RSAPrivateKey> privateKeys;
@Before
public void setUp() throws Exception {
if (Security.getProvider(BouncyCastleFipsProvider.PROVIDER_NAME) == null) {
Security.addProvider(provider);
}
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA", provider);
keyPairGenerator.initialize(2048);
keyPair = keyPairGenerator.generateKeyPair();
publicKey = keyPair.getPublic();
publicKeyID = JCECrypto.getRsaPublicKeyFingerprint(provider, (RSAPrivateKey) keyPair.getPrivate());
privateKeys = new ConcurrentHashMap<String, RSAPrivateKey>();
privateKeys.put(publicKeyID, (RSAPrivateKey) keyPair.getPrivate());
jweService = new Jose4jJWEService(privateKeys, provider.getName());
}
@After
public void tearDown() throws Exception {
publicKey = null;
publicKeyID = null;
keyPair = null;
jweService = null;
privateKeys = null;
}
@Test
public void superOldDeprecatedConstructorStillWorks() throws Exception {
@SuppressWarnings("deprecation") JWEService jweService = new Jose4jJWEService((RSAPrivateKey) keyPair.getPrivate());
String expected = "{\"auth_request\": \"AuthRequest\", \"action\": \"True\"," +
" \"app_Pins\": \"\", \"device_id\": \"DeviceId\"}";
assertEquals(expected, jweService.decrypt(jweService.encrypt(expected, publicKey, publicKeyID, "application/json")));
}
@Test
public void lessOldDeprecatedConstructorStillWorks() throws Exception {
@SuppressWarnings("deprecation") JWEService jweService = new Jose4jJWEService(
(RSAPrivateKey) keyPair.getPrivate(), this.provider.getName());
String expected = "{\"auth_request\": \"AuthRequest\", \"action\": \"True\"," +
" \"app_Pins\": \"\", \"device_id\": \"DeviceId\"}";
assertEquals(expected, jweService.decrypt(jweService.encrypt(expected, publicKey, publicKeyID, "application/json")));
}
@Test
public void currentConstructorSucceeds() throws Exception {
JWEService jweService = new Jose4jJWEService(privateKeys, this.provider.getName());
String expected = "{\"auth_request\": \"AuthRequest\", \"action\": \"True\"," +
" \"app_Pins\": \"\", \"device_id\": \"DeviceId\"}";
assertEquals(expected, jweService.decrypt(jweService.encrypt(expected, publicKey, publicKeyID, "application/json")));
}
@Test
public void currentConstructorThrowsWhenNoKeysArePresent() throws Exception {
privateKeys.clear();
JWEService jweService = new Jose4jJWEService(privateKeys, this.provider.getName());
String expectedMessage = null;
String stuff = "{\"auth_request\": \"AuthRequest\", \"action\": \"True\"," +
" \"app_Pins\": \"\", \"device_id\": \"DeviceId\"}";
try {
jweService.decrypt(jweService.encrypt(stuff, publicKey, publicKeyID, "application/json"));
} catch (JWEFailure e) {
expectedMessage = e.getMessage();
}
assertNotNull(expectedMessage);
assertEquals(expectedMessage, "No keys were passed to the JWEService.");
}
@Test
public void currentConstructorSucceedsWithMultipleKeys() throws Exception {
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA", provider);
keyPairGenerator.initialize(2048);
KeyPair extraneousKeyPairOne = keyPairGenerator.generateKeyPair();
KeyPair extraneousKeyPairTwo = keyPairGenerator.generateKeyPair();
String extraneousKeyIdOne = JCECrypto.getRsaPublicKeyFingerprint(
provider, (RSAPrivateKey) extraneousKeyPairOne.getPrivate());
String extraneousKeyIdTwo = JCECrypto.getRsaPublicKeyFingerprint(
provider, (RSAPrivateKey) extraneousKeyPairTwo.getPrivate());
privateKeys.put(extraneousKeyIdOne, (RSAPrivateKey) extraneousKeyPairOne.getPrivate());
privateKeys.put(extraneousKeyIdTwo, (RSAPrivateKey) extraneousKeyPairTwo.getPrivate());
JWEService jweService = new Jose4jJWEService(privateKeys, this.provider.getName());
String expected = "{\"auth_request\": \"AuthRequest\", \"action\": \"True\"," +
" \"app_Pins\": \"\", \"device_id\": \"DeviceId\"}";
assertEquals(expected, jweService.decrypt(jweService.encrypt(expected, publicKey, publicKeyID, "application/json")));
}
@Test
public void decryptFindsCorrectKeyToDecryptWith() throws Exception {
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA", provider);
keyPairGenerator.initialize(2048);
KeyPair desiredKeyPair = keyPairGenerator.generateKeyPair();
KeyPair extraneousKeyPair = keyPairGenerator.generateKeyPair();
String desiredKeyId = JCECrypto.getRsaPublicKeyFingerprint(
provider, (RSAPrivateKey) desiredKeyPair.getPrivate());
PublicKey desiredPublicKey = desiredKeyPair.getPublic();
String extraneousKeyId = JCECrypto.getRsaPublicKeyFingerprint(
provider, (RSAPrivateKey) extraneousKeyPair.getPrivate());
privateKeys.put(desiredKeyId, (RSAPrivateKey) desiredKeyPair.getPrivate());
privateKeys.put(extraneousKeyId, (RSAPrivateKey) extraneousKeyPair.getPrivate());
JWEService jweService = new Jose4jJWEService(privateKeys, this.provider.getName());
String expected = "{\"auth_request\": \"AuthRequest\", \"action\": \"True\"," +
" \"app_Pins\": \"\", \"device_id\": \"DeviceId\"}";
assertEquals(expected, jweService.decrypt(jweService.encrypt(expected, desiredPublicKey, desiredKeyId, "application/json")));
}
@Test
public void currentConstructorThrowsWhenNoMatchingKeyIsFound() throws Exception {
privateKeys.clear();
String actualKeyId = JCECrypto.getRsaPublicKeyFingerprint(provider, (RSAPrivateKey) keyPair.getPrivate());
publicKeyID = "haha won't match anything";
privateKeys.put(actualKeyId, (RSAPrivateKey) keyPair.getPrivate());
JWEService jweService = new Jose4jJWEService(privateKeys, this.provider.getName());
String stuff = "{\"auth_request\": \"AuthRequest\", \"action\": \"True\"," +
" \"app_Pins\": \"\", \"device_id\": \"DeviceId\"}";
String expectedMessage = null;
try {
jweService.decrypt(jweService.encrypt(stuff, publicKey, publicKeyID, "application/json"));
} catch (JWEFailure e) {
expectedMessage = e.getMessage();
}
assertNotNull(expectedMessage);
assertEquals(expectedMessage, "No keys exist that match the key ID provided.");
}
@Test
public void decryptOfKnownValuesProducesExpectedResult() throws Exception {
@SuppressWarnings("SpellCheckingInspection")
final String jwe = "eyJraWQiOiI1ZjowNDpkZTozMzpkNjpiZjpjYzo2Yzo1NzpkYTowYTo3ZDo4MDo3ZDphNDpjZSIsImN0eSI6ImFw" +
"cGxpY2F0aW9uL2pzb24iLCJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIn0" +
"." +
"izy7zcD1fbbZg93TiouYmm9rq4I9aR5wSRPuASI1NoAL_5TMJq4s0hEQHp4DWXtbT1YZoSkbUazz-Cegt57XiHMO-z5lKSizJ6s" +
"3t9VnMcIzlLXKKDQO4Ke7wVq80zYCaYgA5oT1V83686T0l1x4UtD7ZwrVRbHUOJ1JA4j-plMYr2TdM20diFv_a-2jDh4Q4DVs4A" +
"sCYfAqC-FBJ-6yNjGFhkUGT-CtBHWswREPtGk5naiAKEz7gFuXOrh3gTOlP5J7-XWkEpdD_c084PBNKJgY-g6meYqKDBHCkfnDD" +
"XZxALAOHWCtcB6KaaIB6fUvmAiT9DXfoCDv-lxxW08a5aS2cvrFXmOu-aFkxRYXNswhj0JXWFLVRdQd47r1Tqjb1bTtLUlzGeJw" +
"8FOOnFbEGSqFzZNgDCpvcCFpgXei81mXPIXdSb_LZaFWqRXB298skvSPlKzkx58UGjH72P-8zQZJKp3_C_ZYwDS_7kzxGRnN_Kv" +
"E0Weh1iqjFEBvTjK-4zfk23KaLllkqceYx2WPS5Tx16WBJ81mVECklugwkK6lyBb3xwS7vqKSkKb2uc9a4RAGjjr4yBVRR8C9MZ" +
"bETX91t-hInCoFHc7efaoItmh2QoWtVl-ADjNdTNXfn0EL4de5IReHeIHBJRplaFala_4Ts-DF4IPw5VWRMFXxJks" +
"." +
"SQO-sjQj7ZaFRXMqzWhbSg" +
"." +
"Z5qQUSxoKhgjOibCLUqV0gNCNR9c7PUEduWUbuCifzTMvtLFN86954YZ4tOcRwyWwmO97LFEj4tknA1CCy30FyU9APejMaAWn3n" +
"S9REhsQiXme9xy4cKzdV_kWCaBxS-" +
"." +
"rmGzWJj1GjQog7Ed0HvAKeDa9FG5D8q6Sq7qT3MK_Nw";
@SuppressWarnings("SpellCheckingInspection")
final String privateKeyPEM =
"-----BEGIN RSA PRIVATE KEY-----\n" +
"MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQCZ4sq1uy7AGXkB\n" +
"0tD4DGk8c+oJBml1TkToxf2S+lHH0kUTIOThSKxEehGBPb+tTytwkGU7kW/mta8c\n" +
"2XzMAzx8Zc10Jjc5LWpj4boQLORZjSz5tpshfHTffM6lsMKq/T4KWk6QNAg1AQWN\n" +
"npY3oz72kSxcp8+qSyy6QnBLjv+8I8eMCft4Ozu6ZgjkaKToRk7yuifyzKehzMaT\n" +
"s5gn5cGqA0vQ95Ple/1hwzfyXSXy1dhRTxNuFDOYhbdOxfxE2v3dB6hXq+aP2icS\n" +
"9WAkUAKojvLwlIb0RFgdtdl3l/mdygQy7NnIVCFK01khfuEj+zKYkMjQrzFQpV3K\n" +
"R4EuN/hyvtLkY+cJytiY1woileAKNtxHfQDavnt6cJbJLHf7XgJ5gR3GbR13bctk\n" +
"sBwUktO+TH572bpZrg9rtOM6Rsdx7Thpk0hjBgc6WE5MFhwCuu5TPQhYEIIhoSqL\n" +
"NYaCxwf/75ip7ytRXx8unDQWcoBlCRkJUgC9ks65iv0GgpyKwbJkx/9x9/MIWELU\n" +
"wy5YTO28l6pg88PbR0pdzfwk7rJz6PIBf+SIkEJJKhSyMBQDzc62wCkxe9qjX/C7\n" +
"2+m/uoHYgaSUqfVEVPXRCqsRjGJ8sAsj1y/jvTeNlOnbPajUbOg5sXBxy6QXxR+l\n" +
"6dshEpOn6tQpTW5Je3aOzGO8OIKjcwIDAQABAoICAQCDgtZKSRXDBgHsFQaRdcnZ\n" +
"6BXycJBft+wcIlh664JIiuKNXmc8QKc4PjoHgYX1ztsI794T8k73k/17YkLM91cR\n" +
"2M6knKRFMRLjGV2xxSvBfG0bW3toOryG4lqYL1+uUY5buqG5iz4YTi84wHcQRWrh\n" +
"vV90L9XBa01mQLFHYYYce1dlzoIiVjzNJ7YhvWxxNOTzezP4w/3ewOpT///g2PGR\n" +
"IhABHhQ+4p/AlN2TOxfbV/XuRu4L/Se7CUuG/pyBG8YoxwqPIlGATqdmBF2NqvMa\n" +
"qk/kWoqa5m2HtomLM04YEzVTcCcOlRd+ovBhN9WgsmSjDdkQvygeC7UD0egMX7jq\n" +
"vtj2cSxX8jUADy8PKjRPs8KlhflJmb1G1Tkanoi+PkAmPlZupscF34AzepHrdwNc\n" +
"wbeJ1W4QXcQ3V/RqwaM+St4JkXmmYjbW5gh0RiE3BcMNTewIeIE/nd8Vx3jTzbE6\n" +
"wz+WesdNdnkEeFIOGGVwKlVbWfMI5R2Ou3I+vOd79yiu3aMiygJYZ26C040CUYUB\n" +
"VpDPWufDb4KHedxhq1snJMhBMDaeCsUrr9qsqs9ZZh3+9oEVwQesKptR4NSWEuY3\n" +
"3EZVxXsG5xzY+S4+jqvdzNr1RD47Nch/xhf9tbz7r8DH9cUokX7o8Oa89syXG/Wi\n" +
"0SrrHGkSvg7aM0M4fSD8gQKCAQEA7CA4avCLuOvxYyEN7bSNszTUABa3lxHEAF8f\n" +
"AxqKil585ug1SJj6V94fVviJUIs70DMFBIEfWnMh7xvKwFIqC/LiSqlroUjiXHoT\n" +
"PY7nblyi+u17z16EgZJ4ziUSDIvAg5pul4bDg5FoAoUppXV0DR3peHBDv+3aMu7S\n" +
"pSsLUQEYsPkP8qIocGLvCEe3J/pXvWcHJLjvwzQoWp2aZnoezPyf4YxFcjhQv03b\n" +
"dPP3oDxflJIFhUfAlp4ZQnH5wtS+qD2FZfUSL0jwK++20Z4DeXq6hJQmjS+l0bsH\n" +
"71DHUeo6VP/pIABo0sOVvnTN304ukqZux5UY8bjrotsh6imYuwKCAQEAptaOPAM2\n" +
"Xszw28yRDKNOHIbUBRezZNAPEDs/uBFJvfbTQL83RpJAuLp3gR4axuoKvpsy6CD1\n" +
"PEwAgus4uKw0GzWQuFDl7wyzMbGoDNozgrbTZNYyRiQNUAN8mUNnjp6U0e3OQSoq\n" +
"exlfQhPRgugqELBSDvVZWi4xP2fHoggJcn/nwow/9ECqLo/hVSyp2pQEJ7yv3l4w\n" +
"Vj31/PyjJHIFwsa7bElZ5ElGBjDJeAteUTn5LK/xtBuxYAO0bMEhT+1ohz8etzec\n" +
"N0h3mt5Zdr5F+wfma1kCGLikFbbC3JL9SYVB2FbMgcYCBqfD1J75wb+JnzNXGjcF\n" +
"uRYzE8B+zoFwqQKCAQEAodvEUKnrXSt/IDB8V8E4kOtZl2X7Gzc2X/rUS1BaP1dd\n" +
"zvrF66nRkYHVgcyEdA29Ro5ylg/c6ieZz0oBxauM3vvzWrKf8MMBR9r2bXAT/HbL\n" +
"0a4Q/KkRs7Av1z9aC/eQU6X8wSnDw+Bcp72YOq80iflDHSf3iQ0GUXucMVQ8QZ66\n" +
"yjUwVWYKyl9G8yoVxvW4R0DkiKuszuZl8xetyylTC7jv77AzuoQX9crs8FJ8H/7C\n" +
"lhkyZ5Yz0gs1zXJLft5Ogw0I8Eb53CfnWnbLnwzt3MvgJxlXA9jxlb7bRZTdzKz+\n" +
"p1109FbThAZGE3QF21jAXA5ySaVOoAPeopgLu3QgGQKCAQBNTZCt4dcpadAYJ9r1\n" +
"fh1NPnOywF6Q0Y6JOMq3YNtIN7t+fpsACfgPH+cLXoWNsRe1ZXfa8ppui9CY2KB5\n" +
"gODL0q/xlxpS/xFwbx6shdXkNQ4R5OV6dm3sqxDqer7a6EOQWZ19uCniy8jFdyVW\n" +
"gHgtL2V2JNx32ntbI5zuSMcH1JfwHsfrRqMT2/rOWlmBO6AJQXZDlGTVMPRveiel\n" +
"VWex7h8dd4c9LW5So/xVsP7MqA36VLOrfkFbeZv54CqtPBV4xRhYUF4Dh4JTsb7G\n" +
"NDd8rxZmmuFLzxHINdxoE3tku2fc86riXnrF1qn4NIkI6tS7fTBYpzHxpoWYG1Mm\n" +
"H/exAoIBADVG6h2dEmhdimFL7ghw+Tx9j2yDOFkH1phq4LU3AV+E9HqYUXcqYWTB\n" +
"IZt+xZHk8AoYg2SBjiMke6lIsEk+uADW1qUU1TMYl7ajKpLCtNfNykSP8bt1wT8c\n" +
"MXTW635SDs6Ts1iPrjxijn/XjL7HYF9YKwpdyRtC3n4n69hdF/j9S2XFNAdH4ENa\n" +
"Cs1unFgMgp+k5CVwVsEAdfEt/o1XECNepC/mOqjPIl6U5c+1SCdmy1iHy9trZJ1c\n" +
"fH0GRVJfFNdq+1LpeeMTTNeXS3WSBG/ErgWSKfvQ0mXfZ7sQHvvJSWXpv8m1xtI0\n" +
"z7EJEc1gLGLLZnL3KAGc+re1tjx5wCM=\n" +
"-----END RSA PRIVATE KEY-----\n";
final RSAPrivateKey privateKey = JCECrypto.getRSAPrivateKeyFromPEM(provider, privateKeyPEM);
final JWEService jweService = new Jose4jJWEService(privateKey, provider.getName());
String expected = "{\"auth_request\": \"AuthRequest\", \"action\": \"True\", \"app_Pins\": \"\"," +
" \"device_id\": \"DeviceId\"}";
String actual = jweService.decrypt(jwe);
assertEquals(expected, actual);
}
@Test
public void encryptCanBeDecrypted() throws Exception {
String expected = "{\"auth_request\": \"AuthRequest\", \"action\": \"True\"," +
" \"app_Pins\": \"\", \"device_id\": \"DeviceId\"}";
assertEquals(expected, jweService.decrypt(jweService.encrypt(expected, publicKey, publicKeyID, "application/json")));
}
@Test
public void encryptSetsKeyId() throws Exception {
String plainText = "{\"test\": \"response\"}";
String encrypted = jweService.encrypt(plainText, publicKey, publicKeyID, "application/json");
assertEquals(publicKeyID, jweService.getHeaders(encrypted).get("kid"));
}
@Test(expected = JWEFailure.class)
public void decryptJoseExceptionThrowsJweFailure() throws Exception {
//noinspection SpellCheckingInspection
jweService.decrypt("kjsdhflskd");
}
@Test
public void getHeadersReturnsHeaders() throws Exception {
//noinspection SpellCheckingInspection
final String jwe = "eyJraWQiOiI1ZjowNDpkZTozMzpkNjpiZjpjYzo2Yzo1NzpkYTowYTo3ZDo4MDo3ZDphNDpjZSIsImN0eSI6ImFw" +
"cGxpY2F0aW9uL2pzb24iLCJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIn0" +
"." +
"izy7zcD1fbbZg93TiouYmm9rq4I9aR5wSRPuASI1NoAL_5TMJq4s0hEQHp4DWXtbT1YZoSkbUazz-Cegt57XiHMO-z5lKSizJ6s" +
"3t9VnMcIzlLXKKDQO4Ke7wVq80zYCaYgA5oT1V83686T0l1x4UtD7ZwrVRbHUOJ1JA4j-plMYr2TdM20diFv_a-2jDh4Q4DVs4A" +
"sCYfAqC-FBJ-6yNjGFhkUGT-CtBHWswREPtGk5naiAKEz7gFuXOrh3gTOlP5J7-XWkEpdD_c084PBNKJgY-g6meYqKDBHCkfnDD" +
"XZxALAOHWCtcB6KaaIB6fUvmAiT9DXfoCDv-lxxW08a5aS2cvrFXmOu-aFkxRYXNswhj0JXWFLVRdQd47r1Tqjb1bTtLUlzGeJw" +
"8FOOnFbEGSqFzZNgDCpvcCFpgXei81mXPIXdSb_LZaFWqRXB298skvSPlKzkx58UGjH72P-8zQZJKp3_C_ZYwDS_7kzxGRnN_Kv" +
"E0Weh1iqjFEBvTjK-4zfk23KaLllkqceYx2WPS5Tx16WBJ81mVECklugwkK6lyBb3xwS7vqKSkKb2uc9a4RAGjjr4yBVRR8C9MZ" +
"bETX91t-hInCoFHc7efaoItmh2QoWtVl-ADjNdTNXfn0EL4de5IReHeIHBJRplaFala_4Ts-DF4IPw5VWRMFXxJks" +
"." +
"SQO-sjQj7ZaFRXMqzWhbSg" +
"." +
"Z5qQUSxoKhgjOibCLUqV0gNCNR9c7PUEduWUbuCifzTMvtLFN86954YZ4tOcRwyWwmO97LFEj4tknA1CCy30FyU9APejMaAWn3n" +
"S9REhsQiXme9xy4cKzdV_kWCaBxS-" +
"." +
"rmGzWJj1GjQog7Ed0HvAKeDa9FG5D8q6Sq7qT3MK_Nw";
Map<String, Object> expected = new LinkedHashMap<>();
expected.put("alg", "RSA-OAEP-256");
expected.put("enc", "A256CBC-HS512");
expected.put("kid", "5f:04:de:33:d6:bf:cc:6c:57:da:0a:7d:80:7d:a4:ce");
expected.put("cty", "application/json");
assertEquals(expected, jweService.getHeaders(jwe));
}
}
| mit |
icomefromthenet/GeneralLedger | src/IComeFromTheNet/GeneralLedger/UnitOfWork.php | 829 | <?php
namespace IComeFromTheNet\GeneralLedger;
/**
* Abstract for unit of work, a transaction guard
*
* @author Lewis Dyer <getintouch@icomefromthenet.com>
* @since 1.0.0
*/
interface UnitOfWork
{
//---------------------------------------------------------------------
# API Methods to control Database Transaction
/**
* Start this unit of work
*
* @access protected
* @return void
*
*/
public function start();
/**
* Commit the result of the Unit of work
*
* @access protected
* @return void
*
*/
public function commit();
/**
* Cause a rollback of this Unit of Work
*
* @access public
* @return void
*
*/
public function rollback();
}
/* End of Class */
| mit |
mdahamshi/data-visualization | js/data/worldgeo.js | 918413 | var worldgeo =
{
type: 'FeatureCollection',
features: [
{
type: 'Feature',
id: 'AFG',
properties: {
name: 'Afghanistan'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
61.210817,
35.650072
],
[
62.230651,
35.270664
],
[
62.984662,
35.404041
],
[
63.193538,
35.857166
],
[
63.982896,
36.007957
],
[
64.546479,
36.312073
],
[
64.746105,
37.111818
],
[
65.588948,
37.305217
],
[
65.745631,
37.661164
],
[
66.217385,
37.39379
],
[
66.518607,
37.362784
],
[
67.075782,
37.356144
],
[
67.83,
37.144994
],
[
68.135562,
37.023115
],
[
68.859446,
37.344336
],
[
69.196273,
37.151144
],
[
69.518785,
37.608997
],
[
70.116578,
37.588223
],
[
70.270574,
37.735165
],
[
70.376304,
38.138396
],
[
70.806821,
38.486282
],
[
71.348131,
38.258905
],
[
71.239404,
37.953265
],
[
71.541918,
37.905774
],
[
71.448693,
37.065645
],
[
71.844638,
36.738171
],
[
72.193041,
36.948288
],
[
72.63689,
37.047558
],
[
73.260056,
37.495257
],
[
73.948696,
37.421566
],
[
74.980002,
37.41999
],
[
75.158028,
37.133031
],
[
74.575893,
37.020841
],
[
74.067552,
36.836176
],
[
72.920025,
36.720007
],
[
71.846292,
36.509942
],
[
71.262348,
36.074388
],
[
71.498768,
35.650563
],
[
71.613076,
35.153203
],
[
71.115019,
34.733126
],
[
71.156773,
34.348911
],
[
70.881803,
33.988856
],
[
69.930543,
34.02012
],
[
70.323594,
33.358533
],
[
69.687147,
33.105499
],
[
69.262522,
32.501944
],
[
69.317764,
31.901412
],
[
68.926677,
31.620189
],
[
68.556932,
31.71331
],
[
67.792689,
31.58293
],
[
67.683394,
31.303154
],
[
66.938891,
31.304911
],
[
66.381458,
30.738899
],
[
66.346473,
29.887943
],
[
65.046862,
29.472181
],
[
64.350419,
29.560031
],
[
64.148002,
29.340819
],
[
63.550261,
29.468331
],
[
62.549857,
29.318572
],
[
60.874248,
29.829239
],
[
61.781222,
30.73585
],
[
61.699314,
31.379506
],
[
60.941945,
31.548075
],
[
60.863655,
32.18292
],
[
60.536078,
32.981269
],
[
60.9637,
33.528832
],
[
60.52843,
33.676446
],
[
60.803193,
34.404102
],
[
61.210817,
35.650072
]
]
]
}
},
{
type: 'Feature',
id: 'AGO',
properties: {
name: 'Angola'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
16.326528,
-5.87747
],
[
16.57318,
-6.622645
],
[
16.860191,
-7.222298
],
[
17.089996,
-7.545689
],
[
17.47297,
-8.068551
],
[
18.134222,
-7.987678
],
[
18.464176,
-7.847014
],
[
19.016752,
-7.988246
],
[
19.166613,
-7.738184
],
[
19.417502,
-7.155429
],
[
20.037723,
-7.116361
],
[
20.091622,
-6.94309
],
[
20.601823,
-6.939318
],
[
20.514748,
-7.299606
],
[
21.728111,
-7.290872
],
[
21.746456,
-7.920085
],
[
21.949131,
-8.305901
],
[
21.801801,
-8.908707
],
[
21.875182,
-9.523708
],
[
22.208753,
-9.894796
],
[
22.155268,
-11.084801
],
[
22.402798,
-10.993075
],
[
22.837345,
-11.017622
],
[
23.456791,
-10.867863
],
[
23.912215,
-10.926826
],
[
24.017894,
-11.237298
],
[
23.904154,
-11.722282
],
[
24.079905,
-12.191297
],
[
23.930922,
-12.565848
],
[
24.016137,
-12.911046
],
[
21.933886,
-12.898437
],
[
21.887843,
-16.08031
],
[
22.562478,
-16.898451
],
[
23.215048,
-17.523116
],
[
21.377176,
-17.930636
],
[
18.956187,
-17.789095
],
[
18.263309,
-17.309951
],
[
14.209707,
-17.353101
],
[
14.058501,
-17.423381
],
[
13.462362,
-16.971212
],
[
12.814081,
-16.941343
],
[
12.215461,
-17.111668
],
[
11.734199,
-17.301889
],
[
11.640096,
-16.673142
],
[
11.778537,
-15.793816
],
[
12.123581,
-14.878316
],
[
12.175619,
-14.449144
],
[
12.500095,
-13.5477
],
[
12.738479,
-13.137906
],
[
13.312914,
-12.48363
],
[
13.633721,
-12.038645
],
[
13.738728,
-11.297863
],
[
13.686379,
-10.731076
],
[
13.387328,
-10.373578
],
[
13.120988,
-9.766897
],
[
12.87537,
-9.166934
],
[
12.929061,
-8.959091
],
[
13.236433,
-8.562629
],
[
12.93304,
-7.596539
],
[
12.728298,
-6.927122
],
[
12.227347,
-6.294448
],
[
12.322432,
-6.100092
],
[
12.735171,
-5.965682
],
[
13.024869,
-5.984389
],
[
13.375597,
-5.864241
],
[
16.326528,
-5.87747
]
]
],
[
[
[
12.436688,
-5.684304
],
[
12.182337,
-5.789931
],
[
11.914963,
-5.037987
],
[
12.318608,
-4.60623
],
[
12.62076,
-4.438023
],
[
12.995517,
-4.781103
],
[
12.631612,
-4.991271
],
[
12.468004,
-5.248362
],
[
12.436688,
-5.684304
]
]
]
]
}
},
{
type: 'Feature',
id: 'ALB',
properties: {
name: 'Albania'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
20.590247,
41.855404
],
[
20.463175,
41.515089
],
[
20.605182,
41.086226
],
[
21.02004,
40.842727
],
[
20.99999,
40.580004
],
[
20.674997,
40.435
],
[
20.615,
40.110007
],
[
20.150016,
39.624998
],
[
19.98,
39.694993
],
[
19.960002,
39.915006
],
[
19.406082,
40.250773
],
[
19.319059,
40.72723
],
[
19.40355,
41.409566
],
[
19.540027,
41.719986
],
[
19.371769,
41.877548
],
[
19.304486,
42.195745
],
[
19.738051,
42.688247
],
[
19.801613,
42.500093
],
[
20.0707,
42.58863
],
[
20.283755,
42.32026
],
[
20.52295,
42.21787
],
[
20.590247,
41.855404
]
]
]
}
},
{
type: 'Feature',
id: 'ARE',
properties: {
name: 'United Arab Emirates'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
51.579519,
24.245497
],
[
51.757441,
24.294073
],
[
51.794389,
24.019826
],
[
52.577081,
24.177439
],
[
53.404007,
24.151317
],
[
54.008001,
24.121758
],
[
54.693024,
24.797892
],
[
55.439025,
25.439145
],
[
56.070821,
26.055464
],
[
56.261042,
25.714606
],
[
56.396847,
24.924732
],
[
55.886233,
24.920831
],
[
55.804119,
24.269604
],
[
55.981214,
24.130543
],
[
55.528632,
23.933604
],
[
55.525841,
23.524869
],
[
55.234489,
23.110993
],
[
55.208341,
22.70833
],
[
55.006803,
22.496948
],
[
52.000733,
23.001154
],
[
51.617708,
24.014219
],
[
51.579519,
24.245497
]
]
]
}
},
{
type: 'Feature',
id: 'ARG',
properties: {
name: 'Argentina'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
-65.5,
-55.2
],
[
-66.45,
-55.25
],
[
-66.95992,
-54.89681
],
[
-67.56244,
-54.87001
],
[
-68.63335,
-54.8695
],
[
-68.63401,
-52.63637
],
[
-68.25,
-53.1
],
[
-67.75,
-53.85
],
[
-66.45,
-54.45
],
[
-65.05,
-54.7
],
[
-65.5,
-55.2
]
]
],
[
[
[
-64.964892,
-22.075862
],
[
-64.377021,
-22.798091
],
[
-63.986838,
-21.993644
],
[
-62.846468,
-22.034985
],
[
-62.685057,
-22.249029
],
[
-60.846565,
-23.880713
],
[
-60.028966,
-24.032796
],
[
-58.807128,
-24.771459
],
[
-57.777217,
-25.16234
],
[
-57.63366,
-25.603657
],
[
-58.618174,
-27.123719
],
[
-57.60976,
-27.395899
],
[
-56.486702,
-27.548499
],
[
-55.695846,
-27.387837
],
[
-54.788795,
-26.621786
],
[
-54.625291,
-25.739255
],
[
-54.13005,
-25.547639
],
[
-53.628349,
-26.124865
],
[
-53.648735,
-26.923473
],
[
-54.490725,
-27.474757
],
[
-55.162286,
-27.881915
],
[
-56.2909,
-28.852761
],
[
-57.625133,
-30.216295
],
[
-57.874937,
-31.016556
],
[
-58.14244,
-32.044504
],
[
-58.132648,
-33.040567
],
[
-58.349611,
-33.263189
],
[
-58.427074,
-33.909454
],
[
-58.495442,
-34.43149
],
[
-57.22583,
-35.288027
],
[
-57.362359,
-35.97739
],
[
-56.737487,
-36.413126
],
[
-56.788285,
-36.901572
],
[
-57.749157,
-38.183871
],
[
-59.231857,
-38.72022
],
[
-61.237445,
-38.928425
],
[
-62.335957,
-38.827707
],
[
-62.125763,
-39.424105
],
[
-62.330531,
-40.172586
],
[
-62.145994,
-40.676897
],
[
-62.745803,
-41.028761
],
[
-63.770495,
-41.166789
],
[
-64.73209,
-40.802677
],
[
-65.118035,
-41.064315
],
[
-64.978561,
-42.058001
],
[
-64.303408,
-42.359016
],
[
-63.755948,
-42.043687
],
[
-63.458059,
-42.563138
],
[
-64.378804,
-42.873558
],
[
-65.181804,
-43.495381
],
[
-65.328823,
-44.501366
],
[
-65.565269,
-45.036786
],
[
-66.509966,
-45.039628
],
[
-67.293794,
-45.551896
],
[
-67.580546,
-46.301773
],
[
-66.597066,
-47.033925
],
[
-65.641027,
-47.236135
],
[
-65.985088,
-48.133289
],
[
-67.166179,
-48.697337
],
[
-67.816088,
-49.869669
],
[
-68.728745,
-50.264218
],
[
-69.138539,
-50.73251
],
[
-68.815561,
-51.771104
],
[
-68.149995,
-52.349983
],
[
-68.571545,
-52.299444
],
[
-69.498362,
-52.142761
],
[
-71.914804,
-52.009022
],
[
-72.329404,
-51.425956
],
[
-72.309974,
-50.67701
],
[
-72.975747,
-50.74145
],
[
-73.328051,
-50.378785
],
[
-73.415436,
-49.318436
],
[
-72.648247,
-48.878618
],
[
-72.331161,
-48.244238
],
[
-72.447355,
-47.738533
],
[
-71.917258,
-46.884838
],
[
-71.552009,
-45.560733
],
[
-71.659316,
-44.973689
],
[
-71.222779,
-44.784243
],
[
-71.329801,
-44.407522
],
[
-71.793623,
-44.207172
],
[
-71.464056,
-43.787611
],
[
-71.915424,
-43.408565
],
[
-72.148898,
-42.254888
],
[
-71.746804,
-42.051386
],
[
-71.915734,
-40.832339
],
[
-71.680761,
-39.808164
],
[
-71.413517,
-38.916022
],
[
-70.814664,
-38.552995
],
[
-71.118625,
-37.576827
],
[
-71.121881,
-36.658124
],
[
-70.364769,
-36.005089
],
[
-70.388049,
-35.169688
],
[
-69.817309,
-34.193571
],
[
-69.814777,
-33.273886
],
[
-70.074399,
-33.09121
],
[
-70.535069,
-31.36501
],
[
-69.919008,
-30.336339
],
[
-70.01355,
-29.367923
],
[
-69.65613,
-28.459141
],
[
-69.001235,
-27.521214
],
[
-68.295542,
-26.89934
],
[
-68.5948,
-26.506909
],
[
-68.386001,
-26.185016
],
[
-68.417653,
-24.518555
],
[
-67.328443,
-24.025303
],
[
-66.985234,
-22.986349
],
[
-67.106674,
-22.735925
],
[
-66.273339,
-21.83231
],
[
-64.964892,
-22.075862
]
]
]
]
}
},
{
type: 'Feature',
id: 'ARM',
properties: {
name: 'Armenia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
43.582746,
41.092143
],
[
44.97248,
41.248129
],
[
45.179496,
40.985354
],
[
45.560351,
40.81229
],
[
45.359175,
40.561504
],
[
45.891907,
40.218476
],
[
45.610012,
39.899994
],
[
46.034534,
39.628021
],
[
46.483499,
39.464155
],
[
46.50572,
38.770605
],
[
46.143623,
38.741201
],
[
45.735379,
39.319719
],
[
45.739978,
39.473999
],
[
45.298145,
39.471751
],
[
45.001987,
39.740004
],
[
44.79399,
39.713003
],
[
44.400009,
40.005
],
[
43.656436,
40.253564
],
[
43.752658,
40.740201
],
[
43.582746,
41.092143
]
]
]
}
},
{
type: 'Feature',
id: 'ATA',
properties: {
name: 'Antarctica'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
-59.572095,
-80.040179
],
[
-59.865849,
-80.549657
],
[
-60.159656,
-81.000327
],
[
-62.255393,
-80.863178
],
[
-64.488125,
-80.921934
],
[
-65.741666,
-80.588827
],
[
-65.741666,
-80.549657
],
[
-66.290031,
-80.255773
],
[
-64.037688,
-80.294944
],
[
-61.883246,
-80.39287
],
[
-61.138976,
-79.981371
],
[
-60.610119,
-79.628679
],
[
-59.572095,
-80.040179
]
]
],
[
[
[
-159.208184,
-79.497059
],
[
-161.127601,
-79.634209
],
[
-162.439847,
-79.281465
],
[
-163.027408,
-78.928774
],
[
-163.066604,
-78.869966
],
[
-163.712896,
-78.595667
],
[
-163.105801,
-78.223338
],
[
-161.245113,
-78.380176
],
[
-160.246208,
-78.693645
],
[
-159.482405,
-79.046338
],
[
-159.208184,
-79.497059
]
]
],
[
[
[
-45.154758,
-78.04707
],
[
-43.920828,
-78.478103
],
[
-43.48995,
-79.08556
],
[
-43.372438,
-79.516645
],
[
-43.333267,
-80.026123
],
[
-44.880537,
-80.339644
],
[
-46.506174,
-80.594357
],
[
-48.386421,
-80.829485
],
[
-50.482107,
-81.025442
],
[
-52.851988,
-80.966685
],
[
-54.164259,
-80.633528
],
[
-53.987991,
-80.222028
],
[
-51.853134,
-79.94773
],
[
-50.991326,
-79.614623
],
[
-50.364595,
-79.183487
],
[
-49.914131,
-78.811209
],
[
-49.306959,
-78.458569
],
[
-48.660616,
-78.047018
],
[
-48.660616,
-78.047019
],
[
-48.151396,
-78.04707
],
[
-46.662857,
-77.831476
],
[
-45.154758,
-78.04707
]
]
],
[
[
[
-121.211511,
-73.50099
],
[
-119.918851,
-73.657725
],
[
-118.724143,
-73.481353
],
[
-119.292119,
-73.834097
],
[
-120.232217,
-74.08881
],
[
-121.62283,
-74.010468
],
[
-122.621735,
-73.657778
],
[
-122.621735,
-73.657777
],
[
-122.406245,
-73.324619
],
[
-121.211511,
-73.50099
]
]
],
[
[
[
-125.559566,
-73.481353
],
[
-124.031882,
-73.873268
],
[
-124.619469,
-73.834097
],
[
-125.912181,
-73.736118
],
[
-127.28313,
-73.461769
],
[
-127.28313,
-73.461768
],
[
-126.558472,
-73.246226
],
[
-125.559566,
-73.481353
]
]
],
[
[
[
-98.98155,
-71.933334
],
[
-97.884743,
-72.070535
],
[
-96.787937,
-71.952971
],
[
-96.20035,
-72.521205
],
[
-96.983765,
-72.442864
],
[
-98.198083,
-72.482035
],
[
-99.432013,
-72.442864
],
[
-100.783455,
-72.50162
],
[
-101.801868,
-72.305663
],
[
-102.330725,
-71.894164
],
[
-101.703967,
-71.717792
],
[
-100.430919,
-71.854993
],
[
-98.98155,
-71.933334
]
]
],
[
[
[
-68.451346,
-70.955823
],
[
-68.333834,
-71.406493
],
[
-68.510128,
-71.798407
],
[
-68.784297,
-72.170736
],
[
-69.959471,
-72.307885
],
[
-71.075889,
-72.503842
],
[
-72.388134,
-72.484257
],
[
-71.8985,
-72.092343
],
[
-73.073622,
-72.229492
],
[
-74.19004,
-72.366693
],
[
-74.953895,
-72.072757
],
[
-75.012625,
-71.661258
],
[
-73.915819,
-71.269345
],
[
-73.915819,
-71.269344
],
[
-73.230331,
-71.15178
],
[
-72.074717,
-71.190951
],
[
-71.780962,
-70.681473
],
[
-71.72218,
-70.309196
],
[
-71.741791,
-69.505782
],
[
-71.173815,
-69.035475
],
[
-70.253252,
-68.87874
],
[
-69.724447,
-69.251017
],
[
-69.489422,
-69.623346
],
[
-69.058518,
-70.074016
],
[
-68.725541,
-70.505153
],
[
-68.451346,
-70.955823
]
]
],
[
[
[
-58.614143,
-64.152467
],
[
-59.045073,
-64.36801
],
[
-59.789342,
-64.211223
],
[
-60.611928,
-64.309202
],
[
-61.297416,
-64.54433
],
[
-62.0221,
-64.799094
],
[
-62.51176,
-65.09303
],
[
-62.648858,
-65.484942
],
[
-62.590128,
-65.857219
],
[
-62.120079,
-66.190326
],
[
-62.805567,
-66.425505
],
[
-63.74569,
-66.503847
],
[
-64.294106,
-66.837004
],
[
-64.881693,
-67.150474
],
[
-65.508425,
-67.58161
],
[
-65.665082,
-67.953887
],
[
-65.312545,
-68.365335
],
[
-64.783715,
-68.678908
],
[
-63.961103,
-68.913984
],
[
-63.1973,
-69.227556
],
[
-62.785955,
-69.619419
],
[
-62.570516,
-69.991747
],
[
-62.276736,
-70.383661
],
[
-61.806661,
-70.716768
],
[
-61.512906,
-71.089045
],
[
-61.375809,
-72.010074
],
[
-61.081977,
-72.382351
],
[
-61.003661,
-72.774265
],
[
-60.690269,
-73.166179
],
[
-60.827367,
-73.695242
],
[
-61.375809,
-74.106742
],
[
-61.96337,
-74.439848
],
[
-63.295201,
-74.576997
],
[
-63.74569,
-74.92974
],
[
-64.352836,
-75.262847
],
[
-65.860987,
-75.635124
],
[
-67.192818,
-75.79191
],
[
-68.446282,
-76.007452
],
[
-69.797724,
-76.222995
],
[
-70.600724,
-76.634494
],
[
-72.206776,
-76.673665
],
[
-73.969536,
-76.634494
],
[
-75.555977,
-76.712887
],
[
-77.24037,
-76.712887
],
[
-76.926979,
-77.104802
],
[
-75.399294,
-77.28107
],
[
-74.282876,
-77.55542
],
[
-73.656119,
-77.908112
],
[
-74.772536,
-78.221633
],
[
-76.4961,
-78.123654
],
[
-77.925858,
-78.378419
],
[
-77.984666,
-78.789918
],
[
-78.023785,
-79.181833
],
[
-76.848637,
-79.514939
],
[
-76.633224,
-79.887216
],
[
-75.360097,
-80.259545
],
[
-73.244852,
-80.416331
],
[
-71.442946,
-80.69063
],
[
-70.013163,
-81.004151
],
[
-68.191646,
-81.317672
],
[
-65.704279,
-81.474458
],
[
-63.25603,
-81.748757
],
[
-61.552026,
-82.042692
],
[
-59.691416,
-82.37585
],
[
-58.712121,
-82.846106
],
[
-58.222487,
-83.218434
],
[
-57.008117,
-82.865691
],
[
-55.362894,
-82.571755
],
[
-53.619771,
-82.258235
],
[
-51.543644,
-82.003521
],
[
-49.76135,
-81.729171
],
[
-47.273931,
-81.709586
],
[
-44.825708,
-81.846735
],
[
-42.808363,
-82.081915
],
[
-42.16202,
-81.65083
],
[
-40.771433,
-81.356894
],
[
-38.244818,
-81.337309
],
[
-36.26667,
-81.121715
],
[
-34.386397,
-80.906172
],
[
-32.310296,
-80.769023
],
[
-30.097098,
-80.592651
],
[
-28.549802,
-80.337938
],
[
-29.254901,
-79.985195
],
[
-29.685805,
-79.632503
],
[
-29.685805,
-79.260226
],
[
-31.624808,
-79.299397
],
[
-33.681324,
-79.456132
],
[
-35.639912,
-79.456132
],
[
-35.914107,
-79.083855
],
[
-35.77701,
-78.339248
],
[
-35.326546,
-78.123654
],
[
-33.896763,
-77.888526
],
[
-32.212369,
-77.65345
],
[
-30.998051,
-77.359515
],
[
-29.783732,
-77.065579
],
[
-28.882779,
-76.673665
],
[
-27.511752,
-76.497345
],
[
-26.160336,
-76.360144
],
[
-25.474822,
-76.281803
],
[
-23.927552,
-76.24258
],
[
-22.458598,
-76.105431
],
[
-21.224694,
-75.909474
],
[
-20.010375,
-75.674346
],
[
-18.913543,
-75.439218
],
[
-17.522982,
-75.125698
],
[
-16.641589,
-74.79254
],
[
-15.701491,
-74.498604
],
[
-15.40771,
-74.106742
],
[
-16.46532,
-73.871614
],
[
-16.112784,
-73.460114
],
[
-15.446855,
-73.146542
],
[
-14.408805,
-72.950585
],
[
-13.311973,
-72.715457
],
[
-12.293508,
-72.401936
],
[
-11.510067,
-72.010074
],
[
-11.020433,
-71.539767
],
[
-10.295774,
-71.265416
],
[
-9.101015,
-71.324224
],
[
-8.611381,
-71.65733
],
[
-7.416622,
-71.696501
],
[
-7.377451,
-71.324224
],
[
-6.868232,
-70.93231
],
[
-5.790985,
-71.030289
],
[
-5.536375,
-71.402617
],
[
-4.341667,
-71.461373
],
[
-3.048981,
-71.285053
],
[
-1.795492,
-71.167438
],
[
-0.659489,
-71.226246
],
[
-0.228637,
-71.637745
],
[
0.868195,
-71.304639
],
[
1.886686,
-71.128267
],
[
3.022638,
-70.991118
],
[
4.139055,
-70.853917
],
[
5.157546,
-70.618789
],
[
6.273912,
-70.462055
],
[
7.13572,
-70.246512
],
[
7.742866,
-69.893769
],
[
8.48711,
-70.148534
],
[
9.525135,
-70.011333
],
[
10.249845,
-70.48164
],
[
10.817821,
-70.834332
],
[
11.953824,
-70.638375
],
[
12.404287,
-70.246512
],
[
13.422778,
-69.972162
],
[
14.734998,
-70.030918
],
[
15.126757,
-70.403247
],
[
15.949342,
-70.030918
],
[
17.026589,
-69.913354
],
[
18.201711,
-69.874183
],
[
19.259373,
-69.893769
],
[
20.375739,
-70.011333
],
[
21.452985,
-70.07014
],
[
21.923034,
-70.403247
],
[
22.569403,
-70.697182
],
[
23.666184,
-70.520811
],
[
24.841357,
-70.48164
],
[
25.977309,
-70.48164
],
[
27.093726,
-70.462055
],
[
28.09258,
-70.324854
],
[
29.150242,
-70.20729
],
[
30.031583,
-69.93294
],
[
30.971733,
-69.75662
],
[
31.990172,
-69.658641
],
[
32.754053,
-69.384291
],
[
33.302443,
-68.835642
],
[
33.870419,
-68.502588
],
[
34.908495,
-68.659271
],
[
35.300202,
-69.012014
],
[
36.16201,
-69.247142
],
[
37.200035,
-69.168748
],
[
37.905108,
-69.52144
],
[
38.649404,
-69.776205
],
[
39.667894,
-69.541077
],
[
40.020431,
-69.109941
],
[
40.921358,
-68.933621
],
[
41.959434,
-68.600514
],
[
42.938702,
-68.463313
],
[
44.113876,
-68.267408
],
[
44.897291,
-68.051866
],
[
45.719928,
-67.816738
],
[
46.503343,
-67.601196
],
[
47.44344,
-67.718759
],
[
48.344419,
-67.366068
],
[
48.990736,
-67.091718
],
[
49.930885,
-67.111303
],
[
50.753471,
-66.876175
],
[
50.949325,
-66.523484
],
[
51.791547,
-66.249133
],
[
52.614133,
-66.053176
],
[
53.613038,
-65.89639
],
[
54.53355,
-65.818049
],
[
55.414943,
-65.876805
],
[
56.355041,
-65.974783
],
[
57.158093,
-66.249133
],
[
57.255968,
-66.680218
],
[
58.137361,
-67.013324
],
[
58.744508,
-67.287675
],
[
59.939318,
-67.405239
],
[
60.605221,
-67.679589
],
[
61.427806,
-67.953887
],
[
62.387489,
-68.012695
],
[
63.19049,
-67.816738
],
[
64.052349,
-67.405239
],
[
64.992447,
-67.620729
],
[
65.971715,
-67.738345
],
[
66.911864,
-67.855909
],
[
67.891133,
-67.934302
],
[
68.890038,
-67.934302
],
[
69.712624,
-68.972791
],
[
69.673453,
-69.227556
],
[
69.555941,
-69.678226
],
[
68.596258,
-69.93294
],
[
67.81274,
-70.305268
],
[
67.949889,
-70.697182
],
[
69.066307,
-70.677545
],
[
68.929157,
-71.069459
],
[
68.419989,
-71.441788
],
[
67.949889,
-71.853287
],
[
68.71377,
-72.166808
],
[
69.869307,
-72.264787
],
[
71.024895,
-72.088415
],
[
71.573285,
-71.696501
],
[
71.906288,
-71.324224
],
[
72.454627,
-71.010703
],
[
73.08141,
-70.716768
],
[
73.33602,
-70.364024
],
[
73.864877,
-69.874183
],
[
74.491557,
-69.776205
],
[
75.62756,
-69.737034
],
[
76.626465,
-69.619419
],
[
77.644904,
-69.462684
],
[
78.134539,
-69.07077
],
[
78.428371,
-68.698441
],
[
79.113859,
-68.326216
],
[
80.093127,
-68.071503
],
[
80.93535,
-67.875546
],
[
81.483792,
-67.542388
],
[
82.051767,
-67.366068
],
[
82.776426,
-67.209282
],
[
83.775331,
-67.30726
],
[
84.676206,
-67.209282
],
[
85.655527,
-67.091718
],
[
86.752359,
-67.150474
],
[
87.477017,
-66.876175
],
[
87.986289,
-66.209911
],
[
88.358411,
-66.484261
],
[
88.828408,
-66.954568
],
[
89.67063,
-67.150474
],
[
90.630365,
-67.228867
],
[
91.5901,
-67.111303
],
[
92.608539,
-67.189696
],
[
93.548637,
-67.209282
],
[
94.17542,
-67.111303
],
[
95.017591,
-67.170111
],
[
95.781472,
-67.385653
],
[
96.682399,
-67.248504
],
[
97.759646,
-67.248504
],
[
98.68021,
-67.111303
],
[
99.718182,
-67.248504
],
[
100.384188,
-66.915346
],
[
100.893356,
-66.58224
],
[
101.578896,
-66.30789
],
[
102.832411,
-65.563284
],
[
103.478676,
-65.700485
],
[
104.242557,
-65.974783
],
[
104.90846,
-66.327527
],
[
106.181561,
-66.934931
],
[
107.160881,
-66.954568
],
[
108.081393,
-66.954568
],
[
109.15864,
-66.837004
],
[
110.235835,
-66.699804
],
[
111.058472,
-66.425505
],
[
111.74396,
-66.13157
],
[
112.860378,
-66.092347
],
[
113.604673,
-65.876805
],
[
114.388088,
-66.072762
],
[
114.897308,
-66.386283
],
[
115.602381,
-66.699804
],
[
116.699161,
-66.660633
],
[
117.384701,
-66.915346
],
[
118.57946,
-67.170111
],
[
119.832924,
-67.268089
],
[
120.871,
-67.189696
],
[
121.654415,
-66.876175
],
[
122.320369,
-66.562654
],
[
123.221296,
-66.484261
],
[
124.122274,
-66.621462
],
[
125.160247,
-66.719389
],
[
126.100396,
-66.562654
],
[
127.001427,
-66.562654
],
[
127.882768,
-66.660633
],
[
128.80328,
-66.758611
],
[
129.704259,
-66.58224
],
[
130.781454,
-66.425505
],
[
131.799945,
-66.386283
],
[
132.935896,
-66.386283
],
[
133.85646,
-66.288304
],
[
134.757387,
-66.209963
],
[
135.031582,
-65.72007
],
[
135.070753,
-65.308571
],
[
135.697485,
-65.582869
],
[
135.873805,
-66.033591
],
[
136.206705,
-66.44509
],
[
136.618049,
-66.778197
],
[
137.460271,
-66.954568
],
[
138.596223,
-66.895761
],
[
139.908442,
-66.876175
],
[
140.809421,
-66.817367
],
[
142.121692,
-66.817367
],
[
143.061842,
-66.797782
],
[
144.374061,
-66.837004
],
[
145.490427,
-66.915346
],
[
146.195552,
-67.228867
],
[
145.999699,
-67.601196
],
[
146.646067,
-67.895131
],
[
147.723263,
-68.130259
],
[
148.839629,
-68.385024
],
[
150.132314,
-68.561292
],
[
151.483705,
-68.71813
],
[
152.502247,
-68.874813
],
[
153.638199,
-68.894502
],
[
154.284567,
-68.561292
],
[
155.165857,
-68.835642
],
[
155.92979,
-69.149215
],
[
156.811132,
-69.384291
],
[
158.025528,
-69.482269
],
[
159.181013,
-69.599833
],
[
159.670699,
-69.991747
],
[
160.80665,
-70.226875
],
[
161.570479,
-70.579618
],
[
162.686897,
-70.736353
],
[
163.842434,
-70.716768
],
[
164.919681,
-70.775524
],
[
166.11444,
-70.755938
],
[
167.309095,
-70.834332
],
[
168.425616,
-70.971481
],
[
169.463589,
-71.20666
],
[
170.501665,
-71.402617
],
[
171.20679,
-71.696501
],
[
171.089227,
-72.088415
],
[
170.560422,
-72.441159
],
[
170.109958,
-72.891829
],
[
169.75737,
-73.24452
],
[
169.287321,
-73.65602
],
[
167.975101,
-73.812806
],
[
167.387489,
-74.165498
],
[
166.094803,
-74.38104
],
[
165.644391,
-74.772954
],
[
164.958851,
-75.145283
],
[
164.234193,
-75.458804
],
[
163.822797,
-75.870303
],
[
163.568239,
-76.24258
],
[
163.47026,
-76.693302
],
[
163.489897,
-77.065579
],
[
164.057873,
-77.457442
],
[
164.273363,
-77.82977
],
[
164.743464,
-78.182514
],
[
166.604126,
-78.319611
],
[
166.995781,
-78.750748
],
[
165.193876,
-78.907483
],
[
163.666217,
-79.123025
],
[
161.766385,
-79.162248
],
[
160.924162,
-79.730482
],
[
160.747894,
-80.200737
],
[
160.316964,
-80.573066
],
[
159.788211,
-80.945395
],
[
161.120016,
-81.278501
],
[
161.629287,
-81.690001
],
[
162.490992,
-82.062278
],
[
163.705336,
-82.395435
],
[
165.095949,
-82.708956
],
[
166.604126,
-83.022477
],
[
168.895665,
-83.335998
],
[
169.404782,
-83.825891
],
[
172.283934,
-84.041433
],
[
172.477049,
-84.117914
],
[
173.224083,
-84.41371
],
[
175.985672,
-84.158997
],
[
178.277212,
-84.472518
],
[
180,
-84.71338
],
[
-179.942499,
-84.721443
],
[
-179.058677,
-84.139412
],
[
-177.256772,
-84.452933
],
[
-177.140807,
-84.417941
],
[
-176.084673,
-84.099259
],
[
-175.947235,
-84.110449
],
[
-175.829882,
-84.117914
],
[
-174.382503,
-84.534323
],
[
-173.116559,
-84.117914
],
[
-172.889106,
-84.061019
],
[
-169.951223,
-83.884647
],
[
-168.999989,
-84.117914
],
[
-168.530199,
-84.23739
],
[
-167.022099,
-84.570497
],
[
-164.182144,
-84.82521
],
[
-161.929775,
-85.138731
],
[
-158.07138,
-85.37391
],
[
-155.192253,
-85.09956
],
[
-150.942099,
-85.295517
],
[
-148.533073,
-85.609038
],
[
-145.888918,
-85.315102
],
[
-143.107718,
-85.040752
],
[
-142.892279,
-84.570497
],
[
-146.829068,
-84.531274
],
[
-150.060732,
-84.296146
],
[
-150.902928,
-83.904232
],
[
-153.586201,
-83.68869
],
[
-153.409907,
-83.23802
],
[
-153.037759,
-82.82652
],
[
-152.665637,
-82.454192
],
[
-152.861517,
-82.042692
],
[
-154.526299,
-81.768394
],
[
-155.29018,
-81.41565
],
[
-156.83745,
-81.102129
],
[
-154.408787,
-81.160937
],
[
-152.097662,
-81.004151
],
[
-150.648293,
-81.337309
],
[
-148.865998,
-81.043373
],
[
-147.22075,
-80.671045
],
[
-146.417749,
-80.337938
],
[
-146.770286,
-79.926439
],
[
-148.062947,
-79.652089
],
[
-149.531901,
-79.358205
],
[
-151.588416,
-79.299397
],
[
-153.390322,
-79.162248
],
[
-155.329376,
-79.064269
],
[
-155.975668,
-78.69194
],
[
-157.268302,
-78.378419
],
[
-158.051768,
-78.025676
],
[
-158.365134,
-76.889207
],
[
-157.875474,
-76.987238
],
[
-156.974573,
-77.300759
],
[
-155.329376,
-77.202728
],
[
-153.742832,
-77.065579
],
[
-152.920247,
-77.496664
],
[
-151.33378,
-77.398737
],
[
-150.00195,
-77.183143
],
[
-148.748486,
-76.908845
],
[
-147.612483,
-76.575738
],
[
-146.104409,
-76.47776
],
[
-146.143528,
-76.105431
],
[
-146.496091,
-75.733154
],
[
-146.20231,
-75.380411
],
[
-144.909624,
-75.204039
],
[
-144.322037,
-75.537197
],
[
-142.794353,
-75.34124
],
[
-141.638764,
-75.086475
],
[
-140.209007,
-75.06689
],
[
-138.85759,
-74.968911
],
[
-137.5062,
-74.733783
],
[
-136.428901,
-74.518241
],
[
-135.214583,
-74.302699
],
[
-134.431194,
-74.361455
],
[
-133.745654,
-74.439848
],
[
-132.257168,
-74.302699
],
[
-130.925311,
-74.479019
],
[
-129.554284,
-74.459433
],
[
-128.242038,
-74.322284
],
[
-126.890622,
-74.420263
],
[
-125.402082,
-74.518241
],
[
-124.011496,
-74.479019
],
[
-122.562152,
-74.498604
],
[
-121.073613,
-74.518241
],
[
-119.70256,
-74.479019
],
[
-118.684145,
-74.185083
],
[
-117.469801,
-74.028348
],
[
-116.216312,
-74.243891
],
[
-115.021552,
-74.067519
],
[
-113.944331,
-73.714828
],
[
-113.297988,
-74.028348
],
[
-112.945452,
-74.38104
],
[
-112.299083,
-74.714198
],
[
-111.261059,
-74.420263
],
[
-110.066325,
-74.79254
],
[
-108.714909,
-74.910103
],
[
-107.559346,
-75.184454
],
[
-106.149148,
-75.125698
],
[
-104.876074,
-74.949326
],
[
-103.367949,
-74.988497
],
[
-102.016507,
-75.125698
],
[
-100.645531,
-75.302018
],
[
-100.1167,
-74.870933
],
[
-100.763043,
-74.537826
],
[
-101.252703,
-74.185083
],
[
-102.545337,
-74.106742
],
[
-103.113313,
-73.734413
],
[
-103.328752,
-73.362084
],
[
-103.681289,
-72.61753
],
[
-102.917485,
-72.754679
],
[
-101.60524,
-72.813436
],
[
-100.312528,
-72.754679
],
[
-99.13738,
-72.911414
],
[
-98.118889,
-73.20535
],
[
-97.688037,
-73.558041
],
[
-96.336595,
-73.616849
],
[
-95.043961,
-73.4797
],
[
-93.672907,
-73.283743
],
[
-92.439003,
-73.166179
],
[
-91.420564,
-73.401307
],
[
-90.088733,
-73.322914
],
[
-89.226951,
-72.558722
],
[
-88.423951,
-73.009393
],
[
-87.268337,
-73.185764
],
[
-86.014822,
-73.087786
],
[
-85.192236,
-73.4797
],
[
-83.879991,
-73.518871
],
[
-82.665646,
-73.636434
],
[
-81.470913,
-73.851977
],
[
-80.687447,
-73.4797
],
[
-80.295791,
-73.126956
],
[
-79.296886,
-73.518871
],
[
-77.925858,
-73.420892
],
[
-76.907367,
-73.636434
],
[
-76.221879,
-73.969541
],
[
-74.890049,
-73.871614
],
[
-73.852024,
-73.65602
],
[
-72.833533,
-73.401307
],
[
-71.619215,
-73.264157
],
[
-70.209042,
-73.146542
],
[
-68.935916,
-73.009393
],
[
-67.956622,
-72.79385
],
[
-67.369061,
-72.480329
],
[
-67.134036,
-72.049244
],
[
-67.251548,
-71.637745
],
[
-67.56494,
-71.245831
],
[
-67.917477,
-70.853917
],
[
-68.230843,
-70.462055
],
[
-68.485452,
-70.109311
],
[
-68.544209,
-69.717397
],
[
-68.446282,
-69.325535
],
[
-67.976233,
-68.953206
],
[
-67.5845,
-68.541707
],
[
-67.427843,
-68.149844
],
[
-67.62367,
-67.718759
],
[
-67.741183,
-67.326845
],
[
-67.251548,
-66.876175
],
[
-66.703184,
-66.58224
],
[
-66.056815,
-66.209963
],
[
-65.371327,
-65.89639
],
[
-64.568276,
-65.602506
],
[
-64.176542,
-65.171423
],
[
-63.628152,
-64.897073
],
[
-63.001394,
-64.642308
],
[
-62.041686,
-64.583552
],
[
-61.414928,
-64.270031
],
[
-60.709855,
-64.074074
],
[
-59.887269,
-63.95651
],
[
-59.162585,
-63.701745
],
[
-58.594557,
-63.388224
],
[
-57.811143,
-63.27066
],
[
-57.223582,
-63.525425
],
[
-57.59573,
-63.858532
],
[
-58.614143,
-64.152467
]
]
]
]
}
},
{
type: 'Feature',
id: 'ATF',
properties: {
name: 'French Southern and Antarctic Lands'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
68.935,
-48.625
],
[
69.58,
-48.94
],
[
70.525,
-49.065
],
[
70.56,
-49.255
],
[
70.28,
-49.71
],
[
68.745,
-49.775
],
[
68.72,
-49.2425
],
[
68.8675,
-48.83
],
[
68.935,
-48.625
]
]
]
}
},
{
type: 'Feature',
id: 'AUS',
properties: {
name: 'Australia'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
145.397978,
-40.792549
],
[
146.364121,
-41.137695
],
[
146.908584,
-41.000546
],
[
147.689259,
-40.808258
],
[
148.289068,
-40.875438
],
[
148.359865,
-42.062445
],
[
148.017301,
-42.407024
],
[
147.914052,
-43.211522
],
[
147.564564,
-42.937689
],
[
146.870343,
-43.634597
],
[
146.663327,
-43.580854
],
[
146.048378,
-43.549745
],
[
145.43193,
-42.693776
],
[
145.29509,
-42.03361
],
[
144.718071,
-41.162552
],
[
144.743755,
-40.703975
],
[
145.397978,
-40.792549
]
]
],
[
[
[
143.561811,
-13.763656
],
[
143.922099,
-14.548311
],
[
144.563714,
-14.171176
],
[
144.894908,
-14.594458
],
[
145.374724,
-14.984976
],
[
145.271991,
-15.428205
],
[
145.48526,
-16.285672
],
[
145.637033,
-16.784918
],
[
145.888904,
-16.906926
],
[
146.160309,
-17.761655
],
[
146.063674,
-18.280073
],
[
146.387478,
-18.958274
],
[
147.471082,
-19.480723
],
[
148.177602,
-19.955939
],
[
148.848414,
-20.39121
],
[
148.717465,
-20.633469
],
[
149.28942,
-21.260511
],
[
149.678337,
-22.342512
],
[
150.077382,
-22.122784
],
[
150.482939,
-22.556142
],
[
150.727265,
-22.402405
],
[
150.899554,
-23.462237
],
[
151.609175,
-24.076256
],
[
152.07354,
-24.457887
],
[
152.855197,
-25.267501
],
[
153.136162,
-26.071173
],
[
153.161949,
-26.641319
],
[
153.092909,
-27.2603
],
[
153.569469,
-28.110067
],
[
153.512108,
-28.995077
],
[
153.339095,
-29.458202
],
[
153.069241,
-30.35024
],
[
153.089602,
-30.923642
],
[
152.891578,
-31.640446
],
[
152.450002,
-32.550003
],
[
151.709117,
-33.041342
],
[
151.343972,
-33.816023
],
[
151.010555,
-34.31036
],
[
150.714139,
-35.17346
],
[
150.32822,
-35.671879
],
[
150.075212,
-36.420206
],
[
149.946124,
-37.109052
],
[
149.997284,
-37.425261
],
[
149.423882,
-37.772681
],
[
148.304622,
-37.809061
],
[
147.381733,
-38.219217
],
[
146.922123,
-38.606532
],
[
146.317922,
-39.035757
],
[
145.489652,
-38.593768
],
[
144.876976,
-38.417448
],
[
145.032212,
-37.896188
],
[
144.485682,
-38.085324
],
[
143.609974,
-38.809465
],
[
142.745427,
-38.538268
],
[
142.17833,
-38.380034
],
[
141.606582,
-38.308514
],
[
140.638579,
-38.019333
],
[
139.992158,
-37.402936
],
[
139.806588,
-36.643603
],
[
139.574148,
-36.138362
],
[
139.082808,
-35.732754
],
[
138.120748,
-35.612296
],
[
138.449462,
-35.127261
],
[
138.207564,
-34.384723
],
[
137.71917,
-35.076825
],
[
136.829406,
-35.260535
],
[
137.352371,
-34.707339
],
[
137.503886,
-34.130268
],
[
137.890116,
-33.640479
],
[
137.810328,
-32.900007
],
[
136.996837,
-33.752771
],
[
136.372069,
-34.094766
],
[
135.989043,
-34.890118
],
[
135.208213,
-34.47867
],
[
135.239218,
-33.947953
],
[
134.613417,
-33.222778
],
[
134.085904,
-32.848072
],
[
134.273903,
-32.617234
],
[
132.990777,
-32.011224
],
[
132.288081,
-31.982647
],
[
131.326331,
-31.495803
],
[
129.535794,
-31.590423
],
[
128.240938,
-31.948489
],
[
127.102867,
-32.282267
],
[
126.148714,
-32.215966
],
[
125.088623,
-32.728751
],
[
124.221648,
-32.959487
],
[
124.028947,
-33.483847
],
[
123.659667,
-33.890179
],
[
122.811036,
-33.914467
],
[
122.183064,
-34.003402
],
[
121.299191,
-33.821036
],
[
120.580268,
-33.930177
],
[
119.893695,
-33.976065
],
[
119.298899,
-34.509366
],
[
119.007341,
-34.464149
],
[
118.505718,
-34.746819
],
[
118.024972,
-35.064733
],
[
117.295507,
-35.025459
],
[
116.625109,
-35.025097
],
[
115.564347,
-34.386428
],
[
115.026809,
-34.196517
],
[
115.048616,
-33.623425
],
[
115.545123,
-33.487258
],
[
115.714674,
-33.259572
],
[
115.679379,
-32.900369
],
[
115.801645,
-32.205062
],
[
115.689611,
-31.612437
],
[
115.160909,
-30.601594
],
[
114.997043,
-30.030725
],
[
115.040038,
-29.461095
],
[
114.641974,
-28.810231
],
[
114.616498,
-28.516399
],
[
114.173579,
-28.118077
],
[
114.048884,
-27.334765
],
[
113.477498,
-26.543134
],
[
113.338953,
-26.116545
],
[
113.778358,
-26.549025
],
[
113.440962,
-25.621278
],
[
113.936901,
-25.911235
],
[
114.232852,
-26.298446
],
[
114.216161,
-25.786281
],
[
113.721255,
-24.998939
],
[
113.625344,
-24.683971
],
[
113.393523,
-24.384764
],
[
113.502044,
-23.80635
],
[
113.706993,
-23.560215
],
[
113.843418,
-23.059987
],
[
113.736552,
-22.475475
],
[
114.149756,
-21.755881
],
[
114.225307,
-22.517488
],
[
114.647762,
-21.82952
],
[
115.460167,
-21.495173
],
[
115.947373,
-21.068688
],
[
116.711615,
-20.701682
],
[
117.166316,
-20.623599
],
[
117.441545,
-20.746899
],
[
118.229559,
-20.374208
],
[
118.836085,
-20.263311
],
[
118.987807,
-20.044203
],
[
119.252494,
-19.952942
],
[
119.805225,
-19.976506
],
[
120.85622,
-19.683708
],
[
121.399856,
-19.239756
],
[
121.655138,
-18.705318
],
[
122.241665,
-18.197649
],
[
122.286624,
-17.798603
],
[
122.312772,
-17.254967
],
[
123.012574,
-16.4052
],
[
123.433789,
-17.268558
],
[
123.859345,
-17.069035
],
[
123.503242,
-16.596506
],
[
123.817073,
-16.111316
],
[
124.258287,
-16.327944
],
[
124.379726,
-15.56706
],
[
124.926153,
-15.0751
],
[
125.167275,
-14.680396
],
[
125.670087,
-14.51007
],
[
125.685796,
-14.230656
],
[
126.125149,
-14.347341
],
[
126.142823,
-14.095987
],
[
126.582589,
-13.952791
],
[
127.065867,
-13.817968
],
[
127.804633,
-14.276906
],
[
128.35969,
-14.86917
],
[
128.985543,
-14.875991
],
[
129.621473,
-14.969784
],
[
129.4096,
-14.42067
],
[
129.888641,
-13.618703
],
[
130.339466,
-13.357376
],
[
130.183506,
-13.10752
],
[
130.617795,
-12.536392
],
[
131.223495,
-12.183649
],
[
131.735091,
-12.302453
],
[
132.575298,
-12.114041
],
[
132.557212,
-11.603012
],
[
131.824698,
-11.273782
],
[
132.357224,
-11.128519
],
[
133.019561,
-11.376411
],
[
133.550846,
-11.786515
],
[
134.393068,
-12.042365
],
[
134.678632,
-11.941183
],
[
135.298491,
-12.248606
],
[
135.882693,
-11.962267
],
[
136.258381,
-12.049342
],
[
136.492475,
-11.857209
],
[
136.95162,
-12.351959
],
[
136.685125,
-12.887223
],
[
136.305407,
-13.29123
],
[
135.961758,
-13.324509
],
[
136.077617,
-13.724278
],
[
135.783836,
-14.223989
],
[
135.428664,
-14.715432
],
[
135.500184,
-14.997741
],
[
136.295175,
-15.550265
],
[
137.06536,
-15.870762
],
[
137.580471,
-16.215082
],
[
138.303217,
-16.807604
],
[
138.585164,
-16.806622
],
[
139.108543,
-17.062679
],
[
139.260575,
-17.371601
],
[
140.215245,
-17.710805
],
[
140.875463,
-17.369069
],
[
141.07111,
-16.832047
],
[
141.274095,
-16.38887
],
[
141.398222,
-15.840532
],
[
141.702183,
-15.044921
],
[
141.56338,
-14.561333
],
[
141.63552,
-14.270395
],
[
141.519869,
-13.698078
],
[
141.65092,
-12.944688
],
[
141.842691,
-12.741548
],
[
141.68699,
-12.407614
],
[
141.928629,
-11.877466
],
[
142.118488,
-11.328042
],
[
142.143706,
-11.042737
],
[
142.51526,
-10.668186
],
[
142.79731,
-11.157355
],
[
142.866763,
-11.784707
],
[
143.115947,
-11.90563
],
[
143.158632,
-12.325656
],
[
143.522124,
-12.834358
],
[
143.597158,
-13.400422
],
[
143.561811,
-13.763656
]
]
]
]
}
},
{
type: 'Feature',
id: 'AUT',
properties: {
name: 'Austria'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
16.979667,
48.123497
],
[
16.903754,
47.714866
],
[
16.340584,
47.712902
],
[
16.534268,
47.496171
],
[
16.202298,
46.852386
],
[
16.011664,
46.683611
],
[
15.137092,
46.658703
],
[
14.632472,
46.431817
],
[
13.806475,
46.509306
],
[
12.376485,
46.767559
],
[
12.153088,
47.115393
],
[
11.164828,
46.941579
],
[
11.048556,
46.751359
],
[
10.442701,
46.893546
],
[
9.932448,
46.920728
],
[
9.47997,
47.10281
],
[
9.632932,
47.347601
],
[
9.594226,
47.525058
],
[
9.896068,
47.580197
],
[
10.402084,
47.302488
],
[
10.544504,
47.566399
],
[
11.426414,
47.523766
],
[
12.141357,
47.703083
],
[
12.62076,
47.672388
],
[
12.932627,
47.467646
],
[
13.025851,
47.637584
],
[
12.884103,
48.289146
],
[
13.243357,
48.416115
],
[
13.595946,
48.877172
],
[
14.338898,
48.555305
],
[
14.901447,
48.964402
],
[
15.253416,
49.039074
],
[
16.029647,
48.733899
],
[
16.499283,
48.785808
],
[
16.960288,
48.596982
],
[
16.879983,
48.470013
],
[
16.979667,
48.123497
]
]
]
}
},
{
type: 'Feature',
id: 'AZE',
properties: {
name: 'Azerbaijan'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
45.001987,
39.740004
],
[
45.298145,
39.471751
],
[
45.739978,
39.473999
],
[
45.735379,
39.319719
],
[
46.143623,
38.741201
],
[
45.457722,
38.874139
],
[
44.952688,
39.335765
],
[
44.79399,
39.713003
],
[
45.001987,
39.740004
]
]
],
[
[
[
47.373315,
41.219732
],
[
47.815666,
41.151416
],
[
47.987283,
41.405819
],
[
48.584353,
41.80887
],
[
49.110264,
41.282287
],
[
49.618915,
40.572924
],
[
50.08483,
40.526157
],
[
50.392821,
40.256561
],
[
49.569202,
40.176101
],
[
49.395259,
39.399482
],
[
49.223228,
39.049219
],
[
48.856532,
38.815486
],
[
48.883249,
38.320245
],
[
48.634375,
38.270378
],
[
48.010744,
38.794015
],
[
48.355529,
39.288765
],
[
48.060095,
39.582235
],
[
47.685079,
39.508364
],
[
46.50572,
38.770605
],
[
46.483499,
39.464155
],
[
46.034534,
39.628021
],
[
45.610012,
39.899994
],
[
45.891907,
40.218476
],
[
45.359175,
40.561504
],
[
45.560351,
40.81229
],
[
45.179496,
40.985354
],
[
44.97248,
41.248129
],
[
45.217426,
41.411452
],
[
45.962601,
41.123873
],
[
46.501637,
41.064445
],
[
46.637908,
41.181673
],
[
46.145432,
41.722802
],
[
46.404951,
41.860675
],
[
46.686071,
41.827137
],
[
47.373315,
41.219732
]
]
]
]
}
},
{
type: 'Feature',
id: 'BDI',
properties: {
name: 'Burundi'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
29.339998,
-4.499983
],
[
29.276384,
-3.293907
],
[
29.024926,
-2.839258
],
[
29.632176,
-2.917858
],
[
29.938359,
-2.348487
],
[
30.469696,
-2.413858
],
[
30.527677,
-2.807632
],
[
30.743013,
-3.034285
],
[
30.752263,
-3.35933
],
[
30.50556,
-3.568567
],
[
30.116333,
-4.090138
],
[
29.753512,
-4.452389
],
[
29.339998,
-4.499983
]
]
]
}
},
{
type: 'Feature',
id: 'BEL',
properties: {
name: 'Belgium'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
3.314971,
51.345781
],
[
4.047071,
51.267259
],
[
4.973991,
51.475024
],
[
5.606976,
51.037298
],
[
6.156658,
50.803721
],
[
6.043073,
50.128052
],
[
5.782417,
50.090328
],
[
5.674052,
49.529484
],
[
4.799222,
49.985373
],
[
4.286023,
49.907497
],
[
3.588184,
50.378992
],
[
3.123252,
50.780363
],
[
2.658422,
50.796848
],
[
2.513573,
51.148506
],
[
3.314971,
51.345781
]
]
]
}
},
{
type: 'Feature',
id: 'BEN',
properties: {
name: 'Benin'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
2.691702,
6.258817
],
[
1.865241,
6.142158
],
[
1.618951,
6.832038
],
[
1.664478,
9.12859
],
[
1.463043,
9.334624
],
[
1.425061,
9.825395
],
[
1.077795,
10.175607
],
[
0.772336,
10.470808
],
[
0.899563,
10.997339
],
[
1.24347,
11.110511
],
[
1.447178,
11.547719
],
[
1.935986,
11.64115
],
[
2.154474,
11.94015
],
[
2.490164,
12.233052
],
[
2.848643,
12.235636
],
[
3.61118,
11.660167
],
[
3.572216,
11.327939
],
[
3.797112,
10.734746
],
[
3.60007,
10.332186
],
[
3.705438,
10.06321
],
[
3.220352,
9.444153
],
[
2.912308,
9.137608
],
[
2.723793,
8.506845
],
[
2.749063,
7.870734
],
[
2.691702,
6.258817
]
]
]
}
},
{
type: 'Feature',
id: 'BFA',
properties: {
name: 'Burkina Faso'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-2.827496,
9.642461
],
[
-3.511899,
9.900326
],
[
-3.980449,
9.862344
],
[
-4.330247,
9.610835
],
[
-4.779884,
9.821985
],
[
-4.954653,
10.152714
],
[
-5.404342,
10.370737
],
[
-5.470565,
10.95127
],
[
-5.197843,
11.375146
],
[
-5.220942,
11.713859
],
[
-4.427166,
12.542646
],
[
-4.280405,
13.228444
],
[
-4.006391,
13.472485
],
[
-3.522803,
13.337662
],
[
-3.103707,
13.541267
],
[
-2.967694,
13.79815
],
[
-2.191825,
14.246418
],
[
-2.001035,
14.559008
],
[
-1.066363,
14.973815
],
[
-0.515854,
15.116158
],
[
-0.266257,
14.924309
],
[
0.374892,
14.928908
],
[
0.295646,
14.444235
],
[
0.429928,
13.988733
],
[
0.993046,
13.33575
],
[
1.024103,
12.851826
],
[
2.177108,
12.625018
],
[
2.154474,
11.94015
],
[
1.935986,
11.64115
],
[
1.447178,
11.547719
],
[
1.24347,
11.110511
],
[
0.899563,
10.997339
],
[
0.023803,
11.018682
],
[
-0.438702,
11.098341
],
[
-0.761576,
10.93693
],
[
-1.203358,
11.009819
],
[
-2.940409,
10.96269
],
[
-2.963896,
10.395335
],
[
-2.827496,
9.642461
]
]
]
}
},
{
type: 'Feature',
id: 'BGD',
properties: {
name: 'Bangladesh'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
92.672721,
22.041239
],
[
92.652257,
21.324048
],
[
92.303234,
21.475485
],
[
92.368554,
20.670883
],
[
92.082886,
21.192195
],
[
92.025215,
21.70157
],
[
91.834891,
22.182936
],
[
91.417087,
22.765019
],
[
90.496006,
22.805017
],
[
90.586957,
22.392794
],
[
90.272971,
21.836368
],
[
89.847467,
22.039146
],
[
89.70205,
21.857116
],
[
89.418863,
21.966179
],
[
89.031961,
22.055708
],
[
88.876312,
22.879146
],
[
88.52977,
23.631142
],
[
88.69994,
24.233715
],
[
88.084422,
24.501657
],
[
88.306373,
24.866079
],
[
88.931554,
25.238692
],
[
88.209789,
25.768066
],
[
88.563049,
26.446526
],
[
89.355094,
26.014407
],
[
89.832481,
25.965082
],
[
89.920693,
25.26975
],
[
90.872211,
25.132601
],
[
91.799596,
25.147432
],
[
92.376202,
24.976693
],
[
91.915093,
24.130414
],
[
91.46773,
24.072639
],
[
91.158963,
23.503527
],
[
91.706475,
22.985264
],
[
91.869928,
23.624346
],
[
92.146035,
23.627499
],
[
92.672721,
22.041239
]
]
]
}
},
{
type: 'Feature',
id: 'BGR',
properties: {
name: 'Bulgaria'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
22.65715,
44.234923
],
[
22.944832,
43.823785
],
[
23.332302,
43.897011
],
[
24.100679,
43.741051
],
[
25.569272,
43.688445
],
[
26.065159,
43.943494
],
[
27.2424,
44.175986
],
[
27.970107,
43.812468
],
[
28.558081,
43.707462
],
[
28.039095,
43.293172
],
[
27.673898,
42.577892
],
[
27.99672,
42.007359
],
[
27.135739,
42.141485
],
[
26.117042,
41.826905
],
[
26.106138,
41.328899
],
[
25.197201,
41.234486
],
[
24.492645,
41.583896
],
[
23.692074,
41.309081
],
[
22.952377,
41.337994
],
[
22.881374,
41.999297
],
[
22.380526,
42.32026
],
[
22.545012,
42.461362
],
[
22.436595,
42.580321
],
[
22.604801,
42.898519
],
[
22.986019,
43.211161
],
[
22.500157,
43.642814
],
[
22.410446,
44.008063
],
[
22.65715,
44.234923
]
]
]
}
},
{
type: 'Feature',
id: 'BHS',
properties: {
name: 'The Bahamas'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
-77.53466,
23.75975
],
[
-77.78,
23.71
],
[
-78.03405,
24.28615
],
[
-78.40848,
24.57564
],
[
-78.19087,
25.2103
],
[
-77.89,
25.17
],
[
-77.54,
24.34
],
[
-77.53466,
23.75975
]
]
],
[
[
[
-77.82,
26.58
],
[
-78.91,
26.42
],
[
-78.98,
26.79
],
[
-78.51,
26.87
],
[
-77.85,
26.84
],
[
-77.82,
26.58
]
]
],
[
[
[
-77,
26.59
],
[
-77.17255,
25.87918
],
[
-77.35641,
26.00735
],
[
-77.34,
26.53
],
[
-77.78802,
26.92516
],
[
-77.79,
27.04
],
[
-77,
26.59
]
]
]
]
}
},
{
type: 'Feature',
id: 'BIH',
properties: {
name: 'Bosnia and Herzegovina'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
19.005486,
44.860234
],
[
19.36803,
44.863
],
[
19.11761,
44.42307
],
[
19.59976,
44.03847
],
[
19.454,
43.5681
],
[
19.21852,
43.52384
],
[
19.03165,
43.43253
],
[
18.70648,
43.20011
],
[
18.56,
42.65
],
[
17.674922,
43.028563
],
[
17.297373,
43.446341
],
[
16.916156,
43.667722
],
[
16.456443,
44.04124
],
[
16.23966,
44.351143
],
[
15.750026,
44.818712
],
[
15.959367,
45.233777
],
[
16.318157,
45.004127
],
[
16.534939,
45.211608
],
[
17.002146,
45.233777
],
[
17.861783,
45.06774
],
[
18.553214,
45.08159
],
[
19.005486,
44.860234
]
]
]
}
},
{
type: 'Feature',
id: 'BLR',
properties: {
name: 'Belarus'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
23.484128,
53.912498
],
[
24.450684,
53.905702
],
[
25.536354,
54.282423
],
[
25.768433,
54.846963
],
[
26.588279,
55.167176
],
[
26.494331,
55.615107
],
[
27.10246,
55.783314
],
[
28.176709,
56.16913
],
[
29.229513,
55.918344
],
[
29.371572,
55.670091
],
[
29.896294,
55.789463
],
[
30.873909,
55.550976
],
[
30.971836,
55.081548
],
[
30.757534,
54.811771
],
[
31.384472,
54.157056
],
[
31.791424,
53.974639
],
[
31.731273,
53.794029
],
[
32.405599,
53.618045
],
[
32.693643,
53.351421
],
[
32.304519,
53.132726
],
[
31.497644,
53.167427
],
[
31.305201,
53.073996
],
[
31.540018,
52.742052
],
[
31.785998,
52.101678
],
[
30.927549,
52.042353
],
[
30.619454,
51.822806
],
[
30.555117,
51.319503
],
[
30.157364,
51.416138
],
[
29.254938,
51.368234
],
[
28.992835,
51.602044
],
[
28.617613,
51.427714
],
[
28.241615,
51.572227
],
[
27.454066,
51.592303
],
[
26.337959,
51.832289
],
[
25.327788,
51.910656
],
[
24.553106,
51.888461
],
[
24.005078,
51.617444
],
[
23.527071,
51.578454
],
[
23.508002,
52.023647
],
[
23.199494,
52.486977
],
[
23.799199,
52.691099
],
[
23.804935,
53.089731
],
[
23.527536,
53.470122
],
[
23.484128,
53.912498
]
]
]
}
},
{
type: 'Feature',
id: 'BLZ',
properties: {
name: 'Belize'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-89.14308,
17.808319
],
[
-89.150909,
17.955468
],
[
-89.029857,
18.001511
],
[
-88.848344,
17.883198
],
[
-88.490123,
18.486831
],
[
-88.300031,
18.499982
],
[
-88.296336,
18.353273
],
[
-88.106813,
18.348674
],
[
-88.123479,
18.076675
],
[
-88.285355,
17.644143
],
[
-88.197867,
17.489475
],
[
-88.302641,
17.131694
],
[
-88.239518,
17.036066
],
[
-88.355428,
16.530774
],
[
-88.551825,
16.265467
],
[
-88.732434,
16.233635
],
[
-88.930613,
15.887273
],
[
-89.229122,
15.886938
],
[
-89.150806,
17.015577
],
[
-89.14308,
17.808319
]
]
]
}
},
{
type: 'Feature',
id: 'BMU',
properties: {
name: 'Bermuda'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-64.7799734332998,
32.3072000581802
],
[
-64.7873319183061,
32.3039237143428
],
[
-64.7946942710173,
32.3032682700388
],
[
-64.8094297981283,
32.3098175728414
],
[
-64.8167896352437,
32.3058845718466
],
[
-64.8101968029642,
32.3022833180511
],
[
-64.7962291465484,
32.2934409732427
],
[
-64.7815086336978,
32.2868973114514
],
[
-64.7997025513437,
32.2796896417328
],
[
-64.8066707691087,
32.2747767569465
],
[
-64.8225587873683,
32.2669111289395
],
[
-64.8287548840306,
32.2669075473817
],
[
-64.8306732143498,
32.2583944840235
],
[
-64.8399924854972,
32.254782282336
],
[
-64.8566090462354,
32.2547740387514
],
[
-64.8682296789446,
32.2616393614322
],
[
-64.8628241459563,
32.2724481933959
],
[
-64.8748651338951,
32.2757120264753
],
[
-64.8717752856644,
32.2819371582026
],
[
-64.8671422127295,
32.2930760547989
],
[
-64.8559068764437,
32.2960321186471
],
[
-64.8597429072279,
32.3015842021933
],
[
-64.8439233486717,
32.3140553852543
],
[
-64.8350242329311,
32.3242161760006
],
[
-64.8338690593672,
32.3294587561557
],
[
-64.8520298651164,
32.3110911879954
],
[
-64.8635922932573,
32.3048469433363
],
[
-64.8686668994079,
32.30910745083
],
[
-64.8721354593415,
32.3041908606301
],
[
-64.8779667328485,
32.3038632800462
],
[
-64.8780046844321,
32.2907757831692
],
[
-64.8849776658292,
32.2819261366004
],
[
-64.8783230004629,
32.2613001418681
],
[
-64.863194968877,
32.2465799485801
],
[
-64.8519819555722,
32.2485519134663
],
[
-64.842311980074,
32.2492123317296
],
[
-64.8388242605209,
32.2475773472534
],
[
-64.8334002575532,
32.2462714714698
],
[
-64.8256389530584,
32.2472637398594
],
[
-64.8205697556026,
32.2531698880328
],
[
-64.8105087275579,
32.2561208974156
],
[
-64.7900177727338,
32.2659446936992
],
[
-64.7745415970416,
32.2718413023427
],
[
-64.7644742436426,
32.2855931353214
],
[
-64.7551803442276,
32.2908326702531
],
[
-64.7423982971436,
32.2996734994024
],
[
-64.7206991797682,
32.3137542201258
],
[
-64.7117851247134,
32.3176823360806
],
[
-64.6962778813133,
32.3275029115532
],
[
-64.6768921127452,
32.3324095397555
],
[
-64.6567136927777,
32.3451776458469
],
[
-64.6532168823499,
32.3494356627941
],
[
-64.6605720384429,
32.3589423487763
],
[
-64.65125819471,
32.3615600906466
],
[
-64.6462011670816,
32.36975169749
],
[
-64.6613227512832,
32.3763135008721
],
[
-64.6690666074397,
32.388444543924
],
[
-64.6834270548595,
32.3854968316788
],
[
-64.6954617672714,
32.3763221285869
],
[
-64.70438689565,
32.3704254760469
],
[
-64.7117569982798,
32.368132600249
],
[
-64.7061764744404,
32.3600110593559
],
[
-64.700531552697,
32.3590601356818
],
[
-64.6940348033967,
32.3640708659835
],
[
-64.6895164826082,
32.3633598579866
],
[
-64.6864150099255,
32.3547797587266
],
[
-64.6824635995504,
32.3540628176846
],
[
-64.6835876652835,
32.3626447677968
],
[
-64.6801998697415,
32.3631199096979
],
[
-64.6672170444687,
32.3597751617473
],
[
-64.6598811264978,
32.3497625771755
],
[
-64.6737331235384,
32.3390281851635
],
[
-64.6887090648183,
32.3342439408053
],
[
-64.706732854446,
32.3429010723036
],
[
-64.7149301576112,
32.3552188753513
],
[
-64.7185967666669,
32.3552239212394
],
[
-64.7214189847314,
32.3518830231342
],
[
-64.7270616067222,
32.3466461715475
],
[
-64.734962460882,
32.3442819830499
],
[
-64.7383521549094,
32.3407216514918
],
[
-64.7411729976333,
32.3311790864627
],
[
-64.7423019216485,
32.323311561213
],
[
-64.7462482354281,
32.318538611581
],
[
-64.7566773739613,
32.3130509130175
],
[
-64.768738200563,
32.3088369816572
],
[
-64.7799734332998,
32.3072000581802
]
]
]
}
},
{
type: 'Feature',
id: 'BOL',
properties: {
name: 'Bolivia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-62.846468,
-22.034985
],
[
-63.986838,
-21.993644
],
[
-64.377021,
-22.798091
],
[
-64.964892,
-22.075862
],
[
-66.273339,
-21.83231
],
[
-67.106674,
-22.735925
],
[
-67.82818,
-22.872919
],
[
-68.219913,
-21.494347
],
[
-68.757167,
-20.372658
],
[
-68.442225,
-19.405068
],
[
-68.966818,
-18.981683
],
[
-69.100247,
-18.260125
],
[
-69.590424,
-17.580012
],
[
-68.959635,
-16.500698
],
[
-69.389764,
-15.660129
],
[
-69.160347,
-15.323974
],
[
-69.339535,
-14.953195
],
[
-68.948887,
-14.453639
],
[
-68.929224,
-13.602684
],
[
-68.88008,
-12.899729
],
[
-68.66508,
-12.5613
],
[
-69.529678,
-10.951734
],
[
-68.786158,
-11.03638
],
[
-68.271254,
-11.014521
],
[
-68.048192,
-10.712059
],
[
-67.173801,
-10.306812
],
[
-66.646908,
-9.931331
],
[
-65.338435,
-9.761988
],
[
-65.444837,
-10.511451
],
[
-65.321899,
-10.895872
],
[
-65.402281,
-11.56627
],
[
-64.316353,
-12.461978
],
[
-63.196499,
-12.627033
],
[
-62.80306,
-13.000653
],
[
-62.127081,
-13.198781
],
[
-61.713204,
-13.489202
],
[
-61.084121,
-13.479384
],
[
-60.503304,
-13.775955
],
[
-60.459198,
-14.354007
],
[
-60.264326,
-14.645979
],
[
-60.251149,
-15.077219
],
[
-60.542966,
-15.09391
],
[
-60.15839,
-16.258284
],
[
-58.24122,
-16.299573
],
[
-58.388058,
-16.877109
],
[
-58.280804,
-17.27171
],
[
-57.734558,
-17.552468
],
[
-57.498371,
-18.174188
],
[
-57.676009,
-18.96184
],
[
-57.949997,
-19.400004
],
[
-57.853802,
-19.969995
],
[
-58.166392,
-20.176701
],
[
-58.183471,
-19.868399
],
[
-59.115042,
-19.356906
],
[
-60.043565,
-19.342747
],
[
-61.786326,
-19.633737
],
[
-62.265961,
-20.513735
],
[
-62.291179,
-21.051635
],
[
-62.685057,
-22.249029
],
[
-62.846468,
-22.034985
]
]
]
}
},
{
type: 'Feature',
id: 'BRA',
properties: {
name: 'Brazil'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-57.625133,
-30.216295
],
[
-56.2909,
-28.852761
],
[
-55.162286,
-27.881915
],
[
-54.490725,
-27.474757
],
[
-53.648735,
-26.923473
],
[
-53.628349,
-26.124865
],
[
-54.13005,
-25.547639
],
[
-54.625291,
-25.739255
],
[
-54.428946,
-25.162185
],
[
-54.293476,
-24.5708
],
[
-54.29296,
-24.021014
],
[
-54.652834,
-23.839578
],
[
-55.027902,
-24.001274
],
[
-55.400747,
-23.956935
],
[
-55.517639,
-23.571998
],
[
-55.610683,
-22.655619
],
[
-55.797958,
-22.35693
],
[
-56.473317,
-22.0863
],
[
-56.88151,
-22.282154
],
[
-57.937156,
-22.090176
],
[
-57.870674,
-20.732688
],
[
-58.166392,
-20.176701
],
[
-57.853802,
-19.969995
],
[
-57.949997,
-19.400004
],
[
-57.676009,
-18.96184
],
[
-57.498371,
-18.174188
],
[
-57.734558,
-17.552468
],
[
-58.280804,
-17.27171
],
[
-58.388058,
-16.877109
],
[
-58.24122,
-16.299573
],
[
-60.15839,
-16.258284
],
[
-60.542966,
-15.09391
],
[
-60.251149,
-15.077219
],
[
-60.264326,
-14.645979
],
[
-60.459198,
-14.354007
],
[
-60.503304,
-13.775955
],
[
-61.084121,
-13.479384
],
[
-61.713204,
-13.489202
],
[
-62.127081,
-13.198781
],
[
-62.80306,
-13.000653
],
[
-63.196499,
-12.627033
],
[
-64.316353,
-12.461978
],
[
-65.402281,
-11.56627
],
[
-65.321899,
-10.895872
],
[
-65.444837,
-10.511451
],
[
-65.338435,
-9.761988
],
[
-66.646908,
-9.931331
],
[
-67.173801,
-10.306812
],
[
-68.048192,
-10.712059
],
[
-68.271254,
-11.014521
],
[
-68.786158,
-11.03638
],
[
-69.529678,
-10.951734
],
[
-70.093752,
-11.123972
],
[
-70.548686,
-11.009147
],
[
-70.481894,
-9.490118
],
[
-71.302412,
-10.079436
],
[
-72.184891,
-10.053598
],
[
-72.563033,
-9.520194
],
[
-73.226713,
-9.462213
],
[
-73.015383,
-9.032833
],
[
-73.571059,
-8.424447
],
[
-73.987235,
-7.52383
],
[
-73.723401,
-7.340999
],
[
-73.724487,
-6.918595
],
[
-73.120027,
-6.629931
],
[
-73.219711,
-6.089189
],
[
-72.964507,
-5.741251
],
[
-72.891928,
-5.274561
],
[
-71.748406,
-4.593983
],
[
-70.928843,
-4.401591
],
[
-70.794769,
-4.251265
],
[
-69.893635,
-4.298187
],
[
-69.444102,
-1.556287
],
[
-69.420486,
-1.122619
],
[
-69.577065,
-0.549992
],
[
-70.020656,
-0.185156
],
[
-70.015566,
0.541414
],
[
-69.452396,
0.706159
],
[
-69.252434,
0.602651
],
[
-69.218638,
0.985677
],
[
-69.804597,
1.089081
],
[
-69.816973,
1.714805
],
[
-67.868565,
1.692455
],
[
-67.53781,
2.037163
],
[
-67.259998,
1.719999
],
[
-67.065048,
1.130112
],
[
-66.876326,
1.253361
],
[
-66.325765,
0.724452
],
[
-65.548267,
0.789254
],
[
-65.354713,
1.095282
],
[
-64.611012,
1.328731
],
[
-64.199306,
1.492855
],
[
-64.083085,
1.916369
],
[
-63.368788,
2.2009
],
[
-63.422867,
2.411068
],
[
-64.269999,
2.497006
],
[
-64.408828,
3.126786
],
[
-64.368494,
3.79721
],
[
-64.816064,
4.056445
],
[
-64.628659,
4.148481
],
[
-63.888343,
4.02053
],
[
-63.093198,
3.770571
],
[
-62.804533,
4.006965
],
[
-62.08543,
4.162124
],
[
-60.966893,
4.536468
],
[
-60.601179,
4.918098
],
[
-60.733574,
5.200277
],
[
-60.213683,
5.244486
],
[
-59.980959,
5.014061
],
[
-60.111002,
4.574967
],
[
-59.767406,
4.423503
],
[
-59.53804,
3.958803
],
[
-59.815413,
3.606499
],
[
-59.974525,
2.755233
],
[
-59.718546,
2.24963
],
[
-59.646044,
1.786894
],
[
-59.030862,
1.317698
],
[
-58.540013,
1.268088
],
[
-58.429477,
1.463942
],
[
-58.11345,
1.507195
],
[
-57.660971,
1.682585
],
[
-57.335823,
1.948538
],
[
-56.782704,
1.863711
],
[
-56.539386,
1.899523
],
[
-55.995698,
1.817667
],
[
-55.9056,
2.021996
],
[
-56.073342,
2.220795
],
[
-55.973322,
2.510364
],
[
-55.569755,
2.421506
],
[
-55.097587,
2.523748
],
[
-54.524754,
2.311849
],
[
-54.088063,
2.105557
],
[
-53.778521,
2.376703
],
[
-53.554839,
2.334897
],
[
-53.418465,
2.053389
],
[
-52.939657,
2.124858
],
[
-52.556425,
2.504705
],
[
-52.249338,
3.241094
],
[
-51.657797,
4.156232
],
[
-51.317146,
4.203491
],
[
-51.069771,
3.650398
],
[
-50.508875,
1.901564
],
[
-49.974076,
1.736483
],
[
-49.947101,
1.04619
],
[
-50.699251,
0.222984
],
[
-50.388211,
-0.078445
],
[
-48.620567,
-0.235489
],
[
-48.584497,
-1.237805
],
[
-47.824956,
-0.581618
],
[
-46.566584,
-0.941028
],
[
-44.905703,
-1.55174
],
[
-44.417619,
-2.13775
],
[
-44.581589,
-2.691308
],
[
-43.418791,
-2.38311
],
[
-41.472657,
-2.912018
],
[
-39.978665,
-2.873054
],
[
-38.500383,
-3.700652
],
[
-37.223252,
-4.820946
],
[
-36.452937,
-5.109404
],
[
-35.597796,
-5.149504
],
[
-35.235389,
-5.464937
],
[
-34.89603,
-6.738193
],
[
-34.729993,
-7.343221
],
[
-35.128212,
-8.996401
],
[
-35.636967,
-9.649282
],
[
-37.046519,
-11.040721
],
[
-37.683612,
-12.171195
],
[
-38.423877,
-13.038119
],
[
-38.673887,
-13.057652
],
[
-38.953276,
-13.79337
],
[
-38.882298,
-15.667054
],
[
-39.161092,
-17.208407
],
[
-39.267339,
-17.867746
],
[
-39.583521,
-18.262296
],
[
-39.760823,
-19.599113
],
[
-40.774741,
-20.904512
],
[
-40.944756,
-21.937317
],
[
-41.754164,
-22.370676
],
[
-41.988284,
-22.97007
],
[
-43.074704,
-22.967693
],
[
-44.647812,
-23.351959
],
[
-45.352136,
-23.796842
],
[
-46.472093,
-24.088969
],
[
-47.648972,
-24.885199
],
[
-48.495458,
-25.877025
],
[
-48.641005,
-26.623698
],
[
-48.474736,
-27.175912
],
[
-48.66152,
-28.186135
],
[
-48.888457,
-28.674115
],
[
-49.587329,
-29.224469
],
[
-50.696874,
-30.984465
],
[
-51.576226,
-31.777698
],
[
-52.256081,
-32.24537
],
[
-52.7121,
-33.196578
],
[
-53.373662,
-33.768378
],
[
-53.650544,
-33.202004
],
[
-53.209589,
-32.727666
],
[
-53.787952,
-32.047243
],
[
-54.572452,
-31.494511
],
[
-55.60151,
-30.853879
],
[
-55.973245,
-30.883076
],
[
-56.976026,
-30.109686
],
[
-57.625133,
-30.216295
]
]
]
}
},
{
type: 'Feature',
id: 'BRN',
properties: {
name: 'Brunei'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
114.204017,
4.525874
],
[
114.599961,
4.900011
],
[
115.45071,
5.44773
],
[
115.4057,
4.955228
],
[
115.347461,
4.316636
],
[
114.869557,
4.348314
],
[
114.659596,
4.007637
],
[
114.204017,
4.525874
]
]
]
}
},
{
type: 'Feature',
id: 'BTN',
properties: {
name: 'Bhutan'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
91.696657,
27.771742
],
[
92.103712,
27.452614
],
[
92.033484,
26.83831
],
[
91.217513,
26.808648
],
[
90.373275,
26.875724
],
[
89.744528,
26.719403
],
[
88.835643,
27.098966
],
[
88.814248,
27.299316
],
[
89.47581,
28.042759
],
[
90.015829,
28.296439
],
[
90.730514,
28.064954
],
[
91.258854,
28.040614
],
[
91.696657,
27.771742
]
]
]
}
},
{
type: 'Feature',
id: 'BWA',
properties: {
name: 'Botswana'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
25.649163,
-18.536026
],
[
25.850391,
-18.714413
],
[
26.164791,
-19.293086
],
[
27.296505,
-20.39152
],
[
27.724747,
-20.499059
],
[
27.727228,
-20.851802
],
[
28.02137,
-21.485975
],
[
28.794656,
-21.639454
],
[
29.432188,
-22.091313
],
[
28.017236,
-22.827754
],
[
27.11941,
-23.574323
],
[
26.786407,
-24.240691
],
[
26.485753,
-24.616327
],
[
25.941652,
-24.696373
],
[
25.765849,
-25.174845
],
[
25.664666,
-25.486816
],
[
25.025171,
-25.71967
],
[
24.211267,
-25.670216
],
[
23.73357,
-25.390129
],
[
23.312097,
-25.26869
],
[
22.824271,
-25.500459
],
[
22.579532,
-25.979448
],
[
22.105969,
-26.280256
],
[
21.605896,
-26.726534
],
[
20.889609,
-26.828543
],
[
20.66647,
-26.477453
],
[
20.758609,
-25.868136
],
[
20.165726,
-24.917962
],
[
19.895768,
-24.76779
],
[
19.895458,
-21.849157
],
[
20.881134,
-21.814327
],
[
20.910641,
-18.252219
],
[
21.65504,
-18.219146
],
[
23.196858,
-17.869038
],
[
23.579006,
-18.281261
],
[
24.217365,
-17.889347
],
[
24.520705,
-17.887125
],
[
25.084443,
-17.661816
],
[
25.264226,
-17.73654
],
[
25.649163,
-18.536026
]
]
]
}
},
{
type: 'Feature',
id: 'CAF',
properties: {
name: 'Central African Republic'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
15.27946,
7.421925
],
[
16.106232,
7.497088
],
[
16.290562,
7.754307
],
[
16.456185,
7.734774
],
[
16.705988,
7.508328
],
[
17.96493,
7.890914
],
[
18.389555,
8.281304
],
[
18.911022,
8.630895
],
[
18.81201,
8.982915
],
[
19.094008,
9.074847
],
[
20.059685,
9.012706
],
[
21.000868,
9.475985
],
[
21.723822,
10.567056
],
[
22.231129,
10.971889
],
[
22.864165,
11.142395
],
[
22.977544,
10.714463
],
[
23.554304,
10.089255
],
[
23.55725,
9.681218
],
[
23.394779,
9.265068
],
[
23.459013,
8.954286
],
[
23.805813,
8.666319
],
[
24.567369,
8.229188
],
[
25.114932,
7.825104
],
[
25.124131,
7.500085
],
[
25.796648,
6.979316
],
[
26.213418,
6.546603
],
[
26.465909,
5.946717
],
[
27.213409,
5.550953
],
[
27.374226,
5.233944
],
[
27.044065,
5.127853
],
[
26.402761,
5.150875
],
[
25.650455,
5.256088
],
[
25.278798,
5.170408
],
[
25.128833,
4.927245
],
[
24.805029,
4.897247
],
[
24.410531,
5.108784
],
[
23.297214,
4.609693
],
[
22.84148,
4.710126
],
[
22.704124,
4.633051
],
[
22.405124,
4.02916
],
[
21.659123,
4.224342
],
[
20.927591,
4.322786
],
[
20.290679,
4.691678
],
[
19.467784,
5.031528
],
[
18.932312,
4.709506
],
[
18.542982,
4.201785
],
[
18.453065,
3.504386
],
[
17.8099,
3.560196
],
[
17.133042,
3.728197
],
[
16.537058,
3.198255
],
[
16.012852,
2.26764
],
[
15.907381,
2.557389
],
[
15.862732,
3.013537
],
[
15.405396,
3.335301
],
[
15.03622,
3.851367
],
[
14.950953,
4.210389
],
[
14.478372,
4.732605
],
[
14.558936,
5.030598
],
[
14.459407,
5.451761
],
[
14.53656,
6.226959
],
[
14.776545,
6.408498
],
[
15.27946,
7.421925
]
]
]
}
},
{
type: 'Feature',
id: 'CAN',
properties: {
name: 'Canada'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
-63.6645,
46.55001
],
[
-62.9393,
46.41587
],
[
-62.01208,
46.44314
],
[
-62.50391,
46.03339
],
[
-62.87433,
45.96818
],
[
-64.1428,
46.39265
],
[
-64.39261,
46.72747
],
[
-64.01486,
47.03601
],
[
-63.6645,
46.55001
]
]
],
[
[
[
-61.806305,
49.10506
],
[
-62.29318,
49.08717
],
[
-63.58926,
49.40069
],
[
-64.51912,
49.87304
],
[
-64.17322,
49.95718
],
[
-62.85829,
49.70641
],
[
-61.835585,
49.28855
],
[
-61.806305,
49.10506
]
]
],
[
[
[
-123.510002,
48.510011
],
[
-124.012891,
48.370846
],
[
-125.655013,
48.825005
],
[
-125.954994,
49.179996
],
[
-126.850004,
49.53
],
[
-127.029993,
49.814996
],
[
-128.059336,
49.994959
],
[
-128.444584,
50.539138
],
[
-128.358414,
50.770648
],
[
-127.308581,
50.552574
],
[
-126.695001,
50.400903
],
[
-125.755007,
50.295018
],
[
-125.415002,
49.950001
],
[
-124.920768,
49.475275
],
[
-123.922509,
49.062484
],
[
-123.510002,
48.510011
]
]
],
[
[
[
-56.134036,
50.68701
],
[
-56.795882,
49.812309
],
[
-56.143105,
50.150117
],
[
-55.471492,
49.935815
],
[
-55.822401,
49.587129
],
[
-54.935143,
49.313011
],
[
-54.473775,
49.556691
],
[
-53.476549,
49.249139
],
[
-53.786014,
48.516781
],
[
-53.086134,
48.687804
],
[
-52.958648,
48.157164
],
[
-52.648099,
47.535548
],
[
-53.069158,
46.655499
],
[
-53.521456,
46.618292
],
[
-54.178936,
46.807066
],
[
-53.961869,
47.625207
],
[
-54.240482,
47.752279
],
[
-55.400773,
46.884994
],
[
-55.997481,
46.91972
],
[
-55.291219,
47.389562
],
[
-56.250799,
47.632545
],
[
-57.325229,
47.572807
],
[
-59.266015,
47.603348
],
[
-59.419494,
47.899454
],
[
-58.796586,
48.251525
],
[
-59.231625,
48.523188
],
[
-58.391805,
49.125581
],
[
-57.35869,
50.718274
],
[
-56.73865,
51.287438
],
[
-55.870977,
51.632094
],
[
-55.406974,
51.588273
],
[
-55.600218,
51.317075
],
[
-56.134036,
50.68701
]
]
],
[
[
[
-132.710008,
54.040009
],
[
-131.74999,
54.120004
],
[
-132.04948,
52.984621
],
[
-131.179043,
52.180433
],
[
-131.57783,
52.182371
],
[
-132.180428,
52.639707
],
[
-132.549992,
53.100015
],
[
-133.054611,
53.411469
],
[
-133.239664,
53.85108
],
[
-133.180004,
54.169975
],
[
-132.710008,
54.040009
]
]
],
[
[
[
-79.26582,
62.158675
],
[
-79.65752,
61.63308
],
[
-80.09956,
61.7181
],
[
-80.36215,
62.01649
],
[
-80.315395,
62.085565
],
[
-79.92939,
62.3856
],
[
-79.52002,
62.36371
],
[
-79.26582,
62.158675
]
]
],
[
[
[
-81.89825,
62.7108
],
[
-83.06857,
62.15922
],
[
-83.77462,
62.18231
],
[
-83.99367,
62.4528
],
[
-83.25048,
62.91409
],
[
-81.87699,
62.90458
],
[
-81.89825,
62.7108
]
]
],
[
[
[
-85.161308,
65.657285
],
[
-84.975764,
65.217518
],
[
-84.464012,
65.371772
],
[
-83.882626,
65.109618
],
[
-82.787577,
64.766693
],
[
-81.642014,
64.455136
],
[
-81.55344,
63.979609
],
[
-80.817361,
64.057486
],
[
-80.103451,
63.725981
],
[
-80.99102,
63.411246
],
[
-82.547178,
63.651722
],
[
-83.108798,
64.101876
],
[
-84.100417,
63.569712
],
[
-85.523405,
63.052379
],
[
-85.866769,
63.637253
],
[
-87.221983,
63.541238
],
[
-86.35276,
64.035833
],
[
-86.224886,
64.822917
],
[
-85.883848,
65.738778
],
[
-85.161308,
65.657285
]
]
],
[
[
[
-75.86588,
67.14886
],
[
-76.98687,
67.09873
],
[
-77.2364,
67.58809
],
[
-76.81166,
68.14856
],
[
-75.89521,
68.28721
],
[
-75.1145,
68.01036
],
[
-75.10333,
67.58202
],
[
-75.21597,
67.44425
],
[
-75.86588,
67.14886
]
]
],
[
[
[
-95.647681,
69.10769
],
[
-96.269521,
68.75704
],
[
-97.617401,
69.06003
],
[
-98.431801,
68.9507
],
[
-99.797401,
69.40003
],
[
-98.917401,
69.71003
],
[
-98.218261,
70.14354
],
[
-97.157401,
69.86003
],
[
-96.557401,
69.68003
],
[
-96.257401,
69.49003
],
[
-95.647681,
69.10769
]
]
],
[
[
[
-90.5471,
69.49766
],
[
-90.55151,
68.47499
],
[
-89.21515,
69.25873
],
[
-88.01966,
68.61508
],
[
-88.31749,
67.87338
],
[
-87.35017,
67.19872
],
[
-86.30607,
67.92146
],
[
-85.57664,
68.78456
],
[
-85.52197,
69.88211
],
[
-84.10081,
69.80539
],
[
-82.62258,
69.65826
],
[
-81.28043,
69.16202
],
[
-81.2202,
68.66567
],
[
-81.96436,
68.13253
],
[
-81.25928,
67.59716
],
[
-81.38653,
67.11078
],
[
-83.34456,
66.41154
],
[
-84.73542,
66.2573
],
[
-85.76943,
66.55833
],
[
-86.0676,
66.05625
],
[
-87.03143,
65.21297
],
[
-87.32324,
64.77563
],
[
-88.48296,
64.09897
],
[
-89.91444,
64.03273
],
[
-90.70398,
63.61017
],
[
-90.77004,
62.96021
],
[
-91.93342,
62.83508
],
[
-93.15698,
62.02469
],
[
-94.24153,
60.89865
],
[
-94.62931,
60.11021
],
[
-94.6846,
58.94882
],
[
-93.21502,
58.78212
],
[
-92.76462,
57.84571
],
[
-92.29703,
57.08709
],
[
-90.89769,
57.28468
],
[
-89.03953,
56.85172
],
[
-88.03978,
56.47162
],
[
-87.32421,
55.99914
],
[
-86.07121,
55.72383
],
[
-85.01181,
55.3026
],
[
-83.36055,
55.24489
],
[
-82.27285,
55.14832
],
[
-82.4362,
54.28227
],
[
-82.12502,
53.27703
],
[
-81.40075,
52.15788
],
[
-79.91289,
51.20842
],
[
-79.14301,
51.53393
],
[
-78.60191,
52.56208
],
[
-79.12421,
54.14145
],
[
-79.82958,
54.66772
],
[
-78.22874,
55.13645
],
[
-77.0956,
55.83741
],
[
-76.54137,
56.53423
],
[
-76.62319,
57.20263
],
[
-77.30226,
58.05209
],
[
-78.51688,
58.80458
],
[
-77.33676,
59.85261
],
[
-77.77272,
60.75788
],
[
-78.10687,
62.31964
],
[
-77.41067,
62.55053
],
[
-75.69621,
62.2784
],
[
-74.6682,
62.18111
],
[
-73.83988,
62.4438
],
[
-72.90853,
62.10507
],
[
-71.67708,
61.52535
],
[
-71.37369,
61.13717
],
[
-69.59042,
61.06141
],
[
-69.62033,
60.22125
],
[
-69.2879,
58.95736
],
[
-68.37455,
58.80106
],
[
-67.64976,
58.21206
],
[
-66.20178,
58.76731
],
[
-65.24517,
59.87071
],
[
-64.58352,
60.33558
],
[
-63.80475,
59.4426
],
[
-62.50236,
58.16708
],
[
-61.39655,
56.96745
],
[
-61.79866,
56.33945
],
[
-60.46853,
55.77548
],
[
-59.56962,
55.20407
],
[
-57.97508,
54.94549
],
[
-57.3332,
54.6265
],
[
-56.93689,
53.78032
],
[
-56.15811,
53.64749
],
[
-55.75632,
53.27036
],
[
-55.68338,
52.14664
],
[
-56.40916,
51.7707
],
[
-57.12691,
51.41972
],
[
-58.77482,
51.0643
],
[
-60.03309,
50.24277
],
[
-61.72366,
50.08046
],
[
-63.86251,
50.29099
],
[
-65.36331,
50.2982
],
[
-66.39905,
50.22897
],
[
-67.23631,
49.51156
],
[
-68.51114,
49.06836
],
[
-69.95362,
47.74488
],
[
-71.10458,
46.82171
],
[
-70.25522,
46.98606
],
[
-68.65,
48.3
],
[
-66.55243,
49.1331
],
[
-65.05626,
49.23278
],
[
-64.17099,
48.74248
],
[
-65.11545,
48.07085
],
[
-64.79854,
46.99297
],
[
-64.47219,
46.23849
],
[
-63.17329,
45.73902
],
[
-61.52072,
45.88377
],
[
-60.51815,
47.00793
],
[
-60.4486,
46.28264
],
[
-59.80287,
45.9204
],
[
-61.03988,
45.26525
],
[
-63.25471,
44.67014
],
[
-64.24656,
44.26553
],
[
-65.36406,
43.54523
],
[
-66.1234,
43.61867
],
[
-66.16173,
44.46512
],
[
-64.42549,
45.29204
],
[
-66.02605,
45.25931
],
[
-67.13741,
45.13753
],
[
-67.79134,
45.70281
],
[
-67.79046,
47.06636
],
[
-68.23444,
47.35486
],
[
-68.905,
47.185
],
[
-69.237216,
47.447781
],
[
-69.99997,
46.69307
],
[
-70.305,
45.915
],
[
-70.66,
45.46
],
[
-71.08482,
45.30524
],
[
-71.405,
45.255
],
[
-71.50506,
45.0082
],
[
-73.34783,
45.00738
],
[
-74.867,
45.00048
],
[
-75.31821,
44.81645
],
[
-76.375,
44.09631
],
[
-76.5,
44.018459
],
[
-76.820034,
43.628784
],
[
-77.737885,
43.629056
],
[
-78.72028,
43.625089
],
[
-79.171674,
43.466339
],
[
-79.01,
43.27
],
[
-78.92,
42.965
],
[
-78.939362,
42.863611
],
[
-80.247448,
42.3662
],
[
-81.277747,
42.209026
],
[
-82.439278,
41.675105
],
[
-82.690089,
41.675105
],
[
-83.02981,
41.832796
],
[
-83.142,
41.975681
],
[
-83.12,
42.08
],
[
-82.9,
42.43
],
[
-82.43,
42.98
],
[
-82.137642,
43.571088
],
[
-82.337763,
44.44
],
[
-82.550925,
45.347517
],
[
-83.592851,
45.816894
],
[
-83.469551,
45.994686
],
[
-83.616131,
46.116927
],
[
-83.890765,
46.116927
],
[
-84.091851,
46.275419
],
[
-84.14212,
46.512226
],
[
-84.3367,
46.40877
],
[
-84.6049,
46.4396
],
[
-84.543749,
46.538684
],
[
-84.779238,
46.637102
],
[
-84.87608,
46.900083
],
[
-85.652363,
47.220219
],
[
-86.461991,
47.553338
],
[
-87.439793,
47.94
],
[
-88.378114,
48.302918
],
[
-89.272917,
48.019808
],
[
-89.6,
48.01
],
[
-90.83,
48.27
],
[
-91.64,
48.14
],
[
-92.61,
48.45
],
[
-93.63087,
48.60926
],
[
-94.32914,
48.67074
],
[
-94.64,
48.84
],
[
-94.81758,
49.38905
],
[
-95.15609,
49.38425
],
[
-95.15907,
49
],
[
-97.22872,
49.0007
],
[
-100.65,
49
],
[
-104.04826,
48.99986
],
[
-107.05,
49
],
[
-110.05,
49
],
[
-113,
49
],
[
-116.04818,
49
],
[
-117.03121,
49
],
[
-120,
49
],
[
-122.84,
49
],
[
-122.97421,
49.002538
],
[
-124.91024,
49.98456
],
[
-125.62461,
50.41656
],
[
-127.43561,
50.83061
],
[
-127.99276,
51.71583
],
[
-127.85032,
52.32961
],
[
-129.12979,
52.75538
],
[
-129.30523,
53.56159
],
[
-130.51497,
54.28757
],
[
-130.53611,
54.80278
],
[
-129.98,
55.285
],
[
-130.00778,
55.91583
],
[
-131.70781,
56.55212
],
[
-132.73042,
57.69289
],
[
-133.35556,
58.41028
],
[
-134.27111,
58.86111
],
[
-134.945,
59.27056
],
[
-135.47583,
59.78778
],
[
-136.47972,
59.46389
],
[
-137.4525,
58.905
],
[
-138.34089,
59.56211
],
[
-139.039,
60
],
[
-140.013,
60.27682
],
[
-140.99778,
60.30639
],
[
-140.9925,
66.00003
],
[
-140.986,
69.712
],
[
-139.12052,
69.47102
],
[
-137.54636,
68.99002
],
[
-136.50358,
68.89804
],
[
-135.62576,
69.31512
],
[
-134.41464,
69.62743
],
[
-132.92925,
69.50534
],
[
-131.43136,
69.94451
],
[
-129.79471,
70.19369
],
[
-129.10773,
69.77927
],
[
-128.36156,
70.01286
],
[
-128.13817,
70.48384
],
[
-127.44712,
70.37721
],
[
-125.75632,
69.48058
],
[
-124.42483,
70.1584
],
[
-124.28968,
69.39969
],
[
-123.06108,
69.56372
],
[
-122.6835,
69.85553
],
[
-121.47226,
69.79778
],
[
-119.94288,
69.37786
],
[
-117.60268,
69.01128
],
[
-116.22643,
68.84151
],
[
-115.2469,
68.90591
],
[
-113.89794,
68.3989
],
[
-115.30489,
67.90261
],
[
-113.49727,
67.68815
],
[
-110.798,
67.80612
],
[
-109.94619,
67.98104
],
[
-108.8802,
67.38144
],
[
-107.79239,
67.88736
],
[
-108.81299,
68.31164
],
[
-108.16721,
68.65392
],
[
-106.95,
68.7
],
[
-106.15,
68.8
],
[
-105.34282,
68.56122
],
[
-104.33791,
68.018
],
[
-103.22115,
68.09775
],
[
-101.45433,
67.64689
],
[
-99.90195,
67.80566
],
[
-98.4432,
67.78165
],
[
-98.5586,
68.40394
],
[
-97.66948,
68.57864
],
[
-96.11991,
68.23939
],
[
-96.12588,
67.29338
],
[
-95.48943,
68.0907
],
[
-94.685,
68.06383
],
[
-94.23282,
69.06903
],
[
-95.30408,
69.68571
],
[
-96.47131,
70.08976
],
[
-96.39115,
71.19482
],
[
-95.2088,
71.92053
],
[
-93.88997,
71.76015
],
[
-92.87818,
71.31869
],
[
-91.51964,
70.19129
],
[
-92.40692,
69.69997
],
[
-90.5471,
69.49766
]
]
],
[
[
[
-114.16717,
73.12145
],
[
-114.66634,
72.65277
],
[
-112.44102,
72.9554
],
[
-111.05039,
72.4504
],
[
-109.92035,
72.96113
],
[
-109.00654,
72.63335
],
[
-108.18835,
71.65089
],
[
-107.68599,
72.06548
],
[
-108.39639,
73.08953
],
[
-107.51645,
73.23598
],
[
-106.52259,
73.07601
],
[
-105.40246,
72.67259
],
[
-104.77484,
71.6984
],
[
-104.46476,
70.99297
],
[
-102.78537,
70.49776
],
[
-100.98078,
70.02432
],
[
-101.08929,
69.58447
],
[
-102.73116,
69.50402
],
[
-102.09329,
69.11962
],
[
-102.43024,
68.75282
],
[
-104.24,
68.91
],
[
-105.96,
69.18
],
[
-107.12254,
69.11922
],
[
-109,
68.78
],
[
-111.534149,
68.630059
],
[
-113.3132,
68.53554
],
[
-113.85496,
69.00744
],
[
-115.22,
69.28
],
[
-116.10794,
69.16821
],
[
-117.34,
69.96
],
[
-116.67473,
70.06655
],
[
-115.13112,
70.2373
],
[
-113.72141,
70.19237
],
[
-112.4161,
70.36638
],
[
-114.35,
70.6
],
[
-116.48684,
70.52045
],
[
-117.9048,
70.54056
],
[
-118.43238,
70.9092
],
[
-116.11311,
71.30918
],
[
-117.65568,
71.2952
],
[
-119.40199,
71.55859
],
[
-118.56267,
72.30785
],
[
-117.86642,
72.70594
],
[
-115.18909,
73.31459
],
[
-114.16717,
73.12145
]
]
],
[
[
[
-104.5,
73.42
],
[
-105.38,
72.76
],
[
-106.94,
73.46
],
[
-106.6,
73.6
],
[
-105.26,
73.64
],
[
-104.5,
73.42
]
]
],
[
[
[
-76.34,
73.102685
],
[
-76.251404,
72.826385
],
[
-77.314438,
72.855545
],
[
-78.39167,
72.876656
],
[
-79.486252,
72.742203
],
[
-79.775833,
72.802902
],
[
-80.876099,
73.333183
],
[
-80.833885,
73.693184
],
[
-80.353058,
73.75972
],
[
-78.064438,
73.651932
],
[
-76.34,
73.102685
]
]
],
[
[
[
-86.562179,
73.157447
],
[
-85.774371,
72.534126
],
[
-84.850112,
73.340278
],
[
-82.31559,
73.750951
],
[
-80.600088,
72.716544
],
[
-80.748942,
72.061907
],
[
-78.770639,
72.352173
],
[
-77.824624,
72.749617
],
[
-75.605845,
72.243678
],
[
-74.228616,
71.767144
],
[
-74.099141,
71.33084
],
[
-72.242226,
71.556925
],
[
-71.200015,
70.920013
],
[
-68.786054,
70.525024
],
[
-67.91497,
70.121948
],
[
-66.969033,
69.186087
],
[
-68.805123,
68.720198
],
[
-66.449866,
68.067163
],
[
-64.862314,
67.847539
],
[
-63.424934,
66.928473
],
[
-61.851981,
66.862121
],
[
-62.163177,
66.160251
],
[
-63.918444,
64.998669
],
[
-65.14886,
65.426033
],
[
-66.721219,
66.388041
],
[
-68.015016,
66.262726
],
[
-68.141287,
65.689789
],
[
-67.089646,
65.108455
],
[
-65.73208,
64.648406
],
[
-65.320168,
64.382737
],
[
-64.669406,
63.392927
],
[
-65.013804,
62.674185
],
[
-66.275045,
62.945099
],
[
-68.783186,
63.74567
],
[
-67.369681,
62.883966
],
[
-66.328297,
62.280075
],
[
-66.165568,
61.930897
],
[
-68.877367,
62.330149
],
[
-71.023437,
62.910708
],
[
-72.235379,
63.397836
],
[
-71.886278,
63.679989
],
[
-73.378306,
64.193963
],
[
-74.834419,
64.679076
],
[
-74.818503,
64.389093
],
[
-77.70998,
64.229542
],
[
-78.555949,
64.572906
],
[
-77.897281,
65.309192
],
[
-76.018274,
65.326969
],
[
-73.959795,
65.454765
],
[
-74.293883,
65.811771
],
[
-73.944912,
66.310578
],
[
-72.651167,
67.284576
],
[
-72.92606,
67.726926
],
[
-73.311618,
68.069437
],
[
-74.843307,
68.554627
],
[
-76.869101,
68.894736
],
[
-76.228649,
69.147769
],
[
-77.28737,
69.76954
],
[
-78.168634,
69.826488
],
[
-78.957242,
70.16688
],
[
-79.492455,
69.871808
],
[
-81.305471,
69.743185
],
[
-84.944706,
69.966634
],
[
-87.060003,
70.260001
],
[
-88.681713,
70.410741
],
[
-89.51342,
70.762038
],
[
-88.467721,
71.218186
],
[
-89.888151,
71.222552
],
[
-90.20516,
72.235074
],
[
-89.436577,
73.129464
],
[
-88.408242,
73.537889
],
[
-85.826151,
73.803816
],
[
-86.562179,
73.157447
]
]
],
[
[
[
-100.35642,
73.84389
],
[
-99.16387,
73.63339
],
[
-97.38,
73.76
],
[
-97.12,
73.47
],
[
-98.05359,
72.99052
],
[
-96.54,
72.56
],
[
-96.72,
71.66
],
[
-98.35966,
71.27285
],
[
-99.32286,
71.35639
],
[
-100.01482,
71.73827
],
[
-102.5,
72.51
],
[
-102.48,
72.83
],
[
-100.43836,
72.70588
],
[
-101.54,
73.36
],
[
-100.35642,
73.84389
]
]
],
[
[
[
-93.196296,
72.771992
],
[
-94.269047,
72.024596
],
[
-95.409856,
72.061881
],
[
-96.033745,
72.940277
],
[
-96.018268,
73.43743
],
[
-95.495793,
73.862417
],
[
-94.503658,
74.134907
],
[
-92.420012,
74.100025
],
[
-90.509793,
73.856732
],
[
-92.003965,
72.966244
],
[
-93.196296,
72.771992
]
]
],
[
[
[
-120.46,
71.383602
],
[
-123.09219,
70.90164
],
[
-123.62,
71.34
],
[
-125.928949,
71.868688
],
[
-125.5,
72.292261
],
[
-124.80729,
73.02256
],
[
-123.94,
73.68
],
[
-124.91775,
74.29275
],
[
-121.53788,
74.44893
],
[
-120.10978,
74.24135
],
[
-117.55564,
74.18577
],
[
-116.58442,
73.89607
],
[
-115.51081,
73.47519
],
[
-116.76794,
73.22292
],
[
-119.22,
72.52
],
[
-120.46,
71.82
],
[
-120.46,
71.383602
]
]
],
[
[
[
-93.612756,
74.979997
],
[
-94.156909,
74.592347
],
[
-95.608681,
74.666864
],
[
-96.820932,
74.927623
],
[
-96.288587,
75.377828
],
[
-94.85082,
75.647218
],
[
-93.977747,
75.29649
],
[
-93.612756,
74.979997
]
]
],
[
[
[
-98.5,
76.72
],
[
-97.735585,
76.25656
],
[
-97.704415,
75.74344
],
[
-98.16,
75
],
[
-99.80874,
74.89744
],
[
-100.88366,
75.05736
],
[
-100.86292,
75.64075
],
[
-102.50209,
75.5638
],
[
-102.56552,
76.3366
],
[
-101.48973,
76.30537
],
[
-99.98349,
76.64634
],
[
-98.57699,
76.58859
],
[
-98.5,
76.72
]
]
],
[
[
[
-108.21141,
76.20168
],
[
-107.81943,
75.84552
],
[
-106.92893,
76.01282
],
[
-105.881,
75.9694
],
[
-105.70498,
75.47951
],
[
-106.31347,
75.00527
],
[
-109.7,
74.85
],
[
-112.22307,
74.41696
],
[
-113.74381,
74.39427
],
[
-113.87135,
74.72029
],
[
-111.79421,
75.1625
],
[
-116.31221,
75.04343
],
[
-117.7104,
75.2222
],
[
-116.34602,
76.19903
],
[
-115.40487,
76.47887
],
[
-112.59056,
76.14134
],
[
-110.81422,
75.54919
],
[
-109.0671,
75.47321
],
[
-110.49726,
76.42982
],
[
-109.5811,
76.79417
],
[
-108.54859,
76.67832
],
[
-108.21141,
76.20168
]
]
],
[
[
[
-94.684086,
77.097878
],
[
-93.573921,
76.776296
],
[
-91.605023,
76.778518
],
[
-90.741846,
76.449597
],
[
-90.969661,
76.074013
],
[
-89.822238,
75.847774
],
[
-89.187083,
75.610166
],
[
-87.838276,
75.566189
],
[
-86.379192,
75.482421
],
[
-84.789625,
75.699204
],
[
-82.753445,
75.784315
],
[
-81.128531,
75.713983
],
[
-80.057511,
75.336849
],
[
-79.833933,
74.923127
],
[
-80.457771,
74.657304
],
[
-81.948843,
74.442459
],
[
-83.228894,
74.564028
],
[
-86.097452,
74.410032
],
[
-88.15035,
74.392307
],
[
-89.764722,
74.515555
],
[
-92.422441,
74.837758
],
[
-92.768285,
75.38682
],
[
-92.889906,
75.882655
],
[
-93.893824,
76.319244
],
[
-95.962457,
76.441381
],
[
-97.121379,
76.751078
],
[
-96.745123,
77.161389
],
[
-94.684086,
77.097878
]
]
],
[
[
[
-116.198587,
77.645287
],
[
-116.335813,
76.876962
],
[
-117.106051,
76.530032
],
[
-118.040412,
76.481172
],
[
-119.899318,
76.053213
],
[
-121.499995,
75.900019
],
[
-122.854924,
76.116543
],
[
-122.854925,
76.116543
],
[
-121.157535,
76.864508
],
[
-119.103939,
77.51222
],
[
-117.570131,
77.498319
],
[
-116.198587,
77.645287
]
]
],
[
[
[
-93.840003,
77.519997
],
[
-94.295608,
77.491343
],
[
-96.169654,
77.555111
],
[
-96.436304,
77.834629
],
[
-94.422577,
77.820005
],
[
-93.720656,
77.634331
],
[
-93.840003,
77.519997
]
]
],
[
[
[
-110.186938,
77.697015
],
[
-112.051191,
77.409229
],
[
-113.534279,
77.732207
],
[
-112.724587,
78.05105
],
[
-111.264443,
78.152956
],
[
-109.854452,
77.996325
],
[
-110.186938,
77.697015
]
]
],
[
[
[
-109.663146,
78.601973
],
[
-110.881314,
78.40692
],
[
-112.542091,
78.407902
],
[
-112.525891,
78.550555
],
[
-111.50001,
78.849994
],
[
-110.963661,
78.804441
],
[
-109.663146,
78.601973
]
]
],
[
[
[
-95.830295,
78.056941
],
[
-97.309843,
77.850597
],
[
-98.124289,
78.082857
],
[
-98.552868,
78.458105
],
[
-98.631984,
78.87193
],
[
-97.337231,
78.831984
],
[
-96.754399,
78.765813
],
[
-95.559278,
78.418315
],
[
-95.830295,
78.056941
]
]
],
[
[
[
-100.060192,
78.324754
],
[
-99.670939,
77.907545
],
[
-101.30394,
78.018985
],
[
-102.949809,
78.343229
],
[
-105.176133,
78.380332
],
[
-104.210429,
78.67742
],
[
-105.41958,
78.918336
],
[
-105.492289,
79.301594
],
[
-103.529282,
79.165349
],
[
-100.825158,
78.800462
],
[
-100.060192,
78.324754
]
]
],
[
[
[
-87.02,
79.66
],
[
-85.81435,
79.3369
],
[
-87.18756,
79.0393
],
[
-89.03535,
78.28723
],
[
-90.80436,
78.21533
],
[
-92.87669,
78.34333
],
[
-93.95116,
78.75099
],
[
-93.93574,
79.11373
],
[
-93.14524,
79.3801
],
[
-94.974,
79.37248
],
[
-96.07614,
79.70502
],
[
-96.70972,
80.15777
],
[
-96.01644,
80.60233
],
[
-95.32345,
80.90729
],
[
-94.29843,
80.97727
],
[
-94.73542,
81.20646
],
[
-92.40984,
81.25739
],
[
-91.13289,
80.72345
],
[
-89.45,
80.509322
],
[
-87.81,
80.32
],
[
-87.02,
79.66
]
]
],
[
[
[
-68.5,
83.106322
],
[
-65.82735,
83.02801
],
[
-63.68,
82.9
],
[
-61.85,
82.6286
],
[
-61.89388,
82.36165
],
[
-64.334,
81.92775
],
[
-66.75342,
81.72527
],
[
-67.65755,
81.50141
],
[
-65.48031,
81.50657
],
[
-67.84,
80.9
],
[
-69.4697,
80.61683
],
[
-71.18,
79.8
],
[
-73.2428,
79.63415
],
[
-73.88,
79.430162
],
[
-76.90773,
79.32309
],
[
-75.52924,
79.19766
],
[
-76.22046,
79.01907
],
[
-75.39345,
78.52581
],
[
-76.34354,
78.18296
],
[
-77.88851,
77.89991
],
[
-78.36269,
77.50859
],
[
-79.75951,
77.20968
],
[
-79.61965,
76.98336
],
[
-77.91089,
77.022045
],
[
-77.88911,
76.777955
],
[
-80.56125,
76.17812
],
[
-83.17439,
76.45403
],
[
-86.11184,
76.29901
],
[
-87.6,
76.42
],
[
-89.49068,
76.47239
],
[
-89.6161,
76.95213
],
[
-87.76739,
77.17833
],
[
-88.26,
77.9
],
[
-87.65,
77.970222
],
[
-84.97634,
77.53873
],
[
-86.34,
78.18
],
[
-87.96192,
78.37181
],
[
-87.15198,
78.75867
],
[
-85.37868,
78.9969
],
[
-85.09495,
79.34543
],
[
-86.50734,
79.73624
],
[
-86.93179,
80.25145
],
[
-84.19844,
80.20836
],
[
-83.408696,
80.1
],
[
-81.84823,
80.46442
],
[
-84.1,
80.58
],
[
-87.59895,
80.51627
],
[
-89.36663,
80.85569
],
[
-90.2,
81.26
],
[
-91.36786,
81.5531
],
[
-91.58702,
81.89429
],
[
-90.1,
82.085
],
[
-88.93227,
82.11751
],
[
-86.97024,
82.27961
],
[
-85.5,
82.652273
],
[
-84.260005,
82.6
],
[
-83.18,
82.32
],
[
-82.42,
82.86
],
[
-81.1,
83.02
],
[
-79.30664,
83.13056
],
[
-76.25,
83.172059
],
[
-75.71878,
83.06404
],
[
-72.83153,
83.23324
],
[
-70.665765,
83.169781
],
[
-68.5,
83.106322
]
]
]
]
}
},
{
type: 'Feature',
id: 'CHE',
properties: {
name: 'Switzerland'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
9.594226,
47.525058
],
[
9.632932,
47.347601
],
[
9.47997,
47.10281
],
[
9.932448,
46.920728
],
[
10.442701,
46.893546
],
[
10.363378,
46.483571
],
[
9.922837,
46.314899
],
[
9.182882,
46.440215
],
[
8.966306,
46.036932
],
[
8.489952,
46.005151
],
[
8.31663,
46.163642
],
[
7.755992,
45.82449
],
[
7.273851,
45.776948
],
[
6.843593,
45.991147
],
[
6.5001,
46.429673
],
[
6.022609,
46.27299
],
[
6.037389,
46.725779
],
[
6.768714,
47.287708
],
[
6.736571,
47.541801
],
[
7.192202,
47.449766
],
[
7.466759,
47.620582
],
[
8.317301,
47.61358
],
[
8.522612,
47.830828
],
[
9.594226,
47.525058
]
]
]
}
},
{
type: 'Feature',
id: 'CHL',
properties: {
name: 'Chile'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
-68.63401,
-52.63637
],
[
-68.63335,
-54.8695
],
[
-67.56244,
-54.87001
],
[
-66.95992,
-54.89681
],
[
-67.29103,
-55.30124
],
[
-68.14863,
-55.61183
],
[
-68.639991,
-55.580018
],
[
-69.2321,
-55.49906
],
[
-69.95809,
-55.19843
],
[
-71.00568,
-55.05383
],
[
-72.2639,
-54.49514
],
[
-73.2852,
-53.95752
],
[
-74.66253,
-52.83749
],
[
-73.8381,
-53.04743
],
[
-72.43418,
-53.7154
],
[
-71.10773,
-54.07433
],
[
-70.59178,
-53.61583
],
[
-70.26748,
-52.93123
],
[
-69.34565,
-52.5183
],
[
-68.63401,
-52.63637
]
]
],
[
[
[
-68.219913,
-21.494347
],
[
-67.82818,
-22.872919
],
[
-67.106674,
-22.735925
],
[
-66.985234,
-22.986349
],
[
-67.328443,
-24.025303
],
[
-68.417653,
-24.518555
],
[
-68.386001,
-26.185016
],
[
-68.5948,
-26.506909
],
[
-68.295542,
-26.89934
],
[
-69.001235,
-27.521214
],
[
-69.65613,
-28.459141
],
[
-70.01355,
-29.367923
],
[
-69.919008,
-30.336339
],
[
-70.535069,
-31.36501
],
[
-70.074399,
-33.09121
],
[
-69.814777,
-33.273886
],
[
-69.817309,
-34.193571
],
[
-70.388049,
-35.169688
],
[
-70.364769,
-36.005089
],
[
-71.121881,
-36.658124
],
[
-71.118625,
-37.576827
],
[
-70.814664,
-38.552995
],
[
-71.413517,
-38.916022
],
[
-71.680761,
-39.808164
],
[
-71.915734,
-40.832339
],
[
-71.746804,
-42.051386
],
[
-72.148898,
-42.254888
],
[
-71.915424,
-43.408565
],
[
-71.464056,
-43.787611
],
[
-71.793623,
-44.207172
],
[
-71.329801,
-44.407522
],
[
-71.222779,
-44.784243
],
[
-71.659316,
-44.973689
],
[
-71.552009,
-45.560733
],
[
-71.917258,
-46.884838
],
[
-72.447355,
-47.738533
],
[
-72.331161,
-48.244238
],
[
-72.648247,
-48.878618
],
[
-73.415436,
-49.318436
],
[
-73.328051,
-50.378785
],
[
-72.975747,
-50.74145
],
[
-72.309974,
-50.67701
],
[
-72.329404,
-51.425956
],
[
-71.914804,
-52.009022
],
[
-69.498362,
-52.142761
],
[
-68.571545,
-52.299444
],
[
-69.461284,
-52.291951
],
[
-69.94278,
-52.537931
],
[
-70.845102,
-52.899201
],
[
-71.006332,
-53.833252
],
[
-71.429795,
-53.856455
],
[
-72.557943,
-53.53141
],
[
-73.702757,
-52.835069
],
[
-73.702757,
-52.83507
],
[
-74.946763,
-52.262754
],
[
-75.260026,
-51.629355
],
[
-74.976632,
-51.043396
],
[
-75.479754,
-50.378372
],
[
-75.608015,
-48.673773
],
[
-75.18277,
-47.711919
],
[
-74.126581,
-46.939253
],
[
-75.644395,
-46.647643
],
[
-74.692154,
-45.763976
],
[
-74.351709,
-44.103044
],
[
-73.240356,
-44.454961
],
[
-72.717804,
-42.383356
],
[
-73.3889,
-42.117532
],
[
-73.701336,
-43.365776
],
[
-74.331943,
-43.224958
],
[
-74.017957,
-41.794813
],
[
-73.677099,
-39.942213
],
[
-73.217593,
-39.258689
],
[
-73.505559,
-38.282883
],
[
-73.588061,
-37.156285
],
[
-73.166717,
-37.12378
],
[
-72.553137,
-35.50884
],
[
-71.861732,
-33.909093
],
[
-71.43845,
-32.418899
],
[
-71.668721,
-30.920645
],
[
-71.370083,
-30.095682
],
[
-71.489894,
-28.861442
],
[
-70.905124,
-27.64038
],
[
-70.724954,
-25.705924
],
[
-70.403966,
-23.628997
],
[
-70.091246,
-21.393319
],
[
-70.16442,
-19.756468
],
[
-70.372572,
-18.347975
],
[
-69.858444,
-18.092694
],
[
-69.590424,
-17.580012
],
[
-69.100247,
-18.260125
],
[
-68.966818,
-18.981683
],
[
-68.442225,
-19.405068
],
[
-68.757167,
-20.372658
],
[
-68.219913,
-21.494347
]
]
]
]
}
},
{
type: 'Feature',
id: 'CHN',
properties: {
name: 'China'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
110.339188,
18.678395
],
[
109.47521,
18.197701
],
[
108.655208,
18.507682
],
[
108.626217,
19.367888
],
[
109.119056,
19.821039
],
[
110.211599,
20.101254
],
[
110.786551,
20.077534
],
[
111.010051,
19.69593
],
[
110.570647,
19.255879
],
[
110.339188,
18.678395
]
]
],
[
[
[
127.657407,
49.76027
],
[
129.397818,
49.4406
],
[
130.582293,
48.729687
],
[
130.987282,
47.790132
],
[
132.506672,
47.78897
],
[
133.373596,
48.183442
],
[
135.026311,
48.47823
],
[
134.500814,
47.57844
],
[
134.112362,
47.212467
],
[
133.769644,
46.116927
],
[
133.097127,
45.144066
],
[
131.883454,
45.321162
],
[
131.025212,
44.967953
],
[
131.288555,
44.11152
],
[
131.144688,
42.92999
],
[
130.633866,
42.903015
],
[
130.640016,
42.395009
],
[
129.994267,
42.985387
],
[
129.596669,
42.424982
],
[
128.052215,
41.994285
],
[
128.208433,
41.466772
],
[
127.343783,
41.503152
],
[
126.869083,
41.816569
],
[
126.182045,
41.107336
],
[
125.079942,
40.569824
],
[
124.265625,
39.928493
],
[
122.86757,
39.637788
],
[
122.131388,
39.170452
],
[
121.054554,
38.897471
],
[
121.585995,
39.360854
],
[
121.376757,
39.750261
],
[
122.168595,
40.422443
],
[
121.640359,
40.94639
],
[
120.768629,
40.593388
],
[
119.639602,
39.898056
],
[
119.023464,
39.252333
],
[
118.042749,
39.204274
],
[
117.532702,
38.737636
],
[
118.059699,
38.061476
],
[
118.87815,
37.897325
],
[
118.911636,
37.448464
],
[
119.702802,
37.156389
],
[
120.823457,
37.870428
],
[
121.711259,
37.481123
],
[
122.357937,
37.454484
],
[
122.519995,
36.930614
],
[
121.104164,
36.651329
],
[
120.637009,
36.11144
],
[
119.664562,
35.609791
],
[
119.151208,
34.909859
],
[
120.227525,
34.360332
],
[
120.620369,
33.376723
],
[
121.229014,
32.460319
],
[
121.908146,
31.692174
],
[
121.891919,
30.949352
],
[
121.264257,
30.676267
],
[
121.503519,
30.142915
],
[
122.092114,
29.83252
],
[
121.938428,
29.018022
],
[
121.684439,
28.225513
],
[
121.125661,
28.135673
],
[
120.395473,
27.053207
],
[
119.585497,
25.740781
],
[
118.656871,
24.547391
],
[
117.281606,
23.624501
],
[
115.890735,
22.782873
],
[
114.763827,
22.668074
],
[
114.152547,
22.22376
],
[
113.80678,
22.54834
],
[
113.241078,
22.051367
],
[
111.843592,
21.550494
],
[
110.785466,
21.397144
],
[
110.444039,
20.341033
],
[
109.889861,
20.282457
],
[
109.627655,
21.008227
],
[
109.864488,
21.395051
],
[
108.522813,
21.715212
],
[
108.05018,
21.55238
],
[
107.04342,
21.811899
],
[
106.567273,
22.218205
],
[
106.725403,
22.794268
],
[
105.811247,
22.976892
],
[
105.329209,
23.352063
],
[
104.476858,
22.81915
],
[
103.504515,
22.703757
],
[
102.706992,
22.708795
],
[
102.170436,
22.464753
],
[
101.652018,
22.318199
],
[
101.80312,
21.174367
],
[
101.270026,
21.201652
],
[
101.180005,
21.436573
],
[
101.150033,
21.849984
],
[
100.416538,
21.558839
],
[
99.983489,
21.742937
],
[
99.240899,
22.118314
],
[
99.531992,
22.949039
],
[
98.898749,
23.142722
],
[
98.660262,
24.063286
],
[
97.60472,
23.897405
],
[
97.724609,
25.083637
],
[
98.671838,
25.918703
],
[
98.712094,
26.743536
],
[
98.68269,
27.508812
],
[
98.246231,
27.747221
],
[
97.911988,
28.335945
],
[
97.327114,
28.261583
],
[
96.248833,
28.411031
],
[
96.586591,
28.83098
],
[
96.117679,
29.452802
],
[
95.404802,
29.031717
],
[
94.56599,
29.277438
],
[
93.413348,
28.640629
],
[
92.503119,
27.896876
],
[
91.696657,
27.771742
],
[
91.258854,
28.040614
],
[
90.730514,
28.064954
],
[
90.015829,
28.296439
],
[
89.47581,
28.042759
],
[
88.814248,
27.299316
],
[
88.730326,
28.086865
],
[
88.120441,
27.876542
],
[
86.954517,
27.974262
],
[
85.82332,
28.203576
],
[
85.011638,
28.642774
],
[
84.23458,
28.839894
],
[
83.898993,
29.320226
],
[
83.337115,
29.463732
],
[
82.327513,
30.115268
],
[
81.525804,
30.422717
],
[
81.111256,
30.183481
],
[
79.721367,
30.882715
],
[
78.738894,
31.515906
],
[
78.458446,
32.618164
],
[
79.176129,
32.48378
],
[
79.208892,
32.994395
],
[
78.811086,
33.506198
],
[
78.912269,
34.321936
],
[
77.837451,
35.49401
],
[
76.192848,
35.898403
],
[
75.896897,
36.666806
],
[
75.158028,
37.133031
],
[
74.980002,
37.41999
],
[
74.829986,
37.990007
],
[
74.864816,
38.378846
],
[
74.257514,
38.606507
],
[
73.928852,
38.505815
],
[
73.675379,
39.431237
],
[
73.960013,
39.660008
],
[
73.822244,
39.893973
],
[
74.776862,
40.366425
],
[
75.467828,
40.562072
],
[
76.526368,
40.427946
],
[
76.904484,
41.066486
],
[
78.187197,
41.185316
],
[
78.543661,
41.582243
],
[
80.11943,
42.123941
],
[
80.25999,
42.349999
],
[
80.18015,
42.920068
],
[
80.866206,
43.180362
],
[
79.966106,
44.917517
],
[
81.947071,
45.317027
],
[
82.458926,
45.53965
],
[
83.180484,
47.330031
],
[
85.16429,
47.000956
],
[
85.720484,
47.452969
],
[
85.768233,
48.455751
],
[
86.598776,
48.549182
],
[
87.35997,
49.214981
],
[
87.751264,
49.297198
],
[
88.013832,
48.599463
],
[
88.854298,
48.069082
],
[
90.280826,
47.693549
],
[
90.970809,
46.888146
],
[
90.585768,
45.719716
],
[
90.94554,
45.286073
],
[
92.133891,
45.115076
],
[
93.480734,
44.975472
],
[
94.688929,
44.352332
],
[
95.306875,
44.241331
],
[
95.762455,
43.319449
],
[
96.349396,
42.725635
],
[
97.451757,
42.74889
],
[
99.515817,
42.524691
],
[
100.845866,
42.663804
],
[
101.83304,
42.514873
],
[
103.312278,
41.907468
],
[
104.522282,
41.908347
],
[
104.964994,
41.59741
],
[
106.129316,
42.134328
],
[
107.744773,
42.481516
],
[
109.243596,
42.519446
],
[
110.412103,
42.871234
],
[
111.129682,
43.406834
],
[
111.829588,
43.743118
],
[
111.667737,
44.073176
],
[
111.348377,
44.457442
],
[
111.873306,
45.102079
],
[
112.436062,
45.011646
],
[
113.463907,
44.808893
],
[
114.460332,
45.339817
],
[
115.985096,
45.727235
],
[
116.717868,
46.388202
],
[
117.421701,
46.672733
],
[
118.874326,
46.805412
],
[
119.66327,
46.69268
],
[
119.772824,
47.048059
],
[
118.866574,
47.74706
],
[
118.064143,
48.06673
],
[
117.295507,
47.697709
],
[
116.308953,
47.85341
],
[
115.742837,
47.726545
],
[
115.485282,
48.135383
],
[
116.191802,
49.134598
],
[
116.678801,
49.888531
],
[
117.879244,
49.510983
],
[
119.288461,
50.142883
],
[
119.279366,
50.582908
],
[
120.18205,
51.643566
],
[
120.738191,
51.964115
],
[
120.725789,
52.516226
],
[
120.177089,
52.753886
],
[
121.003085,
53.251401
],
[
122.245748,
53.431726
],
[
123.571507,
53.458804
],
[
125.068211,
53.161045
],
[
125.946349,
52.792799
],
[
126.564399,
51.784255
],
[
126.939157,
51.353894
],
[
127.287456,
50.739797
],
[
127.657407,
49.76027
]
]
]
]
}
},
{
type: 'Feature',
id: 'CIV',
properties: {
name: 'Ivory Coast'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-2.856125,
4.994476
],
[
-3.311084,
4.984296
],
[
-4.00882,
5.179813
],
[
-4.649917,
5.168264
],
[
-5.834496,
4.993701
],
[
-6.528769,
4.705088
],
[
-7.518941,
4.338288
],
[
-7.712159,
4.364566
],
[
-7.635368,
5.188159
],
[
-7.539715,
5.313345
],
[
-7.570153,
5.707352
],
[
-7.993693,
6.12619
],
[
-8.311348,
6.193033
],
[
-8.60288,
6.467564
],
[
-8.385452,
6.911801
],
[
-8.485446,
7.395208
],
[
-8.439298,
7.686043
],
[
-8.280703,
7.68718
],
[
-8.221792,
8.123329
],
[
-8.299049,
8.316444
],
[
-8.203499,
8.455453
],
[
-7.8321,
8.575704
],
[
-8.079114,
9.376224
],
[
-8.309616,
9.789532
],
[
-8.229337,
10.12902
],
[
-8.029944,
10.206535
],
[
-7.89959,
10.297382
],
[
-7.622759,
10.147236
],
[
-6.850507,
10.138994
],
[
-6.666461,
10.430811
],
[
-6.493965,
10.411303
],
[
-6.205223,
10.524061
],
[
-6.050452,
10.096361
],
[
-5.816926,
10.222555
],
[
-5.404342,
10.370737
],
[
-4.954653,
10.152714
],
[
-4.779884,
9.821985
],
[
-4.330247,
9.610835
],
[
-3.980449,
9.862344
],
[
-3.511899,
9.900326
],
[
-2.827496,
9.642461
],
[
-2.56219,
8.219628
],
[
-2.983585,
7.379705
],
[
-3.24437,
6.250472
],
[
-2.810701,
5.389051
],
[
-2.856125,
4.994476
]
]
]
}
},
{
type: 'Feature',
id: 'CMR',
properties: {
name: 'Cameroon'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
13.075822,
2.267097
],
[
12.951334,
2.321616
],
[
12.35938,
2.192812
],
[
11.751665,
2.326758
],
[
11.276449,
2.261051
],
[
9.649158,
2.283866
],
[
9.795196,
3.073404
],
[
9.404367,
3.734527
],
[
8.948116,
3.904129
],
[
8.744924,
4.352215
],
[
8.488816,
4.495617
],
[
8.500288,
4.771983
],
[
8.757533,
5.479666
],
[
9.233163,
6.444491
],
[
9.522706,
6.453482
],
[
10.118277,
7.03877
],
[
10.497375,
7.055358
],
[
11.058788,
6.644427
],
[
11.745774,
6.981383
],
[
11.839309,
7.397042
],
[
12.063946,
7.799808
],
[
12.218872,
8.305824
],
[
12.753672,
8.717763
],
[
12.955468,
9.417772
],
[
13.1676,
9.640626
],
[
13.308676,
10.160362
],
[
13.57295,
10.798566
],
[
14.415379,
11.572369
],
[
14.468192,
11.904752
],
[
14.577178,
12.085361
],
[
14.181336,
12.483657
],
[
14.213531,
12.802035
],
[
14.495787,
12.859396
],
[
14.893386,
12.219048
],
[
14.960152,
11.555574
],
[
14.923565,
10.891325
],
[
15.467873,
9.982337
],
[
14.909354,
9.992129
],
[
14.627201,
9.920919
],
[
14.171466,
10.021378
],
[
13.954218,
9.549495
],
[
14.544467,
8.965861
],
[
14.979996,
8.796104
],
[
15.120866,
8.38215
],
[
15.436092,
7.692812
],
[
15.27946,
7.421925
],
[
14.776545,
6.408498
],
[
14.53656,
6.226959
],
[
14.459407,
5.451761
],
[
14.558936,
5.030598
],
[
14.478372,
4.732605
],
[
14.950953,
4.210389
],
[
15.03622,
3.851367
],
[
15.405396,
3.335301
],
[
15.862732,
3.013537
],
[
15.907381,
2.557389
],
[
16.012852,
2.26764
],
[
15.940919,
1.727673
],
[
15.146342,
1.964015
],
[
14.337813,
2.227875
],
[
13.075822,
2.267097
]
]
]
}
},
{
type: 'Feature',
id: 'COD',
properties: {
name: 'Democratic Republic of the Congo'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
30.83386,
3.509166
],
[
30.773347,
2.339883
],
[
31.174149,
2.204465
],
[
30.85267,
1.849396
],
[
30.468508,
1.583805
],
[
30.086154,
1.062313
],
[
29.875779,
0.59738
],
[
29.819503,
-0.20531
],
[
29.587838,
-0.587406
],
[
29.579466,
-1.341313
],
[
29.291887,
-1.620056
],
[
29.254835,
-2.21511
],
[
29.117479,
-2.292211
],
[
29.024926,
-2.839258
],
[
29.276384,
-3.293907
],
[
29.339998,
-4.499983
],
[
29.519987,
-5.419979
],
[
29.419993,
-5.939999
],
[
29.620032,
-6.520015
],
[
30.199997,
-7.079981
],
[
30.740015,
-8.340007
],
[
30.346086,
-8.238257
],
[
29.002912,
-8.407032
],
[
28.734867,
-8.526559
],
[
28.449871,
-9.164918
],
[
28.673682,
-9.605925
],
[
28.49607,
-10.789884
],
[
28.372253,
-11.793647
],
[
28.642417,
-11.971569
],
[
29.341548,
-12.360744
],
[
29.616001,
-12.178895
],
[
29.699614,
-13.257227
],
[
28.934286,
-13.248958
],
[
28.523562,
-12.698604
],
[
28.155109,
-12.272481
],
[
27.388799,
-12.132747
],
[
27.16442,
-11.608748
],
[
26.553088,
-11.92444
],
[
25.75231,
-11.784965
],
[
25.418118,
-11.330936
],
[
24.78317,
-11.238694
],
[
24.314516,
-11.262826
],
[
24.257155,
-10.951993
],
[
23.912215,
-10.926826
],
[
23.456791,
-10.867863
],
[
22.837345,
-11.017622
],
[
22.402798,
-10.993075
],
[
22.155268,
-11.084801
],
[
22.208753,
-9.894796
],
[
21.875182,
-9.523708
],
[
21.801801,
-8.908707
],
[
21.949131,
-8.305901
],
[
21.746456,
-7.920085
],
[
21.728111,
-7.290872
],
[
20.514748,
-7.299606
],
[
20.601823,
-6.939318
],
[
20.091622,
-6.94309
],
[
20.037723,
-7.116361
],
[
19.417502,
-7.155429
],
[
19.166613,
-7.738184
],
[
19.016752,
-7.988246
],
[
18.464176,
-7.847014
],
[
18.134222,
-7.987678
],
[
17.47297,
-8.068551
],
[
17.089996,
-7.545689
],
[
16.860191,
-7.222298
],
[
16.57318,
-6.622645
],
[
16.326528,
-5.87747
],
[
13.375597,
-5.864241
],
[
13.024869,
-5.984389
],
[
12.735171,
-5.965682
],
[
12.322432,
-6.100092
],
[
12.182337,
-5.789931
],
[
12.436688,
-5.684304
],
[
12.468004,
-5.248362
],
[
12.631612,
-4.991271
],
[
12.995517,
-4.781103
],
[
13.25824,
-4.882957
],
[
13.600235,
-4.500138
],
[
14.144956,
-4.510009
],
[
14.209035,
-4.793092
],
[
14.582604,
-4.970239
],
[
15.170992,
-4.343507
],
[
15.75354,
-3.855165
],
[
16.00629,
-3.535133
],
[
15.972803,
-2.712392
],
[
16.407092,
-1.740927
],
[
16.865307,
-1.225816
],
[
17.523716,
-0.74383
],
[
17.638645,
-0.424832
],
[
17.663553,
-0.058084
],
[
17.82654,
0.288923
],
[
17.774192,
0.855659
],
[
17.898835,
1.741832
],
[
18.094276,
2.365722
],
[
18.393792,
2.900443
],
[
18.453065,
3.504386
],
[
18.542982,
4.201785
],
[
18.932312,
4.709506
],
[
19.467784,
5.031528
],
[
20.290679,
4.691678
],
[
20.927591,
4.322786
],
[
21.659123,
4.224342
],
[
22.405124,
4.02916
],
[
22.704124,
4.633051
],
[
22.84148,
4.710126
],
[
23.297214,
4.609693
],
[
24.410531,
5.108784
],
[
24.805029,
4.897247
],
[
25.128833,
4.927245
],
[
25.278798,
5.170408
],
[
25.650455,
5.256088
],
[
26.402761,
5.150875
],
[
27.044065,
5.127853
],
[
27.374226,
5.233944
],
[
27.979977,
4.408413
],
[
28.428994,
4.287155
],
[
28.696678,
4.455077
],
[
29.159078,
4.389267
],
[
29.715995,
4.600805
],
[
29.9535,
4.173699
],
[
30.83386,
3.509166
]
]
]
}
},
{
type: 'Feature',
id: 'COG',
properties: {
name: 'Republic of the Congo'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
12.995517,
-4.781103
],
[
12.62076,
-4.438023
],
[
12.318608,
-4.60623
],
[
11.914963,
-5.037987
],
[
11.093773,
-3.978827
],
[
11.855122,
-3.426871
],
[
11.478039,
-2.765619
],
[
11.820964,
-2.514161
],
[
12.495703,
-2.391688
],
[
12.575284,
-1.948511
],
[
13.109619,
-2.42874
],
[
13.992407,
-2.470805
],
[
14.29921,
-1.998276
],
[
14.425456,
-1.333407
],
[
14.316418,
-0.552627
],
[
13.843321,
0.038758
],
[
14.276266,
1.19693
],
[
14.026669,
1.395677
],
[
13.282631,
1.314184
],
[
13.003114,
1.830896
],
[
13.075822,
2.267097
],
[
14.337813,
2.227875
],
[
15.146342,
1.964015
],
[
15.940919,
1.727673
],
[
16.012852,
2.26764
],
[
16.537058,
3.198255
],
[
17.133042,
3.728197
],
[
17.8099,
3.560196
],
[
18.453065,
3.504386
],
[
18.393792,
2.900443
],
[
18.094276,
2.365722
],
[
17.898835,
1.741832
],
[
17.774192,
0.855659
],
[
17.82654,
0.288923
],
[
17.663553,
-0.058084
],
[
17.638645,
-0.424832
],
[
17.523716,
-0.74383
],
[
16.865307,
-1.225816
],
[
16.407092,
-1.740927
],
[
15.972803,
-2.712392
],
[
16.00629,
-3.535133
],
[
15.75354,
-3.855165
],
[
15.170992,
-4.343507
],
[
14.582604,
-4.970239
],
[
14.209035,
-4.793092
],
[
14.144956,
-4.510009
],
[
13.600235,
-4.500138
],
[
13.25824,
-4.882957
],
[
12.995517,
-4.781103
]
]
]
}
},
{
type: 'Feature',
id: 'COL',
properties: {
name: 'Colombia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-75.373223,
-0.152032
],
[
-75.801466,
0.084801
],
[
-76.292314,
0.416047
],
[
-76.57638,
0.256936
],
[
-77.424984,
0.395687
],
[
-77.668613,
0.825893
],
[
-77.855061,
0.809925
],
[
-78.855259,
1.380924
],
[
-78.990935,
1.69137
],
[
-78.617831,
1.766404
],
[
-78.662118,
2.267355
],
[
-78.42761,
2.629556
],
[
-77.931543,
2.696606
],
[
-77.510431,
3.325017
],
[
-77.12769,
3.849636
],
[
-77.496272,
4.087606
],
[
-77.307601,
4.667984
],
[
-77.533221,
5.582812
],
[
-77.318815,
5.845354
],
[
-77.476661,
6.691116
],
[
-77.881571,
7.223771
],
[
-77.753414,
7.70984
],
[
-77.431108,
7.638061
],
[
-77.242566,
7.935278
],
[
-77.474723,
8.524286
],
[
-77.353361,
8.670505
],
[
-76.836674,
8.638749
],
[
-76.086384,
9.336821
],
[
-75.6746,
9.443248
],
[
-75.664704,
9.774003
],
[
-75.480426,
10.61899
],
[
-74.906895,
11.083045
],
[
-74.276753,
11.102036
],
[
-74.197223,
11.310473
],
[
-73.414764,
11.227015
],
[
-72.627835,
11.731972
],
[
-72.238195,
11.95555
],
[
-71.75409,
12.437303
],
[
-71.399822,
12.376041
],
[
-71.137461,
12.112982
],
[
-71.331584,
11.776284
],
[
-71.973922,
11.608672
],
[
-72.227575,
11.108702
],
[
-72.614658,
10.821975
],
[
-72.905286,
10.450344
],
[
-73.027604,
9.73677
],
[
-73.304952,
9.152
],
[
-72.78873,
9.085027
],
[
-72.660495,
8.625288
],
[
-72.439862,
8.405275
],
[
-72.360901,
8.002638
],
[
-72.479679,
7.632506
],
[
-72.444487,
7.423785
],
[
-72.198352,
7.340431
],
[
-71.960176,
6.991615
],
[
-70.674234,
7.087785
],
[
-70.093313,
6.960376
],
[
-69.38948,
6.099861
],
[
-68.985319,
6.206805
],
[
-68.265052,
6.153268
],
[
-67.695087,
6.267318
],
[
-67.34144,
6.095468
],
[
-67.521532,
5.55687
],
[
-67.744697,
5.221129
],
[
-67.823012,
4.503937
],
[
-67.621836,
3.839482
],
[
-67.337564,
3.542342
],
[
-67.303173,
3.318454
],
[
-67.809938,
2.820655
],
[
-67.447092,
2.600281
],
[
-67.181294,
2.250638
],
[
-66.876326,
1.253361
],
[
-67.065048,
1.130112
],
[
-67.259998,
1.719999
],
[
-67.53781,
2.037163
],
[
-67.868565,
1.692455
],
[
-69.816973,
1.714805
],
[
-69.804597,
1.089081
],
[
-69.218638,
0.985677
],
[
-69.252434,
0.602651
],
[
-69.452396,
0.706159
],
[
-70.015566,
0.541414
],
[
-70.020656,
-0.185156
],
[
-69.577065,
-0.549992
],
[
-69.420486,
-1.122619
],
[
-69.444102,
-1.556287
],
[
-69.893635,
-4.298187
],
[
-70.394044,
-3.766591
],
[
-70.692682,
-3.742872
],
[
-70.047709,
-2.725156
],
[
-70.813476,
-2.256865
],
[
-71.413646,
-2.342802
],
[
-71.774761,
-2.16979
],
[
-72.325787,
-2.434218
],
[
-73.070392,
-2.308954
],
[
-73.659504,
-1.260491
],
[
-74.122395,
-1.002833
],
[
-74.441601,
-0.53082
],
[
-75.106625,
-0.057205
],
[
-75.373223,
-0.152032
]
]
]
}
},
{
type: 'Feature',
id: 'CRI',
properties: {
name: 'Costa Rica'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-82.965783,
8.225028
],
[
-83.508437,
8.446927
],
[
-83.711474,
8.656836
],
[
-83.596313,
8.830443
],
[
-83.632642,
9.051386
],
[
-83.909886,
9.290803
],
[
-84.303402,
9.487354
],
[
-84.647644,
9.615537
],
[
-84.713351,
9.908052
],
[
-84.97566,
10.086723
],
[
-84.911375,
9.795992
],
[
-85.110923,
9.55704
],
[
-85.339488,
9.834542
],
[
-85.660787,
9.933347
],
[
-85.797445,
10.134886
],
[
-85.791709,
10.439337
],
[
-85.659314,
10.754331
],
[
-85.941725,
10.895278
],
[
-85.71254,
11.088445
],
[
-85.561852,
11.217119
],
[
-84.903003,
10.952303
],
[
-84.673069,
11.082657
],
[
-84.355931,
10.999226
],
[
-84.190179,
10.79345
],
[
-83.895054,
10.726839
],
[
-83.655612,
10.938764
],
[
-83.40232,
10.395438
],
[
-83.015677,
9.992982
],
[
-82.546196,
9.566135
],
[
-82.932891,
9.476812
],
[
-82.927155,
9.07433
],
[
-82.719183,
8.925709
],
[
-82.868657,
8.807266
],
[
-82.829771,
8.626295
],
[
-82.913176,
8.423517
],
[
-82.965783,
8.225028
]
]
]
}
},
{
type: 'Feature',
id: 'CUB',
properties: {
name: 'Cuba'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-82.268151,
23.188611
],
[
-81.404457,
23.117271
],
[
-80.618769,
23.10598
],
[
-79.679524,
22.765303
],
[
-79.281486,
22.399202
],
[
-78.347434,
22.512166
],
[
-77.993296,
22.277194
],
[
-77.146422,
21.657851
],
[
-76.523825,
21.20682
],
[
-76.19462,
21.220565
],
[
-75.598222,
21.016624
],
[
-75.67106,
20.735091
],
[
-74.933896,
20.693905
],
[
-74.178025,
20.284628
],
[
-74.296648,
20.050379
],
[
-74.961595,
19.923435
],
[
-75.63468,
19.873774
],
[
-76.323656,
19.952891
],
[
-77.755481,
19.855481
],
[
-77.085108,
20.413354
],
[
-77.492655,
20.673105
],
[
-78.137292,
20.739949
],
[
-78.482827,
21.028613
],
[
-78.719867,
21.598114
],
[
-79.285,
21.559175
],
[
-80.217475,
21.827324
],
[
-80.517535,
22.037079
],
[
-81.820943,
22.192057
],
[
-82.169992,
22.387109
],
[
-81.795002,
22.636965
],
[
-82.775898,
22.68815
],
[
-83.494459,
22.168518
],
[
-83.9088,
22.154565
],
[
-84.052151,
21.910575
],
[
-84.54703,
21.801228
],
[
-84.974911,
21.896028
],
[
-84.447062,
22.20495
],
[
-84.230357,
22.565755
],
[
-83.77824,
22.788118
],
[
-83.267548,
22.983042
],
[
-82.510436,
23.078747
],
[
-82.268151,
23.188611
]
]
]
}
},
{
type: 'Feature',
id: '-99',
properties: {
name: 'Northern Cyprus'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
32.73178,
35.140026
],
[
32.802474,
35.145504
],
[
32.946961,
35.386703
],
[
33.667227,
35.373216
],
[
34.576474,
35.671596
],
[
33.900804,
35.245756
],
[
33.973617,
35.058506
],
[
33.86644,
35.093595
],
[
33.675392,
35.017863
],
[
33.525685,
35.038688
],
[
33.475817,
35.000345
],
[
33.455922,
35.101424
],
[
33.383833,
35.162712
],
[
33.190977,
35.173125
],
[
32.919572,
35.087833
],
[
32.73178,
35.140026
]
]
]
}
},
{
type: 'Feature',
id: 'CYP',
properties: {
name: 'Cyprus'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
33.973617,
35.058506
],
[
34.004881,
34.978098
],
[
32.979827,
34.571869
],
[
32.490296,
34.701655
],
[
32.256667,
35.103232
],
[
32.73178,
35.140026
],
[
32.919572,
35.087833
],
[
33.190977,
35.173125
],
[
33.383833,
35.162712
],
[
33.455922,
35.101424
],
[
33.475817,
35.000345
],
[
33.525685,
35.038688
],
[
33.675392,
35.017863
],
[
33.86644,
35.093595
],
[
33.973617,
35.058506
]
]
]
}
},
{
type: 'Feature',
id: 'CZE',
properties: {
name: 'Czech Republic'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
16.960288,
48.596982
],
[
16.499283,
48.785808
],
[
16.029647,
48.733899
],
[
15.253416,
49.039074
],
[
14.901447,
48.964402
],
[
14.338898,
48.555305
],
[
13.595946,
48.877172
],
[
13.031329,
49.307068
],
[
12.521024,
49.547415
],
[
12.415191,
49.969121
],
[
12.240111,
50.266338
],
[
12.966837,
50.484076
],
[
13.338132,
50.733234
],
[
14.056228,
50.926918
],
[
14.307013,
51.117268
],
[
14.570718,
51.002339
],
[
15.016996,
51.106674
],
[
15.490972,
50.78473
],
[
16.238627,
50.697733
],
[
16.176253,
50.422607
],
[
16.719476,
50.215747
],
[
16.868769,
50.473974
],
[
17.554567,
50.362146
],
[
17.649445,
50.049038
],
[
18.392914,
49.988629
],
[
18.853144,
49.49623
],
[
18.554971,
49.495015
],
[
18.399994,
49.315001
],
[
18.170498,
49.271515
],
[
18.104973,
49.043983
],
[
17.913512,
48.996493
],
[
17.886485,
48.903475
],
[
17.545007,
48.800019
],
[
17.101985,
48.816969
],
[
16.960288,
48.596982
]
]
]
}
},
{
type: 'Feature',
id: 'DEU',
properties: {
name: 'Germany'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
9.921906,
54.983104
],
[
9.93958,
54.596642
],
[
10.950112,
54.363607
],
[
10.939467,
54.008693
],
[
11.956252,
54.196486
],
[
12.51844,
54.470371
],
[
13.647467,
54.075511
],
[
14.119686,
53.757029
],
[
14.353315,
53.248171
],
[
14.074521,
52.981263
],
[
14.4376,
52.62485
],
[
14.685026,
52.089947
],
[
14.607098,
51.745188
],
[
15.016996,
51.106674
],
[
14.570718,
51.002339
],
[
14.307013,
51.117268
],
[
14.056228,
50.926918
],
[
13.338132,
50.733234
],
[
12.966837,
50.484076
],
[
12.240111,
50.266338
],
[
12.415191,
49.969121
],
[
12.521024,
49.547415
],
[
13.031329,
49.307068
],
[
13.595946,
48.877172
],
[
13.243357,
48.416115
],
[
12.884103,
48.289146
],
[
13.025851,
47.637584
],
[
12.932627,
47.467646
],
[
12.62076,
47.672388
],
[
12.141357,
47.703083
],
[
11.426414,
47.523766
],
[
10.544504,
47.566399
],
[
10.402084,
47.302488
],
[
9.896068,
47.580197
],
[
9.594226,
47.525058
],
[
8.522612,
47.830828
],
[
8.317301,
47.61358
],
[
7.466759,
47.620582
],
[
7.593676,
48.333019
],
[
8.099279,
49.017784
],
[
6.65823,
49.201958
],
[
6.18632,
49.463803
],
[
6.242751,
49.902226
],
[
6.043073,
50.128052
],
[
6.156658,
50.803721
],
[
5.988658,
51.851616
],
[
6.589397,
51.852029
],
[
6.84287,
52.22844
],
[
7.092053,
53.144043
],
[
6.90514,
53.482162
],
[
7.100425,
53.693932
],
[
7.936239,
53.748296
],
[
8.121706,
53.527792
],
[
8.800734,
54.020786
],
[
8.572118,
54.395646
],
[
8.526229,
54.962744
],
[
9.282049,
54.830865
],
[
9.921906,
54.983104
]
]
]
}
},
{
type: 'Feature',
id: 'DJI',
properties: {
name: 'Djibouti'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
43.081226,
12.699639
],
[
43.317852,
12.390148
],
[
43.286381,
11.974928
],
[
42.715874,
11.735641
],
[
43.145305,
11.46204
],
[
42.776852,
10.926879
],
[
42.55493,
11.10511
],
[
42.31414,
11.0342
],
[
41.75557,
11.05091
],
[
41.73959,
11.35511
],
[
41.66176,
11.6312
],
[
42,
12.1
],
[
42.35156,
12.54223
],
[
42.779642,
12.455416
],
[
43.081226,
12.699639
]
]
]
}
},
{
type: 'Feature',
id: 'DNK',
properties: {
name: 'Denmark'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
12.690006,
55.609991
],
[
12.089991,
54.800015
],
[
11.043543,
55.364864
],
[
10.903914,
55.779955
],
[
12.370904,
56.111407
],
[
12.690006,
55.609991
]
]
],
[
[
[
10.912182,
56.458621
],
[
10.667804,
56.081383
],
[
10.369993,
56.190007
],
[
9.649985,
55.469999
],
[
9.921906,
54.983104
],
[
9.282049,
54.830865
],
[
8.526229,
54.962744
],
[
8.120311,
55.517723
],
[
8.089977,
56.540012
],
[
8.256582,
56.809969
],
[
8.543438,
57.110003
],
[
9.424469,
57.172066
],
[
9.775559,
57.447941
],
[
10.580006,
57.730017
],
[
10.546106,
57.215733
],
[
10.25,
56.890016
],
[
10.369993,
56.609982
],
[
10.912182,
56.458621
]
]
]
]
}
},
{
type: 'Feature',
id: 'DOM',
properties: {
name: 'Dominican Republic'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-71.712361,
19.714456
],
[
-71.587304,
19.884911
],
[
-70.806706,
19.880286
],
[
-70.214365,
19.622885
],
[
-69.950815,
19.648
],
[
-69.76925,
19.293267
],
[
-69.222126,
19.313214
],
[
-69.254346,
19.015196
],
[
-68.809412,
18.979074
],
[
-68.317943,
18.612198
],
[
-68.689316,
18.205142
],
[
-69.164946,
18.422648
],
[
-69.623988,
18.380713
],
[
-69.952934,
18.428307
],
[
-70.133233,
18.245915
],
[
-70.517137,
18.184291
],
[
-70.669298,
18.426886
],
[
-70.99995,
18.283329
],
[
-71.40021,
17.598564
],
[
-71.657662,
17.757573
],
[
-71.708305,
18.044997
],
[
-71.687738,
18.31666
],
[
-71.945112,
18.6169
],
[
-71.701303,
18.785417
],
[
-71.624873,
19.169838
],
[
-71.712361,
19.714456
]
]
]
}
},
{
type: 'Feature',
id: 'DZA',
properties: {
name: 'Algeria'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
11.999506,
23.471668
],
[
8.572893,
21.565661
],
[
5.677566,
19.601207
],
[
4.267419,
19.155265
],
[
3.158133,
19.057364
],
[
3.146661,
19.693579
],
[
2.683588,
19.85623
],
[
2.060991,
20.142233
],
[
1.823228,
20.610809
],
[
-1.550055,
22.792666
],
[
-4.923337,
24.974574
],
[
-8.6844,
27.395744
],
[
-8.665124,
27.589479
],
[
-8.66559,
27.656426
],
[
-8.674116,
28.841289
],
[
-7.059228,
29.579228
],
[
-6.060632,
29.7317
],
[
-5.242129,
30.000443
],
[
-4.859646,
30.501188
],
[
-3.690441,
30.896952
],
[
-3.647498,
31.637294
],
[
-3.06898,
31.724498
],
[
-2.616605,
32.094346
],
[
-1.307899,
32.262889
],
[
-1.124551,
32.651522
],
[
-1.388049,
32.864015
],
[
-1.733455,
33.919713
],
[
-1.792986,
34.527919
],
[
-2.169914,
35.168396
],
[
-1.208603,
35.714849
],
[
-0.127454,
35.888662
],
[
0.503877,
36.301273
],
[
1.466919,
36.605647
],
[
3.161699,
36.783905
],
[
4.815758,
36.865037
],
[
5.32012,
36.716519
],
[
6.26182,
37.110655
],
[
7.330385,
37.118381
],
[
7.737078,
36.885708
],
[
8.420964,
36.946427
],
[
8.217824,
36.433177
],
[
8.376368,
35.479876
],
[
8.140981,
34.655146
],
[
7.524482,
34.097376
],
[
7.612642,
33.344115
],
[
8.430473,
32.748337
],
[
8.439103,
32.506285
],
[
9.055603,
32.102692
],
[
9.48214,
30.307556
],
[
9.805634,
29.424638
],
[
9.859998,
28.95999
],
[
9.683885,
28.144174
],
[
9.756128,
27.688259
],
[
9.629056,
27.140953
],
[
9.716286,
26.512206
],
[
9.319411,
26.094325
],
[
9.910693,
25.365455
],
[
9.948261,
24.936954
],
[
10.303847,
24.379313
],
[
10.771364,
24.562532
],
[
11.560669,
24.097909
],
[
11.999506,
23.471668
]
]
]
}
},
{
type: 'Feature',
id: 'ECU',
properties: {
name: 'Ecuador'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-80.302561,
-3.404856
],
[
-79.770293,
-2.657512
],
[
-79.986559,
-2.220794
],
[
-80.368784,
-2.685159
],
[
-80.967765,
-2.246943
],
[
-80.764806,
-1.965048
],
[
-80.933659,
-1.057455
],
[
-80.58337,
-0.906663
],
[
-80.399325,
-0.283703
],
[
-80.020898,
0.36034
],
[
-80.09061,
0.768429
],
[
-79.542762,
0.982938
],
[
-78.855259,
1.380924
],
[
-77.855061,
0.809925
],
[
-77.668613,
0.825893
],
[
-77.424984,
0.395687
],
[
-76.57638,
0.256936
],
[
-76.292314,
0.416047
],
[
-75.801466,
0.084801
],
[
-75.373223,
-0.152032
],
[
-75.233723,
-0.911417
],
[
-75.544996,
-1.56161
],
[
-76.635394,
-2.608678
],
[
-77.837905,
-3.003021
],
[
-78.450684,
-3.873097
],
[
-78.639897,
-4.547784
],
[
-79.205289,
-4.959129
],
[
-79.624979,
-4.454198
],
[
-80.028908,
-4.346091
],
[
-80.442242,
-4.425724
],
[
-80.469295,
-4.059287
],
[
-80.184015,
-3.821162
],
[
-80.302561,
-3.404856
]
]
]
}
},
{
type: 'Feature',
id: 'EGY',
properties: {
name: 'Egypt'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
34.9226,
29.50133
],
[
34.64174,
29.09942
],
[
34.42655,
28.34399
],
[
34.15451,
27.8233
],
[
33.92136,
27.6487
],
[
33.58811,
27.97136
],
[
33.13676,
28.41765
],
[
32.42323,
29.85108
],
[
32.32046,
29.76043
],
[
32.73482,
28.70523
],
[
33.34876,
27.69989
],
[
34.10455,
26.14227
],
[
34.47387,
25.59856
],
[
34.79507,
25.03375
],
[
35.69241,
23.92671
],
[
35.49372,
23.75237
],
[
35.52598,
23.10244
],
[
36.69069,
22.20485
],
[
36.86623,
22
],
[
32.9,
22
],
[
29.02,
22
],
[
25,
22
],
[
25,
25.6825
],
[
25,
29.238655
],
[
24.70007,
30.04419
],
[
24.95762,
30.6616
],
[
24.80287,
31.08929
],
[
25.16482,
31.56915
],
[
26.49533,
31.58568
],
[
27.45762,
31.32126
],
[
28.45048,
31.02577
],
[
28.91353,
30.87005
],
[
29.68342,
31.18686
],
[
30.09503,
31.4734
],
[
30.97693,
31.55586
],
[
31.68796,
31.4296
],
[
31.96041,
30.9336
],
[
32.19247,
31.26034
],
[
32.99392,
31.02407
],
[
33.7734,
30.96746
],
[
34.26544,
31.21936
],
[
34.9226,
29.50133
]
]
]
}
},
{
type: 'Feature',
id: 'ERI',
properties: {
name: 'Eritrea'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
42.35156,
12.54223
],
[
42.00975,
12.86582
],
[
41.59856,
13.45209
],
[
41.155194,
13.77332
],
[
40.8966,
14.11864
],
[
40.026219,
14.519579
],
[
39.34061,
14.53155
],
[
39.0994,
14.74064
],
[
38.51295,
14.50547
],
[
37.90607,
14.95943
],
[
37.59377,
14.2131
],
[
36.42951,
14.42211
],
[
36.323189,
14.822481
],
[
36.75386,
16.291874
],
[
36.85253,
16.95655
],
[
37.16747,
17.26314
],
[
37.904,
17.42754
],
[
38.41009,
17.998307
],
[
38.990623,
16.840626
],
[
39.26611,
15.922723
],
[
39.814294,
15.435647
],
[
41.179275,
14.49108
],
[
41.734952,
13.921037
],
[
42.276831,
13.343992
],
[
42.589576,
13.000421
],
[
43.081226,
12.699639
],
[
42.779642,
12.455416
],
[
42.35156,
12.54223
]
]
]
}
},
{
type: 'Feature',
id: 'ESP',
properties: {
name: 'Spain'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-9.034818,
41.880571
],
[
-8.984433,
42.592775
],
[
-9.392884,
43.026625
],
[
-7.97819,
43.748338
],
[
-6.754492,
43.567909
],
[
-5.411886,
43.57424
],
[
-4.347843,
43.403449
],
[
-3.517532,
43.455901
],
[
-1.901351,
43.422802
],
[
-1.502771,
43.034014
],
[
0.338047,
42.579546
],
[
0.701591,
42.795734
],
[
1.826793,
42.343385
],
[
2.985999,
42.473015
],
[
3.039484,
41.89212
],
[
2.091842,
41.226089
],
[
0.810525,
41.014732
],
[
0.721331,
40.678318
],
[
0.106692,
40.123934
],
[
-0.278711,
39.309978
],
[
0.111291,
38.738514
],
[
-0.467124,
38.292366
],
[
-0.683389,
37.642354
],
[
-1.438382,
37.443064
],
[
-2.146453,
36.674144
],
[
-3.415781,
36.6589
],
[
-4.368901,
36.677839
],
[
-4.995219,
36.324708
],
[
-5.37716,
35.94685
],
[
-5.866432,
36.029817
],
[
-6.236694,
36.367677
],
[
-6.520191,
36.942913
],
[
-7.453726,
37.097788
],
[
-7.537105,
37.428904
],
[
-7.166508,
37.803894
],
[
-7.029281,
38.075764
],
[
-7.374092,
38.373059
],
[
-7.098037,
39.030073
],
[
-7.498632,
39.629571
],
[
-7.066592,
39.711892
],
[
-7.026413,
40.184524
],
[
-6.86402,
40.330872
],
[
-6.851127,
41.111083
],
[
-6.389088,
41.381815
],
[
-6.668606,
41.883387
],
[
-7.251309,
41.918346
],
[
-7.422513,
41.792075
],
[
-8.013175,
41.790886
],
[
-8.263857,
42.280469
],
[
-8.671946,
42.134689
],
[
-9.034818,
41.880571
]
]
]
}
},
{
type: 'Feature',
id: 'EST',
properties: {
name: 'Estonia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
24.312863,
57.793424
],
[
24.428928,
58.383413
],
[
24.061198,
58.257375
],
[
23.42656,
58.612753
],
[
23.339795,
59.18724
],
[
24.604214,
59.465854
],
[
25.864189,
59.61109
],
[
26.949136,
59.445803
],
[
27.981114,
59.475388
],
[
28.131699,
59.300825
],
[
27.420166,
58.724581
],
[
27.716686,
57.791899
],
[
27.288185,
57.474528
],
[
26.463532,
57.476389
],
[
25.60281,
57.847529
],
[
25.164594,
57.970157
],
[
24.312863,
57.793424
]
]
]
}
},
{
type: 'Feature',
id: 'ETH',
properties: {
name: 'Ethiopia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
37.90607,
14.95943
],
[
38.51295,
14.50547
],
[
39.0994,
14.74064
],
[
39.34061,
14.53155
],
[
40.02625,
14.51959
],
[
40.8966,
14.11864
],
[
41.1552,
13.77333
],
[
41.59856,
13.45209
],
[
42.00975,
12.86582
],
[
42.35156,
12.54223
],
[
42,
12.1
],
[
41.66176,
11.6312
],
[
41.73959,
11.35511
],
[
41.75557,
11.05091
],
[
42.31414,
11.0342
],
[
42.55493,
11.10511
],
[
42.776852,
10.926879
],
[
42.55876,
10.57258
],
[
42.92812,
10.02194
],
[
43.29699,
9.54048
],
[
43.67875,
9.18358
],
[
46.94834,
7.99688
],
[
47.78942,
8.003
],
[
44.9636,
5.00162
],
[
43.66087,
4.95755
],
[
42.76967,
4.25259
],
[
42.12861,
4.23413
],
[
41.855083,
3.918912
],
[
41.1718,
3.91909
],
[
40.76848,
4.25702
],
[
39.85494,
3.83879
],
[
39.559384,
3.42206
],
[
38.89251,
3.50074
],
[
38.67114,
3.61607
],
[
38.43697,
3.58851
],
[
38.120915,
3.598605
],
[
36.855093,
4.447864
],
[
36.159079,
4.447864
],
[
35.817448,
4.776966
],
[
35.817448,
5.338232
],
[
35.298007,
5.506
],
[
34.70702,
6.59422
],
[
34.25032,
6.82607
],
[
34.0751,
7.22595
],
[
33.56829,
7.71334
],
[
32.95418,
7.78497
],
[
33.2948,
8.35458
],
[
33.8255,
8.37916
],
[
33.97498,
8.68456
],
[
33.96162,
9.58358
],
[
34.25745,
10.63009
],
[
34.73115,
10.91017
],
[
34.83163,
11.31896
],
[
35.26049,
12.08286
],
[
35.86363,
12.57828
],
[
36.27022,
13.56333
],
[
36.42951,
14.42211
],
[
37.59377,
14.2131
],
[
37.90607,
14.95943
]
]
]
}
},
{
type: 'Feature',
id: 'FIN',
properties: {
name: 'Finland'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
28.59193,
69.064777
],
[
28.445944,
68.364613
],
[
29.977426,
67.698297
],
[
29.054589,
66.944286
],
[
30.21765,
65.80598
],
[
29.54443,
64.948672
],
[
30.444685,
64.204453
],
[
30.035872,
63.552814
],
[
31.516092,
62.867687
],
[
31.139991,
62.357693
],
[
30.211107,
61.780028
],
[
28.069998,
60.503517
],
[
26.255173,
60.423961
],
[
24.496624,
60.057316
],
[
22.869695,
59.846373
],
[
22.290764,
60.391921
],
[
21.322244,
60.72017
],
[
21.544866,
61.705329
],
[
21.059211,
62.607393
],
[
21.536029,
63.189735
],
[
22.442744,
63.81781
],
[
24.730512,
64.902344
],
[
25.398068,
65.111427
],
[
25.294043,
65.534346
],
[
23.903379,
66.006927
],
[
23.56588,
66.396051
],
[
23.539473,
67.936009
],
[
21.978535,
68.616846
],
[
20.645593,
69.106247
],
[
21.244936,
69.370443
],
[
22.356238,
68.841741
],
[
23.66205,
68.891247
],
[
24.735679,
68.649557
],
[
25.689213,
69.092114
],
[
26.179622,
69.825299
],
[
27.732292,
70.164193
],
[
29.015573,
69.766491
],
[
28.59193,
69.064777
]
]
]
}
},
{
type: 'Feature',
id: 'FJI',
properties: {
name: 'Fiji'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
178.3736,
-17.33992
],
[
178.71806,
-17.62846
],
[
178.55271,
-18.15059
],
[
177.93266,
-18.28799
],
[
177.38146,
-18.16432
],
[
177.28504,
-17.72465
],
[
177.67087,
-17.38114
],
[
178.12557,
-17.50481
],
[
178.3736,
-17.33992
]
]
],
[
[
[
179.364143,
-16.801354
],
[
178.725059,
-17.012042
],
[
178.596839,
-16.63915
],
[
179.096609,
-16.433984
],
[
179.413509,
-16.379054
],
[
180,
-16.067133
],
[
180,
-16.555217
],
[
179.364143,
-16.801354
]
]
],
[
[
[
-179.917369,
-16.501783
],
[
-180,
-16.555217
],
[
-180,
-16.067133
],
[
-179.79332,
-16.020882
],
[
-179.917369,
-16.501783
]
]
]
]
}
},
{
type: 'Feature',
id: 'FLK',
properties: {
name: 'Falkland Islands'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-61.2,
-51.85
],
[
-60,
-51.25
],
[
-59.15,
-51.5
],
[
-58.55,
-51.1
],
[
-57.75,
-51.55
],
[
-58.05,
-51.9
],
[
-59.4,
-52.2
],
[
-59.85,
-51.85
],
[
-60.7,
-52.3
],
[
-61.2,
-51.85
]
]
]
}
},
{
type: 'Feature',
id: 'FRA',
properties: {
name: 'France'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
9.560016,
42.152492
],
[
9.229752,
41.380007
],
[
8.775723,
41.583612
],
[
8.544213,
42.256517
],
[
8.746009,
42.628122
],
[
9.390001,
43.009985
],
[
9.560016,
42.152492
]
]
],
[
[
[
3.588184,
50.378992
],
[
4.286023,
49.907497
],
[
4.799222,
49.985373
],
[
5.674052,
49.529484
],
[
5.897759,
49.442667
],
[
6.18632,
49.463803
],
[
6.65823,
49.201958
],
[
8.099279,
49.017784
],
[
7.593676,
48.333019
],
[
7.466759,
47.620582
],
[
7.192202,
47.449766
],
[
6.736571,
47.541801
],
[
6.768714,
47.287708
],
[
6.037389,
46.725779
],
[
6.022609,
46.27299
],
[
6.5001,
46.429673
],
[
6.843593,
45.991147
],
[
6.802355,
45.70858
],
[
7.096652,
45.333099
],
[
6.749955,
45.028518
],
[
7.007562,
44.254767
],
[
7.549596,
44.127901
],
[
7.435185,
43.693845
],
[
6.529245,
43.128892
],
[
4.556963,
43.399651
],
[
3.100411,
43.075201
],
[
2.985999,
42.473015
],
[
1.826793,
42.343385
],
[
0.701591,
42.795734
],
[
0.338047,
42.579546
],
[
-1.502771,
43.034014
],
[
-1.901351,
43.422802
],
[
-1.384225,
44.02261
],
[
-1.193798,
46.014918
],
[
-2.225724,
47.064363
],
[
-2.963276,
47.570327
],
[
-4.491555,
47.954954
],
[
-4.59235,
48.68416
],
[
-3.295814,
48.901692
],
[
-1.616511,
48.644421
],
[
-1.933494,
49.776342
],
[
-0.989469,
49.347376
],
[
1.338761,
50.127173
],
[
1.639001,
50.946606
],
[
2.513573,
51.148506
],
[
2.658422,
50.796848
],
[
3.123252,
50.780363
],
[
3.588184,
50.378992
]
]
]
]
}
},
{
type: 'Feature',
id: 'GAB',
properties: {
name: 'Gabon'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
11.093773,
-3.978827
],
[
10.066135,
-2.969483
],
[
9.405245,
-2.144313
],
[
8.797996,
-1.111301
],
[
8.830087,
-0.779074
],
[
9.04842,
-0.459351
],
[
9.291351,
0.268666
],
[
9.492889,
1.01012
],
[
9.830284,
1.067894
],
[
11.285079,
1.057662
],
[
11.276449,
2.261051
],
[
11.751665,
2.326758
],
[
12.35938,
2.192812
],
[
12.951334,
2.321616
],
[
13.075822,
2.267097
],
[
13.003114,
1.830896
],
[
13.282631,
1.314184
],
[
14.026669,
1.395677
],
[
14.276266,
1.19693
],
[
13.843321,
0.038758
],
[
14.316418,
-0.552627
],
[
14.425456,
-1.333407
],
[
14.29921,
-1.998276
],
[
13.992407,
-2.470805
],
[
13.109619,
-2.42874
],
[
12.575284,
-1.948511
],
[
12.495703,
-2.391688
],
[
11.820964,
-2.514161
],
[
11.478039,
-2.765619
],
[
11.855122,
-3.426871
],
[
11.093773,
-3.978827
]
]
]
}
},
{
type: 'Feature',
id: 'GBR',
properties: {
name: 'United Kingdom'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
-5.661949,
54.554603
],
[
-6.197885,
53.867565
],
[
-6.95373,
54.073702
],
[
-7.572168,
54.059956
],
[
-7.366031,
54.595841
],
[
-7.572168,
55.131622
],
[
-6.733847,
55.17286
],
[
-5.661949,
54.554603
]
]
],
[
[
[
-3.005005,
58.635
],
[
-4.073828,
57.553025
],
[
-3.055002,
57.690019
],
[
-1.959281,
57.6848
],
[
-2.219988,
56.870017
],
[
-3.119003,
55.973793
],
[
-2.085009,
55.909998
],
[
-2.005676,
55.804903
],
[
-1.114991,
54.624986
],
[
-0.430485,
54.464376
],
[
0.184981,
53.325014
],
[
0.469977,
52.929999
],
[
1.681531,
52.73952
],
[
1.559988,
52.099998
],
[
1.050562,
51.806761
],
[
1.449865,
51.289428
],
[
0.550334,
50.765739
],
[
-0.787517,
50.774989
],
[
-2.489998,
50.500019
],
[
-2.956274,
50.69688
],
[
-3.617448,
50.228356
],
[
-4.542508,
50.341837
],
[
-5.245023,
49.96
],
[
-5.776567,
50.159678
],
[
-4.30999,
51.210001
],
[
-3.414851,
51.426009
],
[
-3.422719,
51.426848
],
[
-4.984367,
51.593466
],
[
-5.267296,
51.9914
],
[
-4.222347,
52.301356
],
[
-4.770013,
52.840005
],
[
-4.579999,
53.495004
],
[
-3.093831,
53.404547
],
[
-3.09208,
53.404441
],
[
-2.945009,
53.985
],
[
-3.614701,
54.600937
],
[
-3.630005,
54.615013
],
[
-4.844169,
54.790971
],
[
-5.082527,
55.061601
],
[
-4.719112,
55.508473
],
[
-5.047981,
55.783986
],
[
-5.586398,
55.311146
],
[
-5.644999,
56.275015
],
[
-6.149981,
56.78501
],
[
-5.786825,
57.818848
],
[
-5.009999,
58.630013
],
[
-4.211495,
58.550845
],
[
-3.005005,
58.635
]
]
]
]
}
},
{
type: 'Feature',
id: 'GEO',
properties: {
name: 'Georgia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
41.554084,
41.535656
],
[
41.703171,
41.962943
],
[
41.45347,
42.645123
],
[
40.875469,
43.013628
],
[
40.321394,
43.128634
],
[
39.955009,
43.434998
],
[
40.076965,
43.553104
],
[
40.922185,
43.382159
],
[
42.394395,
43.220308
],
[
43.756017,
42.740828
],
[
43.9312,
42.554974
],
[
44.537623,
42.711993
],
[
45.470279,
42.502781
],
[
45.77641,
42.092444
],
[
46.404951,
41.860675
],
[
46.145432,
41.722802
],
[
46.637908,
41.181673
],
[
46.501637,
41.064445
],
[
45.962601,
41.123873
],
[
45.217426,
41.411452
],
[
44.97248,
41.248129
],
[
43.582746,
41.092143
],
[
42.619549,
41.583173
],
[
41.554084,
41.535656
]
]
]
}
},
{
type: 'Feature',
id: 'GHA',
properties: {
name: 'Ghana'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
1.060122,
5.928837
],
[
-0.507638,
5.343473
],
[
-1.063625,
5.000548
],
[
-1.964707,
4.710462
],
[
-2.856125,
4.994476
],
[
-2.810701,
5.389051
],
[
-3.24437,
6.250472
],
[
-2.983585,
7.379705
],
[
-2.56219,
8.219628
],
[
-2.827496,
9.642461
],
[
-2.963896,
10.395335
],
[
-2.940409,
10.96269
],
[
-1.203358,
11.009819
],
[
-0.761576,
10.93693
],
[
-0.438702,
11.098341
],
[
0.023803,
11.018682
],
[
-0.049785,
10.706918
],
[
0.36758,
10.191213
],
[
0.365901,
9.465004
],
[
0.461192,
8.677223
],
[
0.712029,
8.312465
],
[
0.490957,
7.411744
],
[
0.570384,
6.914359
],
[
0.836931,
6.279979
],
[
1.060122,
5.928837
]
]
]
}
},
{
type: 'Feature',
id: 'GIN',
properties: {
name: 'Guinea'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-8.439298,
7.686043
],
[
-8.722124,
7.711674
],
[
-8.926065,
7.309037
],
[
-9.208786,
7.313921
],
[
-9.403348,
7.526905
],
[
-9.33728,
7.928534
],
[
-9.755342,
8.541055
],
[
-10.016567,
8.428504
],
[
-10.230094,
8.406206
],
[
-10.505477,
8.348896
],
[
-10.494315,
8.715541
],
[
-10.65477,
8.977178
],
[
-10.622395,
9.26791
],
[
-10.839152,
9.688246
],
[
-11.117481,
10.045873
],
[
-11.917277,
10.046984
],
[
-12.150338,
9.858572
],
[
-12.425929,
9.835834
],
[
-12.596719,
9.620188
],
[
-12.711958,
9.342712
],
[
-13.24655,
8.903049
],
[
-13.685154,
9.494744
],
[
-14.074045,
9.886167
],
[
-14.330076,
10.01572
],
[
-14.579699,
10.214467
],
[
-14.693232,
10.656301
],
[
-14.839554,
10.876572
],
[
-15.130311,
11.040412
],
[
-14.685687,
11.527824
],
[
-14.382192,
11.509272
],
[
-14.121406,
11.677117
],
[
-13.9008,
11.678719
],
[
-13.743161,
11.811269
],
[
-13.828272,
12.142644
],
[
-13.718744,
12.247186
],
[
-13.700476,
12.586183
],
[
-13.217818,
12.575874
],
[
-12.499051,
12.33209
],
[
-12.278599,
12.35444
],
[
-12.203565,
12.465648
],
[
-11.658301,
12.386583
],
[
-11.513943,
12.442988
],
[
-11.456169,
12.076834
],
[
-11.297574,
12.077971
],
[
-11.036556,
12.211245
],
[
-10.87083,
12.177887
],
[
-10.593224,
11.923975
],
[
-10.165214,
11.844084
],
[
-9.890993,
12.060479
],
[
-9.567912,
12.194243
],
[
-9.327616,
12.334286
],
[
-9.127474,
12.30806
],
[
-8.905265,
12.088358
],
[
-8.786099,
11.812561
],
[
-8.376305,
11.393646
],
[
-8.581305,
11.136246
],
[
-8.620321,
10.810891
],
[
-8.407311,
10.909257
],
[
-8.282357,
10.792597
],
[
-8.335377,
10.494812
],
[
-8.029944,
10.206535
],
[
-8.229337,
10.12902
],
[
-8.309616,
9.789532
],
[
-8.079114,
9.376224
],
[
-7.8321,
8.575704
],
[
-8.203499,
8.455453
],
[
-8.299049,
8.316444
],
[
-8.221792,
8.123329
],
[
-8.280703,
7.68718
],
[
-8.439298,
7.686043
]
]
]
}
},
{
type: 'Feature',
id: 'GMB',
properties: {
name: 'Gambia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-16.841525,
13.151394
],
[
-16.713729,
13.594959
],
[
-15.624596,
13.623587
],
[
-15.39877,
13.860369
],
[
-15.081735,
13.876492
],
[
-14.687031,
13.630357
],
[
-14.376714,
13.62568
],
[
-14.046992,
13.794068
],
[
-13.844963,
13.505042
],
[
-14.277702,
13.280585
],
[
-14.712197,
13.298207
],
[
-15.141163,
13.509512
],
[
-15.511813,
13.27857
],
[
-15.691001,
13.270353
],
[
-15.931296,
13.130284
],
[
-16.841525,
13.151394
]
]
]
}
},
{
type: 'Feature',
id: 'GNB',
properties: {
name: 'Guinea Bissau'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-15.130311,
11.040412
],
[
-15.66418,
11.458474
],
[
-16.085214,
11.524594
],
[
-16.314787,
11.806515
],
[
-16.308947,
11.958702
],
[
-16.613838,
12.170911
],
[
-16.677452,
12.384852
],
[
-16.147717,
12.547762
],
[
-15.816574,
12.515567
],
[
-15.548477,
12.62817
],
[
-13.700476,
12.586183
],
[
-13.718744,
12.247186
],
[
-13.828272,
12.142644
],
[
-13.743161,
11.811269
],
[
-13.9008,
11.678719
],
[
-14.121406,
11.677117
],
[
-14.382192,
11.509272
],
[
-14.685687,
11.527824
],
[
-15.130311,
11.040412
]
]
]
}
},
{
type: 'Feature',
id: 'GNQ',
properties: {
name: 'Equatorial Guinea'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
9.492889,
1.01012
],
[
9.305613,
1.160911
],
[
9.649158,
2.283866
],
[
11.276449,
2.261051
],
[
11.285079,
1.057662
],
[
9.830284,
1.067894
],
[
9.492889,
1.01012
]
]
]
}
},
{
type: 'Feature',
id: 'GRC',
properties: {
name: 'Greece'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
23.69998,
35.705004
],
[
24.246665,
35.368022
],
[
25.025015,
35.424996
],
[
25.769208,
35.354018
],
[
25.745023,
35.179998
],
[
26.290003,
35.29999
],
[
26.164998,
35.004995
],
[
24.724982,
34.919988
],
[
24.735007,
35.084991
],
[
23.514978,
35.279992
],
[
23.69998,
35.705004
]
]
],
[
[
[
26.604196,
41.562115
],
[
26.294602,
40.936261
],
[
26.056942,
40.824123
],
[
25.447677,
40.852545
],
[
24.925848,
40.947062
],
[
23.714811,
40.687129
],
[
24.407999,
40.124993
],
[
23.899968,
39.962006
],
[
23.342999,
39.960998
],
[
22.813988,
40.476005
],
[
22.626299,
40.256561
],
[
22.849748,
39.659311
],
[
23.350027,
39.190011
],
[
22.973099,
38.970903
],
[
23.530016,
38.510001
],
[
24.025025,
38.219993
],
[
24.040011,
37.655015
],
[
23.115003,
37.920011
],
[
23.409972,
37.409991
],
[
22.774972,
37.30501
],
[
23.154225,
36.422506
],
[
22.490028,
36.41
],
[
21.670026,
36.844986
],
[
21.295011,
37.644989
],
[
21.120034,
38.310323
],
[
20.730032,
38.769985
],
[
20.217712,
39.340235
],
[
20.150016,
39.624998
],
[
20.615,
40.110007
],
[
20.674997,
40.435
],
[
20.99999,
40.580004
],
[
21.02004,
40.842727
],
[
21.674161,
40.931275
],
[
22.055378,
41.149866
],
[
22.597308,
41.130487
],
[
22.76177,
41.3048
],
[
22.952377,
41.337994
],
[
23.692074,
41.309081
],
[
24.492645,
41.583896
],
[
25.197201,
41.234486
],
[
26.106138,
41.328899
],
[
26.117042,
41.826905
],
[
26.604196,
41.562115
]
]
]
]
}
},
{
type: 'Feature',
id: 'GRL',
properties: {
name: 'Greenland'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-46.76379,
82.62796
],
[
-43.40644,
83.22516
],
[
-39.89753,
83.18018
],
[
-38.62214,
83.54905
],
[
-35.08787,
83.64513
],
[
-27.10046,
83.51966
],
[
-20.84539,
82.72669
],
[
-22.69182,
82.34165
],
[
-26.51753,
82.29765
],
[
-31.9,
82.2
],
[
-31.39646,
82.02154
],
[
-27.85666,
82.13178
],
[
-24.84448,
81.78697
],
[
-22.90328,
82.09317
],
[
-22.07175,
81.73449
],
[
-23.16961,
81.15271
],
[
-20.62363,
81.52462
],
[
-15.76818,
81.91245
],
[
-12.77018,
81.71885
],
[
-12.20855,
81.29154
],
[
-16.28533,
80.58004
],
[
-16.85,
80.35
],
[
-20.04624,
80.17708
],
[
-17.73035,
80.12912
],
[
-18.9,
79.4
],
[
-19.70499,
78.75128
],
[
-19.67353,
77.63859
],
[
-18.47285,
76.98565
],
[
-20.03503,
76.94434
],
[
-21.67944,
76.62795
],
[
-19.83407,
76.09808
],
[
-19.59896,
75.24838
],
[
-20.66818,
75.15585
],
[
-19.37281,
74.29561
],
[
-21.59422,
74.22382
],
[
-20.43454,
73.81713
],
[
-20.76234,
73.46436
],
[
-22.17221,
73.30955
],
[
-23.56593,
73.30663
],
[
-22.31311,
72.62928
],
[
-22.29954,
72.18409
],
[
-24.27834,
72.59788
],
[
-24.79296,
72.3302
],
[
-23.44296,
72.08016
],
[
-22.13281,
71.46898
],
[
-21.75356,
70.66369
],
[
-23.53603,
70.471
],
[
-24.30702,
70.85649
],
[
-25.54341,
71.43094
],
[
-25.20135,
70.75226
],
[
-26.36276,
70.22646
],
[
-23.72742,
70.18401
],
[
-22.34902,
70.12946
],
[
-25.02927,
69.2588
],
[
-27.74737,
68.47046
],
[
-30.67371,
68.12503
],
[
-31.77665,
68.12078
],
[
-32.81105,
67.73547
],
[
-34.20196,
66.67974
],
[
-36.35284,
65.9789
],
[
-37.04378,
65.93768
],
[
-38.37505,
65.69213
],
[
-39.81222,
65.45848
],
[
-40.66899,
64.83997
],
[
-40.68281,
64.13902
],
[
-41.1887,
63.48246
],
[
-42.81938,
62.68233
],
[
-42.41666,
61.90093
],
[
-42.86619,
61.07404
],
[
-43.3784,
60.09772
],
[
-44.7875,
60.03676
],
[
-46.26364,
60.85328
],
[
-48.26294,
60.85843
],
[
-49.23308,
61.40681
],
[
-49.90039,
62.38336
],
[
-51.63325,
63.62691
],
[
-52.14014,
64.27842
],
[
-52.27659,
65.1767
],
[
-53.66166,
66.09957
],
[
-53.30161,
66.8365
],
[
-53.96911,
67.18899
],
[
-52.9804,
68.35759
],
[
-51.47536,
68.72958
],
[
-51.08041,
69.14781
],
[
-50.87122,
69.9291
],
[
-52.013585,
69.574925
],
[
-52.55792,
69.42616
],
[
-53.45629,
69.283625
],
[
-54.68336,
69.61003
],
[
-54.75001,
70.28932
],
[
-54.35884,
70.821315
],
[
-53.431315,
70.835755
],
[
-51.39014,
70.56978
],
[
-53.10937,
71.20485
],
[
-54.00422,
71.54719
],
[
-55,
71.406537
],
[
-55.83468,
71.65444
],
[
-54.71819,
72.58625
],
[
-55.32634,
72.95861
],
[
-56.12003,
73.64977
],
[
-57.32363,
74.71026
],
[
-58.59679,
75.09861
],
[
-58.58516,
75.51727
],
[
-61.26861,
76.10238
],
[
-63.39165,
76.1752
],
[
-66.06427,
76.13486
],
[
-68.50438,
76.06141
],
[
-69.66485,
76.37975
],
[
-71.40257,
77.00857
],
[
-68.77671,
77.32312
],
[
-66.76397,
77.37595
],
[
-71.04293,
77.63595
],
[
-73.297,
78.04419
],
[
-73.15938,
78.43271
],
[
-69.37345,
78.91388
],
[
-65.7107,
79.39436
],
[
-65.3239,
79.75814
],
[
-68.02298,
80.11721
],
[
-67.15129,
80.51582
],
[
-63.68925,
81.21396
],
[
-62.23444,
81.3211
],
[
-62.65116,
81.77042
],
[
-60.28249,
82.03363
],
[
-57.20744,
82.19074
],
[
-54.13442,
82.19962
],
[
-53.04328,
81.88833
],
[
-50.39061,
82.43883
],
[
-48.00386,
82.06481
],
[
-46.59984,
81.985945
],
[
-44.523,
81.6607
],
[
-46.9007,
82.19979
],
[
-46.76379,
82.62796
]
]
]
}
},
{
type: 'Feature',
id: 'GTM',
properties: {
name: 'Guatemala'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-90.095555,
13.735338
],
[
-90.608624,
13.909771
],
[
-91.23241,
13.927832
],
[
-91.689747,
14.126218
],
[
-92.22775,
14.538829
],
[
-92.20323,
14.830103
],
[
-92.087216,
15.064585
],
[
-92.229249,
15.251447
],
[
-91.74796,
16.066565
],
[
-90.464473,
16.069562
],
[
-90.438867,
16.41011
],
[
-90.600847,
16.470778
],
[
-90.711822,
16.687483
],
[
-91.08167,
16.918477
],
[
-91.453921,
17.252177
],
[
-91.002269,
17.254658
],
[
-91.00152,
17.817595
],
[
-90.067934,
17.819326
],
[
-89.14308,
17.808319
],
[
-89.150806,
17.015577
],
[
-89.229122,
15.886938
],
[
-88.930613,
15.887273
],
[
-88.604586,
15.70638
],
[
-88.518364,
15.855389
],
[
-88.225023,
15.727722
],
[
-88.68068,
15.346247
],
[
-89.154811,
15.066419
],
[
-89.22522,
14.874286
],
[
-89.145535,
14.678019
],
[
-89.353326,
14.424133
],
[
-89.587343,
14.362586
],
[
-89.534219,
14.244816
],
[
-89.721934,
14.134228
],
[
-90.064678,
13.88197
],
[
-90.095555,
13.735338
]
]
]
}
},
{
type: 'Feature',
id: 'GUF',
properties: {
name: 'French Guiana'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-52.556425,
2.504705
],
[
-52.939657,
2.124858
],
[
-53.418465,
2.053389
],
[
-53.554839,
2.334897
],
[
-53.778521,
2.376703
],
[
-54.088063,
2.105557
],
[
-54.524754,
2.311849
],
[
-54.27123,
2.738748
],
[
-54.184284,
3.194172
],
[
-54.011504,
3.62257
],
[
-54.399542,
4.212611
],
[
-54.478633,
4.896756
],
[
-53.958045,
5.756548
],
[
-53.618453,
5.646529
],
[
-52.882141,
5.409851
],
[
-51.823343,
4.565768
],
[
-51.657797,
4.156232
],
[
-52.249338,
3.241094
],
[
-52.556425,
2.504705
]
]
]
}
},
{
type: 'Feature',
id: 'GUY',
properties: {
name: 'Guyana'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-59.758285,
8.367035
],
[
-59.101684,
7.999202
],
[
-58.482962,
7.347691
],
[
-58.454876,
6.832787
],
[
-58.078103,
6.809094
],
[
-57.542219,
6.321268
],
[
-57.147436,
5.97315
],
[
-57.307246,
5.073567
],
[
-57.914289,
4.812626
],
[
-57.86021,
4.576801
],
[
-58.044694,
4.060864
],
[
-57.601569,
3.334655
],
[
-57.281433,
3.333492
],
[
-57.150098,
2.768927
],
[
-56.539386,
1.899523
],
[
-56.782704,
1.863711
],
[
-57.335823,
1.948538
],
[
-57.660971,
1.682585
],
[
-58.11345,
1.507195
],
[
-58.429477,
1.463942
],
[
-58.540013,
1.268088
],
[
-59.030862,
1.317698
],
[
-59.646044,
1.786894
],
[
-59.718546,
2.24963
],
[
-59.974525,
2.755233
],
[
-59.815413,
3.606499
],
[
-59.53804,
3.958803
],
[
-59.767406,
4.423503
],
[
-60.111002,
4.574967
],
[
-59.980959,
5.014061
],
[
-60.213683,
5.244486
],
[
-60.733574,
5.200277
],
[
-61.410303,
5.959068
],
[
-61.139415,
6.234297
],
[
-61.159336,
6.696077
],
[
-60.543999,
6.856584
],
[
-60.295668,
7.043911
],
[
-60.637973,
7.415
],
[
-60.550588,
7.779603
],
[
-59.758285,
8.367035
]
]
]
}
},
{
type: 'Feature',
id: 'HND',
properties: {
name: 'Honduras'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-87.316654,
12.984686
],
[
-87.489409,
13.297535
],
[
-87.793111,
13.38448
],
[
-87.723503,
13.78505
],
[
-87.859515,
13.893312
],
[
-88.065343,
13.964626
],
[
-88.503998,
13.845486
],
[
-88.541231,
13.980155
],
[
-88.843073,
14.140507
],
[
-89.058512,
14.340029
],
[
-89.353326,
14.424133
],
[
-89.145535,
14.678019
],
[
-89.22522,
14.874286
],
[
-89.154811,
15.066419
],
[
-88.68068,
15.346247
],
[
-88.225023,
15.727722
],
[
-88.121153,
15.688655
],
[
-87.901813,
15.864458
],
[
-87.61568,
15.878799
],
[
-87.522921,
15.797279
],
[
-87.367762,
15.84694
],
[
-86.903191,
15.756713
],
[
-86.440946,
15.782835
],
[
-86.119234,
15.893449
],
[
-86.001954,
16.005406
],
[
-85.683317,
15.953652
],
[
-85.444004,
15.885749
],
[
-85.182444,
15.909158
],
[
-84.983722,
15.995923
],
[
-84.52698,
15.857224
],
[
-84.368256,
15.835158
],
[
-84.063055,
15.648244
],
[
-83.773977,
15.424072
],
[
-83.410381,
15.270903
],
[
-83.147219,
14.995829
],
[
-83.489989,
15.016267
],
[
-83.628585,
14.880074
],
[
-83.975721,
14.749436
],
[
-84.228342,
14.748764
],
[
-84.449336,
14.621614
],
[
-84.649582,
14.666805
],
[
-84.820037,
14.819587
],
[
-84.924501,
14.790493
],
[
-85.052787,
14.551541
],
[
-85.148751,
14.560197
],
[
-85.165365,
14.35437
],
[
-85.514413,
14.079012
],
[
-85.698665,
13.960078
],
[
-85.801295,
13.836055
],
[
-86.096264,
14.038187
],
[
-86.312142,
13.771356
],
[
-86.520708,
13.778487
],
[
-86.755087,
13.754845
],
[
-86.733822,
13.263093
],
[
-86.880557,
13.254204
],
[
-87.005769,
13.025794
],
[
-87.316654,
12.984686
]
]
]
}
},
{
type: 'Feature',
id: 'HRV',
properties: {
name: 'Croatia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
18.829838,
45.908878
],
[
19.072769,
45.521511
],
[
19.390476,
45.236516
],
[
19.005486,
44.860234
],
[
18.553214,
45.08159
],
[
17.861783,
45.06774
],
[
17.002146,
45.233777
],
[
16.534939,
45.211608
],
[
16.318157,
45.004127
],
[
15.959367,
45.233777
],
[
15.750026,
44.818712
],
[
16.23966,
44.351143
],
[
16.456443,
44.04124
],
[
16.916156,
43.667722
],
[
17.297373,
43.446341
],
[
17.674922,
43.028563
],
[
18.56,
42.65
],
[
18.450016,
42.479991
],
[
17.50997,
42.849995
],
[
16.930006,
43.209998
],
[
16.015385,
43.507215
],
[
15.174454,
44.243191
],
[
15.37625,
44.317915
],
[
14.920309,
44.738484
],
[
14.901602,
45.07606
],
[
14.258748,
45.233777
],
[
13.952255,
44.802124
],
[
13.656976,
45.136935
],
[
13.679403,
45.484149
],
[
13.71506,
45.500324
],
[
14.411968,
45.466166
],
[
14.595109,
45.634941
],
[
14.935244,
45.471695
],
[
15.327675,
45.452316
],
[
15.323954,
45.731783
],
[
15.67153,
45.834154
],
[
15.768733,
46.238108
],
[
16.564808,
46.503751
],
[
16.882515,
46.380632
],
[
17.630066,
45.951769
],
[
18.456062,
45.759481
],
[
18.829838,
45.908878
]
]
]
}
},
{
type: 'Feature',
id: 'HTI',
properties: {
name: 'Haiti'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-73.189791,
19.915684
],
[
-72.579673,
19.871501
],
[
-71.712361,
19.714456
],
[
-71.624873,
19.169838
],
[
-71.701303,
18.785417
],
[
-71.945112,
18.6169
],
[
-71.687738,
18.31666
],
[
-71.708305,
18.044997
],
[
-72.372476,
18.214961
],
[
-72.844411,
18.145611
],
[
-73.454555,
18.217906
],
[
-73.922433,
18.030993
],
[
-74.458034,
18.34255
],
[
-74.369925,
18.664908
],
[
-73.449542,
18.526053
],
[
-72.694937,
18.445799
],
[
-72.334882,
18.668422
],
[
-72.79165,
19.101625
],
[
-72.784105,
19.483591
],
[
-73.415022,
19.639551
],
[
-73.189791,
19.915684
]
]
]
}
},
{
type: 'Feature',
id: 'HUN',
properties: {
name: 'Hungary'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
16.202298,
46.852386
],
[
16.534268,
47.496171
],
[
16.340584,
47.712902
],
[
16.903754,
47.714866
],
[
16.979667,
48.123497
],
[
17.488473,
47.867466
],
[
17.857133,
47.758429
],
[
18.696513,
47.880954
],
[
18.777025,
48.081768
],
[
19.174365,
48.111379
],
[
19.661364,
48.266615
],
[
19.769471,
48.202691
],
[
20.239054,
48.327567
],
[
20.473562,
48.56285
],
[
20.801294,
48.623854
],
[
21.872236,
48.319971
],
[
22.085608,
48.422264
],
[
22.64082,
48.15024
],
[
22.710531,
47.882194
],
[
22.099768,
47.672439
],
[
21.626515,
46.994238
],
[
21.021952,
46.316088
],
[
20.220192,
46.127469
],
[
19.596045,
46.17173
],
[
18.829838,
45.908878
],
[
18.456062,
45.759481
],
[
17.630066,
45.951769
],
[
16.882515,
46.380632
],
[
16.564808,
46.503751
],
[
16.370505,
46.841327
],
[
16.202298,
46.852386
]
]
]
}
},
{
type: 'Feature',
id: 'IDN',
properties: {
name: 'Indonesia'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
120.715609,
-10.239581
],
[
120.295014,
-10.25865
],
[
118.967808,
-9.557969
],
[
119.90031,
-9.36134
],
[
120.425756,
-9.665921
],
[
120.775502,
-9.969675
],
[
120.715609,
-10.239581
]
]
],
[
[
[
124.43595,
-10.140001
],
[
123.579982,
-10.359987
],
[
123.459989,
-10.239995
],
[
123.550009,
-9.900016
],
[
123.980009,
-9.290027
],
[
124.968682,
-8.89279
],
[
125.07002,
-9.089987
],
[
125.08852,
-9.393173
],
[
124.43595,
-10.140001
]
]
],
[
[
[
117.900018,
-8.095681
],
[
118.260616,
-8.362383
],
[
118.87846,
-8.280683
],
[
119.126507,
-8.705825
],
[
117.970402,
-8.906639
],
[
117.277731,
-9.040895
],
[
116.740141,
-9.032937
],
[
117.083737,
-8.457158
],
[
117.632024,
-8.449303
],
[
117.900018,
-8.095681
]
]
],
[
[
[
122.903537,
-8.094234
],
[
122.756983,
-8.649808
],
[
121.254491,
-8.933666
],
[
119.924391,
-8.810418
],
[
119.920929,
-8.444859
],
[
120.715092,
-8.236965
],
[
121.341669,
-8.53674
],
[
122.007365,
-8.46062
],
[
122.903537,
-8.094234
]
]
],
[
[
[
108.623479,
-6.777674
],
[
110.539227,
-6.877358
],
[
110.759576,
-6.465186
],
[
112.614811,
-6.946036
],
[
112.978768,
-7.594213
],
[
114.478935,
-7.776528
],
[
115.705527,
-8.370807
],
[
114.564511,
-8.751817
],
[
113.464734,
-8.348947
],
[
112.559672,
-8.376181
],
[
111.522061,
-8.302129
],
[
110.58615,
-8.122605
],
[
109.427667,
-7.740664
],
[
108.693655,
-7.6416
],
[
108.277763,
-7.766657
],
[
106.454102,
-7.3549
],
[
106.280624,
-6.9249
],
[
105.365486,
-6.851416
],
[
106.051646,
-5.895919
],
[
107.265009,
-5.954985
],
[
108.072091,
-6.345762
],
[
108.486846,
-6.421985
],
[
108.623479,
-6.777674
]
]
],
[
[
[
134.724624,
-6.214401
],
[
134.210134,
-6.895238
],
[
134.112776,
-6.142467
],
[
134.290336,
-5.783058
],
[
134.499625,
-5.445042
],
[
134.727002,
-5.737582
],
[
134.724624,
-6.214401
]
]
],
[
[
[
127.249215,
-3.459065
],
[
126.874923,
-3.790983
],
[
126.183802,
-3.607376
],
[
125.989034,
-3.177273
],
[
127.000651,
-3.129318
],
[
127.249215,
-3.459065
]
]
],
[
[
[
130.471344,
-3.093764
],
[
130.834836,
-3.858472
],
[
129.990547,
-3.446301
],
[
129.155249,
-3.362637
],
[
128.590684,
-3.428679
],
[
127.898891,
-3.393436
],
[
128.135879,
-2.84365
],
[
129.370998,
-2.802154
],
[
130.471344,
-3.093764
]
]
],
[
[
[
134.143368,
-1.151867
],
[
134.422627,
-2.769185
],
[
135.457603,
-3.367753
],
[
136.293314,
-2.307042
],
[
137.440738,
-1.703513
],
[
138.329727,
-1.702686
],
[
139.184921,
-2.051296
],
[
139.926684,
-2.409052
],
[
141.00021,
-2.600151
],
[
141.017057,
-5.859022
],
[
141.033852,
-9.117893
],
[
140.143415,
-8.297168
],
[
139.127767,
-8.096043
],
[
138.881477,
-8.380935
],
[
137.614474,
-8.411683
],
[
138.039099,
-7.597882
],
[
138.668621,
-7.320225
],
[
138.407914,
-6.232849
],
[
137.92784,
-5.393366
],
[
135.98925,
-4.546544
],
[
135.164598,
-4.462931
],
[
133.66288,
-3.538853
],
[
133.367705,
-4.024819
],
[
132.983956,
-4.112979
],
[
132.756941,
-3.746283
],
[
132.753789,
-3.311787
],
[
131.989804,
-2.820551
],
[
133.066845,
-2.460418
],
[
133.780031,
-2.479848
],
[
133.696212,
-2.214542
],
[
132.232373,
-2.212526
],
[
131.836222,
-1.617162
],
[
130.94284,
-1.432522
],
[
130.519558,
-0.93772
],
[
131.867538,
-0.695461
],
[
132.380116,
-0.369538
],
[
133.985548,
-0.78021
],
[
134.143368,
-1.151867
]
]
],
[
[
[
125.240501,
1.419836
],
[
124.437035,
0.427881
],
[
123.685505,
0.235593
],
[
122.723083,
0.431137
],
[
121.056725,
0.381217
],
[
120.183083,
0.237247
],
[
120.04087,
-0.519658
],
[
120.935905,
-1.408906
],
[
121.475821,
-0.955962
],
[
123.340565,
-0.615673
],
[
123.258399,
-1.076213
],
[
122.822715,
-0.930951
],
[
122.38853,
-1.516858
],
[
121.508274,
-1.904483
],
[
122.454572,
-3.186058
],
[
122.271896,
-3.5295
],
[
123.170963,
-4.683693
],
[
123.162333,
-5.340604
],
[
122.628515,
-5.634591
],
[
122.236394,
-5.282933
],
[
122.719569,
-4.464172
],
[
121.738234,
-4.851331
],
[
121.489463,
-4.574553
],
[
121.619171,
-4.188478
],
[
120.898182,
-3.602105
],
[
120.972389,
-2.627643
],
[
120.305453,
-2.931604
],
[
120.390047,
-4.097579
],
[
120.430717,
-5.528241
],
[
119.796543,
-5.6734
],
[
119.366906,
-5.379878
],
[
119.653606,
-4.459417
],
[
119.498835,
-3.494412
],
[
119.078344,
-3.487022
],
[
118.767769,
-2.801999
],
[
119.180974,
-2.147104
],
[
119.323394,
-1.353147
],
[
119.825999,
0.154254
],
[
120.035702,
0.566477
],
[
120.885779,
1.309223
],
[
121.666817,
1.013944
],
[
122.927567,
0.875192
],
[
124.077522,
0.917102
],
[
125.065989,
1.643259
],
[
125.240501,
1.419836
]
]
],
[
[
[
128.688249,
1.132386
],
[
128.635952,
0.258486
],
[
128.12017,
0.356413
],
[
127.968034,
-0.252077
],
[
128.379999,
-0.780004
],
[
128.100016,
-0.899996
],
[
127.696475,
-0.266598
],
[
127.39949,
1.011722
],
[
127.600512,
1.810691
],
[
127.932378,
2.174596
],
[
128.004156,
1.628531
],
[
128.594559,
1.540811
],
[
128.688249,
1.132386
]
]
],
[
[
[
117.875627,
1.827641
],
[
118.996747,
0.902219
],
[
117.811858,
0.784242
],
[
117.478339,
0.102475
],
[
117.521644,
-0.803723
],
[
116.560048,
-1.487661
],
[
116.533797,
-2.483517
],
[
116.148084,
-4.012726
],
[
116.000858,
-3.657037
],
[
114.864803,
-4.106984
],
[
114.468652,
-3.495704
],
[
113.755672,
-3.43917
],
[
113.256994,
-3.118776
],
[
112.068126,
-3.478392
],
[
111.703291,
-2.994442
],
[
111.04824,
-3.049426
],
[
110.223846,
-2.934032
],
[
110.070936,
-1.592874
],
[
109.571948,
-1.314907
],
[
109.091874,
-0.459507
],
[
108.952658,
0.415375
],
[
109.069136,
1.341934
],
[
109.66326,
2.006467
],
[
109.830227,
1.338136
],
[
110.514061,
0.773131
],
[
111.159138,
0.976478
],
[
111.797548,
0.904441
],
[
112.380252,
1.410121
],
[
112.859809,
1.49779
],
[
113.80585,
1.217549
],
[
114.621355,
1.430688
],
[
115.134037,
2.821482
],
[
115.519078,
3.169238
],
[
115.865517,
4.306559
],
[
117.015214,
4.306094
],
[
117.882035,
4.137551
],
[
117.313232,
3.234428
],
[
118.04833,
2.28769
],
[
117.875627,
1.827641
]
]
],
[
[
[
105.817655,
-5.852356
],
[
104.710384,
-5.873285
],
[
103.868213,
-5.037315
],
[
102.584261,
-4.220259
],
[
102.156173,
-3.614146
],
[
101.399113,
-2.799777
],
[
100.902503,
-2.050262
],
[
100.141981,
-0.650348
],
[
99.26374,
0.183142
],
[
98.970011,
1.042882
],
[
98.601351,
1.823507
],
[
97.699598,
2.453184
],
[
97.176942,
3.308791
],
[
96.424017,
3.86886
],
[
95.380876,
4.970782
],
[
95.293026,
5.479821
],
[
95.936863,
5.439513
],
[
97.484882,
5.246321
],
[
98.369169,
4.26837
],
[
99.142559,
3.59035
],
[
99.693998,
3.174329
],
[
100.641434,
2.099381
],
[
101.658012,
2.083697
],
[
102.498271,
1.3987
],
[
103.07684,
0.561361
],
[
103.838396,
0.104542
],
[
103.437645,
-0.711946
],
[
104.010789,
-1.059212
],
[
104.369991,
-1.084843
],
[
104.53949,
-1.782372
],
[
104.887893,
-2.340425
],
[
105.622111,
-2.428844
],
[
106.108593,
-3.061777
],
[
105.857446,
-4.305525
],
[
105.817655,
-5.852356
]
]
]
]
}
},
{
type: 'Feature',
id: 'IND',
properties: {
name: 'India'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
77.837451,
35.49401
],
[
78.912269,
34.321936
],
[
78.811086,
33.506198
],
[
79.208892,
32.994395
],
[
79.176129,
32.48378
],
[
78.458446,
32.618164
],
[
78.738894,
31.515906
],
[
79.721367,
30.882715
],
[
81.111256,
30.183481
],
[
80.476721,
29.729865
],
[
80.088425,
28.79447
],
[
81.057203,
28.416095
],
[
81.999987,
27.925479
],
[
83.304249,
27.364506
],
[
84.675018,
27.234901
],
[
85.251779,
26.726198
],
[
86.024393,
26.630985
],
[
87.227472,
26.397898
],
[
88.060238,
26.414615
],
[
88.174804,
26.810405
],
[
88.043133,
27.445819
],
[
88.120441,
27.876542
],
[
88.730326,
28.086865
],
[
88.814248,
27.299316
],
[
88.835643,
27.098966
],
[
89.744528,
26.719403
],
[
90.373275,
26.875724
],
[
91.217513,
26.808648
],
[
92.033484,
26.83831
],
[
92.103712,
27.452614
],
[
91.696657,
27.771742
],
[
92.503119,
27.896876
],
[
93.413348,
28.640629
],
[
94.56599,
29.277438
],
[
95.404802,
29.031717
],
[
96.117679,
29.452802
],
[
96.586591,
28.83098
],
[
96.248833,
28.411031
],
[
97.327114,
28.261583
],
[
97.402561,
27.882536
],
[
97.051989,
27.699059
],
[
97.133999,
27.083774
],
[
96.419366,
27.264589
],
[
95.124768,
26.573572
],
[
95.155153,
26.001307
],
[
94.603249,
25.162495
],
[
94.552658,
24.675238
],
[
94.106742,
23.850741
],
[
93.325188,
24.078556
],
[
93.286327,
23.043658
],
[
93.060294,
22.703111
],
[
93.166128,
22.27846
],
[
92.672721,
22.041239
],
[
92.146035,
23.627499
],
[
91.869928,
23.624346
],
[
91.706475,
22.985264
],
[
91.158963,
23.503527
],
[
91.46773,
24.072639
],
[
91.915093,
24.130414
],
[
92.376202,
24.976693
],
[
91.799596,
25.147432
],
[
90.872211,
25.132601
],
[
89.920693,
25.26975
],
[
89.832481,
25.965082
],
[
89.355094,
26.014407
],
[
88.563049,
26.446526
],
[
88.209789,
25.768066
],
[
88.931554,
25.238692
],
[
88.306373,
24.866079
],
[
88.084422,
24.501657
],
[
88.69994,
24.233715
],
[
88.52977,
23.631142
],
[
88.876312,
22.879146
],
[
89.031961,
22.055708
],
[
88.888766,
21.690588
],
[
88.208497,
21.703172
],
[
86.975704,
21.495562
],
[
87.033169,
20.743308
],
[
86.499351,
20.151638
],
[
85.060266,
19.478579
],
[
83.941006,
18.30201
],
[
83.189217,
17.671221
],
[
82.192792,
17.016636
],
[
82.191242,
16.556664
],
[
81.692719,
16.310219
],
[
80.791999,
15.951972
],
[
80.324896,
15.899185
],
[
80.025069,
15.136415
],
[
80.233274,
13.835771
],
[
80.286294,
13.006261
],
[
79.862547,
12.056215
],
[
79.857999,
10.357275
],
[
79.340512,
10.308854
],
[
78.885345,
9.546136
],
[
79.18972,
9.216544
],
[
78.277941,
8.933047
],
[
77.941165,
8.252959
],
[
77.539898,
7.965535
],
[
76.592979,
8.899276
],
[
76.130061,
10.29963
],
[
75.746467,
11.308251
],
[
75.396101,
11.781245
],
[
74.864816,
12.741936
],
[
74.616717,
13.992583
],
[
74.443859,
14.617222
],
[
73.534199,
15.990652
],
[
73.119909,
17.92857
],
[
72.820909,
19.208234
],
[
72.824475,
20.419503
],
[
72.630533,
21.356009
],
[
71.175273,
20.757441
],
[
70.470459,
20.877331
],
[
69.16413,
22.089298
],
[
69.644928,
22.450775
],
[
69.349597,
22.84318
],
[
68.176645,
23.691965
],
[
68.842599,
24.359134
],
[
71.04324,
24.356524
],
[
70.844699,
25.215102
],
[
70.282873,
25.722229
],
[
70.168927,
26.491872
],
[
69.514393,
26.940966
],
[
70.616496,
27.989196
],
[
71.777666,
27.91318
],
[
72.823752,
28.961592
],
[
73.450638,
29.976413
],
[
74.42138,
30.979815
],
[
74.405929,
31.692639
],
[
75.258642,
32.271105
],
[
74.451559,
32.7649
],
[
74.104294,
33.441473
],
[
73.749948,
34.317699
],
[
74.240203,
34.748887
],
[
75.757061,
34.504923
],
[
76.871722,
34.653544
],
[
77.837451,
35.49401
]
]
]
}
},
{
type: 'Feature',
id: 'IRL',
properties: {
name: 'Ireland'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-6.197885,
53.867565
],
[
-6.032985,
53.153164
],
[
-6.788857,
52.260118
],
[
-8.561617,
51.669301
],
[
-9.977086,
51.820455
],
[
-9.166283,
52.864629
],
[
-9.688525,
53.881363
],
[
-8.327987,
54.664519
],
[
-7.572168,
55.131622
],
[
-7.366031,
54.595841
],
[
-7.572168,
54.059956
],
[
-6.95373,
54.073702
],
[
-6.197885,
53.867565
]
]
]
}
},
{
type: 'Feature',
id: 'IRN',
properties: {
name: 'Iran'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
53.921598,
37.198918
],
[
54.800304,
37.392421
],
[
55.511578,
37.964117
],
[
56.180375,
37.935127
],
[
56.619366,
38.121394
],
[
57.330434,
38.029229
],
[
58.436154,
37.522309
],
[
59.234762,
37.412988
],
[
60.377638,
36.527383
],
[
61.123071,
36.491597
],
[
61.210817,
35.650072
],
[
60.803193,
34.404102
],
[
60.52843,
33.676446
],
[
60.9637,
33.528832
],
[
60.536078,
32.981269
],
[
60.863655,
32.18292
],
[
60.941945,
31.548075
],
[
61.699314,
31.379506
],
[
61.781222,
30.73585
],
[
60.874248,
29.829239
],
[
61.369309,
29.303276
],
[
61.771868,
28.699334
],
[
62.72783,
28.259645
],
[
62.755426,
27.378923
],
[
63.233898,
27.217047
],
[
63.316632,
26.756532
],
[
61.874187,
26.239975
],
[
61.497363,
25.078237
],
[
59.616134,
25.380157
],
[
58.525761,
25.609962
],
[
57.397251,
25.739902
],
[
56.970766,
26.966106
],
[
56.492139,
27.143305
],
[
55.72371,
26.964633
],
[
54.71509,
26.480658
],
[
53.493097,
26.812369
],
[
52.483598,
27.580849
],
[
51.520763,
27.86569
],
[
50.852948,
28.814521
],
[
50.115009,
30.147773
],
[
49.57685,
29.985715
],
[
48.941333,
30.31709
],
[
48.567971,
29.926778
],
[
48.014568,
30.452457
],
[
48.004698,
30.985137
],
[
47.685286,
30.984853
],
[
47.849204,
31.709176
],
[
47.334661,
32.469155
],
[
46.109362,
33.017287
],
[
45.416691,
33.967798
],
[
45.64846,
34.748138
],
[
46.151788,
35.093259
],
[
46.07634,
35.677383
],
[
45.420618,
35.977546
],
[
44.77267,
37.17045
],
[
44.225756,
37.971584
],
[
44.421403,
38.281281
],
[
44.109225,
39.428136
],
[
44.79399,
39.713003
],
[
44.952688,
39.335765
],
[
45.457722,
38.874139
],
[
46.143623,
38.741201
],
[
46.50572,
38.770605
],
[
47.685079,
39.508364
],
[
48.060095,
39.582235
],
[
48.355529,
39.288765
],
[
48.010744,
38.794015
],
[
48.634375,
38.270378
],
[
48.883249,
38.320245
],
[
49.199612,
37.582874
],
[
50.147771,
37.374567
],
[
50.842354,
36.872814
],
[
52.264025,
36.700422
],
[
53.82579,
36.965031
],
[
53.921598,
37.198918
]
]
]
}
},
{
type: 'Feature',
id: 'IRQ',
properties: {
name: 'Iraq'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
45.420618,
35.977546
],
[
46.07634,
35.677383
],
[
46.151788,
35.093259
],
[
45.64846,
34.748138
],
[
45.416691,
33.967798
],
[
46.109362,
33.017287
],
[
47.334661,
32.469155
],
[
47.849204,
31.709176
],
[
47.685286,
30.984853
],
[
48.004698,
30.985137
],
[
48.014568,
30.452457
],
[
48.567971,
29.926778
],
[
47.974519,
29.975819
],
[
47.302622,
30.05907
],
[
46.568713,
29.099025
],
[
44.709499,
29.178891
],
[
41.889981,
31.190009
],
[
40.399994,
31.889992
],
[
39.195468,
32.161009
],
[
38.792341,
33.378686
],
[
41.006159,
34.419372
],
[
41.383965,
35.628317
],
[
41.289707,
36.358815
],
[
41.837064,
36.605854
],
[
42.349591,
37.229873
],
[
42.779126,
37.385264
],
[
43.942259,
37.256228
],
[
44.293452,
37.001514
],
[
44.772699,
37.170445
],
[
45.420618,
35.977546
]
]
]
}
},
{
type: 'Feature',
id: 'ISL',
properties: {
name: 'Iceland'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-14.508695,
66.455892
],
[
-14.739637,
65.808748
],
[
-13.609732,
65.126671
],
[
-14.909834,
64.364082
],
[
-17.794438,
63.678749
],
[
-18.656246,
63.496383
],
[
-19.972755,
63.643635
],
[
-22.762972,
63.960179
],
[
-21.778484,
64.402116
],
[
-23.955044,
64.89113
],
[
-22.184403,
65.084968
],
[
-22.227423,
65.378594
],
[
-24.326184,
65.611189
],
[
-23.650515,
66.262519
],
[
-22.134922,
66.410469
],
[
-20.576284,
65.732112
],
[
-19.056842,
66.276601
],
[
-17.798624,
65.993853
],
[
-16.167819,
66.526792
],
[
-14.508695,
66.455892
]
]
]
}
},
{
type: 'Feature',
id: 'ISR',
properties: {
name: 'Israel'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
35.719918,
32.709192
],
[
35.545665,
32.393992
],
[
35.18393,
32.532511
],
[
34.974641,
31.866582
],
[
35.225892,
31.754341
],
[
34.970507,
31.616778
],
[
34.927408,
31.353435
],
[
35.397561,
31.489086
],
[
35.420918,
31.100066
],
[
34.922603,
29.501326
],
[
34.265433,
31.219361
],
[
34.556372,
31.548824
],
[
34.488107,
31.605539
],
[
34.752587,
32.072926
],
[
34.955417,
32.827376
],
[
35.098457,
33.080539
],
[
35.126053,
33.0909
],
[
35.460709,
33.08904
],
[
35.552797,
33.264275
],
[
35.821101,
33.277426
],
[
35.836397,
32.868123
],
[
35.700798,
32.716014
],
[
35.719918,
32.709192
]
]
]
}
},
{
type: 'Feature',
id: 'ITA',
properties: {
name: 'Italy'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
15.520376,
38.231155
],
[
15.160243,
37.444046
],
[
15.309898,
37.134219
],
[
15.099988,
36.619987
],
[
14.335229,
36.996631
],
[
13.826733,
37.104531
],
[
12.431004,
37.61295
],
[
12.570944,
38.126381
],
[
13.741156,
38.034966
],
[
14.761249,
38.143874
],
[
15.520376,
38.231155
]
]
],
[
[
[
9.210012,
41.209991
],
[
9.809975,
40.500009
],
[
9.669519,
39.177376
],
[
9.214818,
39.240473
],
[
8.806936,
38.906618
],
[
8.428302,
39.171847
],
[
8.388253,
40.378311
],
[
8.159998,
40.950007
],
[
8.709991,
40.899984
],
[
9.210012,
41.209991
]
]
],
[
[
[
12.376485,
46.767559
],
[
13.806475,
46.509306
],
[
13.69811,
46.016778
],
[
13.93763,
45.591016
],
[
13.141606,
45.736692
],
[
12.328581,
45.381778
],
[
12.383875,
44.885374
],
[
12.261453,
44.600482
],
[
12.589237,
44.091366
],
[
13.526906,
43.587727
],
[
14.029821,
42.761008
],
[
15.14257,
41.95514
],
[
15.926191,
41.961315
],
[
16.169897,
41.740295
],
[
15.889346,
41.541082
],
[
16.785002,
41.179606
],
[
17.519169,
40.877143
],
[
18.376687,
40.355625
],
[
18.480247,
40.168866
],
[
18.293385,
39.810774
],
[
17.73838,
40.277671
],
[
16.869596,
40.442235
],
[
16.448743,
39.795401
],
[
17.17149,
39.4247
],
[
17.052841,
38.902871
],
[
16.635088,
38.843572
],
[
16.100961,
37.985899
],
[
15.684087,
37.908849
],
[
15.687963,
38.214593
],
[
15.891981,
38.750942
],
[
16.109332,
38.964547
],
[
15.718814,
39.544072
],
[
15.413613,
40.048357
],
[
14.998496,
40.172949
],
[
14.703268,
40.60455
],
[
14.060672,
40.786348
],
[
13.627985,
41.188287
],
[
12.888082,
41.25309
],
[
12.106683,
41.704535
],
[
11.191906,
42.355425
],
[
10.511948,
42.931463
],
[
10.200029,
43.920007
],
[
9.702488,
44.036279
],
[
8.888946,
44.366336
],
[
8.428561,
44.231228
],
[
7.850767,
43.767148
],
[
7.435185,
43.693845
],
[
7.549596,
44.127901
],
[
7.007562,
44.254767
],
[
6.749955,
45.028518
],
[
7.096652,
45.333099
],
[
6.802355,
45.70858
],
[
6.843593,
45.991147
],
[
7.273851,
45.776948
],
[
7.755992,
45.82449
],
[
8.31663,
46.163642
],
[
8.489952,
46.005151
],
[
8.966306,
46.036932
],
[
9.182882,
46.440215
],
[
9.922837,
46.314899
],
[
10.363378,
46.483571
],
[
10.442701,
46.893546
],
[
11.048556,
46.751359
],
[
11.164828,
46.941579
],
[
12.153088,
47.115393
],
[
12.376485,
46.767559
]
]
]
]
}
},
{
type: 'Feature',
id: 'JAM',
properties: {
name: 'Jamaica'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-77.569601,
18.490525
],
[
-76.896619,
18.400867
],
[
-76.365359,
18.160701
],
[
-76.199659,
17.886867
],
[
-76.902561,
17.868238
],
[
-77.206341,
17.701116
],
[
-77.766023,
17.861597
],
[
-78.337719,
18.225968
],
[
-78.217727,
18.454533
],
[
-77.797365,
18.524218
],
[
-77.569601,
18.490525
]
]
]
}
},
{
type: 'Feature',
id: 'JOR',
properties: {
name: 'Jordan'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
35.545665,
32.393992
],
[
35.719918,
32.709192
],
[
36.834062,
32.312938
],
[
38.792341,
33.378686
],
[
39.195468,
32.161009
],
[
39.004886,
32.010217
],
[
37.002166,
31.508413
],
[
37.998849,
30.5085
],
[
37.66812,
30.338665
],
[
37.503582,
30.003776
],
[
36.740528,
29.865283
],
[
36.501214,
29.505254
],
[
36.068941,
29.197495
],
[
34.956037,
29.356555
],
[
34.922603,
29.501326
],
[
35.420918,
31.100066
],
[
35.397561,
31.489086
],
[
35.545252,
31.782505
],
[
35.545665,
32.393992
]
]
]
}
},
{
type: 'Feature',
id: 'JPN',
properties: {
name: 'Japan'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
134.638428,
34.149234
],
[
134.766379,
33.806335
],
[
134.203416,
33.201178
],
[
133.79295,
33.521985
],
[
133.280268,
33.28957
],
[
133.014858,
32.704567
],
[
132.363115,
32.989382
],
[
132.371176,
33.463642
],
[
132.924373,
34.060299
],
[
133.492968,
33.944621
],
[
133.904106,
34.364931
],
[
134.638428,
34.149234
]
]
],
[
[
[
140.976388,
37.142074
],
[
140.59977,
36.343983
],
[
140.774074,
35.842877
],
[
140.253279,
35.138114
],
[
138.975528,
34.6676
],
[
137.217599,
34.606286
],
[
135.792983,
33.464805
],
[
135.120983,
33.849071
],
[
135.079435,
34.596545
],
[
133.340316,
34.375938
],
[
132.156771,
33.904933
],
[
130.986145,
33.885761
],
[
132.000036,
33.149992
],
[
131.33279,
31.450355
],
[
130.686318,
31.029579
],
[
130.20242,
31.418238
],
[
130.447676,
32.319475
],
[
129.814692,
32.61031
],
[
129.408463,
33.296056
],
[
130.353935,
33.604151
],
[
130.878451,
34.232743
],
[
131.884229,
34.749714
],
[
132.617673,
35.433393
],
[
134.608301,
35.731618
],
[
135.677538,
35.527134
],
[
136.723831,
37.304984
],
[
137.390612,
36.827391
],
[
138.857602,
37.827485
],
[
139.426405,
38.215962
],
[
140.05479,
39.438807
],
[
139.883379,
40.563312
],
[
140.305783,
41.195005
],
[
141.368973,
41.37856
],
[
141.914263,
39.991616
],
[
141.884601,
39.180865
],
[
140.959489,
38.174001
],
[
140.976388,
37.142074
]
]
],
[
[
[
143.910162,
44.1741
],
[
144.613427,
43.960883
],
[
145.320825,
44.384733
],
[
145.543137,
43.262088
],
[
144.059662,
42.988358
],
[
143.18385,
41.995215
],
[
141.611491,
42.678791
],
[
141.067286,
41.584594
],
[
139.955106,
41.569556
],
[
139.817544,
42.563759
],
[
140.312087,
43.333273
],
[
141.380549,
43.388825
],
[
141.671952,
44.772125
],
[
141.967645,
45.551483
],
[
143.14287,
44.510358
],
[
143.910162,
44.1741
]
]
]
]
}
},
{
type: 'Feature',
id: 'KAZ',
properties: {
name: 'Kazakhstan'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
70.962315,
42.266154
],
[
70.388965,
42.081308
],
[
69.070027,
41.384244
],
[
68.632483,
40.668681
],
[
68.259896,
40.662325
],
[
67.985856,
41.135991
],
[
66.714047,
41.168444
],
[
66.510649,
41.987644
],
[
66.023392,
41.994646
],
[
66.098012,
42.99766
],
[
64.900824,
43.728081
],
[
63.185787,
43.650075
],
[
62.0133,
43.504477
],
[
61.05832,
44.405817
],
[
60.239972,
44.784037
],
[
58.689989,
45.500014
],
[
58.503127,
45.586804
],
[
55.928917,
44.995858
],
[
55.968191,
41.308642
],
[
55.455251,
41.259859
],
[
54.755345,
42.043971
],
[
54.079418,
42.324109
],
[
52.944293,
42.116034
],
[
52.50246,
41.783316
],
[
52.446339,
42.027151
],
[
52.692112,
42.443895
],
[
52.501426,
42.792298
],
[
51.342427,
43.132975
],
[
50.891292,
44.031034
],
[
50.339129,
44.284016
],
[
50.305643,
44.609836
],
[
51.278503,
44.514854
],
[
51.316899,
45.245998
],
[
52.16739,
45.408391
],
[
53.040876,
45.259047
],
[
53.220866,
46.234646
],
[
53.042737,
46.853006
],
[
52.042023,
46.804637
],
[
51.191945,
47.048705
],
[
50.034083,
46.60899
],
[
49.10116,
46.39933
],
[
48.593241,
46.561034
],
[
48.694734,
47.075628
],
[
48.057253,
47.743753
],
[
47.315231,
47.715847
],
[
46.466446,
48.394152
],
[
47.043672,
49.152039
],
[
46.751596,
49.356006
],
[
47.54948,
50.454698
],
[
48.577841,
49.87476
],
[
48.702382,
50.605128
],
[
50.766648,
51.692762
],
[
52.328724,
51.718652
],
[
54.532878,
51.02624
],
[
55.716941,
50.621717
],
[
56.777961,
51.043551
],
[
58.363291,
51.063653
],
[
59.642282,
50.545442
],
[
59.932807,
50.842194
],
[
61.337424,
50.79907
],
[
61.588003,
51.272659
],
[
59.967534,
51.96042
],
[
60.927269,
52.447548
],
[
60.739993,
52.719986
],
[
61.699986,
52.979996
],
[
60.978066,
53.664993
],
[
61.436591,
54.006265
],
[
65.178534,
54.354228
],
[
65.666876,
54.601267
],
[
68.1691,
54.970392
],
[
69.068167,
55.38525
],
[
70.865267,
55.169734
],
[
71.180131,
54.133285
],
[
72.22415,
54.376655
],
[
73.508516,
54.035617
],
[
73.425679,
53.48981
],
[
74.384845,
53.546861
],
[
76.8911,
54.490524
],
[
76.525179,
54.177003
],
[
77.800916,
53.404415
],
[
80.03556,
50.864751
],
[
80.568447,
51.388336
],
[
81.945986,
50.812196
],
[
83.383004,
51.069183
],
[
83.935115,
50.889246
],
[
84.416377,
50.3114
],
[
85.11556,
50.117303
],
[
85.54127,
49.692859
],
[
86.829357,
49.826675
],
[
87.35997,
49.214981
],
[
86.598776,
48.549182
],
[
85.768233,
48.455751
],
[
85.720484,
47.452969
],
[
85.16429,
47.000956
],
[
83.180484,
47.330031
],
[
82.458926,
45.53965
],
[
81.947071,
45.317027
],
[
79.966106,
44.917517
],
[
80.866206,
43.180362
],
[
80.18015,
42.920068
],
[
80.25999,
42.349999
],
[
79.643645,
42.496683
],
[
79.142177,
42.856092
],
[
77.658392,
42.960686
],
[
76.000354,
42.988022
],
[
75.636965,
42.8779
],
[
74.212866,
43.298339
],
[
73.645304,
43.091272
],
[
73.489758,
42.500894
],
[
71.844638,
42.845395
],
[
71.186281,
42.704293
],
[
70.962315,
42.266154
]
]
]
}
},
{
type: 'Feature',
id: 'KEN',
properties: {
name: 'Kenya'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
40.993,
-0.85829
],
[
41.58513,
-1.68325
],
[
40.88477,
-2.08255
],
[
40.63785,
-2.49979
],
[
40.26304,
-2.57309
],
[
40.12119,
-3.27768
],
[
39.80006,
-3.68116
],
[
39.60489,
-4.34653
],
[
39.20222,
-4.67677
],
[
37.7669,
-3.67712
],
[
37.69869,
-3.09699
],
[
34.07262,
-1.05982
],
[
33.903711,
-0.95
],
[
33.893569,
0.109814
],
[
34.18,
0.515
],
[
34.6721,
1.17694
],
[
35.03599,
1.90584
],
[
34.59607,
3.05374
],
[
34.47913,
3.5556
],
[
34.005,
4.249885
],
[
34.620196,
4.847123
],
[
35.298007,
5.506
],
[
35.817448,
5.338232
],
[
35.817448,
4.776966
],
[
36.159079,
4.447864
],
[
36.855093,
4.447864
],
[
38.120915,
3.598605
],
[
38.43697,
3.58851
],
[
38.67114,
3.61607
],
[
38.89251,
3.50074
],
[
39.559384,
3.42206
],
[
39.85494,
3.83879
],
[
40.76848,
4.25702
],
[
41.1718,
3.91909
],
[
41.855083,
3.918912
],
[
40.98105,
2.78452
],
[
40.993,
-0.85829
]
]
]
}
},
{
type: 'Feature',
id: 'KGZ',
properties: {
name: 'Kyrgyzstan'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
70.962315,
42.266154
],
[
71.186281,
42.704293
],
[
71.844638,
42.845395
],
[
73.489758,
42.500894
],
[
73.645304,
43.091272
],
[
74.212866,
43.298339
],
[
75.636965,
42.8779
],
[
76.000354,
42.988022
],
[
77.658392,
42.960686
],
[
79.142177,
42.856092
],
[
79.643645,
42.496683
],
[
80.25999,
42.349999
],
[
80.11943,
42.123941
],
[
78.543661,
41.582243
],
[
78.187197,
41.185316
],
[
76.904484,
41.066486
],
[
76.526368,
40.427946
],
[
75.467828,
40.562072
],
[
74.776862,
40.366425
],
[
73.822244,
39.893973
],
[
73.960013,
39.660008
],
[
73.675379,
39.431237
],
[
71.784694,
39.279463
],
[
70.549162,
39.604198
],
[
69.464887,
39.526683
],
[
69.55961,
40.103211
],
[
70.648019,
39.935754
],
[
71.014198,
40.244366
],
[
71.774875,
40.145844
],
[
73.055417,
40.866033
],
[
71.870115,
41.3929
],
[
71.157859,
41.143587
],
[
70.420022,
41.519998
],
[
71.259248,
42.167711
],
[
70.962315,
42.266154
]
]
]
}
},
{
type: 'Feature',
id: 'KHM',
properties: {
name: 'Cambodia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
103.49728,
10.632555
],
[
103.09069,
11.153661
],
[
102.584932,
12.186595
],
[
102.348099,
13.394247
],
[
102.988422,
14.225721
],
[
104.281418,
14.416743
],
[
105.218777,
14.273212
],
[
106.043946,
13.881091
],
[
106.496373,
14.570584
],
[
107.382727,
14.202441
],
[
107.614548,
13.535531
],
[
107.491403,
12.337206
],
[
105.810524,
11.567615
],
[
106.24967,
10.961812
],
[
105.199915,
10.88931
],
[
104.334335,
10.486544
],
[
103.49728,
10.632555
]
]
]
}
},
{
type: 'Feature',
id: 'KOR',
properties: {
name: 'South Korea'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
128.349716,
38.612243
],
[
129.21292,
37.432392
],
[
129.46045,
36.784189
],
[
129.468304,
35.632141
],
[
129.091377,
35.082484
],
[
128.18585,
34.890377
],
[
127.386519,
34.475674
],
[
126.485748,
34.390046
],
[
126.37392,
34.93456
],
[
126.559231,
35.684541
],
[
126.117398,
36.725485
],
[
126.860143,
36.893924
],
[
126.174759,
37.749686
],
[
126.237339,
37.840378
],
[
126.68372,
37.804773
],
[
127.073309,
38.256115
],
[
127.780035,
38.304536
],
[
128.205746,
38.370397
],
[
128.349716,
38.612243
]
]
]
}
},
{
type: 'Feature',
id: 'CS-KM',
properties: {
name: 'Kosovo'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
20.76216,
42.05186
],
[
20.71731,
41.84711
],
[
20.59023,
41.85541
],
[
20.52295,
42.21787
],
[
20.28374,
42.32025
],
[
20.0707,
42.58863
],
[
20.25758,
42.81275
],
[
20.49679,
42.88469
],
[
20.63508,
43.21671
],
[
20.81448,
43.27205
],
[
20.95651,
43.13094
],
[
21.143395,
43.068685
],
[
21.27421,
42.90959
],
[
21.43866,
42.86255
],
[
21.63302,
42.67717
],
[
21.77505,
42.6827
],
[
21.66292,
42.43922
],
[
21.54332,
42.32025
],
[
21.576636,
42.245224
],
[
21.3527,
42.2068
],
[
20.76216,
42.05186
]
]
]
}
},
{
type: 'Feature',
id: 'KWT',
properties: {
name: 'Kuwait'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
47.974519,
29.975819
],
[
48.183189,
29.534477
],
[
48.093943,
29.306299
],
[
48.416094,
28.552004
],
[
47.708851,
28.526063
],
[
47.459822,
29.002519
],
[
46.568713,
29.099025
],
[
47.302622,
30.05907
],
[
47.974519,
29.975819
]
]
]
}
},
{
type: 'Feature',
id: 'LAO',
properties: {
name: 'Laos'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
105.218777,
14.273212
],
[
105.544338,
14.723934
],
[
105.589039,
15.570316
],
[
104.779321,
16.441865
],
[
104.716947,
17.428859
],
[
103.956477,
18.240954
],
[
103.200192,
18.309632
],
[
102.998706,
17.961695
],
[
102.413005,
17.932782
],
[
102.113592,
18.109102
],
[
101.059548,
17.512497
],
[
101.035931,
18.408928
],
[
101.282015,
19.462585
],
[
100.606294,
19.508344
],
[
100.548881,
20.109238
],
[
100.115988,
20.41785
],
[
100.329101,
20.786122
],
[
101.180005,
21.436573
],
[
101.270026,
21.201652
],
[
101.80312,
21.174367
],
[
101.652018,
22.318199
],
[
102.170436,
22.464753
],
[
102.754896,
21.675137
],
[
103.203861,
20.766562
],
[
104.435,
20.758733
],
[
104.822574,
19.886642
],
[
104.183388,
19.624668
],
[
103.896532,
19.265181
],
[
105.094598,
18.666975
],
[
105.925762,
17.485315
],
[
106.556008,
16.604284
],
[
107.312706,
15.908538
],
[
107.564525,
15.202173
],
[
107.382727,
14.202441
],
[
106.496373,
14.570584
],
[
106.043946,
13.881091
],
[
105.218777,
14.273212
]
]
]
}
},
{
type: 'Feature',
id: 'LBN',
properties: {
name: 'Lebanon'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
35.821101,
33.277426
],
[
35.552797,
33.264275
],
[
35.460709,
33.08904
],
[
35.126053,
33.0909
],
[
35.482207,
33.90545
],
[
35.979592,
34.610058
],
[
35.998403,
34.644914
],
[
36.448194,
34.593935
],
[
36.61175,
34.201789
],
[
36.06646,
33.824912
],
[
35.821101,
33.277426
]
]
]
}
},
{
type: 'Feature',
id: 'LBR',
properties: {
name: 'Liberia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-7.712159,
4.364566
],
[
-7.974107,
4.355755
],
[
-9.004794,
4.832419
],
[
-9.91342,
5.593561
],
[
-10.765384,
6.140711
],
[
-11.438779,
6.785917
],
[
-11.199802,
7.105846
],
[
-11.146704,
7.396706
],
[
-10.695595,
7.939464
],
[
-10.230094,
8.406206
],
[
-10.016567,
8.428504
],
[
-9.755342,
8.541055
],
[
-9.33728,
7.928534
],
[
-9.403348,
7.526905
],
[
-9.208786,
7.313921
],
[
-8.926065,
7.309037
],
[
-8.722124,
7.711674
],
[
-8.439298,
7.686043
],
[
-8.485446,
7.395208
],
[
-8.385452,
6.911801
],
[
-8.60288,
6.467564
],
[
-8.311348,
6.193033
],
[
-7.993693,
6.12619
],
[
-7.570153,
5.707352
],
[
-7.539715,
5.313345
],
[
-7.635368,
5.188159
],
[
-7.712159,
4.364566
]
]
]
}
},
{
type: 'Feature',
id: 'LBY',
properties: {
name: 'Libya'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
14.8513,
22.86295
],
[
14.143871,
22.491289
],
[
13.581425,
23.040506
],
[
11.999506,
23.471668
],
[
11.560669,
24.097909
],
[
10.771364,
24.562532
],
[
10.303847,
24.379313
],
[
9.948261,
24.936954
],
[
9.910693,
25.365455
],
[
9.319411,
26.094325
],
[
9.716286,
26.512206
],
[
9.629056,
27.140953
],
[
9.756128,
27.688259
],
[
9.683885,
28.144174
],
[
9.859998,
28.95999
],
[
9.805634,
29.424638
],
[
9.48214,
30.307556
],
[
9.970017,
30.539325
],
[
10.056575,
30.961831
],
[
9.950225,
31.37607
],
[
10.636901,
31.761421
],
[
10.94479,
32.081815
],
[
11.432253,
32.368903
],
[
11.488787,
33.136996
],
[
12.66331,
32.79278
],
[
13.08326,
32.87882
],
[
13.91868,
32.71196
],
[
15.24563,
32.26508
],
[
15.71394,
31.37626
],
[
16.61162,
31.18218
],
[
18.02109,
30.76357
],
[
19.08641,
30.26639
],
[
19.57404,
30.52582
],
[
20.05335,
30.98576
],
[
19.82033,
31.75179
],
[
20.13397,
32.2382
],
[
20.85452,
32.7068
],
[
21.54298,
32.8432
],
[
22.89576,
32.63858
],
[
23.2368,
32.19149
],
[
23.60913,
32.18726
],
[
23.9275,
32.01667
],
[
24.92114,
31.89936
],
[
25.16482,
31.56915
],
[
24.80287,
31.08929
],
[
24.95762,
30.6616
],
[
24.70007,
30.04419
],
[
25,
29.238655
],
[
25,
25.6825
],
[
25,
22
],
[
25,
20.00304
],
[
23.85,
20
],
[
23.83766,
19.58047
],
[
19.84926,
21.49509
],
[
15.86085,
23.40972
],
[
14.8513,
22.86295
]
]
]
}
},
{
type: 'Feature',
id: 'LKA',
properties: {
name: 'Sri Lanka'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
81.787959,
7.523055
],
[
81.637322,
6.481775
],
[
81.21802,
6.197141
],
[
80.348357,
5.96837
],
[
79.872469,
6.763463
],
[
79.695167,
8.200843
],
[
80.147801,
9.824078
],
[
80.838818,
9.268427
],
[
81.304319,
8.564206
],
[
81.787959,
7.523055
]
]
]
}
},
{
type: 'Feature',
id: 'LSO',
properties: {
name: 'Lesotho'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
28.978263,
-28.955597
],
[
29.325166,
-29.257387
],
[
29.018415,
-29.743766
],
[
28.8484,
-30.070051
],
[
28.291069,
-30.226217
],
[
28.107205,
-30.545732
],
[
27.749397,
-30.645106
],
[
26.999262,
-29.875954
],
[
27.532511,
-29.242711
],
[
28.074338,
-28.851469
],
[
28.5417,
-28.647502
],
[
28.978263,
-28.955597
]
]
]
}
},
{
type: 'Feature',
id: 'LTU',
properties: {
name: 'Lithuania'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
22.731099,
54.327537
],
[
22.651052,
54.582741
],
[
22.757764,
54.856574
],
[
22.315724,
55.015299
],
[
21.268449,
55.190482
],
[
21.0558,
56.031076
],
[
22.201157,
56.337802
],
[
23.878264,
56.273671
],
[
24.860684,
56.372528
],
[
25.000934,
56.164531
],
[
25.533047,
56.100297
],
[
26.494331,
55.615107
],
[
26.588279,
55.167176
],
[
25.768433,
54.846963
],
[
25.536354,
54.282423
],
[
24.450684,
53.905702
],
[
23.484128,
53.912498
],
[
23.243987,
54.220567
],
[
22.731099,
54.327537
]
]
]
}
},
{
type: 'Feature',
id: 'LUX',
properties: {
name: 'Luxembourg'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
6.043073,
50.128052
],
[
6.242751,
49.902226
],
[
6.18632,
49.463803
],
[
5.897759,
49.442667
],
[
5.674052,
49.529484
],
[
5.782417,
50.090328
],
[
6.043073,
50.128052
]
]
]
}
},
{
type: 'Feature',
id: 'LVA',
properties: {
name: 'Latvia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
21.0558,
56.031076
],
[
21.090424,
56.783873
],
[
21.581866,
57.411871
],
[
22.524341,
57.753374
],
[
23.318453,
57.006236
],
[
24.12073,
57.025693
],
[
24.312863,
57.793424
],
[
25.164594,
57.970157
],
[
25.60281,
57.847529
],
[
26.463532,
57.476389
],
[
27.288185,
57.474528
],
[
27.770016,
57.244258
],
[
27.855282,
56.759326
],
[
28.176709,
56.16913
],
[
27.10246,
55.783314
],
[
26.494331,
55.615107
],
[
25.533047,
56.100297
],
[
25.000934,
56.164531
],
[
24.860684,
56.372528
],
[
23.878264,
56.273671
],
[
22.201157,
56.337802
],
[
21.0558,
56.031076
]
]
]
}
},
{
type: 'Feature',
id: 'MAR',
properties: {
name: 'Morocco'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-5.193863,
35.755182
],
[
-4.591006,
35.330712
],
[
-3.640057,
35.399855
],
[
-2.604306,
35.179093
],
[
-2.169914,
35.168396
],
[
-1.792986,
34.527919
],
[
-1.733455,
33.919713
],
[
-1.388049,
32.864015
],
[
-1.124551,
32.651522
],
[
-1.307899,
32.262889
],
[
-2.616605,
32.094346
],
[
-3.06898,
31.724498
],
[
-3.647498,
31.637294
],
[
-3.690441,
30.896952
],
[
-4.859646,
30.501188
],
[
-5.242129,
30.000443
],
[
-6.060632,
29.7317
],
[
-7.059228,
29.579228
],
[
-8.674116,
28.841289
],
[
-8.66559,
27.656426
],
[
-8.817809,
27.656426
],
[
-8.817828,
27.656426
],
[
-8.794884,
27.120696
],
[
-9.413037,
27.088476
],
[
-9.735343,
26.860945
],
[
-10.189424,
26.860945
],
[
-10.551263,
26.990808
],
[
-11.392555,
26.883424
],
[
-11.71822,
26.104092
],
[
-12.030759,
26.030866
],
[
-12.500963,
24.770116
],
[
-13.89111,
23.691009
],
[
-14.221168,
22.310163
],
[
-14.630833,
21.86094
],
[
-14.750955,
21.5006
],
[
-17.002962,
21.420734
],
[
-17.020428,
21.42231
],
[
-16.973248,
21.885745
],
[
-16.589137,
22.158234
],
[
-16.261922,
22.67934
],
[
-16.326414,
23.017768
],
[
-15.982611,
23.723358
],
[
-15.426004,
24.359134
],
[
-15.089332,
24.520261
],
[
-14.824645,
25.103533
],
[
-14.800926,
25.636265
],
[
-14.43994,
26.254418
],
[
-13.773805,
26.618892
],
[
-13.139942,
27.640148
],
[
-13.121613,
27.654148
],
[
-12.618837,
28.038186
],
[
-11.688919,
28.148644
],
[
-10.900957,
28.832142
],
[
-10.399592,
29.098586
],
[
-9.564811,
29.933574
],
[
-9.814718,
31.177736
],
[
-9.434793,
32.038096
],
[
-9.300693,
32.564679
],
[
-8.657476,
33.240245
],
[
-7.654178,
33.697065
],
[
-6.912544,
34.110476
],
[
-6.244342,
35.145865
],
[
-5.929994,
35.759988
],
[
-5.193863,
35.755182
]
]
]
}
},
{
type: 'Feature',
id: 'MDA',
properties: {
name: 'Moldova'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
26.619337,
48.220726
],
[
26.857824,
48.368211
],
[
27.522537,
48.467119
],
[
28.259547,
48.155562
],
[
28.670891,
48.118149
],
[
29.122698,
47.849095
],
[
29.050868,
47.510227
],
[
29.415135,
47.346645
],
[
29.559674,
46.928583
],
[
29.908852,
46.674361
],
[
29.83821,
46.525326
],
[
30.024659,
46.423937
],
[
29.759972,
46.349988
],
[
29.170654,
46.379262
],
[
29.072107,
46.517678
],
[
28.862972,
46.437889
],
[
28.933717,
46.25883
],
[
28.659987,
45.939987
],
[
28.485269,
45.596907
],
[
28.233554,
45.488283
],
[
28.054443,
45.944586
],
[
28.160018,
46.371563
],
[
28.12803,
46.810476
],
[
27.551166,
47.405117
],
[
27.233873,
47.826771
],
[
26.924176,
48.123264
],
[
26.619337,
48.220726
]
]
]
}
},
{
type: 'Feature',
id: 'MDG',
properties: {
name: 'Madagascar'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
49.543519,
-12.469833
],
[
49.808981,
-12.895285
],
[
50.056511,
-13.555761
],
[
50.217431,
-14.758789
],
[
50.476537,
-15.226512
],
[
50.377111,
-15.706069
],
[
50.200275,
-16.000263
],
[
49.860606,
-15.414253
],
[
49.672607,
-15.710204
],
[
49.863344,
-16.451037
],
[
49.774564,
-16.875042
],
[
49.498612,
-17.106036
],
[
49.435619,
-17.953064
],
[
49.041792,
-19.118781
],
[
48.548541,
-20.496888
],
[
47.930749,
-22.391501
],
[
47.547723,
-23.781959
],
[
47.095761,
-24.94163
],
[
46.282478,
-25.178463
],
[
45.409508,
-25.601434
],
[
44.833574,
-25.346101
],
[
44.03972,
-24.988345
],
[
43.763768,
-24.460677
],
[
43.697778,
-23.574116
],
[
43.345654,
-22.776904
],
[
43.254187,
-22.057413
],
[
43.433298,
-21.336475
],
[
43.893683,
-21.163307
],
[
43.89637,
-20.830459
],
[
44.374325,
-20.072366
],
[
44.464397,
-19.435454
],
[
44.232422,
-18.961995
],
[
44.042976,
-18.331387
],
[
43.963084,
-17.409945
],
[
44.312469,
-16.850496
],
[
44.446517,
-16.216219
],
[
44.944937,
-16.179374
],
[
45.502732,
-15.974373
],
[
45.872994,
-15.793454
],
[
46.312243,
-15.780018
],
[
46.882183,
-15.210182
],
[
47.70513,
-14.594303
],
[
48.005215,
-14.091233
],
[
47.869047,
-13.663869
],
[
48.293828,
-13.784068
],
[
48.84506,
-13.089175
],
[
48.863509,
-12.487868
],
[
49.194651,
-12.040557
],
[
49.543519,
-12.469833
]
]
]
}
},
{
type: 'Feature',
id: 'MEX',
properties: {
name: 'Mexico'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-97.140008,
25.869997
],
[
-97.528072,
24.992144
],
[
-97.702946,
24.272343
],
[
-97.776042,
22.93258
],
[
-97.872367,
22.444212
],
[
-97.699044,
21.898689
],
[
-97.38896,
21.411019
],
[
-97.189333,
20.635433
],
[
-96.525576,
19.890931
],
[
-96.292127,
19.320371
],
[
-95.900885,
18.828024
],
[
-94.839063,
18.562717
],
[
-94.42573,
18.144371
],
[
-93.548651,
18.423837
],
[
-92.786114,
18.524839
],
[
-92.037348,
18.704569
],
[
-91.407903,
18.876083
],
[
-90.77187,
19.28412
],
[
-90.53359,
19.867418
],
[
-90.451476,
20.707522
],
[
-90.278618,
20.999855
],
[
-89.601321,
21.261726
],
[
-88.543866,
21.493675
],
[
-87.658417,
21.458846
],
[
-87.05189,
21.543543
],
[
-86.811982,
21.331515
],
[
-86.845908,
20.849865
],
[
-87.383291,
20.255405
],
[
-87.621054,
19.646553
],
[
-87.43675,
19.472403
],
[
-87.58656,
19.04013
],
[
-87.837191,
18.259816
],
[
-88.090664,
18.516648
],
[
-88.300031,
18.499982
],
[
-88.490123,
18.486831
],
[
-88.848344,
17.883198
],
[
-89.029857,
18.001511
],
[
-89.150909,
17.955468
],
[
-89.14308,
17.808319
],
[
-90.067934,
17.819326
],
[
-91.00152,
17.817595
],
[
-91.002269,
17.254658
],
[
-91.453921,
17.252177
],
[
-91.08167,
16.918477
],
[
-90.711822,
16.687483
],
[
-90.600847,
16.470778
],
[
-90.438867,
16.41011
],
[
-90.464473,
16.069562
],
[
-91.74796,
16.066565
],
[
-92.229249,
15.251447
],
[
-92.087216,
15.064585
],
[
-92.20323,
14.830103
],
[
-92.22775,
14.538829
],
[
-93.359464,
15.61543
],
[
-93.875169,
15.940164
],
[
-94.691656,
16.200975
],
[
-95.250227,
16.128318
],
[
-96.053382,
15.752088
],
[
-96.557434,
15.653515
],
[
-97.263592,
15.917065
],
[
-98.01303,
16.107312
],
[
-98.947676,
16.566043
],
[
-99.697397,
16.706164
],
[
-100.829499,
17.171071
],
[
-101.666089,
17.649026
],
[
-101.918528,
17.91609
],
[
-102.478132,
17.975751
],
[
-103.50099,
18.292295
],
[
-103.917527,
18.748572
],
[
-104.99201,
19.316134
],
[
-105.493038,
19.946767
],
[
-105.731396,
20.434102
],
[
-105.397773,
20.531719
],
[
-105.500661,
20.816895
],
[
-105.270752,
21.076285
],
[
-105.265817,
21.422104
],
[
-105.603161,
21.871146
],
[
-105.693414,
22.26908
],
[
-106.028716,
22.773752
],
[
-106.90998,
23.767774
],
[
-107.915449,
24.548915
],
[
-108.401905,
25.172314
],
[
-109.260199,
25.580609
],
[
-109.444089,
25.824884
],
[
-109.291644,
26.442934
],
[
-109.801458,
26.676176
],
[
-110.391732,
27.162115
],
[
-110.641019,
27.859876
],
[
-111.178919,
27.941241
],
[
-111.759607,
28.467953
],
[
-112.228235,
28.954409
],
[
-112.271824,
29.266844
],
[
-112.809594,
30.021114
],
[
-113.163811,
30.786881
],
[
-113.148669,
31.170966
],
[
-113.871881,
31.567608
],
[
-114.205737,
31.524045
],
[
-114.776451,
31.799532
],
[
-114.9367,
31.393485
],
[
-114.771232,
30.913617
],
[
-114.673899,
30.162681
],
[
-114.330974,
29.750432
],
[
-113.588875,
29.061611
],
[
-113.424053,
28.826174
],
[
-113.271969,
28.754783
],
[
-113.140039,
28.411289
],
[
-112.962298,
28.42519
],
[
-112.761587,
27.780217
],
[
-112.457911,
27.525814
],
[
-112.244952,
27.171727
],
[
-111.616489,
26.662817
],
[
-111.284675,
25.73259
],
[
-110.987819,
25.294606
],
[
-110.710007,
24.826004
],
[
-110.655049,
24.298595
],
[
-110.172856,
24.265548
],
[
-109.771847,
23.811183
],
[
-109.409104,
23.364672
],
[
-109.433392,
23.185588
],
[
-109.854219,
22.818272
],
[
-110.031392,
22.823078
],
[
-110.295071,
23.430973
],
[
-110.949501,
24.000964
],
[
-111.670568,
24.484423
],
[
-112.182036,
24.738413
],
[
-112.148989,
25.470125
],
[
-112.300711,
26.012004
],
[
-112.777297,
26.32196
],
[
-113.464671,
26.768186
],
[
-113.59673,
26.63946
],
[
-113.848937,
26.900064
],
[
-114.465747,
27.14209
],
[
-115.055142,
27.722727
],
[
-114.982253,
27.7982
],
[
-114.570366,
27.741485
],
[
-114.199329,
28.115003
],
[
-114.162018,
28.566112
],
[
-114.931842,
29.279479
],
[
-115.518654,
29.556362
],
[
-115.887365,
30.180794
],
[
-116.25835,
30.836464
],
[
-116.721526,
31.635744
],
[
-117.12776,
32.53534
],
[
-115.99135,
32.61239
],
[
-114.72139,
32.72083
],
[
-114.815,
32.52528
],
[
-113.30498,
32.03914
],
[
-111.02361,
31.33472
],
[
-109.035,
31.34194
],
[
-108.24194,
31.34222
],
[
-108.24,
31.754854
],
[
-106.50759,
31.75452
],
[
-106.1429,
31.39995
],
[
-105.63159,
31.08383
],
[
-105.03737,
30.64402
],
[
-104.70575,
30.12173
],
[
-104.45697,
29.57196
],
[
-103.94,
29.27
],
[
-103.11,
28.97
],
[
-102.48,
29.76
],
[
-101.6624,
29.7793
],
[
-100.9576,
29.38071
],
[
-100.45584,
28.69612
],
[
-100.11,
28.11
],
[
-99.52,
27.54
],
[
-99.3,
26.84
],
[
-99.02,
26.37
],
[
-98.24,
26.06
],
[
-97.53,
25.84
],
[
-97.140008,
25.869997
]
]
]
}
},
{
type: 'Feature',
id: 'MKD',
properties: {
name: 'Macedonia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
20.59023,
41.85541
],
[
20.71731,
41.84711
],
[
20.76216,
42.05186
],
[
21.3527,
42.2068
],
[
21.576636,
42.245224
],
[
21.91708,
42.30364
],
[
22.380526,
42.32026
],
[
22.881374,
41.999297
],
[
22.952377,
41.337994
],
[
22.76177,
41.3048
],
[
22.597308,
41.130487
],
[
22.055378,
41.149866
],
[
21.674161,
40.931275
],
[
21.02004,
40.842727
],
[
20.60518,
41.08622
],
[
20.46315,
41.51509
],
[
20.59023,
41.85541
]
]
]
}
},
{
type: 'Feature',
id: 'MLI',
properties: {
name: 'Mali'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-12.17075,
14.616834
],
[
-11.834208,
14.799097
],
[
-11.666078,
15.388208
],
[
-11.349095,
15.411256
],
[
-10.650791,
15.132746
],
[
-10.086846,
15.330486
],
[
-9.700255,
15.264107
],
[
-9.550238,
15.486497
],
[
-5.537744,
15.50169
],
[
-5.315277,
16.201854
],
[
-5.488523,
16.325102
],
[
-5.971129,
20.640833
],
[
-6.453787,
24.956591
],
[
-4.923337,
24.974574
],
[
-1.550055,
22.792666
],
[
1.823228,
20.610809
],
[
2.060991,
20.142233
],
[
2.683588,
19.85623
],
[
3.146661,
19.693579
],
[
3.158133,
19.057364
],
[
4.267419,
19.155265
],
[
4.27021,
16.852227
],
[
3.723422,
16.184284
],
[
3.638259,
15.56812
],
[
2.749993,
15.409525
],
[
1.385528,
15.323561
],
[
1.015783,
14.968182
],
[
0.374892,
14.928908
],
[
-0.266257,
14.924309
],
[
-0.515854,
15.116158
],
[
-1.066363,
14.973815
],
[
-2.001035,
14.559008
],
[
-2.191825,
14.246418
],
[
-2.967694,
13.79815
],
[
-3.103707,
13.541267
],
[
-3.522803,
13.337662
],
[
-4.006391,
13.472485
],
[
-4.280405,
13.228444
],
[
-4.427166,
12.542646
],
[
-5.220942,
11.713859
],
[
-5.197843,
11.375146
],
[
-5.470565,
10.95127
],
[
-5.404342,
10.370737
],
[
-5.816926,
10.222555
],
[
-6.050452,
10.096361
],
[
-6.205223,
10.524061
],
[
-6.493965,
10.411303
],
[
-6.666461,
10.430811
],
[
-6.850507,
10.138994
],
[
-7.622759,
10.147236
],
[
-7.89959,
10.297382
],
[
-8.029944,
10.206535
],
[
-8.335377,
10.494812
],
[
-8.282357,
10.792597
],
[
-8.407311,
10.909257
],
[
-8.620321,
10.810891
],
[
-8.581305,
11.136246
],
[
-8.376305,
11.393646
],
[
-8.786099,
11.812561
],
[
-8.905265,
12.088358
],
[
-9.127474,
12.30806
],
[
-9.327616,
12.334286
],
[
-9.567912,
12.194243
],
[
-9.890993,
12.060479
],
[
-10.165214,
11.844084
],
[
-10.593224,
11.923975
],
[
-10.87083,
12.177887
],
[
-11.036556,
12.211245
],
[
-11.297574,
12.077971
],
[
-11.456169,
12.076834
],
[
-11.513943,
12.442988
],
[
-11.467899,
12.754519
],
[
-11.553398,
13.141214
],
[
-11.927716,
13.422075
],
[
-12.124887,
13.994727
],
[
-12.17075,
14.616834
]
]
]
}
},
{
type: 'Feature',
id: 'MLT',
properties: {
name: 'Malta'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
14.566171,
35.852721
],
[
14.532684,
35.820191
],
[
14.436463,
35.821664
],
[
14.352334,
35.872281
],
[
14.3513,
35.978399
],
[
14.448348,
35.957444
],
[
14.537025,
35.886285
],
[
14.566171,
35.852721
]
]
],
[
[
[
14.313473,
36.027569
],
[
14.253632,
36.012143
],
[
14.194204,
36.042245
],
[
14.180354,
36.060383
],
[
14.263243,
36.075809
],
[
14.303758,
36.062295
],
[
14.320914,
36.03625
],
[
14.313473,
36.027569
]
]
]
]
}
},
{
type: 'Feature',
id: 'MMR',
properties: {
name: 'Myanmar'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
99.543309,
20.186598
],
[
98.959676,
19.752981
],
[
98.253724,
19.708203
],
[
97.797783,
18.62708
],
[
97.375896,
18.445438
],
[
97.859123,
17.567946
],
[
98.493761,
16.837836
],
[
98.903348,
16.177824
],
[
98.537376,
15.308497
],
[
98.192074,
15.123703
],
[
98.430819,
14.622028
],
[
99.097755,
13.827503
],
[
99.212012,
13.269294
],
[
99.196354,
12.804748
],
[
99.587286,
11.892763
],
[
99.038121,
10.960546
],
[
98.553551,
9.93296
],
[
98.457174,
10.675266
],
[
98.764546,
11.441292
],
[
98.428339,
12.032987
],
[
98.509574,
13.122378
],
[
98.103604,
13.64046
],
[
97.777732,
14.837286
],
[
97.597072,
16.100568
],
[
97.16454,
16.928734
],
[
96.505769,
16.427241
],
[
95.369352,
15.71439
],
[
94.808405,
15.803454
],
[
94.188804,
16.037936
],
[
94.533486,
17.27724
],
[
94.324817,
18.213514
],
[
93.540988,
19.366493
],
[
93.663255,
19.726962
],
[
93.078278,
19.855145
],
[
92.368554,
20.670883
],
[
92.303234,
21.475485
],
[
92.652257,
21.324048
],
[
92.672721,
22.041239
],
[
93.166128,
22.27846
],
[
93.060294,
22.703111
],
[
93.286327,
23.043658
],
[
93.325188,
24.078556
],
[
94.106742,
23.850741
],
[
94.552658,
24.675238
],
[
94.603249,
25.162495
],
[
95.155153,
26.001307
],
[
95.124768,
26.573572
],
[
96.419366,
27.264589
],
[
97.133999,
27.083774
],
[
97.051989,
27.699059
],
[
97.402561,
27.882536
],
[
97.327114,
28.261583
],
[
97.911988,
28.335945
],
[
98.246231,
27.747221
],
[
98.68269,
27.508812
],
[
98.712094,
26.743536
],
[
98.671838,
25.918703
],
[
97.724609,
25.083637
],
[
97.60472,
23.897405
],
[
98.660262,
24.063286
],
[
98.898749,
23.142722
],
[
99.531992,
22.949039
],
[
99.240899,
22.118314
],
[
99.983489,
21.742937
],
[
100.416538,
21.558839
],
[
101.150033,
21.849984
],
[
101.180005,
21.436573
],
[
100.329101,
20.786122
],
[
100.115988,
20.41785
],
[
99.543309,
20.186598
]
]
]
}
},
{
type: 'Feature',
id: 'MNE',
properties: {
name: 'Montenegro'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
19.801613,
42.500093
],
[
19.738051,
42.688247
],
[
19.30449,
42.19574
],
[
19.37177,
41.87755
],
[
19.16246,
41.95502
],
[
18.88214,
42.28151
],
[
18.45,
42.48
],
[
18.56,
42.65
],
[
18.70648,
43.20011
],
[
19.03165,
43.43253
],
[
19.21852,
43.52384
],
[
19.48389,
43.35229
],
[
19.63,
43.21378
],
[
19.95857,
43.10604
],
[
20.3398,
42.89852
],
[
20.25758,
42.81275
],
[
20.0707,
42.58863
],
[
19.801613,
42.500093
]
]
]
}
},
{
type: 'Feature',
id: 'MNG',
properties: {
name: 'Mongolia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
87.751264,
49.297198
],
[
88.805567,
49.470521
],
[
90.713667,
50.331812
],
[
92.234712,
50.802171
],
[
93.104219,
50.49529
],
[
94.147566,
50.480537
],
[
94.815949,
50.013433
],
[
95.814028,
49.977467
],
[
97.259728,
49.726061
],
[
98.231762,
50.422401
],
[
97.82574,
51.010995
],
[
98.861491,
52.047366
],
[
99.981732,
51.634006
],
[
100.88948,
51.516856
],
[
102.065223,
51.259921
],
[
102.255909,
50.510561
],
[
103.676545,
50.089966
],
[
104.621552,
50.275329
],
[
105.886591,
50.406019
],
[
106.888804,
50.274296
],
[
107.868176,
49.793705
],
[
108.475167,
49.282548
],
[
109.402449,
49.292961
],
[
110.662011,
49.130128
],
[
111.581231,
49.377968
],
[
112.89774,
49.543565
],
[
114.362456,
50.248303
],
[
114.96211,
50.140247
],
[
115.485695,
49.805177
],
[
116.678801,
49.888531
],
[
116.191802,
49.134598
],
[
115.485282,
48.135383
],
[
115.742837,
47.726545
],
[
116.308953,
47.85341
],
[
117.295507,
47.697709
],
[
118.064143,
48.06673
],
[
118.866574,
47.74706
],
[
119.772824,
47.048059
],
[
119.66327,
46.69268
],
[
118.874326,
46.805412
],
[
117.421701,
46.672733
],
[
116.717868,
46.388202
],
[
115.985096,
45.727235
],
[
114.460332,
45.339817
],
[
113.463907,
44.808893
],
[
112.436062,
45.011646
],
[
111.873306,
45.102079
],
[
111.348377,
44.457442
],
[
111.667737,
44.073176
],
[
111.829588,
43.743118
],
[
111.129682,
43.406834
],
[
110.412103,
42.871234
],
[
109.243596,
42.519446
],
[
107.744773,
42.481516
],
[
106.129316,
42.134328
],
[
104.964994,
41.59741
],
[
104.522282,
41.908347
],
[
103.312278,
41.907468
],
[
101.83304,
42.514873
],
[
100.845866,
42.663804
],
[
99.515817,
42.524691
],
[
97.451757,
42.74889
],
[
96.349396,
42.725635
],
[
95.762455,
43.319449
],
[
95.306875,
44.241331
],
[
94.688929,
44.352332
],
[
93.480734,
44.975472
],
[
92.133891,
45.115076
],
[
90.94554,
45.286073
],
[
90.585768,
45.719716
],
[
90.970809,
46.888146
],
[
90.280826,
47.693549
],
[
88.854298,
48.069082
],
[
88.013832,
48.599463
],
[
87.751264,
49.297198
]
]
]
}
},
{
type: 'Feature',
id: 'MOZ',
properties: {
name: 'Mozambique'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
34.559989,
-11.52002
],
[
35.312398,
-11.439146
],
[
36.514082,
-11.720938
],
[
36.775151,
-11.594537
],
[
37.471284,
-11.568751
],
[
37.827645,
-11.268769
],
[
38.427557,
-11.285202
],
[
39.52103,
-10.896854
],
[
40.316589,
-10.317096
],
[
40.478387,
-10.765441
],
[
40.437253,
-11.761711
],
[
40.560811,
-12.639177
],
[
40.59962,
-14.201975
],
[
40.775475,
-14.691764
],
[
40.477251,
-15.406294
],
[
40.089264,
-16.100774
],
[
39.452559,
-16.720891
],
[
38.538351,
-17.101023
],
[
37.411133,
-17.586368
],
[
36.281279,
-18.659688
],
[
35.896497,
-18.84226
],
[
35.1984,
-19.552811
],
[
34.786383,
-19.784012
],
[
34.701893,
-20.497043
],
[
35.176127,
-21.254361
],
[
35.373428,
-21.840837
],
[
35.385848,
-22.14
],
[
35.562546,
-22.09
],
[
35.533935,
-23.070788
],
[
35.371774,
-23.535359
],
[
35.60747,
-23.706563
],
[
35.458746,
-24.12261
],
[
35.040735,
-24.478351
],
[
34.215824,
-24.816314
],
[
33.01321,
-25.357573
],
[
32.574632,
-25.727318
],
[
32.660363,
-26.148584
],
[
32.915955,
-26.215867
],
[
32.83012,
-26.742192
],
[
32.071665,
-26.73382
],
[
31.985779,
-26.29178
],
[
31.837778,
-25.843332
],
[
31.752408,
-25.484284
],
[
31.930589,
-24.369417
],
[
31.670398,
-23.658969
],
[
31.191409,
-22.25151
],
[
32.244988,
-21.116489
],
[
32.508693,
-20.395292
],
[
32.659743,
-20.30429
],
[
32.772708,
-19.715592
],
[
32.611994,
-19.419383
],
[
32.654886,
-18.67209
],
[
32.849861,
-17.979057
],
[
32.847639,
-16.713398
],
[
32.328239,
-16.392074
],
[
31.852041,
-16.319417
],
[
31.636498,
-16.07199
],
[
31.173064,
-15.860944
],
[
30.338955,
-15.880839
],
[
30.274256,
-15.507787
],
[
30.179481,
-14.796099
],
[
33.214025,
-13.97186
],
[
33.7897,
-14.451831
],
[
34.064825,
-14.35995
],
[
34.459633,
-14.61301
],
[
34.517666,
-15.013709
],
[
34.307291,
-15.478641
],
[
34.381292,
-16.18356
],
[
35.03381,
-16.8013
],
[
35.339063,
-16.10744
],
[
35.771905,
-15.896859
],
[
35.686845,
-14.611046
],
[
35.267956,
-13.887834
],
[
34.907151,
-13.565425
],
[
34.559989,
-13.579998
],
[
34.280006,
-12.280025
],
[
34.559989,
-11.52002
]
]
]
}
},
{
type: 'Feature',
id: 'MRT',
properties: {
name: 'Mauritania'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-12.17075,
14.616834
],
[
-12.830658,
15.303692
],
[
-13.435738,
16.039383
],
[
-14.099521,
16.304302
],
[
-14.577348,
16.598264
],
[
-15.135737,
16.587282
],
[
-15.623666,
16.369337
],
[
-16.12069,
16.455663
],
[
-16.463098,
16.135036
],
[
-16.549708,
16.673892
],
[
-16.270552,
17.166963
],
[
-16.146347,
18.108482
],
[
-16.256883,
19.096716
],
[
-16.377651,
19.593817
],
[
-16.277838,
20.092521
],
[
-16.536324,
20.567866
],
[
-17.063423,
20.999752
],
[
-16.845194,
21.333323
],
[
-12.929102,
21.327071
],
[
-13.118754,
22.77122
],
[
-12.874222,
23.284832
],
[
-11.937224,
23.374594
],
[
-11.969419,
25.933353
],
[
-8.687294,
25.881056
],
[
-8.6844,
27.395744
],
[
-4.923337,
24.974574
],
[
-6.453787,
24.956591
],
[
-5.971129,
20.640833
],
[
-5.488523,
16.325102
],
[
-5.315277,
16.201854
],
[
-5.537744,
15.50169
],
[
-9.550238,
15.486497
],
[
-9.700255,
15.264107
],
[
-10.086846,
15.330486
],
[
-10.650791,
15.132746
],
[
-11.349095,
15.411256
],
[
-11.666078,
15.388208
],
[
-11.834208,
14.799097
],
[
-12.17075,
14.616834
]
]
]
}
},
{
type: 'Feature',
id: 'MWI',
properties: {
name: 'Malawi'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
34.559989,
-11.52002
],
[
34.280006,
-12.280025
],
[
34.559989,
-13.579998
],
[
34.907151,
-13.565425
],
[
35.267956,
-13.887834
],
[
35.686845,
-14.611046
],
[
35.771905,
-15.896859
],
[
35.339063,
-16.10744
],
[
35.03381,
-16.8013
],
[
34.381292,
-16.18356
],
[
34.307291,
-15.478641
],
[
34.517666,
-15.013709
],
[
34.459633,
-14.61301
],
[
34.064825,
-14.35995
],
[
33.7897,
-14.451831
],
[
33.214025,
-13.97186
],
[
32.688165,
-13.712858
],
[
32.991764,
-12.783871
],
[
33.306422,
-12.435778
],
[
33.114289,
-11.607198
],
[
33.31531,
-10.79655
],
[
33.485688,
-10.525559
],
[
33.231388,
-9.676722
],
[
32.759375,
-9.230599
],
[
33.739729,
-9.417151
],
[
33.940838,
-9.693674
],
[
34.280006,
-10.16
],
[
34.559989,
-11.52002
]
]
]
}
},
{
type: 'Feature',
id: 'MYS',
properties: {
name: 'Malaysia'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
101.075516,
6.204867
],
[
101.154219,
5.691384
],
[
101.814282,
5.810808
],
[
102.141187,
6.221636
],
[
102.371147,
6.128205
],
[
102.961705,
5.524495
],
[
103.381215,
4.855001
],
[
103.438575,
4.181606
],
[
103.332122,
3.726698
],
[
103.429429,
3.382869
],
[
103.502448,
2.791019
],
[
103.854674,
2.515454
],
[
104.247932,
1.631141
],
[
104.228811,
1.293048
],
[
103.519707,
1.226334
],
[
102.573615,
1.967115
],
[
101.390638,
2.760814
],
[
101.27354,
3.270292
],
[
100.695435,
3.93914
],
[
100.557408,
4.76728
],
[
100.196706,
5.312493
],
[
100.30626,
6.040562
],
[
100.085757,
6.464489
],
[
100.259596,
6.642825
],
[
101.075516,
6.204867
]
]
],
[
[
[
118.618321,
4.478202
],
[
117.882035,
4.137551
],
[
117.015214,
4.306094
],
[
115.865517,
4.306559
],
[
115.519078,
3.169238
],
[
115.134037,
2.821482
],
[
114.621355,
1.430688
],
[
113.80585,
1.217549
],
[
112.859809,
1.49779
],
[
112.380252,
1.410121
],
[
111.797548,
0.904441
],
[
111.159138,
0.976478
],
[
110.514061,
0.773131
],
[
109.830227,
1.338136
],
[
109.66326,
2.006467
],
[
110.396135,
1.663775
],
[
111.168853,
1.850637
],
[
111.370081,
2.697303
],
[
111.796928,
2.885897
],
[
112.995615,
3.102395
],
[
113.712935,
3.893509
],
[
114.204017,
4.525874
],
[
114.659596,
4.007637
],
[
114.869557,
4.348314
],
[
115.347461,
4.316636
],
[
115.4057,
4.955228
],
[
115.45071,
5.44773
],
[
116.220741,
6.143191
],
[
116.725103,
6.924771
],
[
117.129626,
6.928053
],
[
117.643393,
6.422166
],
[
117.689075,
5.98749
],
[
118.347691,
5.708696
],
[
119.181904,
5.407836
],
[
119.110694,
5.016128
],
[
118.439727,
4.966519
],
[
118.618321,
4.478202
]
]
]
]
}
},
{
type: 'Feature',
id: 'NAM',
properties: {
name: 'Namibia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
16.344977,
-28.576705
],
[
15.601818,
-27.821247
],
[
15.210472,
-27.090956
],
[
14.989711,
-26.117372
],
[
14.743214,
-25.39292
],
[
14.408144,
-23.853014
],
[
14.385717,
-22.656653
],
[
14.257714,
-22.111208
],
[
13.868642,
-21.699037
],
[
13.352498,
-20.872834
],
[
12.826845,
-19.673166
],
[
12.608564,
-19.045349
],
[
11.794919,
-18.069129
],
[
11.734199,
-17.301889
],
[
12.215461,
-17.111668
],
[
12.814081,
-16.941343
],
[
13.462362,
-16.971212
],
[
14.058501,
-17.423381
],
[
14.209707,
-17.353101
],
[
18.263309,
-17.309951
],
[
18.956187,
-17.789095
],
[
21.377176,
-17.930636
],
[
23.215048,
-17.523116
],
[
24.033862,
-17.295843
],
[
24.682349,
-17.353411
],
[
25.07695,
-17.578823
],
[
25.084443,
-17.661816
],
[
24.520705,
-17.887125
],
[
24.217365,
-17.889347
],
[
23.579006,
-18.281261
],
[
23.196858,
-17.869038
],
[
21.65504,
-18.219146
],
[
20.910641,
-18.252219
],
[
20.881134,
-21.814327
],
[
19.895458,
-21.849157
],
[
19.895768,
-24.76779
],
[
19.894734,
-28.461105
],
[
19.002127,
-28.972443
],
[
18.464899,
-29.045462
],
[
17.836152,
-28.856378
],
[
17.387497,
-28.783514
],
[
17.218929,
-28.355943
],
[
16.824017,
-28.082162
],
[
16.344977,
-28.576705
]
]
]
}
},
{
type: 'Feature',
id: 'NCL',
properties: {
name: 'New Caledonia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
165.77999,
-21.080005
],
[
166.599991,
-21.700019
],
[
167.120011,
-22.159991
],
[
166.740035,
-22.399976
],
[
166.189732,
-22.129708
],
[
165.474375,
-21.679607
],
[
164.829815,
-21.14982
],
[
164.167995,
-20.444747
],
[
164.029606,
-20.105646
],
[
164.459967,
-20.120012
],
[
165.020036,
-20.459991
],
[
165.460009,
-20.800022
],
[
165.77999,
-21.080005
]
]
]
}
},
{
type: 'Feature',
id: 'NER',
properties: {
name: 'Niger'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
2.154474,
11.94015
],
[
2.177108,
12.625018
],
[
1.024103,
12.851826
],
[
0.993046,
13.33575
],
[
0.429928,
13.988733
],
[
0.295646,
14.444235
],
[
0.374892,
14.928908
],
[
1.015783,
14.968182
],
[
1.385528,
15.323561
],
[
2.749993,
15.409525
],
[
3.638259,
15.56812
],
[
3.723422,
16.184284
],
[
4.27021,
16.852227
],
[
4.267419,
19.155265
],
[
5.677566,
19.601207
],
[
8.572893,
21.565661
],
[
11.999506,
23.471668
],
[
13.581425,
23.040506
],
[
14.143871,
22.491289
],
[
14.8513,
22.86295
],
[
15.096888,
21.308519
],
[
15.471077,
21.048457
],
[
15.487148,
20.730415
],
[
15.903247,
20.387619
],
[
15.685741,
19.95718
],
[
15.300441,
17.92795
],
[
15.247731,
16.627306
],
[
13.972202,
15.684366
],
[
13.540394,
14.367134
],
[
13.956699,
13.996691
],
[
13.954477,
13.353449
],
[
14.595781,
13.330427
],
[
14.495787,
12.859396
],
[
14.213531,
12.802035
],
[
14.181336,
12.483657
],
[
13.995353,
12.461565
],
[
13.318702,
13.556356
],
[
13.083987,
13.596147
],
[
12.302071,
13.037189
],
[
11.527803,
13.32898
],
[
10.989593,
13.387323
],
[
10.701032,
13.246918
],
[
10.114814,
13.277252
],
[
9.524928,
12.851102
],
[
9.014933,
12.826659
],
[
7.804671,
13.343527
],
[
7.330747,
13.098038
],
[
6.820442,
13.115091
],
[
6.445426,
13.492768
],
[
5.443058,
13.865924
],
[
4.368344,
13.747482
],
[
4.107946,
13.531216
],
[
3.967283,
12.956109
],
[
3.680634,
12.552903
],
[
3.61118,
11.660167
],
[
2.848643,
12.235636
],
[
2.490164,
12.233052
],
[
2.154474,
11.94015
]
]
]
}
},
{
type: 'Feature',
id: 'NGA',
properties: {
name: 'Nigeria'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
8.500288,
4.771983
],
[
7.462108,
4.412108
],
[
7.082596,
4.464689
],
[
6.698072,
4.240594
],
[
5.898173,
4.262453
],
[
5.362805,
4.887971
],
[
5.033574,
5.611802
],
[
4.325607,
6.270651
],
[
3.57418,
6.2583
],
[
2.691702,
6.258817
],
[
2.749063,
7.870734
],
[
2.723793,
8.506845
],
[
2.912308,
9.137608
],
[
3.220352,
9.444153
],
[
3.705438,
10.06321
],
[
3.60007,
10.332186
],
[
3.797112,
10.734746
],
[
3.572216,
11.327939
],
[
3.61118,
11.660167
],
[
3.680634,
12.552903
],
[
3.967283,
12.956109
],
[
4.107946,
13.531216
],
[
4.368344,
13.747482
],
[
5.443058,
13.865924
],
[
6.445426,
13.492768
],
[
6.820442,
13.115091
],
[
7.330747,
13.098038
],
[
7.804671,
13.343527
],
[
9.014933,
12.826659
],
[
9.524928,
12.851102
],
[
10.114814,
13.277252
],
[
10.701032,
13.246918
],
[
10.989593,
13.387323
],
[
11.527803,
13.32898
],
[
12.302071,
13.037189
],
[
13.083987,
13.596147
],
[
13.318702,
13.556356
],
[
13.995353,
12.461565
],
[
14.181336,
12.483657
],
[
14.577178,
12.085361
],
[
14.468192,
11.904752
],
[
14.415379,
11.572369
],
[
13.57295,
10.798566
],
[
13.308676,
10.160362
],
[
13.1676,
9.640626
],
[
12.955468,
9.417772
],
[
12.753672,
8.717763
],
[
12.218872,
8.305824
],
[
12.063946,
7.799808
],
[
11.839309,
7.397042
],
[
11.745774,
6.981383
],
[
11.058788,
6.644427
],
[
10.497375,
7.055358
],
[
10.118277,
7.03877
],
[
9.522706,
6.453482
],
[
9.233163,
6.444491
],
[
8.757533,
5.479666
],
[
8.500288,
4.771983
]
]
]
}
},
{
type: 'Feature',
id: 'NIC',
properties: {
name: 'Nicaragua'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-85.71254,
11.088445
],
[
-86.058488,
11.403439
],
[
-86.52585,
11.806877
],
[
-86.745992,
12.143962
],
[
-87.167516,
12.458258
],
[
-87.668493,
12.90991
],
[
-87.557467,
13.064552
],
[
-87.392386,
12.914018
],
[
-87.316654,
12.984686
],
[
-87.005769,
13.025794
],
[
-86.880557,
13.254204
],
[
-86.733822,
13.263093
],
[
-86.755087,
13.754845
],
[
-86.520708,
13.778487
],
[
-86.312142,
13.771356
],
[
-86.096264,
14.038187
],
[
-85.801295,
13.836055
],
[
-85.698665,
13.960078
],
[
-85.514413,
14.079012
],
[
-85.165365,
14.35437
],
[
-85.148751,
14.560197
],
[
-85.052787,
14.551541
],
[
-84.924501,
14.790493
],
[
-84.820037,
14.819587
],
[
-84.649582,
14.666805
],
[
-84.449336,
14.621614
],
[
-84.228342,
14.748764
],
[
-83.975721,
14.749436
],
[
-83.628585,
14.880074
],
[
-83.489989,
15.016267
],
[
-83.147219,
14.995829
],
[
-83.233234,
14.899866
],
[
-83.284162,
14.676624
],
[
-83.182126,
14.310703
],
[
-83.4125,
13.970078
],
[
-83.519832,
13.567699
],
[
-83.552207,
13.127054
],
[
-83.498515,
12.869292
],
[
-83.473323,
12.419087
],
[
-83.626104,
12.32085
],
[
-83.719613,
11.893124
],
[
-83.650858,
11.629032
],
[
-83.85547,
11.373311
],
[
-83.808936,
11.103044
],
[
-83.655612,
10.938764
],
[
-83.895054,
10.726839
],
[
-84.190179,
10.79345
],
[
-84.355931,
10.999226
],
[
-84.673069,
11.082657
],
[
-84.903003,
10.952303
],
[
-85.561852,
11.217119
],
[
-85.71254,
11.088445
]
]
]
}
},
{
type: 'Feature',
id: 'NLD',
properties: {
name: 'Netherlands'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
6.074183,
53.510403
],
[
6.90514,
53.482162
],
[
7.092053,
53.144043
],
[
6.84287,
52.22844
],
[
6.589397,
51.852029
],
[
5.988658,
51.851616
],
[
6.156658,
50.803721
],
[
5.606976,
51.037298
],
[
4.973991,
51.475024
],
[
4.047071,
51.267259
],
[
3.314971,
51.345755
],
[
3.830289,
51.620545
],
[
4.705997,
53.091798
],
[
6.074183,
53.510403
]
]
]
}
},
{
type: 'Feature',
id: 'NOR',
properties: {
name: 'Norway'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
28.165547,
71.185474
],
[
31.293418,
70.453788
],
[
30.005435,
70.186259
],
[
31.101079,
69.55808
],
[
29.399581,
69.156916
],
[
28.59193,
69.064777
],
[
29.015573,
69.766491
],
[
27.732292,
70.164193
],
[
26.179622,
69.825299
],
[
25.689213,
69.092114
],
[
24.735679,
68.649557
],
[
23.66205,
68.891247
],
[
22.356238,
68.841741
],
[
21.244936,
69.370443
],
[
20.645593,
69.106247
],
[
20.025269,
69.065139
],
[
19.87856,
68.407194
],
[
17.993868,
68.567391
],
[
17.729182,
68.010552
],
[
16.768879,
68.013937
],
[
16.108712,
67.302456
],
[
15.108411,
66.193867
],
[
13.55569,
64.787028
],
[
13.919905,
64.445421
],
[
13.571916,
64.049114
],
[
12.579935,
64.066219
],
[
11.930569,
63.128318
],
[
11.992064,
61.800362
],
[
12.631147,
61.293572
],
[
12.300366,
60.117933
],
[
11.468272,
59.432393
],
[
11.027369,
58.856149
],
[
10.356557,
59.469807
],
[
8.382,
58.313288
],
[
7.048748,
58.078884
],
[
5.665835,
58.588155
],
[
5.308234,
59.663232
],
[
4.992078,
61.970998
],
[
5.9129,
62.614473
],
[
8.553411,
63.454008
],
[
10.527709,
64.486038
],
[
12.358347,
65.879726
],
[
14.761146,
67.810642
],
[
16.435927,
68.563205
],
[
19.184028,
69.817444
],
[
21.378416,
70.255169
],
[
23.023742,
70.202072
],
[
24.546543,
71.030497
],
[
26.37005,
70.986262
],
[
28.165547,
71.185474
]
]
],
[
[
[
24.72412,
77.85385
],
[
22.49032,
77.44493
],
[
20.72601,
77.67704
],
[
21.41611,
77.93504
],
[
20.8119,
78.25463
],
[
22.88426,
78.45494
],
[
23.28134,
78.07954
],
[
24.72412,
77.85385
]
]
],
[
[
[
18.25183,
79.70175
],
[
21.54383,
78.95611
],
[
19.02737,
78.5626
],
[
18.47172,
77.82669
],
[
17.59441,
77.63796
],
[
17.1182,
76.80941
],
[
15.91315,
76.77045
],
[
13.76259,
77.38035
],
[
14.66956,
77.73565
],
[
13.1706,
78.02493
],
[
11.22231,
78.8693
],
[
10.44453,
79.65239
],
[
13.17077,
80.01046
],
[
13.71852,
79.66039
],
[
15.14282,
79.67431
],
[
15.52255,
80.01608
],
[
16.99085,
80.05086
],
[
18.25183,
79.70175
]
]
],
[
[
[
25.447625,
80.40734
],
[
27.407506,
80.056406
],
[
25.924651,
79.517834
],
[
23.024466,
79.400012
],
[
20.075188,
79.566823
],
[
19.897266,
79.842362
],
[
18.462264,
79.85988
],
[
17.368015,
80.318896
],
[
20.455992,
80.598156
],
[
21.907945,
80.357679
],
[
22.919253,
80.657144
],
[
25.447625,
80.40734
]
]
]
]
}
},
{
type: 'Feature',
id: 'NPL',
properties: {
name: 'Nepal'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
88.120441,
27.876542
],
[
88.043133,
27.445819
],
[
88.174804,
26.810405
],
[
88.060238,
26.414615
],
[
87.227472,
26.397898
],
[
86.024393,
26.630985
],
[
85.251779,
26.726198
],
[
84.675018,
27.234901
],
[
83.304249,
27.364506
],
[
81.999987,
27.925479
],
[
81.057203,
28.416095
],
[
80.088425,
28.79447
],
[
80.476721,
29.729865
],
[
81.111256,
30.183481
],
[
81.525804,
30.422717
],
[
82.327513,
30.115268
],
[
83.337115,
29.463732
],
[
83.898993,
29.320226
],
[
84.23458,
28.839894
],
[
85.011638,
28.642774
],
[
85.82332,
28.203576
],
[
86.954517,
27.974262
],
[
88.120441,
27.876542
]
]
]
}
},
{
type: 'Feature',
id: 'NZL',
properties: {
name: 'New Zealand'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
173.020375,
-40.919052
],
[
173.247234,
-41.331999
],
[
173.958405,
-40.926701
],
[
174.247587,
-41.349155
],
[
174.248517,
-41.770008
],
[
173.876447,
-42.233184
],
[
173.22274,
-42.970038
],
[
172.711246,
-43.372288
],
[
173.080113,
-43.853344
],
[
172.308584,
-43.865694
],
[
171.452925,
-44.242519
],
[
171.185138,
-44.897104
],
[
170.616697,
-45.908929
],
[
169.831422,
-46.355775
],
[
169.332331,
-46.641235
],
[
168.411354,
-46.619945
],
[
167.763745,
-46.290197
],
[
166.676886,
-46.219917
],
[
166.509144,
-45.852705
],
[
167.046424,
-45.110941
],
[
168.303763,
-44.123973
],
[
168.949409,
-43.935819
],
[
169.667815,
-43.555326
],
[
170.52492,
-43.031688
],
[
171.12509,
-42.512754
],
[
171.569714,
-41.767424
],
[
171.948709,
-41.514417
],
[
172.097227,
-40.956104
],
[
172.79858,
-40.493962
],
[
173.020375,
-40.919052
]
]
],
[
[
[
174.612009,
-36.156397
],
[
175.336616,
-37.209098
],
[
175.357596,
-36.526194
],
[
175.808887,
-36.798942
],
[
175.95849,
-37.555382
],
[
176.763195,
-37.881253
],
[
177.438813,
-37.961248
],
[
178.010354,
-37.579825
],
[
178.517094,
-37.695373
],
[
178.274731,
-38.582813
],
[
177.97046,
-39.166343
],
[
177.206993,
-39.145776
],
[
176.939981,
-39.449736
],
[
177.032946,
-39.879943
],
[
176.885824,
-40.065978
],
[
176.508017,
-40.604808
],
[
176.01244,
-41.289624
],
[
175.239567,
-41.688308
],
[
175.067898,
-41.425895
],
[
174.650973,
-41.281821
],
[
175.22763,
-40.459236
],
[
174.900157,
-39.908933
],
[
173.824047,
-39.508854
],
[
173.852262,
-39.146602
],
[
174.574802,
-38.797683
],
[
174.743474,
-38.027808
],
[
174.697017,
-37.381129
],
[
174.292028,
-36.711092
],
[
174.319004,
-36.534824
],
[
173.840997,
-36.121981
],
[
173.054171,
-35.237125
],
[
172.636005,
-34.529107
],
[
173.007042,
-34.450662
],
[
173.551298,
-35.006183
],
[
174.32939,
-35.265496
],
[
174.612009,
-36.156397
]
]
]
]
}
},
{
type: 'Feature',
id: 'OMN',
properties: {
name: 'Oman'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
58.861141,
21.114035
],
[
58.487986,
20.428986
],
[
58.034318,
20.481437
],
[
57.826373,
20.243002
],
[
57.665762,
19.736005
],
[
57.7887,
19.06757
],
[
57.694391,
18.94471
],
[
57.234264,
18.947991
],
[
56.609651,
18.574267
],
[
56.512189,
18.087113
],
[
56.283521,
17.876067
],
[
55.661492,
17.884128
],
[
55.269939,
17.632309
],
[
55.2749,
17.228354
],
[
54.791002,
16.950697
],
[
54.239253,
17.044981
],
[
53.570508,
16.707663
],
[
53.108573,
16.651051
],
[
52.782184,
17.349742
],
[
52.00001,
19.000003
],
[
54.999982,
19.999994
],
[
55.666659,
22.000001
],
[
55.208341,
22.70833
],
[
55.234489,
23.110993
],
[
55.525841,
23.524869
],
[
55.528632,
23.933604
],
[
55.981214,
24.130543
],
[
55.804119,
24.269604
],
[
55.886233,
24.920831
],
[
56.396847,
24.924732
],
[
56.84514,
24.241673
],
[
57.403453,
23.878594
],
[
58.136948,
23.747931
],
[
58.729211,
23.565668
],
[
59.180502,
22.992395
],
[
59.450098,
22.660271
],
[
59.80806,
22.533612
],
[
59.806148,
22.310525
],
[
59.442191,
21.714541
],
[
59.282408,
21.433886
],
[
58.861141,
21.114035
]
]
],
[
[
[
56.391421,
25.895991
],
[
56.261042,
25.714606
],
[
56.070821,
26.055464
],
[
56.362017,
26.395934
],
[
56.485679,
26.309118
],
[
56.391421,
25.895991
]
]
]
]
}
},
{
type: 'Feature',
id: 'PAK',
properties: {
name: 'Pakistan'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
75.158028,
37.133031
],
[
75.896897,
36.666806
],
[
76.192848,
35.898403
],
[
77.837451,
35.49401
],
[
76.871722,
34.653544
],
[
75.757061,
34.504923
],
[
74.240203,
34.748887
],
[
73.749948,
34.317699
],
[
74.104294,
33.441473
],
[
74.451559,
32.7649
],
[
75.258642,
32.271105
],
[
74.405929,
31.692639
],
[
74.42138,
30.979815
],
[
73.450638,
29.976413
],
[
72.823752,
28.961592
],
[
71.777666,
27.91318
],
[
70.616496,
27.989196
],
[
69.514393,
26.940966
],
[
70.168927,
26.491872
],
[
70.282873,
25.722229
],
[
70.844699,
25.215102
],
[
71.04324,
24.356524
],
[
68.842599,
24.359134
],
[
68.176645,
23.691965
],
[
67.443667,
23.944844
],
[
67.145442,
24.663611
],
[
66.372828,
25.425141
],
[
64.530408,
25.237039
],
[
62.905701,
25.218409
],
[
61.497363,
25.078237
],
[
61.874187,
26.239975
],
[
63.316632,
26.756532
],
[
63.233898,
27.217047
],
[
62.755426,
27.378923
],
[
62.72783,
28.259645
],
[
61.771868,
28.699334
],
[
61.369309,
29.303276
],
[
60.874248,
29.829239
],
[
62.549857,
29.318572
],
[
63.550261,
29.468331
],
[
64.148002,
29.340819
],
[
64.350419,
29.560031
],
[
65.046862,
29.472181
],
[
66.346473,
29.887943
],
[
66.381458,
30.738899
],
[
66.938891,
31.304911
],
[
67.683394,
31.303154
],
[
67.792689,
31.58293
],
[
68.556932,
31.71331
],
[
68.926677,
31.620189
],
[
69.317764,
31.901412
],
[
69.262522,
32.501944
],
[
69.687147,
33.105499
],
[
70.323594,
33.358533
],
[
69.930543,
34.02012
],
[
70.881803,
33.988856
],
[
71.156773,
34.348911
],
[
71.115019,
34.733126
],
[
71.613076,
35.153203
],
[
71.498768,
35.650563
],
[
71.262348,
36.074388
],
[
71.846292,
36.509942
],
[
72.920025,
36.720007
],
[
74.067552,
36.836176
],
[
74.575893,
37.020841
],
[
75.158028,
37.133031
]
]
]
}
},
{
type: 'Feature',
id: 'PAN',
properties: {
name: 'Panama'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-77.881571,
7.223771
],
[
-78.214936,
7.512255
],
[
-78.429161,
8.052041
],
[
-78.182096,
8.319182
],
[
-78.435465,
8.387705
],
[
-78.622121,
8.718124
],
[
-79.120307,
8.996092
],
[
-79.557877,
8.932375
],
[
-79.760578,
8.584515
],
[
-80.164481,
8.333316
],
[
-80.382659,
8.298409
],
[
-80.480689,
8.090308
],
[
-80.00369,
7.547524
],
[
-80.276671,
7.419754
],
[
-80.421158,
7.271572
],
[
-80.886401,
7.220541
],
[
-81.059543,
7.817921
],
[
-81.189716,
7.647906
],
[
-81.519515,
7.70661
],
[
-81.721311,
8.108963
],
[
-82.131441,
8.175393
],
[
-82.390934,
8.292362
],
[
-82.820081,
8.290864
],
[
-82.850958,
8.073823
],
[
-82.965783,
8.225028
],
[
-82.913176,
8.423517
],
[
-82.829771,
8.626295
],
[
-82.868657,
8.807266
],
[
-82.719183,
8.925709
],
[
-82.927155,
9.07433
],
[
-82.932891,
9.476812
],
[
-82.546196,
9.566135
],
[
-82.187123,
9.207449
],
[
-82.207586,
8.995575
],
[
-81.808567,
8.950617
],
[
-81.714154,
9.031955
],
[
-81.439287,
8.786234
],
[
-80.947302,
8.858504
],
[
-80.521901,
9.111072
],
[
-79.9146,
9.312765
],
[
-79.573303,
9.61161
],
[
-79.021192,
9.552931
],
[
-79.05845,
9.454565
],
[
-78.500888,
9.420459
],
[
-78.055928,
9.24773
],
[
-77.729514,
8.946844
],
[
-77.353361,
8.670505
],
[
-77.474723,
8.524286
],
[
-77.242566,
7.935278
],
[
-77.431108,
7.638061
],
[
-77.753414,
7.70984
],
[
-77.881571,
7.223771
]
]
]
}
},
{
type: 'Feature',
id: 'PER',
properties: {
name: 'Peru'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-69.590424,
-17.580012
],
[
-69.858444,
-18.092694
],
[
-70.372572,
-18.347975
],
[
-71.37525,
-17.773799
],
[
-71.462041,
-17.363488
],
[
-73.44453,
-16.359363
],
[
-75.237883,
-15.265683
],
[
-76.009205,
-14.649286
],
[
-76.423469,
-13.823187
],
[
-76.259242,
-13.535039
],
[
-77.106192,
-12.222716
],
[
-78.092153,
-10.377712
],
[
-79.036953,
-8.386568
],
[
-79.44592,
-7.930833
],
[
-79.760578,
-7.194341
],
[
-80.537482,
-6.541668
],
[
-81.249996,
-6.136834
],
[
-80.926347,
-5.690557
],
[
-81.410943,
-4.736765
],
[
-81.09967,
-4.036394
],
[
-80.302561,
-3.404856
],
[
-80.184015,
-3.821162
],
[
-80.469295,
-4.059287
],
[
-80.442242,
-4.425724
],
[
-80.028908,
-4.346091
],
[
-79.624979,
-4.454198
],
[
-79.205289,
-4.959129
],
[
-78.639897,
-4.547784
],
[
-78.450684,
-3.873097
],
[
-77.837905,
-3.003021
],
[
-76.635394,
-2.608678
],
[
-75.544996,
-1.56161
],
[
-75.233723,
-0.911417
],
[
-75.373223,
-0.152032
],
[
-75.106625,
-0.057205
],
[
-74.441601,
-0.53082
],
[
-74.122395,
-1.002833
],
[
-73.659504,
-1.260491
],
[
-73.070392,
-2.308954
],
[
-72.325787,
-2.434218
],
[
-71.774761,
-2.16979
],
[
-71.413646,
-2.342802
],
[
-70.813476,
-2.256865
],
[
-70.047709,
-2.725156
],
[
-70.692682,
-3.742872
],
[
-70.394044,
-3.766591
],
[
-69.893635,
-4.298187
],
[
-70.794769,
-4.251265
],
[
-70.928843,
-4.401591
],
[
-71.748406,
-4.593983
],
[
-72.891928,
-5.274561
],
[
-72.964507,
-5.741251
],
[
-73.219711,
-6.089189
],
[
-73.120027,
-6.629931
],
[
-73.724487,
-6.918595
],
[
-73.723401,
-7.340999
],
[
-73.987235,
-7.52383
],
[
-73.571059,
-8.424447
],
[
-73.015383,
-9.032833
],
[
-73.226713,
-9.462213
],
[
-72.563033,
-9.520194
],
[
-72.184891,
-10.053598
],
[
-71.302412,
-10.079436
],
[
-70.481894,
-9.490118
],
[
-70.548686,
-11.009147
],
[
-70.093752,
-11.123972
],
[
-69.529678,
-10.951734
],
[
-68.66508,
-12.5613
],
[
-68.88008,
-12.899729
],
[
-68.929224,
-13.602684
],
[
-68.948887,
-14.453639
],
[
-69.339535,
-14.953195
],
[
-69.160347,
-15.323974
],
[
-69.389764,
-15.660129
],
[
-68.959635,
-16.500698
],
[
-69.590424,
-17.580012
]
]
]
}
},
{
type: 'Feature',
id: 'PHL',
properties: {
name: 'Philippines'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
126.376814,
8.414706
],
[
126.478513,
7.750354
],
[
126.537424,
7.189381
],
[
126.196773,
6.274294
],
[
125.831421,
7.293715
],
[
125.363852,
6.786485
],
[
125.683161,
6.049657
],
[
125.396512,
5.581003
],
[
124.219788,
6.161355
],
[
123.93872,
6.885136
],
[
124.243662,
7.36061
],
[
123.610212,
7.833527
],
[
123.296071,
7.418876
],
[
122.825506,
7.457375
],
[
122.085499,
6.899424
],
[
121.919928,
7.192119
],
[
122.312359,
8.034962
],
[
122.942398,
8.316237
],
[
123.487688,
8.69301
],
[
123.841154,
8.240324
],
[
124.60147,
8.514158
],
[
124.764612,
8.960409
],
[
125.471391,
8.986997
],
[
125.412118,
9.760335
],
[
126.222714,
9.286074
],
[
126.306637,
8.782487
],
[
126.376814,
8.414706
]
]
],
[
[
[
123.982438,
10.278779
],
[
123.623183,
9.950091
],
[
123.309921,
9.318269
],
[
122.995883,
9.022189
],
[
122.380055,
9.713361
],
[
122.586089,
9.981045
],
[
122.837081,
10.261157
],
[
122.947411,
10.881868
],
[
123.49885,
10.940624
],
[
123.337774,
10.267384
],
[
124.077936,
11.232726
],
[
123.982438,
10.278779
]
]
],
[
[
[
118.504581,
9.316383
],
[
117.174275,
8.3675
],
[
117.664477,
9.066889
],
[
118.386914,
9.6845
],
[
118.987342,
10.376292
],
[
119.511496,
11.369668
],
[
119.689677,
10.554291
],
[
119.029458,
10.003653
],
[
118.504581,
9.316383
]
]
],
[
[
[
121.883548,
11.891755
],
[
122.483821,
11.582187
],
[
123.120217,
11.58366
],
[
123.100838,
11.165934
],
[
122.637714,
10.741308
],
[
122.00261,
10.441017
],
[
121.967367,
10.905691
],
[
122.03837,
11.415841
],
[
121.883548,
11.891755
]
]
],
[
[
[
125.502552,
12.162695
],
[
125.783465,
11.046122
],
[
125.011884,
11.311455
],
[
125.032761,
10.975816
],
[
125.277449,
10.358722
],
[
124.801819,
10.134679
],
[
124.760168,
10.837995
],
[
124.459101,
10.88993
],
[
124.302522,
11.495371
],
[
124.891013,
11.415583
],
[
124.87799,
11.79419
],
[
124.266762,
12.557761
],
[
125.227116,
12.535721
],
[
125.502552,
12.162695
]
]
],
[
[
[
121.527394,
13.06959
],
[
121.26219,
12.20556
],
[
120.833896,
12.704496
],
[
120.323436,
13.466413
],
[
121.180128,
13.429697
],
[
121.527394,
13.06959
]
]
],
[
[
[
121.321308,
18.504065
],
[
121.937601,
18.218552
],
[
122.246006,
18.47895
],
[
122.336957,
18.224883
],
[
122.174279,
17.810283
],
[
122.515654,
17.093505
],
[
122.252311,
16.262444
],
[
121.662786,
15.931018
],
[
121.50507,
15.124814
],
[
121.728829,
14.328376
],
[
122.258925,
14.218202
],
[
122.701276,
14.336541
],
[
123.950295,
13.782131
],
[
123.855107,
13.237771
],
[
124.181289,
12.997527
],
[
124.077419,
12.536677
],
[
123.298035,
13.027526
],
[
122.928652,
13.55292
],
[
122.671355,
13.185836
],
[
122.03465,
13.784482
],
[
121.126385,
13.636687
],
[
120.628637,
13.857656
],
[
120.679384,
14.271016
],
[
120.991819,
14.525393
],
[
120.693336,
14.756671
],
[
120.564145,
14.396279
],
[
120.070429,
14.970869
],
[
119.920929,
15.406347
],
[
119.883773,
16.363704
],
[
120.286488,
16.034629
],
[
120.390047,
17.599081
],
[
120.715867,
18.505227
],
[
121.321308,
18.504065
]
]
]
]
}
},
{
type: 'Feature',
id: 'PNG',
properties: {
name: 'Papua New Guinea'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
155.880026,
-6.819997
],
[
155.599991,
-6.919991
],
[
155.166994,
-6.535931
],
[
154.729192,
-5.900828
],
[
154.514114,
-5.139118
],
[
154.652504,
-5.042431
],
[
154.759991,
-5.339984
],
[
155.062918,
-5.566792
],
[
155.547746,
-6.200655
],
[
156.019965,
-6.540014
],
[
155.880026,
-6.819997
]
]
],
[
[
[
151.982796,
-5.478063
],
[
151.459107,
-5.56028
],
[
151.30139,
-5.840728
],
[
150.754447,
-6.083763
],
[
150.241197,
-6.317754
],
[
149.709963,
-6.316513
],
[
148.890065,
-6.02604
],
[
148.318937,
-5.747142
],
[
148.401826,
-5.437756
],
[
149.298412,
-5.583742
],
[
149.845562,
-5.505503
],
[
149.99625,
-5.026101
],
[
150.139756,
-5.001348
],
[
150.236908,
-5.53222
],
[
150.807467,
-5.455842
],
[
151.089672,
-5.113693
],
[
151.647881,
-4.757074
],
[
151.537862,
-4.167807
],
[
152.136792,
-4.14879
],
[
152.338743,
-4.312966
],
[
152.318693,
-4.867661
],
[
151.982796,
-5.478063
]
]
],
[
[
[
147.191874,
-7.388024
],
[
148.084636,
-8.044108
],
[
148.734105,
-9.104664
],
[
149.306835,
-9.071436
],
[
149.266631,
-9.514406
],
[
150.038728,
-9.684318
],
[
149.738798,
-9.872937
],
[
150.801628,
-10.293687
],
[
150.690575,
-10.582713
],
[
150.028393,
-10.652476
],
[
149.78231,
-10.393267
],
[
148.923138,
-10.280923
],
[
147.913018,
-10.130441
],
[
147.135443,
-9.492444
],
[
146.567881,
-8.942555
],
[
146.048481,
-8.067414
],
[
144.744168,
-7.630128
],
[
143.897088,
-7.91533
],
[
143.286376,
-8.245491
],
[
143.413913,
-8.983069
],
[
142.628431,
-9.326821
],
[
142.068259,
-9.159596
],
[
141.033852,
-9.117893
],
[
141.017057,
-5.859022
],
[
141.00021,
-2.600151
],
[
142.735247,
-3.289153
],
[
144.583971,
-3.861418
],
[
145.27318,
-4.373738
],
[
145.829786,
-4.876498
],
[
145.981922,
-5.465609
],
[
147.648073,
-6.083659
],
[
147.891108,
-6.614015
],
[
146.970905,
-6.721657
],
[
147.191874,
-7.388024
]
]
],
[
[
[
153.140038,
-4.499983
],
[
152.827292,
-4.766427
],
[
152.638673,
-4.176127
],
[
152.406026,
-3.789743
],
[
151.953237,
-3.462062
],
[
151.384279,
-3.035422
],
[
150.66205,
-2.741486
],
[
150.939965,
-2.500002
],
[
151.479984,
-2.779985
],
[
151.820015,
-2.999972
],
[
152.239989,
-3.240009
],
[
152.640017,
-3.659983
],
[
153.019994,
-3.980015
],
[
153.140038,
-4.499983
]
]
]
]
}
},
{
type: 'Feature',
id: 'POL',
properties: {
name: 'Poland'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
15.016996,
51.106674
],
[
14.607098,
51.745188
],
[
14.685026,
52.089947
],
[
14.4376,
52.62485
],
[
14.074521,
52.981263
],
[
14.353315,
53.248171
],
[
14.119686,
53.757029
],
[
14.8029,
54.050706
],
[
16.363477,
54.513159
],
[
17.622832,
54.851536
],
[
18.620859,
54.682606
],
[
18.696255,
54.438719
],
[
19.66064,
54.426084
],
[
20.892245,
54.312525
],
[
22.731099,
54.327537
],
[
23.243987,
54.220567
],
[
23.484128,
53.912498
],
[
23.527536,
53.470122
],
[
23.804935,
53.089731
],
[
23.799199,
52.691099
],
[
23.199494,
52.486977
],
[
23.508002,
52.023647
],
[
23.527071,
51.578454
],
[
24.029986,
50.705407
],
[
23.922757,
50.424881
],
[
23.426508,
50.308506
],
[
22.51845,
49.476774
],
[
22.776419,
49.027395
],
[
22.558138,
49.085738
],
[
21.607808,
49.470107
],
[
20.887955,
49.328772
],
[
20.415839,
49.431453
],
[
19.825023,
49.217125
],
[
19.320713,
49.571574
],
[
18.909575,
49.435846
],
[
18.853144,
49.49623
],
[
18.392914,
49.988629
],
[
17.649445,
50.049038
],
[
17.554567,
50.362146
],
[
16.868769,
50.473974
],
[
16.719476,
50.215747
],
[
16.176253,
50.422607
],
[
16.238627,
50.697733
],
[
15.490972,
50.78473
],
[
15.016996,
51.106674
]
]
]
}
},
{
type: 'Feature',
id: 'PRI',
properties: {
name: 'Puerto Rico'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-66.282434,
18.514762
],
[
-65.771303,
18.426679
],
[
-65.591004,
18.228035
],
[
-65.847164,
17.975906
],
[
-66.599934,
17.981823
],
[
-67.184162,
17.946553
],
[
-67.242428,
18.37446
],
[
-67.100679,
18.520601
],
[
-66.282434,
18.514762
]
]
]
}
},
{
type: 'Feature',
id: 'PRK',
properties: {
name: 'North Korea'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
130.640016,
42.395009
],
[
130.780007,
42.220007
],
[
130.400031,
42.280004
],
[
129.965949,
41.941368
],
[
129.667362,
41.601104
],
[
129.705189,
40.882828
],
[
129.188115,
40.661808
],
[
129.0104,
40.485436
],
[
128.633368,
40.189847
],
[
127.967414,
40.025413
],
[
127.533436,
39.75685
],
[
127.50212,
39.323931
],
[
127.385434,
39.213472
],
[
127.783343,
39.050898
],
[
128.349716,
38.612243
],
[
128.205746,
38.370397
],
[
127.780035,
38.304536
],
[
127.073309,
38.256115
],
[
126.68372,
37.804773
],
[
126.237339,
37.840378
],
[
126.174759,
37.749686
],
[
125.689104,
37.94001
],
[
125.568439,
37.752089
],
[
125.27533,
37.669071
],
[
125.240087,
37.857224
],
[
124.981033,
37.948821
],
[
124.712161,
38.108346
],
[
124.985994,
38.548474
],
[
125.221949,
38.665857
],
[
125.132859,
38.848559
],
[
125.38659,
39.387958
],
[
125.321116,
39.551385
],
[
124.737482,
39.660344
],
[
124.265625,
39.928493
],
[
125.079942,
40.569824
],
[
126.182045,
41.107336
],
[
126.869083,
41.816569
],
[
127.343783,
41.503152
],
[
128.208433,
41.466772
],
[
128.052215,
41.994285
],
[
129.596669,
42.424982
],
[
129.994267,
42.985387
],
[
130.640016,
42.395009
]
]
]
}
},
{
type: 'Feature',
id: 'PRT',
properties: {
name: 'Portugal'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-9.034818,
41.880571
],
[
-8.671946,
42.134689
],
[
-8.263857,
42.280469
],
[
-8.013175,
41.790886
],
[
-7.422513,
41.792075
],
[
-7.251309,
41.918346
],
[
-6.668606,
41.883387
],
[
-6.389088,
41.381815
],
[
-6.851127,
41.111083
],
[
-6.86402,
40.330872
],
[
-7.026413,
40.184524
],
[
-7.066592,
39.711892
],
[
-7.498632,
39.629571
],
[
-7.098037,
39.030073
],
[
-7.374092,
38.373059
],
[
-7.029281,
38.075764
],
[
-7.166508,
37.803894
],
[
-7.537105,
37.428904
],
[
-7.453726,
37.097788
],
[
-7.855613,
36.838269
],
[
-8.382816,
36.97888
],
[
-8.898857,
36.868809
],
[
-8.746101,
37.651346
],
[
-8.839998,
38.266243
],
[
-9.287464,
38.358486
],
[
-9.526571,
38.737429
],
[
-9.446989,
39.392066
],
[
-9.048305,
39.755093
],
[
-8.977353,
40.159306
],
[
-8.768684,
40.760639
],
[
-8.790853,
41.184334
],
[
-8.990789,
41.543459
],
[
-9.034818,
41.880571
]
]
]
}
},
{
type: 'Feature',
id: 'PRY',
properties: {
name: 'Paraguay'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-62.685057,
-22.249029
],
[
-62.291179,
-21.051635
],
[
-62.265961,
-20.513735
],
[
-61.786326,
-19.633737
],
[
-60.043565,
-19.342747
],
[
-59.115042,
-19.356906
],
[
-58.183471,
-19.868399
],
[
-58.166392,
-20.176701
],
[
-57.870674,
-20.732688
],
[
-57.937156,
-22.090176
],
[
-56.88151,
-22.282154
],
[
-56.473317,
-22.0863
],
[
-55.797958,
-22.35693
],
[
-55.610683,
-22.655619
],
[
-55.517639,
-23.571998
],
[
-55.400747,
-23.956935
],
[
-55.027902,
-24.001274
],
[
-54.652834,
-23.839578
],
[
-54.29296,
-24.021014
],
[
-54.293476,
-24.5708
],
[
-54.428946,
-25.162185
],
[
-54.625291,
-25.739255
],
[
-54.788795,
-26.621786
],
[
-55.695846,
-27.387837
],
[
-56.486702,
-27.548499
],
[
-57.60976,
-27.395899
],
[
-58.618174,
-27.123719
],
[
-57.63366,
-25.603657
],
[
-57.777217,
-25.16234
],
[
-58.807128,
-24.771459
],
[
-60.028966,
-24.032796
],
[
-60.846565,
-23.880713
],
[
-62.685057,
-22.249029
]
]
]
}
},
{
type: 'Feature',
id: 'QAT',
properties: {
name: 'Qatar'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
50.810108,
24.754743
],
[
50.743911,
25.482424
],
[
51.013352,
26.006992
],
[
51.286462,
26.114582
],
[
51.589079,
25.801113
],
[
51.6067,
25.21567
],
[
51.389608,
24.627386
],
[
51.112415,
24.556331
],
[
50.810108,
24.754743
]
]
]
}
},
{
type: 'Feature',
id: 'ROU',
properties: {
name: 'Romania'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
22.710531,
47.882194
],
[
23.142236,
48.096341
],
[
23.760958,
47.985598
],
[
24.402056,
47.981878
],
[
24.866317,
47.737526
],
[
25.207743,
47.891056
],
[
25.945941,
47.987149
],
[
26.19745,
48.220881
],
[
26.619337,
48.220726
],
[
26.924176,
48.123264
],
[
27.233873,
47.826771
],
[
27.551166,
47.405117
],
[
28.12803,
46.810476
],
[
28.160018,
46.371563
],
[
28.054443,
45.944586
],
[
28.233554,
45.488283
],
[
28.679779,
45.304031
],
[
29.149725,
45.464925
],
[
29.603289,
45.293308
],
[
29.626543,
45.035391
],
[
29.141612,
44.82021
],
[
28.837858,
44.913874
],
[
28.558081,
43.707462
],
[
27.970107,
43.812468
],
[
27.2424,
44.175986
],
[
26.065159,
43.943494
],
[
25.569272,
43.688445
],
[
24.100679,
43.741051
],
[
23.332302,
43.897011
],
[
22.944832,
43.823785
],
[
22.65715,
44.234923
],
[
22.474008,
44.409228
],
[
22.705726,
44.578003
],
[
22.459022,
44.702517
],
[
22.145088,
44.478422
],
[
21.562023,
44.768947
],
[
21.483526,
45.18117
],
[
20.874313,
45.416375
],
[
20.762175,
45.734573
],
[
20.220192,
46.127469
],
[
21.021952,
46.316088
],
[
21.626515,
46.994238
],
[
22.099768,
47.672439
],
[
22.710531,
47.882194
]
]
]
}
},
{
type: 'Feature',
id: 'RUS',
properties: {
name: 'Russia'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
143.648007,
50.7476
],
[
144.654148,
48.976391
],
[
143.173928,
49.306551
],
[
142.558668,
47.861575
],
[
143.533492,
46.836728
],
[
143.505277,
46.137908
],
[
142.747701,
46.740765
],
[
142.09203,
45.966755
],
[
141.906925,
46.805929
],
[
142.018443,
47.780133
],
[
141.904445,
48.859189
],
[
142.1358,
49.615163
],
[
142.179983,
50.952342
],
[
141.594076,
51.935435
],
[
141.682546,
53.301966
],
[
142.606934,
53.762145
],
[
142.209749,
54.225476
],
[
142.654786,
54.365881
],
[
142.914616,
53.704578
],
[
143.260848,
52.74076
],
[
143.235268,
51.75666
],
[
143.648007,
50.7476
]
]
],
[
[
[
22.731099,
54.327537
],
[
20.892245,
54.312525
],
[
19.66064,
54.426084
],
[
19.888481,
54.86616
],
[
21.268449,
55.190482
],
[
22.315724,
55.015299
],
[
22.757764,
54.856574
],
[
22.651052,
54.582741
],
[
22.731099,
54.327537
]
]
],
[
[
[
-175.01425,
66.58435
],
[
-174.33983,
66.33556
],
[
-174.57182,
67.06219
],
[
-171.85731,
66.91308
],
[
-169.89958,
65.97724
],
[
-170.89107,
65.54139
],
[
-172.53025,
65.43791
],
[
-172.555,
64.46079
],
[
-172.95533,
64.25269
],
[
-173.89184,
64.2826
],
[
-174.65392,
64.63125
],
[
-175.98353,
64.92288
],
[
-176.20716,
65.35667
],
[
-177.22266,
65.52024
],
[
-178.35993,
65.39052
],
[
-178.90332,
65.74044
],
[
-178.68611,
66.11211
],
[
-179.88377,
65.87456
],
[
-179.43268,
65.40411
],
[
-180,
64.979709
],
[
-180,
68.963636
],
[
-177.55,
68.2
],
[
-174.92825,
67.20589
],
[
-175.01425,
66.58435
]
]
],
[
[
[
180,
70.832199
],
[
178.903425,
70.78114
],
[
178.7253,
71.0988
],
[
180,
71.515714
],
[
180,
70.832199
]
]
],
[
[
[
-178.69378,
70.89302
],
[
-180,
70.832199
],
[
-180,
71.515714
],
[
-179.871875,
71.55762
],
[
-179.02433,
71.55553
],
[
-177.577945,
71.26948
],
[
-177.663575,
71.13277
],
[
-178.69378,
70.89302
]
]
],
[
[
[
143.60385,
73.21244
],
[
142.08763,
73.20544
],
[
140.038155,
73.31692
],
[
139.86312,
73.36983
],
[
140.81171,
73.76506
],
[
142.06207,
73.85758
],
[
143.48283,
73.47525
],
[
143.60385,
73.21244
]
]
],
[
[
[
150.73167,
75.08406
],
[
149.575925,
74.68892
],
[
147.977465,
74.778355
],
[
146.11919,
75.17298
],
[
146.358485,
75.49682
],
[
148.22223,
75.345845
],
[
150.73167,
75.08406
]
]
],
[
[
[
145.086285,
75.562625
],
[
144.3,
74.82
],
[
140.61381,
74.84768
],
[
138.95544,
74.61148
],
[
136.97439,
75.26167
],
[
137.51176,
75.94917
],
[
138.831075,
76.13676
],
[
141.471615,
76.09289
],
[
145.086285,
75.562625
]
]
],
[
[
[
57.535693,
70.720464
],
[
56.944979,
70.632743
],
[
53.677375,
70.762658
],
[
53.412017,
71.206662
],
[
51.601895,
71.474759
],
[
51.455754,
72.014881
],
[
52.478275,
72.229442
],
[
52.444169,
72.774731
],
[
54.427614,
73.627548
],
[
53.50829,
73.749814
],
[
55.902459,
74.627486
],
[
55.631933,
75.081412
],
[
57.868644,
75.60939
],
[
61.170044,
76.251883
],
[
64.498368,
76.439055
],
[
66.210977,
76.809782
],
[
68.15706,
76.939697
],
[
68.852211,
76.544811
],
[
68.180573,
76.233642
],
[
64.637326,
75.737755
],
[
61.583508,
75.260885
],
[
58.477082,
74.309056
],
[
56.986786,
73.333044
],
[
55.419336,
72.371268
],
[
55.622838,
71.540595
],
[
57.535693,
70.720464
]
]
],
[
[
[
106.97013,
76.97419
],
[
107.24,
76.48
],
[
108.1538,
76.72335
],
[
111.07726,
76.71
],
[
113.33151,
76.22224
],
[
114.13417,
75.84764
],
[
113.88539,
75.32779
],
[
112.77918,
75.03186
],
[
110.15125,
74.47673
],
[
109.4,
74.18
],
[
110.64,
74.04
],
[
112.11919,
73.78774
],
[
113.01954,
73.97693
],
[
113.52958,
73.33505
],
[
113.96881,
73.59488
],
[
115.56782,
73.75285
],
[
118.77633,
73.58772
],
[
119.02,
73.12
],
[
123.20066,
72.97122
],
[
123.25777,
73.73503
],
[
125.38,
73.56
],
[
126.97644,
73.56549
],
[
128.59126,
73.03871
],
[
129.05157,
72.39872
],
[
128.46,
71.98
],
[
129.71599,
71.19304
],
[
131.28858,
70.78699
],
[
132.2535,
71.8363
],
[
133.85766,
71.38642
],
[
135.56193,
71.65525
],
[
137.49755,
71.34763
],
[
138.23409,
71.62803
],
[
139.86983,
71.48783
],
[
139.14791,
72.41619
],
[
140.46817,
72.84941
],
[
149.5,
72.2
],
[
150.35118,
71.60643
],
[
152.9689,
70.84222
],
[
157.00688,
71.03141
],
[
158.99779,
70.86672
],
[
159.83031,
70.45324
],
[
159.70866,
69.72198
],
[
160.94053,
69.43728
],
[
162.27907,
69.64204
],
[
164.05248,
69.66823
],
[
165.94037,
69.47199
],
[
167.83567,
69.58269
],
[
169.57763,
68.6938
],
[
170.81688,
69.01363
],
[
170.0082,
69.65276
],
[
170.45345,
70.09703
],
[
173.64391,
69.81743
],
[
175.72403,
69.87725
],
[
178.6,
69.4
],
[
180,
68.963636
],
[
180,
64.979709
],
[
179.99281,
64.97433
],
[
178.7072,
64.53493
],
[
177.41128,
64.60821
],
[
178.313,
64.07593
],
[
178.90825,
63.25197
],
[
179.37034,
62.98262
],
[
179.48636,
62.56894
],
[
179.22825,
62.3041
],
[
177.3643,
62.5219
],
[
174.56929,
61.76915
],
[
173.68013,
61.65261
],
[
172.15,
60.95
],
[
170.6985,
60.33618
],
[
170.33085,
59.88177
],
[
168.90046,
60.57355
],
[
166.29498,
59.78855
],
[
165.84,
60.16
],
[
164.87674,
59.7316
],
[
163.53929,
59.86871
],
[
163.21711,
59.21101
],
[
162.01733,
58.24328
],
[
162.05297,
57.83912
],
[
163.19191,
57.61503
],
[
163.05794,
56.15924
],
[
162.12958,
56.12219
],
[
161.70146,
55.28568
],
[
162.11749,
54.85514
],
[
160.36877,
54.34433
],
[
160.02173,
53.20257
],
[
158.53094,
52.95868
],
[
158.23118,
51.94269
],
[
156.78979,
51.01105
],
[
156.42,
51.7
],
[
155.99182,
53.15895
],
[
155.43366,
55.38103
],
[
155.91442,
56.76792
],
[
156.75815,
57.3647
],
[
156.81035,
57.83204
],
[
158.36433,
58.05575
],
[
160.15064,
59.31477
],
[
161.87204,
60.343
],
[
163.66969,
61.1409
],
[
164.47355,
62.55061
],
[
163.25842,
62.46627
],
[
162.65791,
61.6425
],
[
160.12148,
60.54423
],
[
159.30232,
61.77396
],
[
156.72068,
61.43442
],
[
154.21806,
59.75818
],
[
155.04375,
59.14495
],
[
152.81185,
58.88385
],
[
151.26573,
58.78089
],
[
151.33815,
59.50396
],
[
149.78371,
59.65573
],
[
148.54481,
59.16448
],
[
145.48722,
59.33637
],
[
142.19782,
59.03998
],
[
138.95848,
57.08805
],
[
135.12619,
54.72959
],
[
136.70171,
54.60355
],
[
137.19342,
53.97732
],
[
138.1647,
53.75501
],
[
138.80463,
54.25455
],
[
139.90151,
54.18968
],
[
141.34531,
53.08957
],
[
141.37923,
52.23877
],
[
140.59742,
51.23967
],
[
140.51308,
50.04553
],
[
140.06193,
48.44671
],
[
138.55472,
46.99965
],
[
138.21971,
46.30795
],
[
136.86232,
45.1435
],
[
135.51535,
43.989
],
[
134.86939,
43.39821
],
[
133.53687,
42.81147
],
[
132.90627,
42.79849
],
[
132.27807,
43.28456
],
[
130.93587,
42.55274
],
[
130.78,
42.22
],
[
130.64,
42.395
],
[
130.633866,
42.903015
],
[
131.144688,
42.92999
],
[
131.288555,
44.11152
],
[
131.02519,
44.96796
],
[
131.883454,
45.321162
],
[
133.09712,
45.14409
],
[
133.769644,
46.116927
],
[
134.11235,
47.21248
],
[
134.50081,
47.57845
],
[
135.026311,
48.47823
],
[
133.373596,
48.183442
],
[
132.50669,
47.78896
],
[
130.98726,
47.79013
],
[
130.582293,
48.729687
],
[
129.397818,
49.4406
],
[
127.6574,
49.76027
],
[
127.287456,
50.739797
],
[
126.939157,
51.353894
],
[
126.564399,
51.784255
],
[
125.946349,
52.792799
],
[
125.068211,
53.161045
],
[
123.57147,
53.4588
],
[
122.245748,
53.431726
],
[
121.003085,
53.251401
],
[
120.177089,
52.753886
],
[
120.725789,
52.516226
],
[
120.7382,
51.96411
],
[
120.18208,
51.64355
],
[
119.27939,
50.58292
],
[
119.288461,
50.142883
],
[
117.879244,
49.510983
],
[
116.678801,
49.888531
],
[
115.485695,
49.805177
],
[
114.96211,
50.140247
],
[
114.362456,
50.248303
],
[
112.89774,
49.543565
],
[
111.581231,
49.377968
],
[
110.662011,
49.130128
],
[
109.402449,
49.292961
],
[
108.475167,
49.282548
],
[
107.868176,
49.793705
],
[
106.888804,
50.274296
],
[
105.886591,
50.406019
],
[
104.62158,
50.27532
],
[
103.676545,
50.089966
],
[
102.25589,
50.51056
],
[
102.06521,
51.25991
],
[
100.88948,
51.516856
],
[
99.981732,
51.634006
],
[
98.861491,
52.047366
],
[
97.82574,
51.010995
],
[
98.231762,
50.422401
],
[
97.25976,
49.72605
],
[
95.81402,
49.97746
],
[
94.815949,
50.013433
],
[
94.147566,
50.480537
],
[
93.10421,
50.49529
],
[
92.234712,
50.802171
],
[
90.713667,
50.331812
],
[
88.805567,
49.470521
],
[
87.751264,
49.297198
],
[
87.35997,
49.214981
],
[
86.829357,
49.826675
],
[
85.54127,
49.692859
],
[
85.11556,
50.117303
],
[
84.416377,
50.3114
],
[
83.935115,
50.889246
],
[
83.383004,
51.069183
],
[
81.945986,
50.812196
],
[
80.568447,
51.388336
],
[
80.03556,
50.864751
],
[
77.800916,
53.404415
],
[
76.525179,
54.177003
],
[
76.8911,
54.490524
],
[
74.38482,
53.54685
],
[
73.425679,
53.48981
],
[
73.508516,
54.035617
],
[
72.22415,
54.376655
],
[
71.180131,
54.133285
],
[
70.865267,
55.169734
],
[
69.068167,
55.38525
],
[
68.1691,
54.970392
],
[
65.66687,
54.60125
],
[
65.178534,
54.354228
],
[
61.4366,
54.00625
],
[
60.978066,
53.664993
],
[
61.699986,
52.979996
],
[
60.739993,
52.719986
],
[
60.927269,
52.447548
],
[
59.967534,
51.96042
],
[
61.588003,
51.272659
],
[
61.337424,
50.79907
],
[
59.932807,
50.842194
],
[
59.642282,
50.545442
],
[
58.36332,
51.06364
],
[
56.77798,
51.04355
],
[
55.71694,
50.62171
],
[
54.532878,
51.02624
],
[
52.328724,
51.718652
],
[
50.766648,
51.692762
],
[
48.702382,
50.605128
],
[
48.577841,
49.87476
],
[
47.54948,
50.454698
],
[
46.751596,
49.356006
],
[
47.043672,
49.152039
],
[
46.466446,
48.394152
],
[
47.31524,
47.71585
],
[
48.05725,
47.74377
],
[
48.694734,
47.075628
],
[
48.59325,
46.56104
],
[
49.10116,
46.39933
],
[
48.64541,
45.80629
],
[
47.67591,
45.64149
],
[
46.68201,
44.6092
],
[
47.59094,
43.66016
],
[
47.49252,
42.98658
],
[
48.58437,
41.80888
],
[
47.987283,
41.405819
],
[
47.815666,
41.151416
],
[
47.373315,
41.219732
],
[
46.686071,
41.827137
],
[
46.404951,
41.860675
],
[
45.7764,
42.09244
],
[
45.470279,
42.502781
],
[
44.537623,
42.711993
],
[
43.93121,
42.55496
],
[
43.75599,
42.74083
],
[
42.3944,
43.2203
],
[
40.92219,
43.38215
],
[
40.076965,
43.553104
],
[
39.955009,
43.434998
],
[
38.68,
44.28
],
[
37.53912,
44.65721
],
[
36.67546,
45.24469
],
[
37.40317,
45.40451
],
[
38.23295,
46.24087
],
[
37.67372,
46.63657
],
[
39.14767,
47.04475
],
[
39.1212,
47.26336
],
[
38.223538,
47.10219
],
[
38.255112,
47.5464
],
[
38.77057,
47.82562
],
[
39.738278,
47.898937
],
[
39.89562,
48.23241
],
[
39.67465,
48.78382
],
[
40.080789,
49.30743
],
[
40.06904,
49.60105
],
[
38.594988,
49.926462
],
[
38.010631,
49.915662
],
[
37.39346,
50.383953
],
[
36.626168,
50.225591
],
[
35.356116,
50.577197
],
[
35.37791,
50.77394
],
[
35.022183,
51.207572
],
[
34.224816,
51.255993
],
[
34.141978,
51.566413
],
[
34.391731,
51.768882
],
[
33.7527,
52.335075
],
[
32.715761,
52.238465
],
[
32.412058,
52.288695
],
[
32.15944,
52.06125
],
[
31.78597,
52.10168
],
[
31.540018,
52.742052
],
[
31.305201,
53.073996
],
[
31.49764,
53.16743
],
[
32.304519,
53.132726
],
[
32.693643,
53.351421
],
[
32.405599,
53.618045
],
[
31.731273,
53.794029
],
[
31.791424,
53.974639
],
[
31.384472,
54.157056
],
[
30.757534,
54.811771
],
[
30.971836,
55.081548
],
[
30.873909,
55.550976
],
[
29.896294,
55.789463
],
[
29.371572,
55.670091
],
[
29.229513,
55.918344
],
[
28.176709,
56.16913
],
[
27.855282,
56.759326
],
[
27.770016,
57.244258
],
[
27.288185,
57.474528
],
[
27.716686,
57.791899
],
[
27.42015,
58.72457
],
[
28.131699,
59.300825
],
[
27.98112,
59.47537
],
[
29.1177,
60.02805
],
[
28.07,
60.50352
],
[
30.211107,
61.780028
],
[
31.139991,
62.357693
],
[
31.516092,
62.867687
],
[
30.035872,
63.552814
],
[
30.444685,
64.204453
],
[
29.54443,
64.948672
],
[
30.21765,
65.80598
],
[
29.054589,
66.944286
],
[
29.977426,
67.698297
],
[
28.445944,
68.364613
],
[
28.59193,
69.064777
],
[
29.39955,
69.15692
],
[
31.10108,
69.55811
],
[
32.13272,
69.90595
],
[
33.77547,
69.30142
],
[
36.51396,
69.06342
],
[
40.29234,
67.9324
],
[
41.05987,
67.45713
],
[
41.12595,
66.79158
],
[
40.01583,
66.26618
],
[
38.38295,
65.99953
],
[
33.91871,
66.75961
],
[
33.18444,
66.63253
],
[
34.81477,
65.90015
],
[
34.878574,
65.436213
],
[
34.94391,
64.41437
],
[
36.23129,
64.10945
],
[
37.01273,
63.84983
],
[
37.14197,
64.33471
],
[
36.539579,
64.76446
],
[
37.17604,
65.14322
],
[
39.59345,
64.52079
],
[
40.4356,
64.76446
],
[
39.7626,
65.49682
],
[
42.09309,
66.47623
],
[
43.01604,
66.41858
],
[
43.94975,
66.06908
],
[
44.53226,
66.75634
],
[
43.69839,
67.35245
],
[
44.18795,
67.95051
],
[
43.45282,
68.57079
],
[
46.25,
68.25
],
[
46.82134,
67.68997
],
[
45.55517,
67.56652
],
[
45.56202,
67.01005
],
[
46.34915,
66.66767
],
[
47.89416,
66.88455
],
[
48.13876,
67.52238
],
[
50.22766,
67.99867
],
[
53.71743,
68.85738
],
[
54.47171,
68.80815
],
[
53.48582,
68.20131
],
[
54.72628,
68.09702
],
[
55.44268,
68.43866
],
[
57.31702,
68.46628
],
[
58.802,
68.88082
],
[
59.94142,
68.27844
],
[
61.07784,
68.94069
],
[
60.03,
69.52
],
[
60.55,
69.85
],
[
63.504,
69.54739
],
[
64.888115,
69.234835
],
[
68.51216,
68.09233
],
[
69.18068,
68.61563
],
[
68.16444,
69.14436
],
[
68.13522,
69.35649
],
[
66.93008,
69.45461
],
[
67.25976,
69.92873
],
[
66.72492,
70.70889
],
[
66.69466,
71.02897
],
[
68.54006,
71.9345
],
[
69.19636,
72.84336
],
[
69.94,
73.04
],
[
72.58754,
72.77629
],
[
72.79603,
72.22006
],
[
71.84811,
71.40898
],
[
72.47011,
71.09019
],
[
72.79188,
70.39114
],
[
72.5647,
69.02085
],
[
73.66787,
68.4079
],
[
73.2387,
67.7404
],
[
71.28,
66.32
],
[
72.42301,
66.17267
],
[
72.82077,
66.53267
],
[
73.92099,
66.78946
],
[
74.18651,
67.28429
],
[
75.052,
67.76047
],
[
74.46926,
68.32899
],
[
74.93584,
68.98918
],
[
73.84236,
69.07146
],
[
73.60187,
69.62763
],
[
74.3998,
70.63175
],
[
73.1011,
71.44717
],
[
74.89082,
72.12119
],
[
74.65926,
72.83227
],
[
75.15801,
72.85497
],
[
75.68351,
72.30056
],
[
75.28898,
71.33556
],
[
76.35911,
71.15287
],
[
75.90313,
71.87401
],
[
77.57665,
72.26717
],
[
79.65202,
72.32011
],
[
81.5,
71.75
],
[
80.61071,
72.58285
],
[
80.51109,
73.6482
],
[
82.25,
73.85
],
[
84.65526,
73.80591
],
[
86.8223,
73.93688
],
[
86.00956,
74.45967
],
[
87.16682,
75.11643
],
[
88.31571,
75.14393
],
[
90.26,
75.64
],
[
92.90058,
75.77333
],
[
93.23421,
76.0472
],
[
95.86,
76.14
],
[
96.67821,
75.91548
],
[
98.92254,
76.44689
],
[
100.75967,
76.43028
],
[
101.03532,
76.86189
],
[
101.99084,
77.28754
],
[
104.3516,
77.69792
],
[
106.06664,
77.37389
],
[
104.705,
77.1274
],
[
106.97013,
76.97419
]
]
],
[
[
[
105.07547,
78.30689
],
[
99.43814,
77.921
],
[
101.2649,
79.23399
],
[
102.08635,
79.34641
],
[
102.837815,
79.28129
],
[
105.37243,
78.71334
],
[
105.07547,
78.30689
]
]
],
[
[
[
51.136187,
80.54728
],
[
49.793685,
80.415428
],
[
48.894411,
80.339567
],
[
48.754937,
80.175468
],
[
47.586119,
80.010181
],
[
46.502826,
80.247247
],
[
47.072455,
80.559424
],
[
44.846958,
80.58981
],
[
46.799139,
80.771918
],
[
48.318477,
80.78401
],
[
48.522806,
80.514569
],
[
49.09719,
80.753986
],
[
50.039768,
80.918885
],
[
51.522933,
80.699726
],
[
51.136187,
80.54728
]
]
],
[
[
[
99.93976,
78.88094
],
[
97.75794,
78.7562
],
[
94.97259,
79.044745
],
[
93.31288,
79.4265
],
[
92.5454,
80.14379
],
[
91.18107,
80.34146
],
[
93.77766,
81.0246
],
[
95.940895,
81.2504
],
[
97.88385,
80.746975
],
[
100.186655,
79.780135
],
[
99.93976,
78.88094
]
]
]
]
}
},
{
type: 'Feature',
id: 'RWA',
properties: {
name: 'Rwanda'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
30.419105,
-1.134659
],
[
30.816135,
-1.698914
],
[
30.758309,
-2.28725
],
[
30.469696,
-2.413858
],
[
29.938359,
-2.348487
],
[
29.632176,
-2.917858
],
[
29.024926,
-2.839258
],
[
29.117479,
-2.292211
],
[
29.254835,
-2.21511
],
[
29.291887,
-1.620056
],
[
29.579466,
-1.341313
],
[
29.821519,
-1.443322
],
[
30.419105,
-1.134659
]
]
]
}
},
{
type: 'Feature',
id: 'ESH',
properties: {
name: 'Western Sahara'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-8.794884,
27.120696
],
[
-8.817828,
27.656426
],
[
-8.66559,
27.656426
],
[
-8.665124,
27.589479
],
[
-8.6844,
27.395744
],
[
-8.687294,
25.881056
],
[
-11.969419,
25.933353
],
[
-11.937224,
23.374594
],
[
-12.874222,
23.284832
],
[
-13.118754,
22.77122
],
[
-12.929102,
21.327071
],
[
-16.845194,
21.333323
],
[
-17.063423,
20.999752
],
[
-17.020428,
21.42231
],
[
-17.002962,
21.420734
],
[
-14.750955,
21.5006
],
[
-14.630833,
21.86094
],
[
-14.221168,
22.310163
],
[
-13.89111,
23.691009
],
[
-12.500963,
24.770116
],
[
-12.030759,
26.030866
],
[
-11.71822,
26.104092
],
[
-11.392555,
26.883424
],
[
-10.551263,
26.990808
],
[
-10.189424,
26.860945
],
[
-9.735343,
26.860945
],
[
-9.413037,
27.088476
],
[
-8.794884,
27.120696
]
]
]
}
},
{
type: 'Feature',
id: 'SAU',
properties: {
name: 'Saudi Arabia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
42.779332,
16.347891
],
[
42.649573,
16.774635
],
[
42.347989,
17.075806
],
[
42.270888,
17.474722
],
[
41.754382,
17.833046
],
[
41.221391,
18.6716
],
[
40.939341,
19.486485
],
[
40.247652,
20.174635
],
[
39.801685,
20.338862
],
[
39.139399,
21.291905
],
[
39.023696,
21.986875
],
[
39.066329,
22.579656
],
[
38.492772,
23.688451
],
[
38.02386,
24.078686
],
[
37.483635,
24.285495
],
[
37.154818,
24.858483
],
[
37.209491,
25.084542
],
[
36.931627,
25.602959
],
[
36.639604,
25.826228
],
[
36.249137,
26.570136
],
[
35.640182,
27.37652
],
[
35.130187,
28.063352
],
[
34.632336,
28.058546
],
[
34.787779,
28.607427
],
[
34.83222,
28.957483
],
[
34.956037,
29.356555
],
[
36.068941,
29.197495
],
[
36.501214,
29.505254
],
[
36.740528,
29.865283
],
[
37.503582,
30.003776
],
[
37.66812,
30.338665
],
[
37.998849,
30.5085
],
[
37.002166,
31.508413
],
[
39.004886,
32.010217
],
[
39.195468,
32.161009
],
[
40.399994,
31.889992
],
[
41.889981,
31.190009
],
[
44.709499,
29.178891
],
[
46.568713,
29.099025
],
[
47.459822,
29.002519
],
[
47.708851,
28.526063
],
[
48.416094,
28.552004
],
[
48.807595,
27.689628
],
[
49.299554,
27.461218
],
[
49.470914,
27.109999
],
[
50.152422,
26.689663
],
[
50.212935,
26.277027
],
[
50.113303,
25.943972
],
[
50.239859,
25.60805
],
[
50.527387,
25.327808
],
[
50.660557,
24.999896
],
[
50.810108,
24.754743
],
[
51.112415,
24.556331
],
[
51.389608,
24.627386
],
[
51.579519,
24.245497
],
[
51.617708,
24.014219
],
[
52.000733,
23.001154
],
[
55.006803,
22.496948
],
[
55.208341,
22.70833
],
[
55.666659,
22.000001
],
[
54.999982,
19.999994
],
[
52.00001,
19.000003
],
[
49.116672,
18.616668
],
[
48.183344,
18.166669
],
[
47.466695,
17.116682
],
[
47.000005,
16.949999
],
[
46.749994,
17.283338
],
[
46.366659,
17.233315
],
[
45.399999,
17.333335
],
[
45.216651,
17.433329
],
[
44.062613,
17.410359
],
[
43.791519,
17.319977
],
[
43.380794,
17.579987
],
[
43.115798,
17.08844
],
[
43.218375,
16.66689
],
[
42.779332,
16.347891
]
]
]
}
},
{
type: 'Feature',
id: 'SDN',
properties: {
name: 'Sudan'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
33.963393,
9.464285
],
[
33.824963,
9.484061
],
[
33.842131,
9.981915
],
[
33.721959,
10.325262
],
[
33.206938,
10.720112
],
[
33.086766,
11.441141
],
[
33.206938,
12.179338
],
[
32.743419,
12.248008
],
[
32.67475,
12.024832
],
[
32.073892,
11.97333
],
[
32.314235,
11.681484
],
[
32.400072,
11.080626
],
[
31.850716,
10.531271
],
[
31.352862,
9.810241
],
[
30.837841,
9.707237
],
[
29.996639,
10.290927
],
[
29.618957,
10.084919
],
[
29.515953,
9.793074
],
[
29.000932,
9.604232
],
[
28.966597,
9.398224
],
[
27.97089,
9.398224
],
[
27.833551,
9.604232
],
[
27.112521,
9.638567
],
[
26.752006,
9.466893
],
[
26.477328,
9.55273
],
[
25.962307,
10.136421
],
[
25.790633,
10.411099
],
[
25.069604,
10.27376
],
[
24.794926,
9.810241
],
[
24.537415,
8.917538
],
[
24.194068,
8.728696
],
[
23.88698,
8.61973
],
[
23.805813,
8.666319
],
[
23.459013,
8.954286
],
[
23.394779,
9.265068
],
[
23.55725,
9.681218
],
[
23.554304,
10.089255
],
[
22.977544,
10.714463
],
[
22.864165,
11.142395
],
[
22.87622,
11.38461
],
[
22.50869,
11.67936
],
[
22.49762,
12.26024
],
[
22.28801,
12.64605
],
[
21.93681,
12.58818
],
[
22.03759,
12.95546
],
[
22.29658,
13.37232
],
[
22.18329,
13.78648
],
[
22.51202,
14.09318
],
[
22.30351,
14.32682
],
[
22.56795,
14.94429
],
[
23.02459,
15.68072
],
[
23.88689,
15.61084
],
[
23.83766,
19.58047
],
[
23.85,
20
],
[
25,
20.00304
],
[
25,
22
],
[
29.02,
22
],
[
32.9,
22
],
[
36.86623,
22
],
[
37.18872,
21.01885
],
[
36.96941,
20.83744
],
[
37.1147,
19.80796
],
[
37.48179,
18.61409
],
[
37.86276,
18.36786
],
[
38.41009,
17.998307
],
[
37.904,
17.42754
],
[
37.16747,
17.26314
],
[
36.85253,
16.95655
],
[
36.75389,
16.29186
],
[
36.32322,
14.82249
],
[
36.42951,
14.42211
],
[
36.27022,
13.56333
],
[
35.86363,
12.57828
],
[
35.26049,
12.08286
],
[
34.83163,
11.31896
],
[
34.73115,
10.91017
],
[
34.25745,
10.63009
],
[
33.96162,
9.58358
],
[
33.963393,
9.464285
]
]
]
}
},
{
type: 'Feature',
id: 'SSD',
properties: {
name: 'South Sudan'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
33.963393,
9.464285
],
[
33.97498,
8.68456
],
[
33.8255,
8.37916
],
[
33.2948,
8.35458
],
[
32.95418,
7.78497
],
[
33.56829,
7.71334
],
[
34.0751,
7.22595
],
[
34.25032,
6.82607
],
[
34.70702,
6.59422
],
[
35.298007,
5.506
],
[
34.620196,
4.847123
],
[
34.005,
4.249885
],
[
33.39,
3.79
],
[
32.68642,
3.79232
],
[
31.88145,
3.55827
],
[
31.24556,
3.7819
],
[
30.83385,
3.50917
],
[
29.95349,
4.1737
],
[
29.715995,
4.600805
],
[
29.159078,
4.389267
],
[
28.696678,
4.455077
],
[
28.428994,
4.287155
],
[
27.979977,
4.408413
],
[
27.374226,
5.233944
],
[
27.213409,
5.550953
],
[
26.465909,
5.946717
],
[
26.213418,
6.546603
],
[
25.796648,
6.979316
],
[
25.124131,
7.500085
],
[
25.114932,
7.825104
],
[
24.567369,
8.229188
],
[
23.88698,
8.61973
],
[
24.194068,
8.728696
],
[
24.537415,
8.917538
],
[
24.794926,
9.810241
],
[
25.069604,
10.27376
],
[
25.790633,
10.411099
],
[
25.962307,
10.136421
],
[
26.477328,
9.55273
],
[
26.752006,
9.466893
],
[
27.112521,
9.638567
],
[
27.833551,
9.604232
],
[
27.97089,
9.398224
],
[
28.966597,
9.398224
],
[
29.000932,
9.604232
],
[
29.515953,
9.793074
],
[
29.618957,
10.084919
],
[
29.996639,
10.290927
],
[
30.837841,
9.707237
],
[
31.352862,
9.810241
],
[
31.850716,
10.531271
],
[
32.400072,
11.080626
],
[
32.314235,
11.681484
],
[
32.073892,
11.97333
],
[
32.67475,
12.024832
],
[
32.743419,
12.248008
],
[
33.206938,
12.179338
],
[
33.086766,
11.441141
],
[
33.206938,
10.720112
],
[
33.721959,
10.325262
],
[
33.842131,
9.981915
],
[
33.824963,
9.484061
],
[
33.963393,
9.464285
]
]
]
}
},
{
type: 'Feature',
id: 'SEN',
properties: {
name: 'Senegal'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-16.713729,
13.594959
],
[
-17.126107,
14.373516
],
[
-17.625043,
14.729541
],
[
-17.185173,
14.919477
],
[
-16.700706,
15.621527
],
[
-16.463098,
16.135036
],
[
-16.12069,
16.455663
],
[
-15.623666,
16.369337
],
[
-15.135737,
16.587282
],
[
-14.577348,
16.598264
],
[
-14.099521,
16.304302
],
[
-13.435738,
16.039383
],
[
-12.830658,
15.303692
],
[
-12.17075,
14.616834
],
[
-12.124887,
13.994727
],
[
-11.927716,
13.422075
],
[
-11.553398,
13.141214
],
[
-11.467899,
12.754519
],
[
-11.513943,
12.442988
],
[
-11.658301,
12.386583
],
[
-12.203565,
12.465648
],
[
-12.278599,
12.35444
],
[
-12.499051,
12.33209
],
[
-13.217818,
12.575874
],
[
-13.700476,
12.586183
],
[
-15.548477,
12.62817
],
[
-15.816574,
12.515567
],
[
-16.147717,
12.547762
],
[
-16.677452,
12.384852
],
[
-16.841525,
13.151394
],
[
-15.931296,
13.130284
],
[
-15.691001,
13.270353
],
[
-15.511813,
13.27857
],
[
-15.141163,
13.509512
],
[
-14.712197,
13.298207
],
[
-14.277702,
13.280585
],
[
-13.844963,
13.505042
],
[
-14.046992,
13.794068
],
[
-14.376714,
13.62568
],
[
-14.687031,
13.630357
],
[
-15.081735,
13.876492
],
[
-15.39877,
13.860369
],
[
-15.624596,
13.623587
],
[
-16.713729,
13.594959
]
]
]
}
},
{
type: 'Feature',
id: 'SLB',
properties: {
name: 'Solomon Islands'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
162.119025,
-10.482719
],
[
162.398646,
-10.826367
],
[
161.700032,
-10.820011
],
[
161.319797,
-10.204751
],
[
161.917383,
-10.446701
],
[
162.119025,
-10.482719
]
]
],
[
[
[
160.852229,
-9.872937
],
[
160.462588,
-9.89521
],
[
159.849447,
-9.794027
],
[
159.640003,
-9.63998
],
[
159.702945,
-9.24295
],
[
160.362956,
-9.400304
],
[
160.688518,
-9.610162
],
[
160.852229,
-9.872937
]
]
],
[
[
[
161.679982,
-9.599982
],
[
161.529397,
-9.784312
],
[
160.788253,
-8.917543
],
[
160.579997,
-8.320009
],
[
160.920028,
-8.320009
],
[
161.280006,
-9.120011
],
[
161.679982,
-9.599982
]
]
],
[
[
[
159.875027,
-8.33732
],
[
159.917402,
-8.53829
],
[
159.133677,
-8.114181
],
[
158.586114,
-7.754824
],
[
158.21115,
-7.421872
],
[
158.359978,
-7.320018
],
[
158.820001,
-7.560003
],
[
159.640003,
-8.020027
],
[
159.875027,
-8.33732
]
]
],
[
[
[
157.538426,
-7.34782
],
[
157.33942,
-7.404767
],
[
156.90203,
-7.176874
],
[
156.491358,
-6.765943
],
[
156.542828,
-6.599338
],
[
157.14,
-7.021638
],
[
157.538426,
-7.34782
]
]
]
]
}
},
{
type: 'Feature',
id: 'SLE',
properties: {
name: 'Sierra Leone'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-11.438779,
6.785917
],
[
-11.708195,
6.860098
],
[
-12.428099,
7.262942
],
[
-12.949049,
7.798646
],
[
-13.124025,
8.163946
],
[
-13.24655,
8.903049
],
[
-12.711958,
9.342712
],
[
-12.596719,
9.620188
],
[
-12.425929,
9.835834
],
[
-12.150338,
9.858572
],
[
-11.917277,
10.046984
],
[
-11.117481,
10.045873
],
[
-10.839152,
9.688246
],
[
-10.622395,
9.26791
],
[
-10.65477,
8.977178
],
[
-10.494315,
8.715541
],
[
-10.505477,
8.348896
],
[
-10.230094,
8.406206
],
[
-10.695595,
7.939464
],
[
-11.146704,
7.396706
],
[
-11.199802,
7.105846
],
[
-11.438779,
6.785917
]
]
]
}
},
{
type: 'Feature',
id: 'SLV',
properties: {
name: 'El Salvador'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-87.793111,
13.38448
],
[
-87.904112,
13.149017
],
[
-88.483302,
13.163951
],
[
-88.843228,
13.259734
],
[
-89.256743,
13.458533
],
[
-89.812394,
13.520622
],
[
-90.095555,
13.735338
],
[
-90.064678,
13.88197
],
[
-89.721934,
14.134228
],
[
-89.534219,
14.244816
],
[
-89.587343,
14.362586
],
[
-89.353326,
14.424133
],
[
-89.058512,
14.340029
],
[
-88.843073,
14.140507
],
[
-88.541231,
13.980155
],
[
-88.503998,
13.845486
],
[
-88.065343,
13.964626
],
[
-87.859515,
13.893312
],
[
-87.723503,
13.78505
],
[
-87.793111,
13.38448
]
]
]
}
},
{
type: 'Feature',
id: '-99',
properties: {
name: 'Somaliland'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
48.93813,
9.451749
],
[
48.486736,
8.837626
],
[
47.78942,
8.003
],
[
46.948328,
7.996877
],
[
43.67875,
9.18358
],
[
43.296975,
9.540477
],
[
42.92812,
10.02194
],
[
42.55876,
10.57258
],
[
42.776852,
10.926879
],
[
43.145305,
11.46204
],
[
43.47066,
11.27771
],
[
43.666668,
10.864169
],
[
44.117804,
10.445538
],
[
44.614259,
10.442205
],
[
45.556941,
10.698029
],
[
46.645401,
10.816549
],
[
47.525658,
11.127228
],
[
48.021596,
11.193064
],
[
48.378784,
11.375482
],
[
48.948206,
11.410622
],
[
48.942005,
11.394266
],
[
48.938491,
10.982327
],
[
48.938233,
9.9735
],
[
48.93813,
9.451749
]
]
]
}
},
{
type: 'Feature',
id: 'SOM',
properties: {
name: 'Somalia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
49.72862,
11.5789
],
[
50.25878,
11.67957
],
[
50.73202,
12.0219
],
[
51.1112,
12.02464
],
[
51.13387,
11.74815
],
[
51.04153,
11.16651
],
[
51.04531,
10.6409
],
[
50.83418,
10.27972
],
[
50.55239,
9.19874
],
[
50.07092,
8.08173
],
[
49.4527,
6.80466
],
[
48.59455,
5.33911
],
[
47.74079,
4.2194
],
[
46.56476,
2.85529
],
[
45.56399,
2.04576
],
[
44.06815,
1.05283
],
[
43.13597,
0.2922
],
[
42.04157,
-0.91916
],
[
41.81095,
-1.44647
],
[
41.58513,
-1.68325
],
[
40.993,
-0.85829
],
[
40.98105,
2.78452
],
[
41.855083,
3.918912
],
[
42.12861,
4.23413
],
[
42.76967,
4.25259
],
[
43.66087,
4.95755
],
[
44.9636,
5.00162
],
[
47.78942,
8.003
],
[
48.486736,
8.837626
],
[
48.93813,
9.451749
],
[
48.938233,
9.9735
],
[
48.938491,
10.982327
],
[
48.942005,
11.394266
],
[
48.948205,
11.410617
],
[
49.26776,
11.43033
],
[
49.72862,
11.5789
]
]
]
}
},
{
type: 'Feature',
id: 'SRB',
properties: {
name: 'Republic of Serbia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
20.874313,
45.416375
],
[
21.483526,
45.18117
],
[
21.562023,
44.768947
],
[
22.145088,
44.478422
],
[
22.459022,
44.702517
],
[
22.705726,
44.578003
],
[
22.474008,
44.409228
],
[
22.65715,
44.234923
],
[
22.410446,
44.008063
],
[
22.500157,
43.642814
],
[
22.986019,
43.211161
],
[
22.604801,
42.898519
],
[
22.436595,
42.580321
],
[
22.545012,
42.461362
],
[
22.380526,
42.32026
],
[
21.91708,
42.30364
],
[
21.576636,
42.245224
],
[
21.54332,
42.32025
],
[
21.66292,
42.43922
],
[
21.77505,
42.6827
],
[
21.63302,
42.67717
],
[
21.43866,
42.86255
],
[
21.27421,
42.90959
],
[
21.143395,
43.068685
],
[
20.95651,
43.13094
],
[
20.81448,
43.27205
],
[
20.63508,
43.21671
],
[
20.49679,
42.88469
],
[
20.25758,
42.81275
],
[
20.3398,
42.89852
],
[
19.95857,
43.10604
],
[
19.63,
43.21378
],
[
19.48389,
43.35229
],
[
19.21852,
43.52384
],
[
19.454,
43.5681
],
[
19.59976,
44.03847
],
[
19.11761,
44.42307
],
[
19.36803,
44.863
],
[
19.00548,
44.86023
],
[
19.390476,
45.236516
],
[
19.072769,
45.521511
],
[
18.82982,
45.90888
],
[
19.596045,
46.17173
],
[
20.220192,
46.127469
],
[
20.762175,
45.734573
],
[
20.874313,
45.416375
]
]
]
}
},
{
type: 'Feature',
id: 'SUR',
properties: {
name: 'Suriname'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-57.147436,
5.97315
],
[
-55.949318,
5.772878
],
[
-55.84178,
5.953125
],
[
-55.03325,
6.025291
],
[
-53.958045,
5.756548
],
[
-54.478633,
4.896756
],
[
-54.399542,
4.212611
],
[
-54.006931,
3.620038
],
[
-54.181726,
3.18978
],
[
-54.269705,
2.732392
],
[
-54.524754,
2.311849
],
[
-55.097587,
2.523748
],
[
-55.569755,
2.421506
],
[
-55.973322,
2.510364
],
[
-56.073342,
2.220795
],
[
-55.9056,
2.021996
],
[
-55.995698,
1.817667
],
[
-56.539386,
1.899523
],
[
-57.150098,
2.768927
],
[
-57.281433,
3.333492
],
[
-57.601569,
3.334655
],
[
-58.044694,
4.060864
],
[
-57.86021,
4.576801
],
[
-57.914289,
4.812626
],
[
-57.307246,
5.073567
],
[
-57.147436,
5.97315
]
]
]
}
},
{
type: 'Feature',
id: 'SVK',
properties: {
name: 'Slovakia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
18.853144,
49.49623
],
[
18.909575,
49.435846
],
[
19.320713,
49.571574
],
[
19.825023,
49.217125
],
[
20.415839,
49.431453
],
[
20.887955,
49.328772
],
[
21.607808,
49.470107
],
[
22.558138,
49.085738
],
[
22.280842,
48.825392
],
[
22.085608,
48.422264
],
[
21.872236,
48.319971
],
[
20.801294,
48.623854
],
[
20.473562,
48.56285
],
[
20.239054,
48.327567
],
[
19.769471,
48.202691
],
[
19.661364,
48.266615
],
[
19.174365,
48.111379
],
[
18.777025,
48.081768
],
[
18.696513,
47.880954
],
[
17.857133,
47.758429
],
[
17.488473,
47.867466
],
[
16.979667,
48.123497
],
[
16.879983,
48.470013
],
[
16.960288,
48.596982
],
[
17.101985,
48.816969
],
[
17.545007,
48.800019
],
[
17.886485,
48.903475
],
[
17.913512,
48.996493
],
[
18.104973,
49.043983
],
[
18.170498,
49.271515
],
[
18.399994,
49.315001
],
[
18.554971,
49.495015
],
[
18.853144,
49.49623
]
]
]
}
},
{
type: 'Feature',
id: 'SVN',
properties: {
name: 'Slovenia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
13.806475,
46.509306
],
[
14.632472,
46.431817
],
[
15.137092,
46.658703
],
[
16.011664,
46.683611
],
[
16.202298,
46.852386
],
[
16.370505,
46.841327
],
[
16.564808,
46.503751
],
[
15.768733,
46.238108
],
[
15.67153,
45.834154
],
[
15.323954,
45.731783
],
[
15.327675,
45.452316
],
[
14.935244,
45.471695
],
[
14.595109,
45.634941
],
[
14.411968,
45.466166
],
[
13.71506,
45.500324
],
[
13.93763,
45.591016
],
[
13.69811,
46.016778
],
[
13.806475,
46.509306
]
]
]
}
},
{
type: 'Feature',
id: 'SWE',
properties: {
name: 'Sweden'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
22.183173,
65.723741
],
[
21.213517,
65.026005
],
[
21.369631,
64.413588
],
[
19.778876,
63.609554
],
[
17.847779,
62.7494
],
[
17.119555,
61.341166
],
[
17.831346,
60.636583
],
[
18.787722,
60.081914
],
[
17.869225,
58.953766
],
[
16.829185,
58.719827
],
[
16.44771,
57.041118
],
[
15.879786,
56.104302
],
[
14.666681,
56.200885
],
[
14.100721,
55.407781
],
[
12.942911,
55.361737
],
[
12.625101,
56.30708
],
[
11.787942,
57.441817
],
[
11.027369,
58.856149
],
[
11.468272,
59.432393
],
[
12.300366,
60.117933
],
[
12.631147,
61.293572
],
[
11.992064,
61.800362
],
[
11.930569,
63.128318
],
[
12.579935,
64.066219
],
[
13.571916,
64.049114
],
[
13.919905,
64.445421
],
[
13.55569,
64.787028
],
[
15.108411,
66.193867
],
[
16.108712,
67.302456
],
[
16.768879,
68.013937
],
[
17.729182,
68.010552
],
[
17.993868,
68.567391
],
[
19.87856,
68.407194
],
[
20.025269,
69.065139
],
[
20.645593,
69.106247
],
[
21.978535,
68.616846
],
[
23.539473,
67.936009
],
[
23.56588,
66.396051
],
[
23.903379,
66.006927
],
[
22.183173,
65.723741
]
]
],
[
[
[
17.061767,
57.385783
],
[
17.210083,
57.326521
],
[
16.430053,
56.179196
],
[
16.364135,
56.556455
],
[
17.061767,
57.385783
]
]
],
[
[
[
19.35791,
57.958588
],
[
18.8031,
57.651279
],
[
18.825073,
57.444949
],
[
18.995361,
57.441993
],
[
18.951416,
57.370976
],
[
18.693237,
57.305756
],
[
18.709716,
57.204734
],
[
18.462524,
57.127295
],
[
18.319702,
56.926992
],
[
18.105468,
56.891003
],
[
18.187866,
57.109402
],
[
18.072509,
57.267163
],
[
18.154907,
57.394664
],
[
18.094482,
57.545312
],
[
18.660278,
57.929434
],
[
19.039306,
57.941098
],
[
19.105224,
57.993543
],
[
19.374389,
57.996454
],
[
19.35791,
57.958588
]
]
],
[
[
[
20.846557,
63.82371
],
[
21.066284,
63.829768
],
[
20.9729,
63.71567
],
[
20.824584,
63.579121
],
[
20.695495,
63.59134
],
[
20.819091,
63.714454
],
[
20.799865,
63.780059
],
[
20.846557,
63.82371
]
]
]
]
}
},
{
type: 'Feature',
id: 'SWZ',
properties: {
name: 'Swaziland'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
32.071665,
-26.73382
],
[
31.86806,
-27.177927
],
[
31.282773,
-27.285879
],
[
30.685962,
-26.743845
],
[
30.676609,
-26.398078
],
[
30.949667,
-26.022649
],
[
31.04408,
-25.731452
],
[
31.333158,
-25.660191
],
[
31.837778,
-25.843332
],
[
31.985779,
-26.29178
],
[
32.071665,
-26.73382
]
]
]
}
},
{
type: 'Feature',
id: 'SYR',
properties: {
name: 'Syria'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
38.792341,
33.378686
],
[
36.834062,
32.312938
],
[
35.719918,
32.709192
],
[
35.700798,
32.716014
],
[
35.836397,
32.868123
],
[
35.821101,
33.277426
],
[
36.06646,
33.824912
],
[
36.61175,
34.201789
],
[
36.448194,
34.593935
],
[
35.998403,
34.644914
],
[
35.905023,
35.410009
],
[
36.149763,
35.821535
],
[
36.41755,
36.040617
],
[
36.685389,
36.259699
],
[
36.739494,
36.81752
],
[
37.066761,
36.623036
],
[
38.167727,
36.90121
],
[
38.699891,
36.712927
],
[
39.52258,
36.716054
],
[
40.673259,
37.091276
],
[
41.212089,
37.074352
],
[
42.349591,
37.229873
],
[
41.837064,
36.605854
],
[
41.289707,
36.358815
],
[
41.383965,
35.628317
],
[
41.006159,
34.419372
],
[
38.792341,
33.378686
]
]
]
}
},
{
type: 'Feature',
id: 'TCD',
properties: {
name: 'Chad'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
14.495787,
12.859396
],
[
14.595781,
13.330427
],
[
13.954477,
13.353449
],
[
13.956699,
13.996691
],
[
13.540394,
14.367134
],
[
13.97217,
15.68437
],
[
15.247731,
16.627306
],
[
15.300441,
17.92795
],
[
15.685741,
19.95718
],
[
15.903247,
20.387619
],
[
15.487148,
20.730415
],
[
15.47106,
21.04845
],
[
15.096888,
21.308519
],
[
14.8513,
22.86295
],
[
15.86085,
23.40972
],
[
19.84926,
21.49509
],
[
23.83766,
19.58047
],
[
23.88689,
15.61084
],
[
23.02459,
15.68072
],
[
22.56795,
14.94429
],
[
22.30351,
14.32682
],
[
22.51202,
14.09318
],
[
22.18329,
13.78648
],
[
22.29658,
13.37232
],
[
22.03759,
12.95546
],
[
21.93681,
12.58818
],
[
22.28801,
12.64605
],
[
22.49762,
12.26024
],
[
22.50869,
11.67936
],
[
22.87622,
11.38461
],
[
22.864165,
11.142395
],
[
22.231129,
10.971889
],
[
21.723822,
10.567056
],
[
21.000868,
9.475985
],
[
20.059685,
9.012706
],
[
19.094008,
9.074847
],
[
18.81201,
8.982915
],
[
18.911022,
8.630895
],
[
18.389555,
8.281304
],
[
17.96493,
7.890914
],
[
16.705988,
7.508328
],
[
16.456185,
7.734774
],
[
16.290562,
7.754307
],
[
16.106232,
7.497088
],
[
15.27946,
7.421925
],
[
15.436092,
7.692812
],
[
15.120866,
8.38215
],
[
14.979996,
8.796104
],
[
14.544467,
8.965861
],
[
13.954218,
9.549495
],
[
14.171466,
10.021378
],
[
14.627201,
9.920919
],
[
14.909354,
9.992129
],
[
15.467873,
9.982337
],
[
14.923565,
10.891325
],
[
14.960152,
11.555574
],
[
14.89336,
12.21905
],
[
14.495787,
12.859396
]
]
]
}
},
{
type: 'Feature',
id: 'TGO',
properties: {
name: 'Togo'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
1.865241,
6.142158
],
[
1.060122,
5.928837
],
[
0.836931,
6.279979
],
[
0.570384,
6.914359
],
[
0.490957,
7.411744
],
[
0.712029,
8.312465
],
[
0.461192,
8.677223
],
[
0.365901,
9.465004
],
[
0.36758,
10.191213
],
[
-0.049785,
10.706918
],
[
0.023803,
11.018682
],
[
0.899563,
10.997339
],
[
0.772336,
10.470808
],
[
1.077795,
10.175607
],
[
1.425061,
9.825395
],
[
1.463043,
9.334624
],
[
1.664478,
9.12859
],
[
1.618951,
6.832038
],
[
1.865241,
6.142158
]
]
]
}
},
{
type: 'Feature',
id: 'THA',
properties: {
name: 'Thailand'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
102.584932,
12.186595
],
[
101.687158,
12.64574
],
[
100.83181,
12.627085
],
[
100.978467,
13.412722
],
[
100.097797,
13.406856
],
[
100.018733,
12.307001
],
[
99.478921,
10.846367
],
[
99.153772,
9.963061
],
[
99.222399,
9.239255
],
[
99.873832,
9.207862
],
[
100.279647,
8.295153
],
[
100.459274,
7.429573
],
[
101.017328,
6.856869
],
[
101.623079,
6.740622
],
[
102.141187,
6.221636
],
[
101.814282,
5.810808
],
[
101.154219,
5.691384
],
[
101.075516,
6.204867
],
[
100.259596,
6.642825
],
[
100.085757,
6.464489
],
[
99.690691,
6.848213
],
[
99.519642,
7.343454
],
[
98.988253,
7.907993
],
[
98.503786,
8.382305
],
[
98.339662,
7.794512
],
[
98.150009,
8.350007
],
[
98.25915,
8.973923
],
[
98.553551,
9.93296
],
[
99.038121,
10.960546
],
[
99.587286,
11.892763
],
[
99.196354,
12.804748
],
[
99.212012,
13.269294
],
[
99.097755,
13.827503
],
[
98.430819,
14.622028
],
[
98.192074,
15.123703
],
[
98.537376,
15.308497
],
[
98.903348,
16.177824
],
[
98.493761,
16.837836
],
[
97.859123,
17.567946
],
[
97.375896,
18.445438
],
[
97.797783,
18.62708
],
[
98.253724,
19.708203
],
[
98.959676,
19.752981
],
[
99.543309,
20.186598
],
[
100.115988,
20.41785
],
[
100.548881,
20.109238
],
[
100.606294,
19.508344
],
[
101.282015,
19.462585
],
[
101.035931,
18.408928
],
[
101.059548,
17.512497
],
[
102.113592,
18.109102
],
[
102.413005,
17.932782
],
[
102.998706,
17.961695
],
[
103.200192,
18.309632
],
[
103.956477,
18.240954
],
[
104.716947,
17.428859
],
[
104.779321,
16.441865
],
[
105.589039,
15.570316
],
[
105.544338,
14.723934
],
[
105.218777,
14.273212
],
[
104.281418,
14.416743
],
[
102.988422,
14.225721
],
[
102.348099,
13.394247
],
[
102.584932,
12.186595
]
]
]
}
},
{
type: 'Feature',
id: 'TJK',
properties: {
name: 'Tajikistan'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
71.014198,
40.244366
],
[
70.648019,
39.935754
],
[
69.55961,
40.103211
],
[
69.464887,
39.526683
],
[
70.549162,
39.604198
],
[
71.784694,
39.279463
],
[
73.675379,
39.431237
],
[
73.928852,
38.505815
],
[
74.257514,
38.606507
],
[
74.864816,
38.378846
],
[
74.829986,
37.990007
],
[
74.980002,
37.41999
],
[
73.948696,
37.421566
],
[
73.260056,
37.495257
],
[
72.63689,
37.047558
],
[
72.193041,
36.948288
],
[
71.844638,
36.738171
],
[
71.448693,
37.065645
],
[
71.541918,
37.905774
],
[
71.239404,
37.953265
],
[
71.348131,
38.258905
],
[
70.806821,
38.486282
],
[
70.376304,
38.138396
],
[
70.270574,
37.735165
],
[
70.116578,
37.588223
],
[
69.518785,
37.608997
],
[
69.196273,
37.151144
],
[
68.859446,
37.344336
],
[
68.135562,
37.023115
],
[
67.83,
37.144994
],
[
68.392033,
38.157025
],
[
68.176025,
38.901553
],
[
67.44222,
39.140144
],
[
67.701429,
39.580478
],
[
68.536416,
39.533453
],
[
69.011633,
40.086158
],
[
69.329495,
40.727824
],
[
70.666622,
40.960213
],
[
70.45816,
40.496495
],
[
70.601407,
40.218527
],
[
71.014198,
40.244366
]
]
]
}
},
{
type: 'Feature',
id: 'TKM',
properties: {
name: 'Turkmenistan'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
61.210817,
35.650072
],
[
61.123071,
36.491597
],
[
60.377638,
36.527383
],
[
59.234762,
37.412988
],
[
58.436154,
37.522309
],
[
57.330434,
38.029229
],
[
56.619366,
38.121394
],
[
56.180375,
37.935127
],
[
55.511578,
37.964117
],
[
54.800304,
37.392421
],
[
53.921598,
37.198918
],
[
53.735511,
37.906136
],
[
53.880929,
38.952093
],
[
53.101028,
39.290574
],
[
53.357808,
39.975286
],
[
52.693973,
40.033629
],
[
52.915251,
40.876523
],
[
53.858139,
40.631034
],
[
54.736845,
40.951015
],
[
54.008311,
41.551211
],
[
53.721713,
42.123191
],
[
52.91675,
41.868117
],
[
52.814689,
41.135371
],
[
52.50246,
41.783316
],
[
52.944293,
42.116034
],
[
54.079418,
42.324109
],
[
54.755345,
42.043971
],
[
55.455251,
41.259859
],
[
55.968191,
41.308642
],
[
57.096391,
41.32231
],
[
56.932215,
41.826026
],
[
57.78653,
42.170553
],
[
58.629011,
42.751551
],
[
59.976422,
42.223082
],
[
60.083341,
41.425146
],
[
60.465953,
41.220327
],
[
61.547179,
41.26637
],
[
61.882714,
41.084857
],
[
62.37426,
40.053886
],
[
63.518015,
39.363257
],
[
64.170223,
38.892407
],
[
65.215999,
38.402695
],
[
66.54615,
37.974685
],
[
66.518607,
37.362784
],
[
66.217385,
37.39379
],
[
65.745631,
37.661164
],
[
65.588948,
37.305217
],
[
64.746105,
37.111818
],
[
64.546479,
36.312073
],
[
63.982896,
36.007957
],
[
63.193538,
35.857166
],
[
62.984662,
35.404041
],
[
62.230651,
35.270664
],
[
61.210817,
35.650072
]
]
]
}
},
{
type: 'Feature',
id: 'TLS',
properties: {
name: 'East Timor'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
124.968682,
-8.89279
],
[
125.086246,
-8.656887
],
[
125.947072,
-8.432095
],
[
126.644704,
-8.398247
],
[
126.957243,
-8.273345
],
[
127.335928,
-8.397317
],
[
126.967992,
-8.668256
],
[
125.925885,
-9.106007
],
[
125.08852,
-9.393173
],
[
125.07002,
-9.089987
],
[
124.968682,
-8.89279
]
]
]
}
},
{
type: 'Feature',
id: 'TTO',
properties: {
name: 'Trinidad and Tobago'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-61.68,
10.76
],
[
-61.105,
10.89
],
[
-60.895,
10.855
],
[
-60.935,
10.11
],
[
-61.77,
10
],
[
-61.95,
10.09
],
[
-61.66,
10.365
],
[
-61.68,
10.76
]
]
]
}
},
{
type: 'Feature',
id: 'TUN',
properties: {
name: 'Tunisia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
9.48214,
30.307556
],
[
9.055603,
32.102692
],
[
8.439103,
32.506285
],
[
8.430473,
32.748337
],
[
7.612642,
33.344115
],
[
7.524482,
34.097376
],
[
8.140981,
34.655146
],
[
8.376368,
35.479876
],
[
8.217824,
36.433177
],
[
8.420964,
36.946427
],
[
9.509994,
37.349994
],
[
10.210002,
37.230002
],
[
10.18065,
36.724038
],
[
11.028867,
37.092103
],
[
11.100026,
36.899996
],
[
10.600005,
36.41
],
[
10.593287,
35.947444
],
[
10.939519,
35.698984
],
[
10.807847,
34.833507
],
[
10.149593,
34.330773
],
[
10.339659,
33.785742
],
[
10.856836,
33.76874
],
[
11.108501,
33.293343
],
[
11.488787,
33.136996
],
[
11.432253,
32.368903
],
[
10.94479,
32.081815
],
[
10.636901,
31.761421
],
[
9.950225,
31.37607
],
[
10.056575,
30.961831
],
[
9.970017,
30.539325
],
[
9.48214,
30.307556
]
]
]
}
},
{
type: 'Feature',
id: 'TUR',
properties: {
name: 'Turkey'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
36.913127,
41.335358
],
[
38.347665,
40.948586
],
[
39.512607,
41.102763
],
[
40.373433,
41.013673
],
[
41.554084,
41.535656
],
[
42.619549,
41.583173
],
[
43.582746,
41.092143
],
[
43.752658,
40.740201
],
[
43.656436,
40.253564
],
[
44.400009,
40.005
],
[
44.79399,
39.713003
],
[
44.109225,
39.428136
],
[
44.421403,
38.281281
],
[
44.225756,
37.971584
],
[
44.772699,
37.170445
],
[
44.293452,
37.001514
],
[
43.942259,
37.256228
],
[
42.779126,
37.385264
],
[
42.349591,
37.229873
],
[
41.212089,
37.074352
],
[
40.673259,
37.091276
],
[
39.52258,
36.716054
],
[
38.699891,
36.712927
],
[
38.167727,
36.90121
],
[
37.066761,
36.623036
],
[
36.739494,
36.81752
],
[
36.685389,
36.259699
],
[
36.41755,
36.040617
],
[
36.149763,
35.821535
],
[
35.782085,
36.274995
],
[
36.160822,
36.650606
],
[
35.550936,
36.565443
],
[
34.714553,
36.795532
],
[
34.026895,
36.21996
],
[
32.509158,
36.107564
],
[
31.699595,
36.644275
],
[
30.621625,
36.677865
],
[
30.391096,
36.262981
],
[
29.699976,
36.144357
],
[
28.732903,
36.676831
],
[
27.641187,
36.658822
],
[
27.048768,
37.653361
],
[
26.318218,
38.208133
],
[
26.8047,
38.98576
],
[
26.170785,
39.463612
],
[
27.28002,
40.420014
],
[
28.819978,
40.460011
],
[
29.240004,
41.219991
],
[
31.145934,
41.087622
],
[
32.347979,
41.736264
],
[
33.513283,
42.01896
],
[
35.167704,
42.040225
],
[
36.913127,
41.335358
]
]
],
[
[
[
27.192377,
40.690566
],
[
26.358009,
40.151994
],
[
26.043351,
40.617754
],
[
26.056942,
40.824123
],
[
26.294602,
40.936261
],
[
26.604196,
41.562115
],
[
26.117042,
41.826905
],
[
27.135739,
42.141485
],
[
27.99672,
42.007359
],
[
28.115525,
41.622886
],
[
28.988443,
41.299934
],
[
28.806438,
41.054962
],
[
27.619017,
40.999823
],
[
27.192377,
40.690566
]
]
]
]
}
},
{
type: 'Feature',
id: 'TWN',
properties: {
name: 'Taiwan'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
121.777818,
24.394274
],
[
121.175632,
22.790857
],
[
120.74708,
21.970571
],
[
120.220083,
22.814861
],
[
120.106189,
23.556263
],
[
120.69468,
24.538451
],
[
121.495044,
25.295459
],
[
121.951244,
24.997596
],
[
121.777818,
24.394274
]
]
]
}
},
{
type: 'Feature',
id: 'TZA',
properties: {
name: 'United Republic of Tanzania'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
33.903711,
-0.95
],
[
34.07262,
-1.05982
],
[
37.69869,
-3.09699
],
[
37.7669,
-3.67712
],
[
39.20222,
-4.67677
],
[
38.74054,
-5.90895
],
[
38.79977,
-6.47566
],
[
39.44,
-6.84
],
[
39.47,
-7.1
],
[
39.19469,
-7.7039
],
[
39.25203,
-8.00781
],
[
39.18652,
-8.48551
],
[
39.53574,
-9.11237
],
[
39.9496,
-10.0984
],
[
40.31659,
-10.3171
],
[
39.521,
-10.89688
],
[
38.427557,
-11.285202
],
[
37.82764,
-11.26879
],
[
37.47129,
-11.56876
],
[
36.775151,
-11.594537
],
[
36.514082,
-11.720938
],
[
35.312398,
-11.439146
],
[
34.559989,
-11.52002
],
[
34.28,
-10.16
],
[
33.940838,
-9.693674
],
[
33.73972,
-9.41715
],
[
32.759375,
-9.230599
],
[
32.191865,
-8.930359
],
[
31.556348,
-8.762049
],
[
31.157751,
-8.594579
],
[
30.74,
-8.34
],
[
30.2,
-7.08
],
[
29.62,
-6.52
],
[
29.419993,
-5.939999
],
[
29.519987,
-5.419979
],
[
29.339998,
-4.499983
],
[
29.753512,
-4.452389
],
[
30.11632,
-4.09012
],
[
30.50554,
-3.56858
],
[
30.75224,
-3.35931
],
[
30.74301,
-3.03431
],
[
30.52766,
-2.80762
],
[
30.46967,
-2.41383
],
[
30.758309,
-2.28725
],
[
30.816135,
-1.698914
],
[
30.419105,
-1.134659
],
[
30.76986,
-1.01455
],
[
31.86617,
-1.02736
],
[
33.903711,
-0.95
]
]
]
}
},
{
type: 'Feature',
id: 'UGA',
properties: {
name: 'Uganda'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
31.86617,
-1.02736
],
[
30.76986,
-1.01455
],
[
30.419105,
-1.134659
],
[
29.821519,
-1.443322
],
[
29.579466,
-1.341313
],
[
29.587838,
-0.587406
],
[
29.8195,
-0.2053
],
[
29.875779,
0.59738
],
[
30.086154,
1.062313
],
[
30.468508,
1.583805
],
[
30.85267,
1.849396
],
[
31.174149,
2.204465
],
[
30.77332,
2.33989
],
[
30.83385,
3.50917
],
[
31.24556,
3.7819
],
[
31.88145,
3.55827
],
[
32.68642,
3.79232
],
[
33.39,
3.79
],
[
34.005,
4.249885
],
[
34.47913,
3.5556
],
[
34.59607,
3.05374
],
[
35.03599,
1.90584
],
[
34.6721,
1.17694
],
[
34.18,
0.515
],
[
33.893569,
0.109814
],
[
33.903711,
-0.95
],
[
31.86617,
-1.02736
]
]
]
}
},
{
type: 'Feature',
id: 'UKR',
properties: {
name: 'Ukraine'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
31.785998,
52.101678
],
[
32.159412,
52.061267
],
[
32.412058,
52.288695
],
[
32.715761,
52.238465
],
[
33.7527,
52.335075
],
[
34.391731,
51.768882
],
[
34.141978,
51.566413
],
[
34.224816,
51.255993
],
[
35.022183,
51.207572
],
[
35.377924,
50.773955
],
[
35.356116,
50.577197
],
[
36.626168,
50.225591
],
[
37.39346,
50.383953
],
[
38.010631,
49.915662
],
[
38.594988,
49.926462
],
[
40.069058,
49.601055
],
[
40.080789,
49.30743
],
[
39.674664,
48.783818
],
[
39.895632,
48.232405
],
[
39.738278,
47.898937
],
[
38.770585,
47.825608
],
[
38.255112,
47.5464
],
[
38.223538,
47.10219
],
[
37.425137,
47.022221
],
[
36.759855,
46.6987
],
[
35.823685,
46.645964
],
[
34.962342,
46.273197
],
[
35.020788,
45.651219
],
[
35.510009,
45.409993
],
[
36.529998,
45.46999
],
[
36.334713,
45.113216
],
[
35.239999,
44.939996
],
[
33.882511,
44.361479
],
[
33.326421,
44.564877
],
[
33.546924,
45.034771
],
[
32.454174,
45.327466
],
[
32.630804,
45.519186
],
[
33.588162,
45.851569
],
[
33.298567,
46.080598
],
[
31.74414,
46.333348
],
[
31.675307,
46.706245
],
[
30.748749,
46.5831
],
[
30.377609,
46.03241
],
[
29.603289,
45.293308
],
[
29.149725,
45.464925
],
[
28.679779,
45.304031
],
[
28.233554,
45.488283
],
[
28.485269,
45.596907
],
[
28.659987,
45.939987
],
[
28.933717,
46.25883
],
[
28.862972,
46.437889
],
[
29.072107,
46.517678
],
[
29.170654,
46.379262
],
[
29.759972,
46.349988
],
[
30.024659,
46.423937
],
[
29.83821,
46.525326
],
[
29.908852,
46.674361
],
[
29.559674,
46.928583
],
[
29.415135,
47.346645
],
[
29.050868,
47.510227
],
[
29.122698,
47.849095
],
[
28.670891,
48.118149
],
[
28.259547,
48.155562
],
[
27.522537,
48.467119
],
[
26.857824,
48.368211
],
[
26.619337,
48.220726
],
[
26.19745,
48.220881
],
[
25.945941,
47.987149
],
[
25.207743,
47.891056
],
[
24.866317,
47.737526
],
[
24.402056,
47.981878
],
[
23.760958,
47.985598
],
[
23.142236,
48.096341
],
[
22.710531,
47.882194
],
[
22.64082,
48.15024
],
[
22.085608,
48.422264
],
[
22.280842,
48.825392
],
[
22.558138,
49.085738
],
[
22.776419,
49.027395
],
[
22.51845,
49.476774
],
[
23.426508,
50.308506
],
[
23.922757,
50.424881
],
[
24.029986,
50.705407
],
[
23.527071,
51.578454
],
[
24.005078,
51.617444
],
[
24.553106,
51.888461
],
[
25.327788,
51.910656
],
[
26.337959,
51.832289
],
[
27.454066,
51.592303
],
[
28.241615,
51.572227
],
[
28.617613,
51.427714
],
[
28.992835,
51.602044
],
[
29.254938,
51.368234
],
[
30.157364,
51.416138
],
[
30.555117,
51.319503
],
[
30.619454,
51.822806
],
[
30.927549,
52.042353
],
[
31.785998,
52.101678
]
]
]
}
},
{
type: 'Feature',
id: 'URY',
properties: {
name: 'Uruguay'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-57.625133,
-30.216295
],
[
-56.976026,
-30.109686
],
[
-55.973245,
-30.883076
],
[
-55.60151,
-30.853879
],
[
-54.572452,
-31.494511
],
[
-53.787952,
-32.047243
],
[
-53.209589,
-32.727666
],
[
-53.650544,
-33.202004
],
[
-53.373662,
-33.768378
],
[
-53.806426,
-34.396815
],
[
-54.935866,
-34.952647
],
[
-55.67409,
-34.752659
],
[
-56.215297,
-34.859836
],
[
-57.139685,
-34.430456
],
[
-57.817861,
-34.462547
],
[
-58.427074,
-33.909454
],
[
-58.349611,
-33.263189
],
[
-58.132648,
-33.040567
],
[
-58.14244,
-32.044504
],
[
-57.874937,
-31.016556
],
[
-57.625133,
-30.216295
]
]
]
}
},
{
type: 'Feature',
id: 'USA',
properties: {
name: 'United States of America'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
-155.54211,
19.08348
],
[
-155.68817,
18.91619
],
[
-155.93665,
19.05939
],
[
-155.90806,
19.33888
],
[
-156.07347,
19.70294
],
[
-156.02368,
19.81422
],
[
-155.85008,
19.97729
],
[
-155.91907,
20.17395
],
[
-155.86108,
20.26721
],
[
-155.78505,
20.2487
],
[
-155.40214,
20.07975
],
[
-155.22452,
19.99302
],
[
-155.06226,
19.8591
],
[
-154.80741,
19.50871
],
[
-154.83147,
19.45328
],
[
-155.22217,
19.23972
],
[
-155.54211,
19.08348
]
]
],
[
[
[
-156.07926,
20.64397
],
[
-156.41445,
20.57241
],
[
-156.58673,
20.783
],
[
-156.70167,
20.8643
],
[
-156.71055,
20.92676
],
[
-156.61258,
21.01249
],
[
-156.25711,
20.91745
],
[
-155.99566,
20.76404
],
[
-156.07926,
20.64397
]
]
],
[
[
[
-156.75824,
21.17684
],
[
-156.78933,
21.06873
],
[
-157.32521,
21.09777
],
[
-157.25027,
21.21958
],
[
-156.75824,
21.17684
]
]
],
[
[
[
-157.65283,
21.32217
],
[
-157.70703,
21.26442
],
[
-157.7786,
21.27729
],
[
-158.12667,
21.31244
],
[
-158.2538,
21.53919
],
[
-158.29265,
21.57912
],
[
-158.0252,
21.71696
],
[
-157.94161,
21.65272
],
[
-157.65283,
21.32217
]
]
],
[
[
[
-159.34512,
21.982
],
[
-159.46372,
21.88299
],
[
-159.80051,
22.06533
],
[
-159.74877,
22.1382
],
[
-159.5962,
22.23618
],
[
-159.36569,
22.21494
],
[
-159.34512,
21.982
]
]
],
[
[
[
-94.81758,
49.38905
],
[
-94.64,
48.84
],
[
-94.32914,
48.67074
],
[
-93.63087,
48.60926
],
[
-92.61,
48.45
],
[
-91.64,
48.14
],
[
-90.83,
48.27
],
[
-89.6,
48.01
],
[
-89.272917,
48.019808
],
[
-88.378114,
48.302918
],
[
-87.439793,
47.94
],
[
-86.461991,
47.553338
],
[
-85.652363,
47.220219
],
[
-84.87608,
46.900083
],
[
-84.779238,
46.637102
],
[
-84.543749,
46.538684
],
[
-84.6049,
46.4396
],
[
-84.3367,
46.40877
],
[
-84.14212,
46.512226
],
[
-84.091851,
46.275419
],
[
-83.890765,
46.116927
],
[
-83.616131,
46.116927
],
[
-83.469551,
45.994686
],
[
-83.592851,
45.816894
],
[
-82.550925,
45.347517
],
[
-82.337763,
44.44
],
[
-82.137642,
43.571088
],
[
-82.43,
42.98
],
[
-82.9,
42.43
],
[
-83.12,
42.08
],
[
-83.142,
41.975681
],
[
-83.02981,
41.832796
],
[
-82.690089,
41.675105
],
[
-82.439278,
41.675105
],
[
-81.277747,
42.209026
],
[
-80.247448,
42.3662
],
[
-78.939362,
42.863611
],
[
-78.92,
42.965
],
[
-79.01,
43.27
],
[
-79.171674,
43.466339
],
[
-78.72028,
43.625089
],
[
-77.737885,
43.629056
],
[
-76.820034,
43.628784
],
[
-76.5,
44.018459
],
[
-76.375,
44.09631
],
[
-75.31821,
44.81645
],
[
-74.867,
45.00048
],
[
-73.34783,
45.00738
],
[
-71.50506,
45.0082
],
[
-71.405,
45.255
],
[
-71.08482,
45.30524
],
[
-70.66,
45.46
],
[
-70.305,
45.915
],
[
-69.99997,
46.69307
],
[
-69.237216,
47.447781
],
[
-68.905,
47.185
],
[
-68.23444,
47.35486
],
[
-67.79046,
47.06636
],
[
-67.79134,
45.70281
],
[
-67.13741,
45.13753
],
[
-66.96466,
44.8097
],
[
-68.03252,
44.3252
],
[
-69.06,
43.98
],
[
-70.11617,
43.68405
],
[
-70.645476,
43.090238
],
[
-70.81489,
42.8653
],
[
-70.825,
42.335
],
[
-70.495,
41.805
],
[
-70.08,
41.78
],
[
-70.185,
42.145
],
[
-69.88497,
41.92283
],
[
-69.96503,
41.63717
],
[
-70.64,
41.475
],
[
-71.12039,
41.49445
],
[
-71.86,
41.32
],
[
-72.295,
41.27
],
[
-72.87643,
41.22065
],
[
-73.71,
40.931102
],
[
-72.24126,
41.11948
],
[
-71.945,
40.93
],
[
-73.345,
40.63
],
[
-73.982,
40.628
],
[
-73.952325,
40.75075
],
[
-74.25671,
40.47351
],
[
-73.96244,
40.42763
],
[
-74.17838,
39.70926
],
[
-74.90604,
38.93954
],
[
-74.98041,
39.1964
],
[
-75.20002,
39.24845
],
[
-75.52805,
39.4985
],
[
-75.32,
38.96
],
[
-75.071835,
38.782032
],
[
-75.05673,
38.40412
],
[
-75.37747,
38.01551
],
[
-75.94023,
37.21689
],
[
-76.03127,
37.2566
],
[
-75.72205,
37.93705
],
[
-76.23287,
38.319215
],
[
-76.35,
39.15
],
[
-76.542725,
38.717615
],
[
-76.32933,
38.08326
],
[
-76.989998,
38.239992
],
[
-76.30162,
37.917945
],
[
-76.25874,
36.9664
],
[
-75.9718,
36.89726
],
[
-75.86804,
36.55125
],
[
-75.72749,
35.55074
],
[
-76.36318,
34.80854
],
[
-77.397635,
34.51201
],
[
-78.05496,
33.92547
],
[
-78.55435,
33.86133
],
[
-79.06067,
33.49395
],
[
-79.20357,
33.15839
],
[
-80.301325,
32.509355
],
[
-80.86498,
32.0333
],
[
-81.33629,
31.44049
],
[
-81.49042,
30.72999
],
[
-81.31371,
30.03552
],
[
-80.98,
29.18
],
[
-80.535585,
28.47213
],
[
-80.53,
28.04
],
[
-80.056539,
26.88
],
[
-80.088015,
26.205765
],
[
-80.13156,
25.816775
],
[
-80.38103,
25.20616
],
[
-80.68,
25.08
],
[
-81.17213,
25.20126
],
[
-81.33,
25.64
],
[
-81.71,
25.87
],
[
-82.24,
26.73
],
[
-82.70515,
27.49504
],
[
-82.85526,
27.88624
],
[
-82.65,
28.55
],
[
-82.93,
29.1
],
[
-83.70959,
29.93656
],
[
-84.1,
30.09
],
[
-85.10882,
29.63615
],
[
-85.28784,
29.68612
],
[
-85.7731,
30.15261
],
[
-86.4,
30.4
],
[
-87.53036,
30.27433
],
[
-88.41782,
30.3849
],
[
-89.18049,
30.31598
],
[
-89.593831,
30.159994
],
[
-89.413735,
29.89419
],
[
-89.43,
29.48864
],
[
-89.21767,
29.29108
],
[
-89.40823,
29.15961
],
[
-89.77928,
29.30714
],
[
-90.15463,
29.11743
],
[
-90.880225,
29.148535
],
[
-91.626785,
29.677
],
[
-92.49906,
29.5523
],
[
-93.22637,
29.78375
],
[
-93.84842,
29.71363
],
[
-94.69,
29.48
],
[
-95.60026,
28.73863
],
[
-96.59404,
28.30748
],
[
-97.14,
27.83
],
[
-97.37,
27.38
],
[
-97.38,
26.69
],
[
-97.33,
26.21
],
[
-97.14,
25.87
],
[
-97.53,
25.84
],
[
-98.24,
26.06
],
[
-99.02,
26.37
],
[
-99.3,
26.84
],
[
-99.52,
27.54
],
[
-100.11,
28.11
],
[
-100.45584,
28.69612
],
[
-100.9576,
29.38071
],
[
-101.6624,
29.7793
],
[
-102.48,
29.76
],
[
-103.11,
28.97
],
[
-103.94,
29.27
],
[
-104.45697,
29.57196
],
[
-104.70575,
30.12173
],
[
-105.03737,
30.64402
],
[
-105.63159,
31.08383
],
[
-106.1429,
31.39995
],
[
-106.50759,
31.75452
],
[
-108.24,
31.754854
],
[
-108.24194,
31.34222
],
[
-109.035,
31.34194
],
[
-111.02361,
31.33472
],
[
-113.30498,
32.03914
],
[
-114.815,
32.52528
],
[
-114.72139,
32.72083
],
[
-115.99135,
32.61239
],
[
-117.12776,
32.53534
],
[
-117.295938,
33.046225
],
[
-117.944,
33.621236
],
[
-118.410602,
33.740909
],
[
-118.519895,
34.027782
],
[
-119.081,
34.078
],
[
-119.438841,
34.348477
],
[
-120.36778,
34.44711
],
[
-120.62286,
34.60855
],
[
-120.74433,
35.15686
],
[
-121.71457,
36.16153
],
[
-122.54747,
37.55176
],
[
-122.51201,
37.78339
],
[
-122.95319,
38.11371
],
[
-123.7272,
38.95166
],
[
-123.86517,
39.76699
],
[
-124.39807,
40.3132
],
[
-124.17886,
41.14202
],
[
-124.2137,
41.99964
],
[
-124.53284,
42.76599
],
[
-124.14214,
43.70838
],
[
-124.020535,
44.615895
],
[
-123.89893,
45.52341
],
[
-124.079635,
46.86475
],
[
-124.39567,
47.72017
],
[
-124.68721,
48.184433
],
[
-124.566101,
48.379715
],
[
-123.12,
48.04
],
[
-122.58736,
47.096
],
[
-122.34,
47.36
],
[
-122.5,
48.18
],
[
-122.84,
49
],
[
-120,
49
],
[
-117.03121,
49
],
[
-116.04818,
49
],
[
-113,
49
],
[
-110.05,
49
],
[
-107.05,
49
],
[
-104.04826,
48.99986
],
[
-100.65,
49
],
[
-97.22872,
49.0007
],
[
-95.15907,
49
],
[
-95.15609,
49.38425
],
[
-94.81758,
49.38905
]
]
],
[
[
[
-153.006314,
57.115842
],
[
-154.00509,
56.734677
],
[
-154.516403,
56.992749
],
[
-154.670993,
57.461196
],
[
-153.76278,
57.816575
],
[
-153.228729,
57.968968
],
[
-152.564791,
57.901427
],
[
-152.141147,
57.591059
],
[
-153.006314,
57.115842
]
]
],
[
[
[
-165.579164,
59.909987
],
[
-166.19277,
59.754441
],
[
-166.848337,
59.941406
],
[
-167.455277,
60.213069
],
[
-166.467792,
60.38417
],
[
-165.67443,
60.293607
],
[
-165.579164,
59.909987
]
]
],
[
[
[
-171.731657,
63.782515
],
[
-171.114434,
63.592191
],
[
-170.491112,
63.694975
],
[
-169.682505,
63.431116
],
[
-168.689439,
63.297506
],
[
-168.771941,
63.188598
],
[
-169.52944,
62.976931
],
[
-170.290556,
63.194438
],
[
-170.671386,
63.375822
],
[
-171.553063,
63.317789
],
[
-171.791111,
63.405846
],
[
-171.731657,
63.782515
]
]
],
[
[
[
-155.06779,
71.147776
],
[
-154.344165,
70.696409
],
[
-153.900006,
70.889989
],
[
-152.210006,
70.829992
],
[
-152.270002,
70.600006
],
[
-150.739992,
70.430017
],
[
-149.720003,
70.53001
],
[
-147.613362,
70.214035
],
[
-145.68999,
70.12001
],
[
-144.920011,
69.989992
],
[
-143.589446,
70.152514
],
[
-142.07251,
69.851938
],
[
-140.985988,
69.711998
],
[
-140.992499,
66.000029
],
[
-140.99777,
60.306397
],
[
-140.012998,
60.276838
],
[
-139.039,
60.000007
],
[
-138.34089,
59.56211
],
[
-137.4525,
58.905
],
[
-136.47972,
59.46389
],
[
-135.47583,
59.78778
],
[
-134.945,
59.27056
],
[
-134.27111,
58.86111
],
[
-133.355549,
58.410285
],
[
-132.73042,
57.69289
],
[
-131.70781,
56.55212
],
[
-130.00778,
55.91583
],
[
-129.979994,
55.284998
],
[
-130.53611,
54.802753
],
[
-131.085818,
55.178906
],
[
-131.967211,
55.497776
],
[
-132.250011,
56.369996
],
[
-133.539181,
57.178887
],
[
-134.078063,
58.123068
],
[
-135.038211,
58.187715
],
[
-136.628062,
58.212209
],
[
-137.800006,
58.499995
],
[
-139.867787,
59.537762
],
[
-140.825274,
59.727517
],
[
-142.574444,
60.084447
],
[
-143.958881,
59.99918
],
[
-145.925557,
60.45861
],
[
-147.114374,
60.884656
],
[
-148.224306,
60.672989
],
[
-148.018066,
59.978329
],
[
-148.570823,
59.914173
],
[
-149.727858,
59.705658
],
[
-150.608243,
59.368211
],
[
-151.716393,
59.155821
],
[
-151.859433,
59.744984
],
[
-151.409719,
60.725803
],
[
-150.346941,
61.033588
],
[
-150.621111,
61.284425
],
[
-151.895839,
60.727198
],
[
-152.57833,
60.061657
],
[
-154.019172,
59.350279
],
[
-153.287511,
58.864728
],
[
-154.232492,
58.146374
],
[
-155.307491,
57.727795
],
[
-156.308335,
57.422774
],
[
-156.556097,
56.979985
],
[
-158.117217,
56.463608
],
[
-158.433321,
55.994154
],
[
-159.603327,
55.566686
],
[
-160.28972,
55.643581
],
[
-161.223048,
55.364735
],
[
-162.237766,
55.024187
],
[
-163.069447,
54.689737
],
[
-164.785569,
54.404173
],
[
-164.942226,
54.572225
],
[
-163.84834,
55.039431
],
[
-162.870001,
55.348043
],
[
-161.804175,
55.894986
],
[
-160.563605,
56.008055
],
[
-160.07056,
56.418055
],
[
-158.684443,
57.016675
],
[
-158.461097,
57.216921
],
[
-157.72277,
57.570001
],
[
-157.550274,
58.328326
],
[
-157.041675,
58.918885
],
[
-158.194731,
58.615802
],
[
-158.517218,
58.787781
],
[
-159.058606,
58.424186
],
[
-159.711667,
58.93139
],
[
-159.981289,
58.572549
],
[
-160.355271,
59.071123
],
[
-161.355003,
58.670838
],
[
-161.968894,
58.671665
],
[
-162.054987,
59.266925
],
[
-161.874171,
59.633621
],
[
-162.518059,
59.989724
],
[
-163.818341,
59.798056
],
[
-164.662218,
60.267484
],
[
-165.346388,
60.507496
],
[
-165.350832,
61.073895
],
[
-166.121379,
61.500019
],
[
-165.734452,
62.074997
],
[
-164.919179,
62.633076
],
[
-164.562508,
63.146378
],
[
-163.753332,
63.219449
],
[
-163.067224,
63.059459
],
[
-162.260555,
63.541936
],
[
-161.53445,
63.455817
],
[
-160.772507,
63.766108
],
[
-160.958335,
64.222799
],
[
-161.518068,
64.402788
],
[
-160.777778,
64.788604
],
[
-161.391926,
64.777235
],
[
-162.45305,
64.559445
],
[
-162.757786,
64.338605
],
[
-163.546394,
64.55916
],
[
-164.96083,
64.446945
],
[
-166.425288,
64.686672
],
[
-166.845004,
65.088896
],
[
-168.11056,
65.669997
],
[
-166.705271,
66.088318
],
[
-164.47471,
66.57666
],
[
-163.652512,
66.57666
],
[
-163.788602,
66.077207
],
[
-161.677774,
66.11612
],
[
-162.489715,
66.735565
],
[
-163.719717,
67.116395
],
[
-164.430991,
67.616338
],
[
-165.390287,
68.042772
],
[
-166.764441,
68.358877
],
[
-166.204707,
68.883031
],
[
-164.430811,
68.915535
],
[
-163.168614,
69.371115
],
[
-162.930566,
69.858062
],
[
-161.908897,
70.33333
],
[
-160.934797,
70.44769
],
[
-159.039176,
70.891642
],
[
-158.119723,
70.824721
],
[
-156.580825,
71.357764
],
[
-155.06779,
71.147776
]
]
]
]
}
},
{
type: 'Feature',
id: 'UZB',
properties: {
name: 'Uzbekistan'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
66.518607,
37.362784
],
[
66.54615,
37.974685
],
[
65.215999,
38.402695
],
[
64.170223,
38.892407
],
[
63.518015,
39.363257
],
[
62.37426,
40.053886
],
[
61.882714,
41.084857
],
[
61.547179,
41.26637
],
[
60.465953,
41.220327
],
[
60.083341,
41.425146
],
[
59.976422,
42.223082
],
[
58.629011,
42.751551
],
[
57.78653,
42.170553
],
[
56.932215,
41.826026
],
[
57.096391,
41.32231
],
[
55.968191,
41.308642
],
[
55.928917,
44.995858
],
[
58.503127,
45.586804
],
[
58.689989,
45.500014
],
[
60.239972,
44.784037
],
[
61.05832,
44.405817
],
[
62.0133,
43.504477
],
[
63.185787,
43.650075
],
[
64.900824,
43.728081
],
[
66.098012,
42.99766
],
[
66.023392,
41.994646
],
[
66.510649,
41.987644
],
[
66.714047,
41.168444
],
[
67.985856,
41.135991
],
[
68.259896,
40.662325
],
[
68.632483,
40.668681
],
[
69.070027,
41.384244
],
[
70.388965,
42.081308
],
[
70.962315,
42.266154
],
[
71.259248,
42.167711
],
[
70.420022,
41.519998
],
[
71.157859,
41.143587
],
[
71.870115,
41.3929
],
[
73.055417,
40.866033
],
[
71.774875,
40.145844
],
[
71.014198,
40.244366
],
[
70.601407,
40.218527
],
[
70.45816,
40.496495
],
[
70.666622,
40.960213
],
[
69.329495,
40.727824
],
[
69.011633,
40.086158
],
[
68.536416,
39.533453
],
[
67.701429,
39.580478
],
[
67.44222,
39.140144
],
[
68.176025,
38.901553
],
[
68.392033,
38.157025
],
[
67.83,
37.144994
],
[
67.075782,
37.356144
],
[
66.518607,
37.362784
]
]
]
}
},
{
type: 'Feature',
id: 'VEN',
properties: {
name: 'Venezuela'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
-71.331584,
11.776284
],
[
-71.360006,
11.539994
],
[
-71.94705,
11.423282
],
[
-71.620868,
10.96946
],
[
-71.633064,
10.446494
],
[
-72.074174,
9.865651
],
[
-71.695644,
9.072263
],
[
-71.264559,
9.137195
],
[
-71.039999,
9.859993
],
[
-71.350084,
10.211935
],
[
-71.400623,
10.968969
],
[
-70.155299,
11.375482
],
[
-70.293843,
11.846822
],
[
-69.943245,
12.162307
],
[
-69.5843,
11.459611
],
[
-68.882999,
11.443385
],
[
-68.233271,
10.885744
],
[
-68.194127,
10.554653
],
[
-67.296249,
10.545868
],
[
-66.227864,
10.648627
],
[
-65.655238,
10.200799
],
[
-64.890452,
10.077215
],
[
-64.329479,
10.389599
],
[
-64.318007,
10.641418
],
[
-63.079322,
10.701724
],
[
-61.880946,
10.715625
],
[
-62.730119,
10.420269
],
[
-62.388512,
9.948204
],
[
-61.588767,
9.873067
],
[
-60.830597,
9.38134
],
[
-60.671252,
8.580174
],
[
-60.150096,
8.602757
],
[
-59.758285,
8.367035
],
[
-60.550588,
7.779603
],
[
-60.637973,
7.415
],
[
-60.295668,
7.043911
],
[
-60.543999,
6.856584
],
[
-61.159336,
6.696077
],
[
-61.139415,
6.234297
],
[
-61.410303,
5.959068
],
[
-60.733574,
5.200277
],
[
-60.601179,
4.918098
],
[
-60.966893,
4.536468
],
[
-62.08543,
4.162124
],
[
-62.804533,
4.006965
],
[
-63.093198,
3.770571
],
[
-63.888343,
4.02053
],
[
-64.628659,
4.148481
],
[
-64.816064,
4.056445
],
[
-64.368494,
3.79721
],
[
-64.408828,
3.126786
],
[
-64.269999,
2.497006
],
[
-63.422867,
2.411068
],
[
-63.368788,
2.2009
],
[
-64.083085,
1.916369
],
[
-64.199306,
1.492855
],
[
-64.611012,
1.328731
],
[
-65.354713,
1.095282
],
[
-65.548267,
0.789254
],
[
-66.325765,
0.724452
],
[
-66.876326,
1.253361
],
[
-67.181294,
2.250638
],
[
-67.447092,
2.600281
],
[
-67.809938,
2.820655
],
[
-67.303173,
3.318454
],
[
-67.337564,
3.542342
],
[
-67.621836,
3.839482
],
[
-67.823012,
4.503937
],
[
-67.744697,
5.221129
],
[
-67.521532,
5.55687
],
[
-67.34144,
6.095468
],
[
-67.695087,
6.267318
],
[
-68.265052,
6.153268
],
[
-68.985319,
6.206805
],
[
-69.38948,
6.099861
],
[
-70.093313,
6.960376
],
[
-70.674234,
7.087785
],
[
-71.960176,
6.991615
],
[
-72.198352,
7.340431
],
[
-72.444487,
7.423785
],
[
-72.479679,
7.632506
],
[
-72.360901,
8.002638
],
[
-72.439862,
8.405275
],
[
-72.660495,
8.625288
],
[
-72.78873,
9.085027
],
[
-73.304952,
9.152
],
[
-73.027604,
9.73677
],
[
-72.905286,
10.450344
],
[
-72.614658,
10.821975
],
[
-72.227575,
11.108702
],
[
-71.973922,
11.608672
],
[
-71.331584,
11.776284
]
]
]
}
},
{
type: 'Feature',
id: 'VNM',
properties: {
name: 'Vietnam'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
108.05018,
21.55238
],
[
106.715068,
20.696851
],
[
105.881682,
19.75205
],
[
105.662006,
19.058165
],
[
106.426817,
18.004121
],
[
107.361954,
16.697457
],
[
108.269495,
16.079742
],
[
108.877107,
15.276691
],
[
109.33527,
13.426028
],
[
109.200136,
11.666859
],
[
108.36613,
11.008321
],
[
107.220929,
10.364484
],
[
106.405113,
9.53084
],
[
105.158264,
8.59976
],
[
104.795185,
9.241038
],
[
105.076202,
9.918491
],
[
104.334335,
10.486544
],
[
105.199915,
10.88931
],
[
106.24967,
10.961812
],
[
105.810524,
11.567615
],
[
107.491403,
12.337206
],
[
107.614548,
13.535531
],
[
107.382727,
14.202441
],
[
107.564525,
15.202173
],
[
107.312706,
15.908538
],
[
106.556008,
16.604284
],
[
105.925762,
17.485315
],
[
105.094598,
18.666975
],
[
103.896532,
19.265181
],
[
104.183388,
19.624668
],
[
104.822574,
19.886642
],
[
104.435,
20.758733
],
[
103.203861,
20.766562
],
[
102.754896,
21.675137
],
[
102.170436,
22.464753
],
[
102.706992,
22.708795
],
[
103.504515,
22.703757
],
[
104.476858,
22.81915
],
[
105.329209,
23.352063
],
[
105.811247,
22.976892
],
[
106.725403,
22.794268
],
[
106.567273,
22.218205
],
[
107.04342,
21.811899
],
[
108.05018,
21.55238
]
]
]
}
},
{
type: 'Feature',
id: 'VUT',
properties: {
name: 'Vanuatu'
},
geometry: {
type: 'MultiPolygon',
coordinates: [
[
[
[
167.844877,
-16.466333
],
[
167.515181,
-16.59785
],
[
167.180008,
-16.159995
],
[
167.216801,
-15.891846
],
[
167.844877,
-16.466333
]
]
],
[
[
[
167.107712,
-14.93392
],
[
167.270028,
-15.740021
],
[
167.001207,
-15.614602
],
[
166.793158,
-15.668811
],
[
166.649859,
-15.392704
],
[
166.629137,
-14.626497
],
[
167.107712,
-14.93392
]
]
]
]
}
},
{
type: 'Feature',
id: 'PSE',
properties: {
name: 'West Bank'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
35.545665,
32.393992
],
[
35.545252,
31.782505
],
[
35.397561,
31.489086
],
[
34.927408,
31.353435
],
[
34.970507,
31.616778
],
[
35.225892,
31.754341
],
[
34.974641,
31.866582
],
[
35.18393,
32.532511
],
[
35.545665,
32.393992
]
]
]
}
},
{
type: 'Feature',
id: 'YEM',
properties: {
name: 'Yemen'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
53.108573,
16.651051
],
[
52.385206,
16.382411
],
[
52.191729,
15.938433
],
[
52.168165,
15.59742
],
[
51.172515,
15.17525
],
[
49.574576,
14.708767
],
[
48.679231,
14.003202
],
[
48.238947,
13.94809
],
[
47.938914,
14.007233
],
[
47.354454,
13.59222
],
[
46.717076,
13.399699
],
[
45.877593,
13.347764
],
[
45.62505,
13.290946
],
[
45.406459,
13.026905
],
[
45.144356,
12.953938
],
[
44.989533,
12.699587
],
[
44.494576,
12.721653
],
[
44.175113,
12.58595
],
[
43.482959,
12.6368
],
[
43.222871,
13.22095
],
[
43.251448,
13.767584
],
[
43.087944,
14.06263
],
[
42.892245,
14.802249
],
[
42.604873,
15.213335
],
[
42.805015,
15.261963
],
[
42.702438,
15.718886
],
[
42.823671,
15.911742
],
[
42.779332,
16.347891
],
[
43.218375,
16.66689
],
[
43.115798,
17.08844
],
[
43.380794,
17.579987
],
[
43.791519,
17.319977
],
[
44.062613,
17.410359
],
[
45.216651,
17.433329
],
[
45.399999,
17.333335
],
[
46.366659,
17.233315
],
[
46.749994,
17.283338
],
[
47.000005,
16.949999
],
[
47.466695,
17.116682
],
[
48.183344,
18.166669
],
[
49.116672,
18.616668
],
[
52.00001,
19.000003
],
[
52.782184,
17.349742
],
[
53.108573,
16.651051
]
]
]
}
},
{
type: 'Feature',
id: 'ZAF',
properties: {
name: 'South Africa'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
31.521001,
-29.257387
],
[
31.325561,
-29.401978
],
[
30.901763,
-29.909957
],
[
30.622813,
-30.423776
],
[
30.055716,
-31.140269
],
[
28.925553,
-32.172041
],
[
28.219756,
-32.771953
],
[
27.464608,
-33.226964
],
[
26.419452,
-33.61495
],
[
25.909664,
-33.66704
],
[
25.780628,
-33.944646
],
[
25.172862,
-33.796851
],
[
24.677853,
-33.987176
],
[
23.594043,
-33.794474
],
[
22.988189,
-33.916431
],
[
22.574157,
-33.864083
],
[
21.542799,
-34.258839
],
[
20.689053,
-34.417175
],
[
20.071261,
-34.795137
],
[
19.616405,
-34.819166
],
[
19.193278,
-34.462599
],
[
18.855315,
-34.444306
],
[
18.424643,
-33.997873
],
[
18.377411,
-34.136521
],
[
18.244499,
-33.867752
],
[
18.25008,
-33.281431
],
[
17.92519,
-32.611291
],
[
18.24791,
-32.429131
],
[
18.221762,
-31.661633
],
[
17.566918,
-30.725721
],
[
17.064416,
-29.878641
],
[
17.062918,
-29.875954
],
[
16.344977,
-28.576705
],
[
16.824017,
-28.082162
],
[
17.218929,
-28.355943
],
[
17.387497,
-28.783514
],
[
17.836152,
-28.856378
],
[
18.464899,
-29.045462
],
[
19.002127,
-28.972443
],
[
19.894734,
-28.461105
],
[
19.895768,
-24.76779
],
[
20.165726,
-24.917962
],
[
20.758609,
-25.868136
],
[
20.66647,
-26.477453
],
[
20.889609,
-26.828543
],
[
21.605896,
-26.726534
],
[
22.105969,
-26.280256
],
[
22.579532,
-25.979448
],
[
22.824271,
-25.500459
],
[
23.312097,
-25.26869
],
[
23.73357,
-25.390129
],
[
24.211267,
-25.670216
],
[
25.025171,
-25.71967
],
[
25.664666,
-25.486816
],
[
25.765849,
-25.174845
],
[
25.941652,
-24.696373
],
[
26.485753,
-24.616327
],
[
26.786407,
-24.240691
],
[
27.11941,
-23.574323
],
[
28.017236,
-22.827754
],
[
29.432188,
-22.091313
],
[
29.839037,
-22.102216
],
[
30.322883,
-22.271612
],
[
30.659865,
-22.151567
],
[
31.191409,
-22.25151
],
[
31.670398,
-23.658969
],
[
31.930589,
-24.369417
],
[
31.752408,
-25.484284
],
[
31.837778,
-25.843332
],
[
31.333158,
-25.660191
],
[
31.04408,
-25.731452
],
[
30.949667,
-26.022649
],
[
30.676609,
-26.398078
],
[
30.685962,
-26.743845
],
[
31.282773,
-27.285879
],
[
31.86806,
-27.177927
],
[
32.071665,
-26.73382
],
[
32.83012,
-26.742192
],
[
32.580265,
-27.470158
],
[
32.462133,
-28.301011
],
[
32.203389,
-28.752405
],
[
31.521001,
-29.257387
]
],
[
[
28.978263,
-28.955597
],
[
28.5417,
-28.647502
],
[
28.074338,
-28.851469
],
[
27.532511,
-29.242711
],
[
26.999262,
-29.875954
],
[
27.749397,
-30.645106
],
[
28.107205,
-30.545732
],
[
28.291069,
-30.226217
],
[
28.8484,
-30.070051
],
[
29.018415,
-29.743766
],
[
29.325166,
-29.257387
],
[
28.978263,
-28.955597
]
]
]
}
},
{
type: 'Feature',
id: 'ZMB',
properties: {
name: 'Zambia'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
32.759375,
-9.230599
],
[
33.231388,
-9.676722
],
[
33.485688,
-10.525559
],
[
33.31531,
-10.79655
],
[
33.114289,
-11.607198
],
[
33.306422,
-12.435778
],
[
32.991764,
-12.783871
],
[
32.688165,
-13.712858
],
[
33.214025,
-13.97186
],
[
30.179481,
-14.796099
],
[
30.274256,
-15.507787
],
[
29.516834,
-15.644678
],
[
28.947463,
-16.043051
],
[
28.825869,
-16.389749
],
[
28.467906,
-16.4684
],
[
27.598243,
-17.290831
],
[
27.044427,
-17.938026
],
[
26.706773,
-17.961229
],
[
26.381935,
-17.846042
],
[
25.264226,
-17.73654
],
[
25.084443,
-17.661816
],
[
25.07695,
-17.578823
],
[
24.682349,
-17.353411
],
[
24.033862,
-17.295843
],
[
23.215048,
-17.523116
],
[
22.562478,
-16.898451
],
[
21.887843,
-16.08031
],
[
21.933886,
-12.898437
],
[
24.016137,
-12.911046
],
[
23.930922,
-12.565848
],
[
24.079905,
-12.191297
],
[
23.904154,
-11.722282
],
[
24.017894,
-11.237298
],
[
23.912215,
-10.926826
],
[
24.257155,
-10.951993
],
[
24.314516,
-11.262826
],
[
24.78317,
-11.238694
],
[
25.418118,
-11.330936
],
[
25.75231,
-11.784965
],
[
26.553088,
-11.92444
],
[
27.16442,
-11.608748
],
[
27.388799,
-12.132747
],
[
28.155109,
-12.272481
],
[
28.523562,
-12.698604
],
[
28.934286,
-13.248958
],
[
29.699614,
-13.257227
],
[
29.616001,
-12.178895
],
[
29.341548,
-12.360744
],
[
28.642417,
-11.971569
],
[
28.372253,
-11.793647
],
[
28.49607,
-10.789884
],
[
28.673682,
-9.605925
],
[
28.449871,
-9.164918
],
[
28.734867,
-8.526559
],
[
29.002912,
-8.407032
],
[
30.346086,
-8.238257
],
[
30.740015,
-8.340007
],
[
31.157751,
-8.594579
],
[
31.556348,
-8.762049
],
[
32.191865,
-8.930359
],
[
32.759375,
-9.230599
]
]
]
}
},
{
type: 'Feature',
id: 'ZWE',
properties: {
name: 'Zimbabwe'
},
geometry: {
type: 'Polygon',
coordinates: [
[
[
31.191409,
-22.25151
],
[
30.659865,
-22.151567
],
[
30.322883,
-22.271612
],
[
29.839037,
-22.102216
],
[
29.432188,
-22.091313
],
[
28.794656,
-21.639454
],
[
28.02137,
-21.485975
],
[
27.727228,
-20.851802
],
[
27.724747,
-20.499059
],
[
27.296505,
-20.39152
],
[
26.164791,
-19.293086
],
[
25.850391,
-18.714413
],
[
25.649163,
-18.536026
],
[
25.264226,
-17.73654
],
[
26.381935,
-17.846042
],
[
26.706773,
-17.961229
],
[
27.044427,
-17.938026
],
[
27.598243,
-17.290831
],
[
28.467906,
-16.4684
],
[
28.825869,
-16.389749
],
[
28.947463,
-16.043051
],
[
29.516834,
-15.644678
],
[
30.274256,
-15.507787
],
[
30.338955,
-15.880839
],
[
31.173064,
-15.860944
],
[
31.636498,
-16.07199
],
[
31.852041,
-16.319417
],
[
32.328239,
-16.392074
],
[
32.847639,
-16.713398
],
[
32.849861,
-17.979057
],
[
32.654886,
-18.67209
],
[
32.611994,
-19.419383
],
[
32.772708,
-19.715592
],
[
32.659743,
-20.30429
],
[
32.508693,
-20.395292
],
[
32.244988,
-21.116489
],
[
31.191409,
-22.25151
]
]
]
}
}
]
}
| mit |
geraldinas/LocalGuide | spec/controllers/tours_controller_spec.rb | 82 | require 'rails_helper'
RSpec.describe ToursController, type: :controller do
end
| mit |
ata/kkn | protected/extensions/giix/CCodeModel.php | 10817 | <?php
/**
* CCodeModel class file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
/**
* CCodeModel is the base class for model classes that are used to generate code.
*
* Each code generator should have at least one code model class that extends from this class.
* The purpose of a code model is to represent user-supplied parameters and use them to
* generate customized code.
*
* Derived classes should implement the {@link prepare} method whose main task is to
* fill up the {@link files} property based on the user parameters.
*
* The {@link files} property should be filled with a set of {@link CCodeFile} instances,
* each representing a single code file to be generated.
*
* CCodeModel implements the feature of "sticky attributes". A sticky attribute is an attribute
* that can remember its last valid value, even if the user closes his browser window
* and reopen it. To declare an attribute is sticky, simply list it in a validation rule with
* the validator name being "sticky".
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @version $Id: CCodeModel.php 2023 2010-04-07 00:41:20Z qiang.xue $
* @package system.gii
* @since 1.1.2
*/
abstract class CCodeModel extends CFormModel
{
const STATUS_NEW=1;
const STATUS_PREVIEW=2;
const STATUS_SUCCESS=3;
const STATUS_ERROR=4;
/**
* @var array user confirmations on whether to overwrite existing code files with the newly generated ones.
* The value of this property is internally managed by this class and {@link CCodeGenerator}.
*/
public $answers;
/**
* @var string the name of the code template that the user has selected.
* The value of this property is internally managed by this class and {@link CCodeGenerator}.
*/
public $template;
/**
* @var array a list of {@link CCodeFile} objects that represent the code files to be generated.
* The {@link prepare()} method is responsible to populate this property.
*/
public $files=array();
/**
* @var integer the status of this model. T
* The value of this property is internally managed by {@link CCodeGenerator}.
*/
public $status=self::STATUS_NEW;
private $_stickyAttributes=array();
/**
* Prepares the code files to be generated.
* This is the main method that child classes should implement. It should contain the logic
* that populates the {@link files} property with a list of code files to be generated.
*/
abstract public function prepare();
/**
* Declares the model validation rules.
* Child classes must override this method in the following format:
* <pre>
* return array_merge(parent::rules(), array(
* ...rules for the child class...
* ));
* </pre>
* @return array validation rules
*/
public function rules()
{
return array(
array('template', 'required'),
array('template', 'validateTemplate', 'skipOnError'=>true),
array('template', 'sticky'),
);
}
/**
* Validates the template selection.
* This method validates whether the user selects an existing template
* and the template contains all required template files as specified in {@link requiredTemplates}.
* @param string the attribute to be validated
* @param array validation parameters
*/
public function validateTemplate($attribute,$params)
{
$templates=$this->templates;
if(!isset($templates[$this->template]))
$this->addError('template', 'Invalid template selection.');
else
{
$templatePath=$this->templatePath;
foreach($this->requiredTemplates() as $template)
{
if(!is_file($templatePath.'/'.$template))
$this->addError('template', "Unable to find the required code template file '$template'.");
}
}
}
/**
* Declares the model attribute labels.
* Child classes must override this method in the following format:
* <pre>
* return array_merge(parent::attributeLabels(), array(
* ...labels for the child class attributes...
* ));
* </pre>
* @return array the attribute labels
*/
public function attributeLabels()
{
return array(
'template'=>'Code Template',
);
}
/**
* Returns a list of code templates that are required.
* Derived classes usually should override this method.
* @return array list of code templates that are required. They should be file paths
* relative to {@link templatePath}.
*/
public function requiredTemplates()
{
return array();
}
/**
* Saves the generated code into files.
*/
public function save()
{
$result=true;
foreach($this->files as $file)
{
if($this->confirmed($file))
$result=$file->save() && $result;
}
return $result;
}
/**
* Returns the message to be displayed when the newly generated code is saved successfully.
* Child classes should override this method if the message needs to be customized.
* @return string the message to be displayed when the newly generated code is saved successfully.
*/
public function successMessage()
{
return 'The code has been generated successfully.';
}
/**
* Returns the message to be displayed when some error occurred during code file saving.
* Child classes should override this method if the message needs to be customized.
* @return string the message to be displayed when some error occurred during code file saving.
*/
public function errorMessage()
{
return 'There was some error when generating the code. Please check the following messages.';
}
/**
* Returns a list of available code templates (name=>directory).
* This method simply returns the {@link CCodeGenerator::templates} property value.
* @return array a list of available code templates (name=>directory).
*/
public function getTemplates()
{
return Yii::app()->controller->templates;
}
/**
* @return string the directory that contains the template files.
* @throw CException if {@link templates} is empty or template selection is invalid
*/
public function getTemplatePath()
{
$templates=$this->getTemplates();
if(isset($templates[$this->template]))
return $templates[$this->template];
else if(empty($templates))
throw new CHttpException(500,'No templates are available.');
else
throw new CHttpException(500,'Invalid template selection.');
}
/**
* @param CCodeFile whether the code file should be saved
*/
public function confirmed($file)
{
return $this->answers===null && $file->operation===CCodeFile::OP_NEW
|| is_array($this->answers) && isset($this->answers[md5($file->path)]);
}
/**
* Generates the code using the specified code template file.
* This method is manly used in {@link generate} to generate code.
* @param string the code template file path
* @param array a set of parameters to be extracted and made available in the code template
* @return string the generated code
*/
public function render($templateFile,$_params_=null)
{
if(!is_file($templateFile))
throw new CException("The template file '$templateFile' does not exist.");
if(is_array($_params_))
extract($_params_,EXTR_PREFIX_SAME,'params');
else
$params=$_params_;
ob_start();
ob_implicit_flush(false);
require($templateFile);
return ob_get_clean();
}
/**
* @return string the code generation result log.
*/
public function renderResults()
{
$output='Generating code using template "'.$this->templatePath."\"...\n";
foreach($this->files as $file)
{
if($file->error!==null)
$output.="<span class=\"error\">generating {$file->relativePath}<br/> {$file->error}</span>\n";
else if($file->operation===CCodeFile::OP_NEW && $this->confirmed($file))
$output.=' generated '.$file->relativePath."\n";
else if($file->operation===CCodeFile::OP_OVERWRITE && $this->confirmed($file))
$output.=' overwrote '.$file->relativePath."\n";
else
$output.=' skipped '.$file->relativePath."\n";
}
$output.="done!\n";
return $output;
}
/**
* The "sticky" validator.
* This validator does not really validate the attributes.
* It actually saves the attribute value in a file to make it sticky.
* @param string the attribute to be validated
* @param array the validation parameters
*/
public function sticky($attribute,$params)
{
if(!$this->hasErrors())
$this->_stickyAttributes[$attribute]=$this->$attribute;
}
/**
* Loads sticky attributes from a file and populates them into the model.
*/
public function loadStickyAttributes()
{
$this->_stickyAttributes=array();
$path=$this->getStickyFile();
if(is_file($path))
{
$result=@include($path);
if(is_array($result))
{
$this->_stickyAttributes=$result;
foreach($this->_stickyAttributes as $name=>$value)
{
if(property_exists($this,$name) || $this->canSetProperty($name))
$this->$name=$value;
}
}
}
}
/**
* Saves sticky attributes into a file.
*/
public function saveStickyAttributes()
{
$path=$this->getStickyFile();
@mkdir(dirname($path),0755,true);
file_put_contents($path,"<?php\nreturn ".var_export($this->_stickyAttributes,true).";\n");
}
/**
* @return string the file path that stores the sticky attribute values.
*/
public function getStickyFile()
{
return Yii::app()->runtimePath.'/gii-'.Yii::getVersion().'/'.get_class($this).'.php';
}
/**
* Converts a word to its plural form.
* Note that this is for English only!
* For example, 'apple' will become 'apples', and 'child' will become 'children'.
* @param string the word to be pluralized
* @return string the pluralized word
*/
public function pluralize($name)
{
$rules=array(
'/(x|ch|ss|sh|us|as|is|os)$/i' => '\1es',
'/(?:([^f])fe|([lr])f)$/i' => '\1\2ves',
'/(m)an$/i' => '\1en',
'/(child)$/i' => '\1ren',
'/(r|t)y$/i' => '\1ies',
'/s$/' => 's',
);
foreach($rules as $rule=>$replacement)
{
if(preg_match($rule,$name))
return preg_replace($rule,$replacement,$name);
}
return $name.'s';
}
/**
* Converts a class name into a HTML ID.
* For example, 'PostTag' will be converted as 'post-tag'.
* @param string the string to be converted
* @return string the resulting ID
*/
public function class2id($name)
{
return trim(strtolower(str_replace('_','-',preg_replace('/(?<![A-Z])[A-Z]/', '-\0', $name))),'-');
}
/**
* Converts a class name into space-separated words.
* For example, 'PostTag' will be converted as 'Post Tag'.
* @param string the string to be converted
* @param boolean whether to capitalize the first letter in each word
* @return string the resulting words
*/
public function class2name($name,$ucwords=true)
{
$result=trim(strtolower(str_replace('_',' ',preg_replace('/(?<![A-Z])[A-Z]/', ' \0', $name))));
return $ucwords ? ucwords($result) : $result;
}
} | mit |
Smiithx/facturacion | app/Http/Kernel.php | 1034 | <?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* @var array
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
];
/**
* The application's route middleware.
*
* @var array
*/
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class,
'admin' => \App\Http\Middleware\Admin::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
];
}
| mit |
SYCstudio/OI | Practice/2019.2.1/BZOJ3463.cpp | 3932 | #include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<queue>
#include<iostream>
#include<cstring>
using namespace std;
#define ll long long
#define ld long double
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
#define mp make_pair
#define ft first
#define sd second
namespace IO
{
const int maxn((1 << 21) + 1);
char ibuf[maxn], *iS, *iT, obuf[maxn], *oS = obuf, *oT = obuf + maxn - 1, c, st[55];
int f, tp;
char Getc()
{
return (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, maxn, stdin), (iS == iT ? EOF : *iS++)) : *iS++);
}
void Flush()
{
fwrite(obuf, 1, oS - obuf, stdout);
oS = obuf;
}
void Putc(char x)
{
*oS++ = x;
if (oS == oT) Flush();
}
template <class Int> void Input(Int &x)
{
for (f = 1, c = Getc(); c < '0' || c > '9'; c = Getc()) f = c == '-' ? -1 : 1;
for (x = 0; c <= '9' && c >= '0'; c = Getc()) x = (x << 3) + (x << 1) + (c ^ 48);
x *= f;
}
template <class Int> void Print(Int x)
{
if (!x) Putc('0');
if (x < 0) Putc('-'), x = -x;
while (x) st[++tp] = x % 10 + '0', x /= 10;
while (tp) Putc(st[tp--]);
}
void Getstr(char *s, int &l)
{
for (c = Getc(); c < 'a' || c > 'z'; c = Getc());
for (l = 0; c <= 'z' && c >= 'a'; c = Getc()) s[l++] = c;
s[l] = 0;
}
void Putstr(const char *s)
{
for (int i = 0, n = strlen(s); i < n; ++i) Putc(s[i]);
}
}
using namespace IO;
const int maxN=101000;
const int Block=110;
const ll INF=1e18;
ld GetC(ll k1,ll b1,ll k2,ll b2);
class Convex
{
public:
int sz;
deque<pair<ll,ll> > C;
Convex()
{
sz=-1;
return;
}
void clear()
{
sz=-1;
C.clear();
return;
}
void push_back(ll k,ll b)
{
while (sz>=0) {
if (C[sz].ft==k) {
if (C[sz].sd>=b) return;
C.pop_back();
--sz;
continue;
} else if (sz>=1&&GetC(C[sz-1].ft,C[sz-1].sd,k,b)<=GetC(C[sz-1].ft,C[sz-1].sd,C[sz].ft,C[sz].sd)) {
C.pop_back();
--sz;
continue;
}
break;
}
C.push_back(mp(k,b));
++sz;
return;
}
bool empty()
{
return sz==-1;
}
ll top(ll t)
{
if (empty()) return -INF;
while (sz>=1&&GetC(C[0].ft,C[0].sd,C[1].ft,C[1].sd)<=t) C.pop_front(),--sz;
return t*C[0].ft+C[0].sd;
}
};
int n,m;
int L[maxN],R[maxN],Bl[maxN];
bool nrb[maxN];
ll K[maxN],B[maxN];
pair<ll,ll> Sorter[maxN];
Convex Cnx[1000],Bp;
void rebuild(int id);
int main()
{
//freopen("9.in","r",stdin);freopen("out","w",stdout);
Input(n);
Input(m);//n=Input();m=Input();//scanf("%d%d",&n,&m);
for (int i=1; i<=n; i++) {
Bl[i]=i/Block+1;
R[Bl[i]]=i;
if (L[Bl[i]]==0) L[Bl[i]]=i;
}
for (int i=1; i<=n; i++) K[i]=0,B[i]=-INF;
while (m--) {
//if (m%10000==0) cerr<<m<<endl;
int opt;
Input(opt);//scanf("%d",&opt);
if (opt==1) {
ll t,p,k,b;//scanf("%lld%lld%lld%lld",&t,&p,&k,&b);
Input(t);
Input(p);
Input(k);
Input(b);
K[p]=k;
B[p]=b-k*t;
nrb[Bl[p]]=1;
}
if (opt==2) {
int t,l,r;//scanf("%d%d%d",&t,&l,&r);
Input(t);
Input(l);
Input(r);
ll Ans=-INF;
if (l>r) swap(l,r);
if (Bl[l]==Bl[r]) for (int i=l; i<=r; i++) Ans=max(Ans,K[i]*t+B[i]);
else {
for (int i=l; i<=R[Bl[l]]; i++) Ans=max(Ans,K[i]*t+B[i]);
for (int i=L[Bl[r]]; i<=r; i++) Ans=max(Ans,K[i]*t+B[i]);
for (int i=Bl[l]+1; i<Bl[r]; i++) if (nrb[i]) rebuild(i);
for (int i=Bl[l]+1; i<Bl[r]; i++) Ans=max(Ans,Cnx[i].top(t));
}
if (Ans==-INF) Putstr("nema\n");//printf("nema\n");
else Print(Ans),Putc('\n');//printf("%lld\n",Ans);
}
}
Flush();
return 0;
}
ld GetC(ll k1,ll b1,ll k2,ll b2)
{
return (ld)(b1-b2)/(ld)(k2-k1);
}
int Input()
{
char ch=getchar();
int x=0,k=1;
while (!isdigit(ch)&&(ch!='-')) ch=getchar();
if (ch=='-') k=-1,ch=getchar();
while (isdigit(ch)) x=x*10+ch-48,ch=getchar();
return x*k;
}
void rebuild(int id)
{
int scnt=0;
for (int i=L[id]; i<=R[id]; i++) if (B[i]!=-INF) Sorter[++scnt]=mp(K[i],B[i]);
sort(&Sorter[1],&Sorter[scnt+1]);
Cnx[id].clear();
for (int i=1; i<=scnt; i++) Cnx[id].push_back(Sorter[i].ft,Sorter[i].sd);
nrb[id]=0;
return;
}
| mit |
palestar/darkspace | Ports/tutorial/template.lua | 1270 | ----------------------------------------------------------------------------
function onInitialize()
-- Perform any initialization here, this is called right after the script is loaded
end
----------------------------------------------------------------------------
function onRelease()
-- Called before the script is release
end
----------------------------------------------------------------------------
-- The following callbacks are only called when running on the client
function onTeamSelect()
-- Called before the player selects a team
end
function onTeamSelected( team )
-- Called after the player selects a team, the team ID is passed
end
function onShipSelect()
-- Called before the player selects a ship
end
function onShipSelected( shipName )
-- Called after the player selects a ship
end
function onTactical()
-- Called when the player enters the game
end
function onDeath()
-- Called when the players ship is destroyed
end
function onCaptured()
-- Called when the players ship is captured
end
function onDisconnected()
-- Called when connection to the server is lost
end
function onEndGame()
-- Called when the scenerio or mission is completed
end
----------------------------------------------------------------------------
| mit |
shlomiassaf/resty-stone | lib/decoration/sessionDecorator.js | 4016 | var rs = require('../RestyStone'),
RestySession = require("../RestySession"),
EventEmitter = require("events").EventEmitter,
jwt = require('json-web-token');
var originalCookieParserMiddleware;
var originalSessionMiddleware;
var tokenHeaderName;
/**
* Replaces keystone session API with a proxy to handle authentication different the cookie auth.
* @param keystone
*/
function sessionDecorator() {
// save token header to be used in cookieParserDecorator middleware.
tokenHeaderName = rs.keystone.get('resty token header');
rs.keystone.session = RestySession.factory(rs.keystone);
rs.keystone.set('session', rs.keystone.session.persist);
};
/**
* Replace the default cookie parser with a proxy cookie parser middleware.
* The proxy is then used to decide what parser is right for the task.
* If we are not in the api realm, use the default cookie parser.
* In any other case, use the appropriate one.
*
* This approach is used to create fake "cookie" data.
* By faking cookie data we can use default session middleware as is without the need to replace it.
* @param req
* @param res
* @param next
*/
function cookieParserDecorator(req, res, next) {
// run express.cookieParser() only when were not visiting the api.
if (req.isResty) {
// get token from headers.
var token = req.headers[tokenHeaderName] || undefined;
if (token) {
try {
// decode token, it holds and create a fake cookie.
jwt.decode(req.secret, token, function (err, decode) {
if (! err) {
// set the fake cookie, it will now have a keystone session id
req.signedCookies = decode;
}
});
}
catch(ex) {
// when token does not parse to an object.
}
}
var listenersCount = EventEmitter.listenerCount(res, 'header');
originalSessionMiddleware(req, res, function(){
if (EventEmitter.listenerCount(res, 'header') > listenersCount) {
res.removeListener('header', res.listeners('header')[listenersCount]);
}
next();
});
}
else {
// run the original cookie parser.
originalCookieParserMiddleware(req, res, function() {
originalSessionMiddleware(req, res, next);
});
}
}
function keystoneOnMount(){
// Replace cookieParser middleware if cookies are disabled.
// cookies will work but only for non API endpoints.
// Add a middleware after session middleware to remove cookie insertion on "header" event.
// TODO: Change implementation, this is a bad one, tempering with express.app.stack that might change someday.
// Need more customization from KeystoneJS, maybe a pull request?
if (rs.keystone.session.disableCookies === true) {
var sessionOptions = rs.keystone.get('session options');
for(var i=0; i < rs.keystone.app.stack.length; i++){
if (rs.keystone.app.stack[i].handle === sessionOptions.cookieParser) {
// TODO: This is true as long as Keystone doesnt change middleware ordering... (cookieParser then Session)
// This is a temp solution, need to find something stable.
originalCookieParserMiddleware = sessionOptions.cookieParser;
originalSessionMiddleware = rs.keystone.app.stack[i+1].handle
// TODO: on move to express 4.0 put regex here instead of restBaseMiddlewareGenerator...
rs.keystone.app.use("/", cookieParserDecorator);
rs.keystone.app.stack.splice(i, 2, rs.keystone.app.stack.pop()); // remove 2, cookieParser & express.session
}
}
}
}
module.exports = [
{
event: "resty_onStart",
decorator: sessionDecorator
},
{
event: "onMount",
decorator: keystoneOnMount
}
] | mit |
touchhealth/touchgames | touch-games-web/src/main/java/br/com/touchtec/games/web/controller/JogosAction.java | 4884 | /*
* Copyright (c) 1999-2009 Touch Tecnologia e Informatica Ltda.
* Gomes de Carvalho, 1666, 3o. Andar, Vila Olimpia, Sao Paulo, SP, Brasil.
* Todos os direitos reservados.
*
* Este software e confidencial e de propriedade da Touch Tecnologia e
* Informatica Ltda. (Informacao Confidencial). As informacoes contidas neste
* arquivo nao podem ser publicadas, e seu uso esta limitado de acordo com os
* termos do contrato de licenca.
*/
package br.com.touchtec.games.web.controller;
import java.io.File;
import java.io.FileInputStream;
import java.util.List;
import javax.annotation.PostConstruct;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.io.IOUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import br.com.touchtec.games.core.model.Desenvolvedora;
import br.com.touchtec.games.core.model.Imagem;
import br.com.touchtec.games.core.model.Jogo;
import br.com.touchtec.games.core.model.Plataforma;
import br.com.touchtec.games.core.service.DesenvolvedoraService;
import br.com.touchtec.games.core.service.JogoService;
import br.com.touchtec.games.core.service.PlataformaService;
import br.com.touchtec.games.core.service.impl.DesenvolvedoraServiceImpl;
import br.com.touchtec.games.core.service.impl.JogoServiceImpl;
import br.com.touchtec.twf.core.TWFActionSupport;
/**
* @see "struts.xml"
*/
@Component
@Scope("request")
public class JogosAction extends TWFActionSupport {
private static final long serialVersionUID = 1L;
// Lembre-se, JogoService não foi implementado como um bean Spring.
// Logo, não podemos injetá-lo com @Autowired
private JogoService jogoService = new JogoServiceImpl();
private String formTitle;
private Jogo jogo;
private List<File> imagens;
private List<Jogo> jogos;
private DesenvolvedoraServiceImpl desenvolvedoraService = new DesenvolvedoraServiceImpl();
private List<Desenvolvedora> desenvolvedoras;
@Autowired
private PlataformaService plataformaService;
private List<Plataforma> plataformas;
private Long selectedId;
@PostConstruct
public void prepare() {
this.desenvolvedoras = this.desenvolvedoraService.buscarTodos();
this.plataformas = this.plataformaService.buscarTodos();
}
@Override
public String execute() throws Exception {
this.jogos = this.jogoService.buscarTodos();
return "jsp/admin/jogos/list";
}
public String create() throws Exception {
this.formTitle = "Criação";
return "jsp/admin/jogos/form";
}
public String update() throws Exception {
this.jogo = this.jogoService.recuperar(this.selectedId);
this.formTitle = "Edição";
return "jsp/admin/jogos/form";
}
public String view() throws Exception {
this.jogo = this.jogoService.recuperar(this.selectedId);
return "jsp/admin/jogos/view";
}
public String save() throws Exception {
if (CollectionUtils.isNotEmpty(this.imagens)) {
for (File imagem : this.imagens) {
FileInputStream inputStream = new FileInputStream(imagem);
byte[] bytes = IOUtils.toByteArray(inputStream);
this.jogo.getImagens().add(new Imagem(bytes));
}
}
if (this.jogo.getId() != null) {
this.jogoService.editar(this.jogo);
this.addSuccessMessage(this.jogo + " atualizado com sucesso");
} else {
this.jogoService.criar(this.jogo);
this.addSuccessMessage(this.jogo + " criado com sucesso");
}
return this.execute();
}
public String remove() throws Exception {
this.jogo = this.jogoService.recuperar(this.selectedId);
this.jogoService.remover(this.jogo);
this.addSuccessMessage(this.jogo + " removido com sucesso");
return this.execute();
}
public Jogo getJogo() {
return this.jogo;
}
public void setJogo(Jogo jogo) {
this.jogo = jogo;
}
public List<File> getImagens() {
return this.imagens;
}
public void setImagens(List<File> imagens) {
this.imagens = imagens;
}
public List<Jogo> getJogos() {
return this.jogos;
}
public void setJogos(List<Jogo> jogos) {
this.jogos = jogos;
}
public Long getSelectedId() {
return this.selectedId;
}
public void setSelectedId(Long selectedId) {
this.selectedId = selectedId;
}
public String getFormTitle() {
return this.formTitle;
}
public List<Desenvolvedora> getDesenvolvedoras() {
return this.desenvolvedoras;
}
public List<Plataforma> getPlataformas() {
return this.plataformas;
}
}
| mit |
gernberg/bookkeeping | config/initializers/session_store.rb | 140 | # Be sure to restart your server when you modify this file.
Bookie::Application.config.session_store :cookie_store, key: '_bookie_session'
| mit |
NaseUkolyCZ/orleans | src/Orleans/Serialization/BuiltInTypes.cs | 58234 | /*
Project Orleans Cloud Service SDK ver. 1.0
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the ""Software""), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using Orleans.Runtime;
using Orleans.Concurrency;
using Orleans.CodeGeneration;
namespace Orleans.Serialization
{
internal static class BuiltInTypes
{
#region Constants
private static readonly Type objectType = typeof(object);
#endregion
#region Generic collections
#region Lists
internal static void SerializeGenericList(object original, BinaryTokenStreamWriter stream, Type expected)
{
Type t = original.GetType();
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeList", "DeserializeList", "DeepCopyList", generics);
concretes.Item1(original, stream, expected);
}
internal static object DeserializeGenericList(Type expected, BinaryTokenStreamReader stream)
{
var generics = expected.GetGenericArguments();
var concretes = RegisterConcreteMethods(expected, "SerializeList", "DeserializeList", "DeepCopyList", generics);
return concretes.Item2(expected, stream);
}
internal static object CopyGenericList(object original)
{
Type t = original.GetType();
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeList", "DeserializeList", "DeepCopyList", generics);
return concretes.Item3(original);
}
internal static void SerializeList<T>(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var list = (List<T>)obj;
stream.Write(list.Count);
foreach (var element in list)
{
SerializationManager.SerializeInner(element, stream, typeof(T));
}
}
internal static object DeserializeList<T>(Type expected, BinaryTokenStreamReader stream)
{
var count = stream.ReadInt();
var list = new List<T>(count);
for (var i = 0; i < count; i++)
{
list.Add((T)SerializationManager.DeserializeInner(typeof(T), stream));
}
return list;
}
internal static object DeepCopyList<T>(object original)
{
var list = (List<T>)original;
if (typeof(T).IsOrleansShallowCopyable())
{
return new List<T>(list);
}
// set the list capacity, to avoid list resizing.
var retVal = new List<T>(list.Count);
SerializationContext.Current.RecordObject(original, retVal);
retVal.AddRange(list.Select(element => (T)SerializationManager.DeepCopyInner(element)));
return retVal;
}
#endregion
#region LinkedLists
internal static void SerializeGenericLinkedList(object original, BinaryTokenStreamWriter stream, Type expected)
{
Type t = original.GetType();
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeLinkedList", "DeserializeLinkedList", "DeepCopyLinkedList", generics);
concretes.Item1(original, stream, expected);
}
internal static object DeserializeGenericLinkedList(Type expected, BinaryTokenStreamReader stream)
{
var generics = expected.GetGenericArguments();
var concretes = RegisterConcreteMethods(expected, "SerializeLinkedList", "DeserializeLinkedList", "DeepCopyLinkedList", generics);
return concretes.Item2(expected, stream);
}
internal static object CopyGenericLinkedList(object original)
{
Type t = original.GetType();
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeLinkedList", "DeserializeLinkedList", "DeepCopyLinkedList", generics);
return concretes.Item3(original);
}
internal static void SerializeLinkedList<T>(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var list = (LinkedList<T>)obj;
stream.Write(list.Count);
foreach (var element in list)
{
SerializationManager.SerializeInner(element, stream, typeof(T));
}
}
internal static object DeserializeLinkedList<T>(Type expected, BinaryTokenStreamReader stream)
{
var count = stream.ReadInt();
var list = new LinkedList<T>();
for (var i = 0; i < count; i++)
{
list.AddLast((T)SerializationManager.DeserializeInner(typeof(T), stream));
}
return list;
}
internal static object DeepCopyLinkedList<T>(object original)
{
var list = (LinkedList<T>)original;
if (typeof(T).IsOrleansShallowCopyable())
{
return new LinkedList<T>(list);
}
var retVal = new LinkedList<T>();
SerializationContext.Current.RecordObject(original, retVal);
foreach (var item in list)
{
retVal.AddLast((T)SerializationManager.DeepCopyInner(item));
}
return retVal;
}
#endregion
#region HashSets
internal static void SerializeGenericHashSet(object original, BinaryTokenStreamWriter stream, Type expected)
{
Type t = original.GetType();
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeHashSet", "DeserializeHashSet", "DeepCopyHashSet", generics);
concretes.Item1(original, stream, expected);
}
internal static object DeserializeGenericHashSet(Type expected, BinaryTokenStreamReader stream)
{
var generics = expected.GetGenericArguments();
var concretes = RegisterConcreteMethods(expected, "SerializeHashSet", "DeserializeHashSet", "DeepCopyHashSet", generics);
return concretes.Item2(expected, stream);
}
internal static object CopyGenericHashSet(object original)
{
Type t = original.GetType();
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeHashSet", "DeserializeHashSet", "DeepCopyHashSet", generics);
return concretes.Item3(original);
}
internal static void SerializeHashSet<T>(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var set = (HashSet<T>)obj;
SerializationManager.SerializeInner(set.Comparer.Equals(EqualityComparer<T>.Default) ? null : set.Comparer,
stream, typeof(IEqualityComparer<T>));
stream.Write(set.Count);
foreach (var element in set)
{
SerializationManager.SerializeInner(element, stream, typeof(T));
}
}
internal static object DeserializeHashSet<T>(Type expected, BinaryTokenStreamReader stream)
{
var comparer =
(IEqualityComparer<T>)SerializationManager.DeserializeInner(typeof(IEqualityComparer<T>), stream);
var count = stream.ReadInt();
var set = new HashSet<T>(comparer);
for (var i = 0; i < count; i++)
{
set.Add((T)SerializationManager.DeserializeInner(typeof(T), stream));
}
return set;
}
internal static object DeepCopyHashSet<T>(object original)
{
var set = (HashSet<T>)original;
if (typeof(T).IsOrleansShallowCopyable())
{
return new HashSet<T>(set, set.Comparer);
}
var retVal = new HashSet<T>(set.Comparer);
SerializationContext.Current.RecordObject(original, retVal);
foreach (var item in set)
{
retVal.Add((T)SerializationManager.DeepCopyInner(item));
}
return retVal;
}
#endregion
#region Queues
internal static void SerializeGenericQueue(object original, BinaryTokenStreamWriter stream, Type expected)
{
Type t = original.GetType();
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeQueue", "DeserializeQueue", "DeepCopyQueue", generics);
concretes.Item1(original, stream, expected);
}
internal static object DeserializeGenericQueue(Type expected, BinaryTokenStreamReader stream)
{
var generics = expected.GetGenericArguments();
var concretes = RegisterConcreteMethods(expected, "SerializeQueue", "DeserializeQueue", "DeepCopyQueue", generics);
return concretes.Item2(expected, stream);
}
internal static object CopyGenericQueue(object original)
{
Type t = original.GetType();
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeQueue", "DeserializeQueue", "DeepCopyQueue", generics);
return concretes.Item3(original);
}
internal static void SerializeQueue<T>(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var queue = (Queue<T>)obj;
stream.Write(queue.Count);
foreach (var element in queue)
{
SerializationManager.SerializeInner(element, stream, typeof(T));
}
}
internal static object DeserializeQueue<T>(Type expected, BinaryTokenStreamReader stream)
{
var count = stream.ReadInt();
var queue = new Queue<T>();
for (var i = 0; i < count; i++)
{
queue.Enqueue((T)SerializationManager.DeserializeInner(typeof(T), stream));
}
return queue;
}
internal static object DeepCopyQueue<T>(object original)
{
var queue = (Queue<T>)original;
if (typeof(T).IsOrleansShallowCopyable())
{
return new Queue<T>(queue);
}
var retVal = new Queue<T>(queue.Count);
SerializationContext.Current.RecordObject(original, retVal);
foreach (var item in queue)
{
retVal.Enqueue((T)SerializationManager.DeepCopyInner(item));
}
return retVal;
}
#endregion
#region Stacks
internal static void SerializeGenericStack(object original, BinaryTokenStreamWriter stream, Type expected)
{
Type t = original.GetType();
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeStack", "DeserializeStack", "DeepCopyStack", generics);
concretes.Item1(original, stream, expected);
}
internal static object DeserializeGenericStack(Type expected, BinaryTokenStreamReader stream)
{
var generics = expected.GetGenericArguments();
var concretes = RegisterConcreteMethods(expected, "SerializeStack", "DeserializeStack", "DeepCopyStack", generics);
return concretes.Item2(expected, stream);
}
internal static object CopyGenericStack(object original)
{
Type t = original.GetType();
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeStack", "DeserializeStack", "DeepCopyStack", generics);
return concretes.Item3(original);
}
internal static void SerializeStack<T>(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var stack = (Stack<T>)obj;
stream.Write(stack.Count);
foreach (var element in stack)
{
SerializationManager.SerializeInner(element, stream, typeof(T));
}
}
internal static object DeserializeStack<T>(Type expected, BinaryTokenStreamReader stream)
{
var count = stream.ReadInt();
var list = new List<T>(count);
for (var i = 0; i < count; i++)
{
list.Add((T)SerializationManager.DeserializeInner(typeof(T), stream));
}
list.Reverse(); // NOTE: this is required to get things on the stack in the original order
var stack = new Stack<T>(list);
return stack;
}
internal static object DeepCopyStack<T>(object original)
{
var stack = (Stack<T>)original;
if (typeof(T).IsOrleansShallowCopyable())
{
return new Stack<T>(stack.Reverse()); // NOTE: Yes, the Reverse really is required
}
var retVal = new Stack<T>();
SerializationContext.Current.RecordObject(original, retVal);
foreach (var item in stack.Reverse())
{
retVal.Push((T)SerializationManager.DeepCopyInner(item));
}
return retVal;
}
#endregion
#region Dictionaries
internal static void SerializeGenericDictionary(object original, BinaryTokenStreamWriter stream, Type expected)
{
Type t = original.GetType();
var concreteMethods = RegisterConcreteMethods(t, "SerializeDictionary", "DeserializeDictionary", "CopyDictionary");
concreteMethods.Item1(original, stream, expected);
}
internal static object DeserializeGenericDictionary(Type expected, BinaryTokenStreamReader stream)
{
var concreteMethods = RegisterConcreteMethods(expected, "SerializeDictionary", "DeserializeDictionary", "CopyDictionary");
return concreteMethods.Item2(expected, stream);
}
internal static object CopyGenericDictionary(object original)
{
Type t = original.GetType();
var concreteMethods = RegisterConcreteMethods(t, "SerializeDictionary", "DeserializeDictionary", "CopyDictionary");
return concreteMethods.Item3(original);
}
internal static void SerializeDictionary<K, V>(object original, BinaryTokenStreamWriter stream, Type expected)
{
var dict = (Dictionary<K, V>)original;
SerializationManager.SerializeInner(dict.Comparer.Equals(EqualityComparer<K>.Default) ? null : dict.Comparer,
stream, typeof (IEqualityComparer<K>));
stream.Write(dict.Count);
foreach (var pair in dict)
{
SerializationManager.SerializeInner(pair.Key, stream, typeof(K));
SerializationManager.SerializeInner(pair.Value, stream, typeof(V));
}
}
internal static object DeserializeDictionary<K, V>(Type expected, BinaryTokenStreamReader stream)
{
var comparer = (IEqualityComparer<K>)SerializationManager.DeserializeInner(typeof(IEqualityComparer<K>), stream);
var count = stream.ReadInt();
var dict = new Dictionary<K, V>(count, comparer);
for (var i = 0; i < count; i++)
{
var key = (K)SerializationManager.DeserializeInner(typeof(K), stream);
var value = (V)SerializationManager.DeserializeInner(typeof(V), stream);
dict[key] = value;
}
return dict;
}
internal static object CopyDictionary<K, V>(object original)
{
var dict = (Dictionary<K, V>)original;
if (typeof(K).IsOrleansShallowCopyable() && typeof(V).IsOrleansShallowCopyable())
{
return new Dictionary<K, V>(dict, dict.Comparer);
}
var result = new Dictionary<K, V>(dict.Count, dict.Comparer);
SerializationContext.Current.RecordObject(original, result);
foreach (var pair in dict)
{
result[(K)SerializationManager.DeepCopyInner(pair.Key)] = (V)SerializationManager.DeepCopyInner(pair.Value);
}
return result;
}
internal static void SerializeStringObjectDictionary(object original, BinaryTokenStreamWriter stream, Type expected)
{
var dict = (Dictionary<string, object>)original;
SerializationManager.SerializeInner(dict.Comparer.Equals(EqualityComparer<string>.Default) ? null : dict.Comparer,
stream, typeof(IEqualityComparer<string>));
stream.Write(dict.Count);
foreach (var pair in dict)
{
//stream.WriteTypeHeader(stringType, stringType);
stream.Write(pair.Key);
SerializationManager.SerializeInner(pair.Value, stream, objectType);
}
}
internal static object DeserializeStringObjectDictionary(Type expected, BinaryTokenStreamReader stream)
{
var comparer = (IEqualityComparer<string>)SerializationManager.DeserializeInner(typeof(IEqualityComparer<string>), stream);
var count = stream.ReadInt();
var dict = new Dictionary<string, object>(count, comparer);
for (var i = 0; i < count; i++)
{
//stream.ReadFullTypeHeader(stringType); // Skip the type header, which will be string
var key = stream.ReadString();
var value = SerializationManager.DeserializeInner(null, stream);
dict[key] = value;
}
return dict;
}
internal static object CopyStringObjectDictionary(object original)
{
var dict = (Dictionary<string, object>)original;
var result = new Dictionary<string, object>(dict.Count, dict.Comparer);
SerializationContext.Current.RecordObject(original, result);
foreach (var pair in dict)
{
result[pair.Key] = SerializationManager.DeepCopyInner(pair.Value);
}
return result;
}
#endregion
#region SortedDictionaries
internal static void SerializeGenericSortedDictionary(object original, BinaryTokenStreamWriter stream, Type expected)
{
Type t = original.GetType();
var concreteMethods = RegisterConcreteMethods(t, "SerializeSortedDictionary", "DeserializeSortedDictionary", "CopySortedDictionary");
concreteMethods.Item1(original, stream, expected);
}
internal static object DeserializeGenericSortedDictionary(Type expected, BinaryTokenStreamReader stream)
{
var concreteMethods = RegisterConcreteMethods(expected, "SerializeSortedDictionary", "DeserializeSortedDictionary", "CopySortedDictionary");
return concreteMethods.Item2(expected, stream);
}
internal static object CopyGenericSortedDictionary(object original)
{
Type t = original.GetType();
var concreteMethods = RegisterConcreteMethods(t, "SerializeSortedDictionary", "DeserializeSortedDictionary", "CopySortedDictionary");
return concreteMethods.Item3(original);
}
internal static void SerializeSortedDictionary<K, V>(object original, BinaryTokenStreamWriter stream, Type expected)
{
var dict = (SortedDictionary<K, V>)original;
SerializationManager.SerializeInner(dict.Comparer.Equals(Comparer<K>.Default) ? null : dict.Comparer, stream, typeof(IComparer<K>));
stream.Write(dict.Count);
foreach (var pair in dict)
{
SerializationManager.SerializeInner(pair.Key, stream, typeof(K));
SerializationManager.SerializeInner(pair.Value, stream, typeof(V));
}
}
internal static object DeserializeSortedDictionary<K, V>(Type expected, BinaryTokenStreamReader stream)
{
var comparer = (IComparer<K>)SerializationManager.DeserializeInner(typeof(IComparer<K>), stream);
var count = stream.ReadInt();
var dict = new SortedDictionary<K, V>(comparer);
for (var i = 0; i < count; i++)
{
var key = (K)SerializationManager.DeserializeInner(typeof(K), stream);
var value = (V)SerializationManager.DeserializeInner(typeof(V), stream);
dict[key] = value;
}
return dict;
}
internal static object CopySortedDictionary<K, V>(object original)
{
var dict = (SortedDictionary<K, V>)original;
if (typeof(K).IsOrleansShallowCopyable() && typeof(V).IsOrleansShallowCopyable())
{
return new SortedDictionary<K, V>(dict, dict.Comparer);
}
var result = new SortedDictionary<K, V>(dict.Comparer);
SerializationContext.Current.RecordObject(original, result);
foreach (var pair in dict)
{
result[(K)SerializationManager.DeepCopyInner(pair.Key)] = (V)SerializationManager.DeepCopyInner(pair.Value);
}
return result;
}
#endregion
#region SortedLists
internal static void SerializeGenericSortedList(object original, BinaryTokenStreamWriter stream, Type expected)
{
Type t = original.GetType();
var concreteMethods = RegisterConcreteMethods(t, "SerializeSortedList", "DeserializeSortedList", "CopySortedList");
concreteMethods.Item1(original, stream, expected);
}
internal static object DeserializeGenericSortedList(Type expected, BinaryTokenStreamReader stream)
{
var concreteMethods = RegisterConcreteMethods(expected, "SerializeSortedList", "DeserializeSortedList", "CopySortedList");
return concreteMethods.Item2(expected, stream);
}
internal static object CopyGenericSortedList(object original)
{
Type t = original.GetType();
var concreteMethods = RegisterConcreteMethods(t, "SerializeSortedList", "DeserializeSortedList", "CopySortedList");
return concreteMethods.Item3(original);
}
internal static void SerializeSortedList<K, V>(object original, BinaryTokenStreamWriter stream, Type expected)
{
var list = (SortedList<K, V>)original;
SerializationManager.SerializeInner(list.Comparer.Equals(Comparer<K>.Default) ? null : list.Comparer, stream, typeof(IComparer<K>));
stream.Write(list.Count);
foreach (var pair in list)
{
SerializationManager.SerializeInner(pair.Key, stream, typeof(K));
SerializationManager.SerializeInner(pair.Value, stream, typeof(V));
}
}
internal static object DeserializeSortedList<K, V>(Type expected, BinaryTokenStreamReader stream)
{
var comparer = (IComparer<K>)SerializationManager.DeserializeInner(typeof(IComparer<K>), stream);
var count = stream.ReadInt();
var list = new SortedList<K, V>(count, comparer);
for (var i = 0; i < count; i++)
{
var key = (K)SerializationManager.DeserializeInner(typeof(K), stream);
var value = (V)SerializationManager.DeserializeInner(typeof(V), stream);
list[key] = value;
}
return list;
}
internal static object CopySortedList<K, V>(object original)
{
var list = (SortedList<K, V>)original;
if (typeof(K).IsOrleansShallowCopyable() && typeof(V).IsOrleansShallowCopyable())
{
return new SortedList<K, V>(list, list.Comparer);
}
var result = new SortedList<K, V>(list.Count, list.Comparer);
SerializationContext.Current.RecordObject(original, result);
foreach (var pair in list)
{
result[(K)SerializationManager.DeepCopyInner(pair.Key)] = (V)SerializationManager.DeepCopyInner(pair.Value);
}
return result;
}
#endregion
#endregion
#region Other generics
#region Tuples
internal static void SerializeTuple(object raw, BinaryTokenStreamWriter stream, Type expected)
{
Type t = raw.GetType();
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeTuple" + generics.Length, "DeserializeTuple" + generics.Length, "DeepCopyTuple" + generics.Length, generics);
concretes.Item1(raw, stream, expected);
}
internal static object DeserializeTuple(Type t, BinaryTokenStreamReader stream)
{
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeTuple" + generics.Length, "DeserializeTuple" + generics.Length, "DeepCopyTuple" + generics.Length, generics);
return concretes.Item2(t, stream);
}
internal static object DeepCopyTuple(object original)
{
Type t = original.GetType();
var generics = t.GetGenericArguments();
var concretes = RegisterConcreteMethods(t, "SerializeTuple" + generics.Length, "DeserializeTuple" + generics.Length, "DeepCopyTuple" + generics.Length, generics);
return concretes.Item3(original);
}
internal static object DeepCopyTuple1<T1>(object original)
{
var input = (Tuple<T1>)original;
var result = new Tuple<T1>((T1)SerializationManager.DeepCopyInner(input.Item1));
SerializationContext.Current.RecordObject(original, result);
return result;
}
internal static void SerializeTuple1<T1>(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var input = (Tuple<T1>)obj;
SerializationManager.SerializeInner(input.Item1, stream, typeof(T1));
}
internal static object DeserializeTuple1<T1>(Type expected, BinaryTokenStreamReader stream)
{
var item1 = (T1)SerializationManager.DeserializeInner(typeof(T1), stream);
return new Tuple<T1>(item1);
}
internal static object DeepCopyTuple2<T1, T2>(object original)
{
var input = (Tuple<T1, T2>)original;
var result = new Tuple<T1, T2>((T1)SerializationManager.DeepCopyInner(input.Item1), (T2)SerializationManager.DeepCopyInner(input.Item2));
SerializationContext.Current.RecordObject(original, result);
return result;
}
internal static void SerializeTuple2<T1, T2>(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var input = (Tuple<T1, T2>)obj;
SerializationManager.SerializeInner(input.Item1, stream, typeof(T1));
SerializationManager.SerializeInner(input.Item2, stream, typeof(T2));
}
internal static object DeserializeTuple2<T1, T2>(Type expected, BinaryTokenStreamReader stream)
{
var item1 = (T1)SerializationManager.DeserializeInner(typeof(T1), stream);
var item2 = (T2)SerializationManager.DeserializeInner(typeof(T2), stream);
return new Tuple<T1, T2>(item1, item2);
}
internal static object DeepCopyTuple3<T1, T2, T3>(object original)
{
var input = (Tuple<T1, T2, T3>)original;
var result = new Tuple<T1, T2, T3>((T1)SerializationManager.DeepCopyInner(input.Item1), (T2)SerializationManager.DeepCopyInner(input.Item2),
(T3)SerializationManager.DeepCopyInner(input.Item3));
SerializationContext.Current.RecordObject(original, result);
return result;
}
internal static void SerializeTuple3<T1, T2, T3>(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var input = (Tuple<T1, T2, T3>)obj;
SerializationManager.SerializeInner(input.Item1, stream, typeof(T1));
SerializationManager.SerializeInner(input.Item2, stream, typeof(T2));
SerializationManager.SerializeInner(input.Item3, stream, typeof(T3));
}
internal static object DeserializeTuple3<T1, T2, T3>(Type expected, BinaryTokenStreamReader stream)
{
var item1 = (T1)SerializationManager.DeserializeInner(typeof(T1), stream);
var item2 = (T2)SerializationManager.DeserializeInner(typeof(T2), stream);
var item3 = (T3)SerializationManager.DeserializeInner(typeof(T3), stream);
return new Tuple<T1, T2, T3>(item1, item2, item3);
}
internal static object DeepCopyTuple4<T1, T2, T3, T4>(object original)
{
var input = (Tuple<T1, T2, T3, T4>)original;
var result = new Tuple<T1, T2, T3, T4>((T1)SerializationManager.DeepCopyInner(input.Item1), (T2)SerializationManager.DeepCopyInner(input.Item2),
(T3)SerializationManager.DeepCopyInner(input.Item3),
(T4)SerializationManager.DeepCopyInner(input.Item4));
SerializationContext.Current.RecordObject(original, result);
return result;
}
internal static void SerializeTuple4<T1, T2, T3, T4>(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var input = (Tuple<T1, T2, T3, T4>)obj;
SerializationManager.SerializeInner(input.Item1, stream, typeof(T1));
SerializationManager.SerializeInner(input.Item2, stream, typeof(T2));
SerializationManager.SerializeInner(input.Item3, stream, typeof(T3));
SerializationManager.SerializeInner(input.Item4, stream, typeof(T4));
}
internal static object DeserializeTuple4<T1, T2, T3, T4>(Type expected, BinaryTokenStreamReader stream)
{
var item1 = (T1)SerializationManager.DeserializeInner(typeof(T1), stream);
var item2 = (T2)SerializationManager.DeserializeInner(typeof(T2), stream);
var item3 = (T3)SerializationManager.DeserializeInner(typeof(T3), stream);
var item4 = (T4)SerializationManager.DeserializeInner(typeof(T4), stream);
return new Tuple<T1, T2, T3, T4>(item1, item2, item3, item4);
}
internal static object DeepCopyTuple5<T1, T2, T3, T4, T5>(object original)
{
var input = (Tuple<T1, T2, T3, T4, T5>)original;
var result = new Tuple<T1, T2, T3, T4, T5>((T1)SerializationManager.DeepCopyInner(input.Item1), (T2)SerializationManager.DeepCopyInner(input.Item2),
(T3)SerializationManager.DeepCopyInner(input.Item3),
(T4)SerializationManager.DeepCopyInner(input.Item4),
(T5)SerializationManager.DeepCopyInner(input.Item5));
SerializationContext.Current.RecordObject(original, result);
return result;
}
internal static void SerializeTuple5<T1, T2, T3, T4, T5>(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var input = (Tuple<T1, T2, T3, T4, T5>)obj;
SerializationManager.SerializeInner(input.Item1, stream, typeof(T1));
SerializationManager.SerializeInner(input.Item2, stream, typeof(T2));
SerializationManager.SerializeInner(input.Item3, stream, typeof(T3));
SerializationManager.SerializeInner(input.Item4, stream, typeof(T4));
SerializationManager.SerializeInner(input.Item5, stream, typeof(T5));
}
internal static object DeserializeTuple5<T1, T2, T3, T4, T5>(Type expected, BinaryTokenStreamReader stream)
{
var item1 = (T1)SerializationManager.DeserializeInner(typeof(T1), stream);
var item2 = (T2)SerializationManager.DeserializeInner(typeof(T2), stream);
var item3 = (T3)SerializationManager.DeserializeInner(typeof(T3), stream);
var item4 = (T4)SerializationManager.DeserializeInner(typeof(T4), stream);
var item5 = (T5)SerializationManager.DeserializeInner(typeof(T5), stream);
return new Tuple<T1, T2, T3, T4, T5>(item1, item2, item3, item4, item5);
}
internal static object DeepCopyTuple6<T1, T2, T3, T4, T5, T6>(object original)
{
var input = (Tuple<T1, T2, T3, T4, T5, T6>)original;
var result = new Tuple<T1, T2, T3, T4, T5, T6>((T1)SerializationManager.DeepCopyInner(input.Item1), (T2)SerializationManager.DeepCopyInner(input.Item2),
(T3)SerializationManager.DeepCopyInner(input.Item3),
(T4)SerializationManager.DeepCopyInner(input.Item4),
(T5)SerializationManager.DeepCopyInner(input.Item5),
(T6)SerializationManager.DeepCopyInner(input.Item6));
SerializationContext.Current.RecordObject(original, result);
return result;
}
internal static void SerializeTuple6<T1, T2, T3, T4, T5, T6>(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var input = (Tuple<T1, T2, T3, T4, T5, T6>)obj;
SerializationManager.SerializeInner(input.Item1, stream, typeof(T1));
SerializationManager.SerializeInner(input.Item2, stream, typeof(T2));
SerializationManager.SerializeInner(input.Item3, stream, typeof(T3));
SerializationManager.SerializeInner(input.Item4, stream, typeof(T4));
SerializationManager.SerializeInner(input.Item5, stream, typeof(T5));
SerializationManager.SerializeInner(input.Item6, stream, typeof(T6));
}
internal static object DeserializeTuple6<T1, T2, T3, T4, T5, T6>(Type expected, BinaryTokenStreamReader stream)
{
var item1 = (T1)SerializationManager.DeserializeInner(typeof(T1), stream);
var item2 = (T2)SerializationManager.DeserializeInner(typeof(T2), stream);
var item3 = (T3)SerializationManager.DeserializeInner(typeof(T3), stream);
var item4 = (T4)SerializationManager.DeserializeInner(typeof(T4), stream);
var item5 = (T5)SerializationManager.DeserializeInner(typeof(T5), stream);
var item6 = (T6)SerializationManager.DeserializeInner(typeof(T6), stream);
return new Tuple<T1, T2, T3, T4, T5, T6>(item1, item2, item3, item4, item5, item6);
}
internal static object DeepCopyTuple7<T1, T2, T3, T4, T5, T6, T7>(object original)
{
var input = (Tuple<T1, T2, T3, T4, T5, T6, T7>)original;
var result = new Tuple<T1, T2, T3, T4, T5, T6, T7>((T1)SerializationManager.DeepCopyInner(input.Item1), (T2)SerializationManager.DeepCopyInner(input.Item2),
(T3)SerializationManager.DeepCopyInner(input.Item3),
(T4)SerializationManager.DeepCopyInner(input.Item4),
(T5)SerializationManager.DeepCopyInner(input.Item5),
(T6)SerializationManager.DeepCopyInner(input.Item6),
(T7)SerializationManager.DeepCopyInner(input.Item7));
SerializationContext.Current.RecordObject(original, result);
return result;
}
internal static void SerializeTuple7<T1, T2, T3, T4, T5, T6, T7>(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var input = (Tuple<T1, T2, T3, T4, T5, T6, T7>)obj;
SerializationManager.SerializeInner(input.Item1, stream, typeof(T1));
SerializationManager.SerializeInner(input.Item2, stream, typeof(T2));
SerializationManager.SerializeInner(input.Item3, stream, typeof(T3));
SerializationManager.SerializeInner(input.Item4, stream, typeof(T4));
SerializationManager.SerializeInner(input.Item5, stream, typeof(T5));
SerializationManager.SerializeInner(input.Item6, stream, typeof(T6));
SerializationManager.SerializeInner(input.Item7, stream, typeof(T7));
}
internal static object DeserializeTuple7<T1, T2, T3, T4, T5, T6, T7>(Type expected, BinaryTokenStreamReader stream)
{
var item1 = (T1)SerializationManager.DeserializeInner(typeof(T1), stream);
var item2 = (T2)SerializationManager.DeserializeInner(typeof(T2), stream);
var item3 = (T3)SerializationManager.DeserializeInner(typeof(T3), stream);
var item4 = (T4)SerializationManager.DeserializeInner(typeof(T4), stream);
var item5 = (T5)SerializationManager.DeserializeInner(typeof(T5), stream);
var item6 = (T6)SerializationManager.DeserializeInner(typeof(T6), stream);
var item7 = (T7)SerializationManager.DeserializeInner(typeof(T7), stream);
return new Tuple<T1, T2, T3, T4, T5, T6, T7>(item1, item2, item3, item4, item5, item6, item7);
}
#endregion
#region KeyValuePairs
internal static void SerializeGenericKeyValuePair(object original, BinaryTokenStreamWriter stream, Type expected)
{
Type t = original.GetType();
var concreteMethods = RegisterConcreteMethods(t, "SerializeKeyValuePair", "DeserializeKeyValuePair", "CopyKeyValuePair");
concreteMethods.Item1(original, stream, expected);
}
internal static object DeserializeGenericKeyValuePair(Type expected, BinaryTokenStreamReader stream)
{
var concreteMethods = RegisterConcreteMethods(expected, "SerializeKeyValuePair", "DeserializeKeyValuePair", "CopyKeyValuePair");
return concreteMethods.Item2(expected, stream);
}
internal static object CopyGenericKeyValuePair(object original)
{
Type t = original.GetType();
var concreteMethods = RegisterConcreteMethods(t, "SerializeKeyValuePair", "DeserializeKeyValuePair", "CopyKeyValuePair");
return concreteMethods.Item3(original);
}
internal static void SerializeKeyValuePair<TK, TV>(object original, BinaryTokenStreamWriter stream, Type expected)
{
var pair = (KeyValuePair<TK, TV>)original;
SerializationManager.SerializeInner(pair.Key, stream, typeof(TK));
SerializationManager.SerializeInner(pair.Value, stream, typeof(TV));
}
internal static object DeserializeKeyValuePair<K, V>(Type expected, BinaryTokenStreamReader stream)
{
var key = (K)SerializationManager.DeserializeInner(typeof(K), stream);
var value = (V)SerializationManager.DeserializeInner(typeof(V), stream);
return new KeyValuePair<K, V>(key, value);
}
internal static object CopyKeyValuePair<TK, TV>(object original)
{
var pair = (KeyValuePair<TK, TV>)original;
if (typeof(TK).IsOrleansShallowCopyable() && typeof(TV).IsOrleansShallowCopyable())
{
return pair; // KeyValuePair is a struct, so there's already been a copy at this point
}
var result = new KeyValuePair<TK, TV>((TK)SerializationManager.DeepCopyInner(pair.Key), (TV)SerializationManager.DeepCopyInner(pair.Value));
SerializationContext.Current.RecordObject(original, result);
return result;
}
#endregion
#region Nullables
internal static void SerializeGenericNullable(object original, BinaryTokenStreamWriter stream, Type expected)
{
Type t = original.GetType();
var concreteMethods = RegisterConcreteMethods(t, "SerializeNullable", "DeserializeNullable", "CopyNullable");
concreteMethods.Item1(original, stream, expected);
}
internal static object DeserializeGenericNullable(Type expected, BinaryTokenStreamReader stream)
{
var concreteMethods = RegisterConcreteMethods(expected, "SerializeNullable", "DeserializeNullable", "CopyNullable");
return concreteMethods.Item2(expected, stream);
}
internal static object CopyGenericNullable(object original)
{
Type t = original.GetType();
var concreteMethods = RegisterConcreteMethods(t, "SerializeNullable", "DeserializeNullable", "CopyNullable");
return concreteMethods.Item3(original);
}
internal static void SerializeNullable<T>(object original, BinaryTokenStreamWriter stream, Type expected) where T : struct
{
var obj = (T?)original;
if (obj.HasValue)
{
SerializationManager.SerializeInner(obj.Value, stream, typeof(T));
}
else
{
stream.WriteNull();
}
}
internal static object DeserializeNullable<T>(Type expected, BinaryTokenStreamReader stream) where T : struct
{
if (stream.PeekToken() == SerializationTokenType.Null)
{
stream.ReadToken();
return new T?();
}
var val = (T) SerializationManager.DeserializeInner(typeof (T), stream);
return new Nullable<T>(val);
}
internal static object CopyNullable<T>(object original) where T : struct
{
return original; // Everything is a struct, so a direct copy is fine
}
#endregion
#region Immutables
internal static void SerializeGenericImmutable(object original, BinaryTokenStreamWriter stream, Type expected)
{
Type t = original.GetType();
var concreteMethods = RegisterConcreteMethods(t, "SerializeImmutable", "DeserializeImmutable", "CopyImmutable");
concreteMethods.Item1(original, stream, expected);
}
internal static object DeserializeGenericImmutable(Type expected, BinaryTokenStreamReader stream)
{
var concreteMethods = RegisterConcreteMethods(expected, "SerializeImmutable", "DeserializeImmutable", "CopyImmutable");
return concreteMethods.Item2(expected, stream);
}
internal static object CopyGenericImmutable(object original)
{
Type t = original.GetType();
var concreteMethods = RegisterConcreteMethods(t, "SerializeImmutable", "DeserializeImmutable", "CopyImmutable");
return concreteMethods.Item3(original);
}
internal static void SerializeImmutable<T>(object original, BinaryTokenStreamWriter stream, Type expected)
{
var obj = (Immutable<T>) original;
SerializationManager.SerializeInner(obj.Value, stream, typeof(T));
}
internal static object DeserializeImmutable<T>(Type expected, BinaryTokenStreamReader stream)
{
var val = (T)SerializationManager.DeserializeInner(typeof(T), stream);
return new Immutable<T>(val);
}
internal static object CopyImmutable<T>(object original)
{
return original; // Immutable means never having to make a copy...
}
#endregion
#endregion
#region Other System types
#region TimeSpan
internal static void SerializeTimeSpan(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var ts = (TimeSpan)obj;
stream.Write(ts.Ticks);
}
internal static object DeserializeTimeSpan(Type expected, BinaryTokenStreamReader stream)
{
return new TimeSpan(stream.ReadLong());
}
internal static object CopyTimeSpan(object obj)
{
return obj; // TimeSpan is a value type
}
#endregion
#region DateTimeOffset
internal static void SerializeDateTimeOffset(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var dts = (DateTimeOffset)obj;
stream.Write(dts.DateTime.Ticks);
stream.Write(dts.Offset.Ticks);
}
internal static object DeserializeDateTimeOffset(Type expected, BinaryTokenStreamReader stream)
{
return new DateTimeOffset(stream.ReadLong(), new TimeSpan(stream.ReadLong()));
}
internal static object CopyDateTimeOffset(object obj)
{
return obj; // DateTimeOffset is a value type
}
#endregion
#region Type
internal static void SerializeType(object obj, BinaryTokenStreamWriter stream, Type expected)
{
stream.Write(((Type)obj).OrleansTypeName());
}
internal static object DeserializeType(Type expected, BinaryTokenStreamReader stream)
{
return SerializationManager.ResolveTypeName(stream.ReadString());
}
internal static object CopyType(object obj)
{
return obj; // Type objects are effectively immutable
}
#endregion Type
#region GUID
internal static void SerializeGuid(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var guid = (Guid) obj;
stream.Write(guid.ToByteArray());
}
internal static object DeserializeGuid(Type expected, BinaryTokenStreamReader stream)
{
var bytes = stream.ReadBytes(16);
return new Guid(bytes);
}
internal static object CopyGuid(object obj)
{
return obj; // Guids are value types
}
#endregion
#region URIs
[ThreadStatic]
static private UriTypeConverter uriConverter;
internal static void SerializeUri(object obj, BinaryTokenStreamWriter stream, Type expected)
{
if (uriConverter == null) uriConverter = new UriTypeConverter();
stream.Write(uriConverter.ConvertToInvariantString(obj));
}
internal static object DeserializeUri(Type expected, BinaryTokenStreamReader stream)
{
if (uriConverter == null) uriConverter = new UriTypeConverter();
return uriConverter.ConvertFromInvariantString(stream.ReadString());
}
internal static object CopyUri(object obj)
{
return obj; // URIs are immutable
}
#endregion
#endregion
#region Internal Orleans types
#region Basic types
internal static void SerializeGrainId(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var id = (GrainId) obj;
stream.Write(id);
}
internal static object DeserializeGrainId(Type expected, BinaryTokenStreamReader stream)
{
return stream.ReadGrainId();
}
internal static object CopyGrainId(object original)
{
return original;
}
internal static void SerializeActivationId(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var id = (ActivationId)obj;
stream.Write(id);
}
internal static object DeserializeActivationId(Type expected, BinaryTokenStreamReader stream)
{
return stream.ReadActivationId();
}
internal static object CopyActivationId(object original)
{
return original;
}
internal static void SerializeActivationAddress(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var addr = (ActivationAddress)obj;
stream.Write(addr);
}
internal static object DeserializeActivationAddress(Type expected, BinaryTokenStreamReader stream)
{
return stream.ReadActivationAddress();
}
internal static object CopyActivationAddress(object original)
{
return original;
}
internal static void SerializeIPAddress(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var ip = (IPAddress)obj;
stream.Write(ip);
}
internal static object DeserializeIPAddress(Type expected, BinaryTokenStreamReader stream)
{
return stream.ReadIPAddress();
}
internal static object CopyIPAddress(object original)
{
return original;
}
internal static void SerializeIPEndPoint(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var ep = (IPEndPoint)obj;
stream.Write(ep);
}
internal static object DeserializeIPEndPoint(Type expected, BinaryTokenStreamReader stream)
{
return stream.ReadIPEndPoint();
}
internal static object CopyIPEndPoint(object original)
{
return original;
}
internal static void SerializeCorrelationId(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var id = (CorrelationId) obj;
stream.Write(id);
}
internal static object DeserializeCorrelationId(Type expected, BinaryTokenStreamReader stream)
{
var bytes = stream.ReadBytes(CorrelationId.SIZE_BYTES);
return new CorrelationId(bytes);
}
internal static object CopyCorrelationId(object original)
{
return original;
}
internal static void SerializeSiloAddress(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var addr = (SiloAddress)obj;
stream.Write(addr);
}
internal static object DeserializeSiloAddress(Type expected, BinaryTokenStreamReader stream)
{
return stream.ReadSiloAddress();
}
internal static object CopySiloAddress(object original)
{
return original;
}
internal static object CopyTaskId(object original)
{
return original;
}
#endregion
#region InvokeMethodRequest
internal static void SerializeInvokeMethodRequest(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var request = (InvokeMethodRequest)obj;
stream.Write(request.InterfaceId);
stream.Write(request.MethodId);
stream.Write(request.Arguments != null ? request.Arguments.Length : 0);
if (request.Arguments != null)
{
foreach (var arg in request.Arguments)
{
SerializationManager.SerializeInner(arg, stream, null);
}
}
}
internal static object DeserializeInvokeMethodRequest(Type expected, BinaryTokenStreamReader stream)
{
int iid = stream.ReadInt();
int mid = stream.ReadInt();
int argCount = stream.ReadInt();
object[] args = null;
if (argCount > 0)
{
args = new object[argCount];
for (var i = 0; i < argCount; i++)
{
args[i] = SerializationManager.DeserializeInner(null, stream);
}
}
return new InvokeMethodRequest(iid, mid, args);
}
internal static object CopyInvokeMethodRequest(object original)
{
var request = (InvokeMethodRequest)original;
object[] args = null;
if (request.Arguments != null)
{
args = new object[request.Arguments.Length];
for (var i = 0; i < request.Arguments.Length; i++)
{
args[i] = SerializationManager.DeepCopyInner(request.Arguments[i]);
}
}
var result = new InvokeMethodRequest(request.InterfaceId, request.MethodId, args);
SerializationContext.Current.RecordObject(original, result);
return result;
}
#endregion
#region Response
internal static void SerializeOrleansResponse(object obj, BinaryTokenStreamWriter stream, Type expected)
{
var resp = (Response)obj;
SerializationManager.SerializeInner(resp.ExceptionFlag ? resp.Exception : resp.Data, stream, null);
}
internal static object DeserializeOrleansResponse(Type expected, BinaryTokenStreamReader stream)
{
var obj = SerializationManager.DeserializeInner(null, stream);
return new Response(obj);
}
internal static object CopyOrleansResponse(object original)
{
var resp = (Response)original;
if (resp.ExceptionFlag)
{
return original;
}
var result = new Response(SerializationManager.DeepCopyInner(resp.Data));
SerializationContext.Current.RecordObject(original, result);
return result;
}
#endregion
#endregion
#region Utilities
private static Tuple<SerializationManager.Serializer, SerializationManager.Deserializer, SerializationManager.DeepCopier>
RegisterConcreteMethods(Type t, string serializerName, string deserializerName, string copierName, Type[] genericArgs = null)
{
if (genericArgs == null)
{
genericArgs = t.GetGenericArguments();
}
var genericCopier = typeof(BuiltInTypes).GetMethod(copierName, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic);
var concreteCopier = genericCopier.MakeGenericMethod(genericArgs);
var copier = (SerializationManager.DeepCopier)concreteCopier.CreateDelegate(typeof(SerializationManager.DeepCopier));
var genericSerializer = typeof(BuiltInTypes).GetMethod(serializerName, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic);
var concreteSerializer = genericSerializer.MakeGenericMethod(genericArgs);
var serializer = (SerializationManager.Serializer)concreteSerializer.CreateDelegate(typeof(SerializationManager.Serializer));
var genericDeserializer = typeof(BuiltInTypes).GetMethod(deserializerName, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic);
var concreteDeserializer = genericDeserializer.MakeGenericMethod(genericArgs);
var deserializer =
(SerializationManager.Deserializer)concreteDeserializer.CreateDelegate(typeof(SerializationManager.Deserializer));
SerializationManager.Register(t, copier, serializer, deserializer);
return new Tuple<SerializationManager.Serializer, SerializationManager.Deserializer, SerializationManager.DeepCopier>(serializer, deserializer, copier);
}
public static Tuple<SerializationManager.Serializer, SerializationManager.Deserializer, SerializationManager.DeepCopier>
RegisterConcreteMethods(Type concreteType, Type definingType, string copierName, string serializerName, string deserializerName, Type[] genericArgs = null)
{
if (genericArgs == null)
{
genericArgs = concreteType.GetGenericArguments();
}
var genericCopier = definingType.GetMethod(copierName, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic);
var concreteCopier = genericCopier.MakeGenericMethod(genericArgs);
var copier = (SerializationManager.DeepCopier)concreteCopier.CreateDelegate(typeof(SerializationManager.DeepCopier));
var genericSerializer = definingType.GetMethod(serializerName, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic);
var concreteSerializer = genericSerializer.MakeGenericMethod(genericArgs);
var serializer = (SerializationManager.Serializer)concreteSerializer.CreateDelegate(typeof(SerializationManager.Serializer));
var genericDeserializer = definingType.GetMethod(deserializerName, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic);
var concreteDeserializer = genericDeserializer.MakeGenericMethod(genericArgs);
var deserializer =
(SerializationManager.Deserializer)concreteDeserializer.CreateDelegate(typeof(SerializationManager.Deserializer));
SerializationManager.Register(concreteType, copier, serializer, deserializer);
return new Tuple<SerializationManager.Serializer, SerializationManager.Deserializer, SerializationManager.DeepCopier>(serializer, deserializer, copier);
}
#endregion
}
}
| mit |
Weisses/Ebonheart-Mods | ViesCraft/1.12.2 - 2655/src/main/java/com/viesis/viescraft/client/gui/airship/customize/balloon/sub/GuiCustomizeMenuBalloonTier3Pg1.java | 4305 | package com.viesis.viescraft.client.gui.airship.customize.balloon.sub;
import org.lwjgl.input.Keyboard;
import com.viesis.viescraft.api.GuiVC;
import com.viesis.viescraft.common.entity.airships.EntityAirshipCore;
import net.minecraft.inventory.IInventory;
public class GuiCustomizeMenuBalloonTier3Pg1 extends GuiCustomizeMenuBalloonTierVC {
public GuiCustomizeMenuBalloonTier3Pg1(IInventory playerInv, EntityAirshipCore airshipIn)
{
super(playerInv, airshipIn);
}
/**
* Adds the buttons (and other controls) to the screen in question.
*/
@Override
public void initGui()
{
super.initGui();
buttonList.clear();
Keyboard.enableRepeatEvents(true);
this.buttonList.add(GuiVC.buttonMM1);
this.buttonList.add(GuiVC.buttonMM2);
this.buttonList.add(GuiVC.buttonMM3);
this.buttonList.add(GuiVC.buttonMM4);
this.buttonList.add(GuiVC.buttonMM5);
this.buttonList.add(GuiVC.button501);
this.buttonList.add(GuiVC.button502);
//this.buttonList.add(GuiVC.button503);
//this.buttonList.add(GuiVC.button504);
this.buttonList.add(GuiVC.button505);
this.buttonList.add(GuiVC.button31);
this.buttonList.add(GuiVC.button32);
this.buttonList.add(GuiVC.button33);
this.buttonList.add(GuiVC.button34);
this.buttonList.add(GuiVC.button35);
this.buttonList.add(GuiVC.button36);
this.buttonList.add(GuiVC.button37);
this.buttonList.add(GuiVC.button38);
this.buttonList.add(GuiVC.button39);
this.buttonList.add(GuiVC.button40);
this.buttonList.add(GuiVC.button41);
this.buttonList.add(GuiVC.button42);
GuiVC.buttonMM3.enabled = false;
//TO REMOVE WHEN TEXTURES ARE MADE
GuiVC.button32.visible = false;
GuiVC.button33.visible = false;
GuiVC.button34.visible = false;
GuiVC.button35.visible = false;
GuiVC.button36.visible = false;
GuiVC.button37.visible = false;
GuiVC.button38.visible = false;
GuiVC.button39.visible = false;
GuiVC.button40.visible = false;
GuiVC.button41.visible = false;
GuiVC.button42.visible = false;
}
@Override
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
{
super.drawGuiContainerBackgroundLayer(partialTicks, mouseX, mouseY);
this.grayOutSelectedButton();
}
private void grayOutSelectedButton()
{
if(this.airship.balloonPatternTexture == 31)
{
GuiVC.button31.enabled = false;
}
else
{
GuiVC.button31.enabled = true;
}
if(this.airship.balloonPatternTexture == 32)
{
GuiVC.button32.enabled = false;
}
else
{
GuiVC.button32.enabled = true;
}
if(this.airship.balloonPatternTexture == 33)
{
GuiVC.button33.enabled = false;
}
else
{
GuiVC.button33.enabled = true;
}
if(this.airship.balloonPatternTexture == 34)
{
GuiVC.button34.enabled = false;
}
else
{
GuiVC.button34.enabled = true;
}
if(this.airship.balloonPatternTexture == 35)
{
GuiVC.button35.enabled = false;
}
else
{
GuiVC.button35.enabled = true;
}
if(this.airship.balloonPatternTexture == 36)
{
GuiVC.button36.enabled = false;
}
else
{
GuiVC.button36.enabled = true;
}
if(this.airship.balloonPatternTexture == 37)
{
GuiVC.button37.enabled = false;
}
else
{
GuiVC.button37.enabled = true;
}
if(this.airship.balloonPatternTexture == 38)
{
GuiVC.button38.enabled = false;
}
else
{
GuiVC.button38.enabled = true;
}
if(this.airship.balloonPatternTexture == 39)
{
GuiVC.button39.enabled = false;
}
else
{
GuiVC.button39.enabled = true;
}
if(this.airship.balloonPatternTexture == 40)
{
GuiVC.button40.enabled = false;
}
else
{
GuiVC.button40.enabled = true;
}
if(this.airship.balloonPatternTexture == 41)
{
GuiVC.button41.enabled = false;
}
else
{
GuiVC.button41.enabled = true;
}
if(this.airship.balloonPatternTexture == 42)
{
GuiVC.button42.enabled = false;
}
else
{
GuiVC.button42.enabled = true;
}
}
}
| mit |
willu47/pyrate | pyrate/algorithms/aisparser.py | 15117 | """ Parses the AIS data from csv of xml files and populates the AIS database
"""
import os
import csv
import logging
import queue
import threading
import time
import sys
from datetime import datetime
from xml.etree import ElementTree
from pyrate import utils
EXPORT_COMMANDS = [('run', 'parse messages from csv into the database.')]
# Repository used for input to the algorithm
INPUTS = ["aiscsv"]
# Repositories used for output from the algorithm
OUTPUTS = ["aisdb", "baddata"]
def parse_timestamp(s):
return datetime.strptime(s, '%Y%m%d_%H%M%S')
def int_or_null(s):
if len(s) == 0:
return None
else:
return int(s)
def float_or_null(s):
if len(s) == 0 or s == 'None':
return None
else:
return float(s)
def imostr(s):
if len(s) > 20:
return None
return s
def longstr(s):
if len(s) > 255:
return s.substring(0, 254)
return s
def set_null_on_fail(row, col, test):
""" Helper function which sets the column in a row of data to null on fail
Arguments
---------
row : dict
A dictionary of the fields
col : str
The column to check
test : func
One of the validation functions in pyrate.utils
"""
if not row[col] == None and not test(row[col]):
row[col] = None
def check_imo(imo):
return imo is None or utils.valid_imo(imo)
# column name constants
MMSI = 'MMSI'
TIME = 'Time'
MESSAGE_ID = 'Message_ID'
NAV_STATUS = 'Navigational_status'
SOG = 'SOG'
LONGITUDE = 'Longitude'
LATITUDE = 'Latitude'
COG = 'COG'
HEADING = 'Heading'
IMO = 'IMO'
DRAUGHT = 'Draught'
DEST = 'Destination'
VESSEL_NAME = 'Vessel_Name'
ETA_MONTH = 'ETA_month'
ETA_DAY = 'ETA_day'
ETA_HOUR = 'ETA_hour'
ETA_MINUTE = 'ETA_minute'
# specifies columns to take from raw data, and functions to convert them into
# suitable type for the database.
AIS_CSV_COLUMNS = [MMSI,
TIME,
MESSAGE_ID,
NAV_STATUS,
SOG,
LONGITUDE,
LATITUDE,
COG,
HEADING,
IMO,
DRAUGHT,
DEST,
VESSEL_NAME,
ETA_MONTH,
ETA_DAY,
ETA_HOUR,
ETA_MINUTE]
# xml names differ from csv. This array describes the names in this file which
# correspond to the csv column names
AIS_XML_COLNAMES = [
'mmsi',
'date_time',
'msg_type',
'nav_status',
'sog',
'lon',
'lat',
'cog',
'heading',
'imo',
'draught',
'destination',
'vessel_name',
'eta_month',
'eta_day',
'eta_hour',
'eta_minute']
def xml_name_to_csv(name):
"""Converts a tag name from an XML file to the corresponding name from CSV."""
return AIS_CSV_COLUMNS[AIS_XML_COLNAMES.index(name)]
def parse_raw_row(row):
"""Parse values from row, returning a new dict with converted values
Parse values from row, returning a new dict with converted values
converted into appropriate types. Throw an exception to reject row
Arguments
---------
row : dict
A dictionary of headers and values from the csv file
Returns
-------
converted_row : dict
A dictionary of headers and values converted using the helper functions
"""
converted_row = {}
converted_row[MMSI] = int_or_null(row[MMSI])
converted_row[TIME] = parse_timestamp(row[TIME])
converted_row[MESSAGE_ID] = int_or_null(row[MESSAGE_ID])
converted_row[NAV_STATUS] = int_or_null(row[NAV_STATUS])
converted_row[SOG] = float_or_null(row[SOG])
converted_row[LONGITUDE] = float_or_null(row[LONGITUDE])
converted_row[LATITUDE] = float_or_null(row[LATITUDE])
converted_row[COG] = float_or_null(row[COG])
converted_row[HEADING] = float_or_null(row[HEADING])
converted_row[IMO] = int_or_null(row[IMO])
converted_row[DRAUGHT] = float_or_null(row[DRAUGHT])
converted_row[DEST] = longstr(row[DEST])
converted_row[VESSEL_NAME] = longstr(row[VESSEL_NAME])
converted_row[ETA_MONTH] = int_or_null(row[ETA_MONTH])
converted_row[ETA_DAY] = int_or_null(row[ETA_DAY])
converted_row[ETA_HOUR] = int_or_null(row[ETA_HOUR])
converted_row[ETA_MINUTE] = int_or_null(row[ETA_MINUTE])
return converted_row
CONTAINS_LAT_LON = set([1, 2, 3, 4, 9, 11, 17, 18, 19, 21, 27])
def validate_row(row):
# validate MMSI, message_id and IMO
if not utils.valid_mmsi(row[MMSI]) \
or not utils.valid_message_id(row[MESSAGE_ID]) \
or not check_imo(row[IMO]):
raise ValueError("Row invalid")
# check lat long for messages which should contain it
if row[MESSAGE_ID] in CONTAINS_LAT_LON:
if not (utils.valid_longitude(row[LONGITUDE]) and \
utils.valid_latitude(row[LATITUDE])):
raise ValueError("Row invalid (lat,lon)")
# otherwise set them to None
else:
row[LONGITUDE] = None
row[LATITUDE] = None
# validate other columns
set_null_on_fail(row, NAV_STATUS, utils.valid_navigational_status)
set_null_on_fail(row, SOG, utils.is_valid_sog)
set_null_on_fail(row, COG, utils.is_valid_cog)
set_null_on_fail(row, HEADING, utils.is_valid_heading)
return row
def get_data_source(name):
"""Guesses data source from file name.
If the name contains 'terr' then we guess terrestrial data,
otherwise we assume satellite.
Argument
--------
name : str
File name
Returns
-------
int
0 if satellite, 1 if terrestrial
"""
if name.find('terr') != -1:
# terrestrial
return 1
else:
# assume satellite
return 0
def run(inp, out, dropindices=True, source=0):
"""Populate the AIS_Raw database with messages from the AIS csv files
Arguments
---------
inp : str
The name of the repositor(-y/-ies) as defined in the global variable
`INPUTS`
out : str
The name of the repositor(-y/-ies) as defined in the global variable
`OUTPUTS`
dropindices : bool, optional, default=True
Drop indexes for faster insert
source : int, optional, default=0
Indicates terrestrial (1) or satellite data (0)
Returns
-------
"""
files = inp['aiscsv']
db = out['aisdb']
log = out['baddata']
# drop indexes for faster insert
if dropindices:
db.clean.drop_indices()
db.dirty.drop_indices()
def sqlworker(q, table):
""" Worker thread
Takes batches of tuples from the queue to be inserted into the database
"""
while True:
msgs = [q.get()]
while not q.empty():
msgs.append(q.get(timeout=0.5))
n = len(msgs)
if n > 0:
#logging.debug("Inserting {} rows into {}".format(n, table.name))
try:
table.insert_rows_batch(msgs)
except Exception as e:
logging.warning("Error executing query: "+ repr(e))
# mark this task as done
for _ in range(n):
q.task_done()
# queue for messages to be inserted into db
dirtyq = queue.Queue(maxsize=1000000)
cleanq = queue.Queue(maxsize=1000000)
# set up processing pipeline threads
clean_thread = threading.Thread(target=sqlworker, daemon=True,
args=(cleanq, db.clean))
dirty_thread = threading.Thread(target=sqlworker, daemon=True,
args=(dirtyq, db.dirty))
dirty_thread.start()
clean_thread.start()
start = time.time()
for fp, name, ext in files.iterfiles():
# check if we've already parsed this file
with db.conn.cursor() as cur:
cur.execute("SELECT COUNT(*) FROM " + db.sources.name +
" WHERE filename = %s AND source = %s",
[name, source])
if cur.fetchone()[0] > 0:
logging.info("Already parsed "+ name +", skipping...")
continue
# parse file
try:
log_path = os.path.join(log.root, os.path.basename(name))
invalid_ctr, clean_ctr, dirty_ctr, duration = parse_file(fp,
name, ext, log_path, cleanq, dirtyq, source=source)
dirtyq.join()
cleanq.join()
db.sources.insert_row({'filename': name,
'ext': ext,
'invalid': invalid_ctr,
'clean': clean_ctr,
'dirty': dirty_ctr,
'source': source})
db.conn.commit()
logging.info("Completed " + name +
": %d clean, %d dirty, %d invalid messages, %fs",
clean_ctr, dirty_ctr, invalid_ctr, duration)
except RuntimeError as error:
logging.warn("Error parsing file %s: %s", name, repr(error))
db.conn.rollback()
# wait for queued tasks to finish
dirtyq.join()
cleanq.join()
db.conn.commit()
logging.info("Parsing complete, time elapsed = %fs", time.time() - start)
if dropindices:
start = time.time()
logging.info("Rebuilding table indices...")
db.clean.create_indices()
db.dirty.create_indices()
logging.info("Finished building indices, time elapsed = %fs",
time.time() - start)
def parse_file(fp, name, ext, baddata_logfile, cleanq, dirtyq, source=0):
""" Parses a file containing AIS data, placing rows of data onto queues
Arguments
---------
fp : str
Filepath of file to be parsed
name : str
Name of file to be parsed
ext : str
Extension, either '.csv' or '.xml'
baddata_logfile : str
Name of the logfile
cleanq :
Queue for messages to be inserted into clean table
dirtyq :
Queue for messages to be inserted into dirty table
source : int, optional, default=0
0 is satellite, 1 is terrestrial
Returns
-------
invalid_ctr : int
Number of invalid rows
clean_ctr : int
Number of clean rows
dirty_ctr : int
Number of dirty rows
time_elapsed : time
The time elapsed since starting the parse_file procedure
"""
filestart = time.time()
logging.info("Parsing "+ name)
# open error log csv file and write header
with open(baddata_logfile, 'w') as errorlog:
logwriter = csv.writer(errorlog, delimiter=',', quotechar='"')
# message counters
clean_ctr = 0
dirty_ctr = 0
invalid_ctr = 0
# Select the a file iterator based on file extension
if ext == '.csv':
iterator = readcsv
elif ext == '.xml':
iterator = readxml
else:
raise RuntimeError("Cannot parse file with extension %s"% ext)
# infer the data source from the file name
#source = get_data_source(name)
# parse and iterate lines from the current file
for row in iterator(fp):
converted_row = {}
try:
# parse raw data
converted_row = parse_raw_row(row)
converted_row['source'] = source
except ValueError as e:
# invalid data in row. Write it to error log
if not 'raw' in row:
row['raw'] = [row[c] for c in AIS_CSV_COLUMNS]
logwriter.writerow(row['raw'] + ["{}".format(e)])
invalid_ctr = invalid_ctr + 1
continue
except KeyError:
# missing data in row.
if not 'raw' in row:
row['raw'] = [row[c] for c in AIS_CSV_COLUMNS]
logwriter.writerow(row['raw'] + ["Bad row length"])
invalid_ctr = invalid_ctr + 1
continue
# validate parsed row and add to appropriate queue
try:
validated_row = validate_row(converted_row)
cleanq.put(validated_row)
clean_ctr = clean_ctr + 1
except ValueError:
dirtyq.put(converted_row)
dirty_ctr = dirty_ctr + 1
if invalid_ctr == 0:
os.remove(baddata_logfile)
return (invalid_ctr, clean_ctr, dirty_ctr, time.time() - filestart)
def readcsv(fp):
""" Returns a dictionary of the subset of columns required
Reads each line in CSV file, checks if all columns are available,
and returns a dictionary of the subset of columns required
(as per AIS_CSV_COLUMNS).
If row is invalid (too few columns),
returns an empty dictionary.
Arguments
---------
fp : str
File path
Yields
------
rowsubset : dict
A dictionary of the subset of columns as per `columns`
"""
# fix for large field error. Specify max field size to the maximum convertable int value.
# source: http://stackoverflow.com/questions/15063936/csv-error-field-larger-than-field-limit-131072
max_int = sys.maxsize
decrement = True
while decrement:
# decrease the max_int value by factor 10
# as long as the OverflowError occurs.
decrement = False
try:
csv.field_size_limit(max_int)
except OverflowError:
max_int = int(max_int/10)
decrement = True
# First line is column headers.
# Use to extract indices of columns we are extracting
cols = fp.readline().rstrip('\r\n').split(',')
indices = {}
n_cols = len(cols)
try:
for col in AIS_CSV_COLUMNS:
indices[col] = cols.index(col)
except Exception as e:
raise RuntimeError("Missing columns in file header: {}".format(e))
try:
for row in csv.reader(fp, delimiter=',', quotechar='"'):
rowsubset = {}
rowsubset['raw'] = row
if len(row) == n_cols:
for col in AIS_CSV_COLUMNS:
try:
rowsubset[col] = row[indices[col]] # raw column data
except IndexError:
# not enough columns, just blank missing data.
rowsubset[col] = ''
yield rowsubset
except UnicodeDecodeError as e:
raise RuntimeError(e)
except csv.Error as e:
raise RuntimeError(e)
def readxml(fp):
current = _empty_row()
# iterate xml 'end' events
for _, elem in ElementTree.iterparse(fp):
# end of aismessage
if elem.tag == 'aismessage':
yield current
current = _empty_row()
else:
if elem.tag in AIS_XML_COLNAMES and elem.text != None:
current[xml_name_to_csv(elem.tag)] = elem.text
def _empty_row():
row = {}
for col in AIS_CSV_COLUMNS:
row[col] = ''
return row
| mit |
Bammerbom/UltimateCore | src/main/java/bammerbom/ultimatecore/sponge/modules/spawn/utils/SpawnUtil.java | 2384 | /*
* This file is part of UltimateCore, licensed under the MIT License (MIT).
*
* Copyright (c) Bammerbom
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package bammerbom.ultimatecore.sponge.modules.spawn.utils;
import bammerbom.ultimatecore.sponge.api.data.GlobalData;
import bammerbom.ultimatecore.sponge.api.teleport.serializabletransform.SerializableTransform;
import bammerbom.ultimatecore.sponge.modules.spawn.api.SpawnKeys;
import bammerbom.ultimatecore.sponge.modules.spawn.api.SpawnPermissions;
import org.spongepowered.api.entity.Transform;
import org.spongepowered.api.entity.living.player.Player;
import java.util.HashMap;
public class SpawnUtil {
public static SerializableTransform getSpawnLocation(Player p) {
//Global spawn
SerializableTransform loc = GlobalData.get(SpawnKeys.GLOBAL_SPAWN).orElse(null);
//Check group spawn
HashMap<String, SerializableTransform> spawns = GlobalData.get(SpawnKeys.GROUP_SPAWNS).get();
String group = SpawnPermissions.UC_SPAWN_GROUPSPAWN.getFor(p);
if (group != null && spawns.containsKey(group.toLowerCase())) {
loc = spawns.get(group);
}
//World spawn
if (loc == null) {
loc = new SerializableTransform(new Transform<>(p.getWorld().getSpawnLocation()));
}
return loc;
}
}
| mit |
b-slavov/Telerik-Software-Academy | 02.C# Part 2/06.Strings-and-Text-Processing/07.EncodeDecode/Properties/AssemblyInfo.cs | 1406 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("07.EncodeDecode")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("07.EncodeDecode")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("cf5d3ce7-69ab-4674-b281-7172b0e4ab69")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| mit |
jarone/jemo | front_end/entry/user.js | 116 | 'use strict'
require('../css/user/create.css')
require('../js/user/create.js')
require('../js/public/user_bar.js')
| mit |
ATKAFASI2016/PracticeProblemPainting | src/main/java/atkafasi/solutions/Solution.java | 233 | package atkafasi.solutions;
import java.util.List;
import atkafasi.model.data.ParseResultPojo;
import atkafasi.model.instructions.Instructions;
public interface Solution {
List<Instructions> solve(ParseResultPojo frameData);
}
| mit |
yasuflatland-lf/liferay-dummy-factory | src/main/java/com/liferay/support/tools/wiki/WikiDummyFactory.java | 1324 | package com.liferay.support.tools.wiki;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.support.tools.common.DummyFactory;
import com.liferay.support.tools.common.DummyGenerator;
import com.liferay.support.tools.constants.LDFPortletKeys;
import javax.portlet.ActionRequest;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
@Component(immediate = true, service = WikiDummyFactory.class)
public class WikiDummyFactory extends DummyFactory {
@Override
public DummyGenerator<WikiContext> create(ActionRequest request) {
DummyGenerator<WikiContext> generator = _wikiNodeDummyGenerator;
long createContentsType = ParamUtil.getLong(request, "createContentsType", LDFPortletKeys.W_NODE);
if(_log.isDebugEnabled()) {
_log.debug("mode : " + String.valueOf(createContentsType));
}
if (createContentsType == LDFPortletKeys.W_PAGE) {
generator = _wikiPageDummyGenerator;
}
return generator;
}
@Reference
private WikiNodeDummyGenerator _wikiNodeDummyGenerator;
@Reference
private WikiPageDummyGenerator _wikiPageDummyGenerator;
private static final Log _log = LogFactoryUtil.getLog(WikiDummyFactory.class);
}
| mit |
limikael/volatilitycoin | src/qt/locale/bitcoin_bg.ts | 117459 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="bg" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About volatilitycoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>volatilitycoin</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The volatilitycoin developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation>
Това е експериментален софтуер.
Разпространява се под MIT/X11 софтуерен лиценз, виж COPYING или http://www.opensource.org/licenses/mit-license.php.
Използван е софтуер, разработен от OpenSSL Project за употреба в OpenSSL Toolkit (http://www.openssl.org/), криптографски софтуер разработен от Eric Young (eay@cryptsoft.com) и UPnP софтуер разработен от Thomas Bernard.</translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation>Двоен клик за редакция на адрес или име</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Създаване на нов адрес</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Копирай избрания адрес</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-46"/>
<source>These are your volatilitycoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation>&Копирай</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a volatilitycoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Изтрий избрания адрес от списъка</translation>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified volatilitycoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Изтрий</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation>Копирай &име</translation>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation>&Редактирай</translation>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>CSV файл (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Име</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(без име)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Въведи парола</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Нова парола</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Още веднъж</translation>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Въведете нова парола за портфейла.<br/>Моля използвайте <b>поне 10 случайни символа</b> или <b>8 или повече думи</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Криптиране на портфейла</translation>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Тази операция изисква Вашата парола за отключване на портфейла.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Отключване на портфейла</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Тази операция изисква Вашата парола за декриптиране на портфейла.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Декриптиране на портфейла</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Смяна на паролата</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Въведете текущата и новата парола за портфейла.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Потвърждаване на криптирането</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation>Портфейлът е криптиран</translation>
</message>
<message>
<location line="-58"/>
<source>volatilitycoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Криптирането беше неуспешно</translation>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Криптирането на портфейла беше неуспешно поради неизвестен проблем. Портфейлът не е криптиран.</translation>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation>Паролите не съвпадат</translation>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation>Отключването беше неуспешно</translation>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>Паролата въведена за декриптиране на портфейла е грешна.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Декриптирането беше неуспешно</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>Паролата на портфейла беше променена успешно.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+282"/>
<source>Sign &message...</source>
<translation>Подписване на &съобщение...</translation>
</message>
<message>
<location line="+251"/>
<source>Synchronizing with network...</source>
<translation>Синхронизиране с мрежата...</translation>
</message>
<message>
<location line="-319"/>
<source>&Overview</source>
<translation>&Баланс</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Обобщена информация за портфейла</translation>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Транзакции</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>История на транзакциите</translation>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation>Из&ход</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Изход от приложението</translation>
</message>
<message>
<location line="+6"/>
<source>Show information about volatilitycoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>За &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Покажи информация за Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Опции...</translation>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation>&Криптиране на портфейла...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Запазване на портфейла...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>&Смяна на паролата...</translation>
</message>
<message numerus="yes">
<location line="+259"/>
<source>~%n block(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-256"/>
<source>&Export...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Send coins to a volatilitycoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Modify configuration options for volatilitycoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Променя паролата за портфейла</translation>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>&Проверка на съобщение...</translation>
</message>
<message>
<location line="-202"/>
<source>volatilitycoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Портфейл</translation>
</message>
<message>
<location line="+180"/>
<source>&About volatilitycoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>&File</source>
<translation>&Файл</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation>&Настройки</translation>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>&Помощ</translation>
</message>
<message>
<location line="+12"/>
<source>Tabs toolbar</source>
<translation>Раздели</translation>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>volatilitycoin client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+75"/>
<source>%n active connection(s) to volatilitycoin network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="-312"/>
<source>About volatilitycoin card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about volatilitycoin card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>&Unlock Wallet...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+297"/>
<source>%n minute(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Синхронизиран</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation>Зарежда блокове...</translation>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation>Изходяща транзакция</translation>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation>Входяща транзакция</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid volatilitycoin address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Портфейлът е <b>криптиран</b> и <b>отключен</b></translation>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Портфейлът е <b>криптиран</b> и <b>заключен</b></translation>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. volatilitycoin can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation>Сума:</translation>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation>Сума</translation>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation>Потвърдени</translation>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation>Копирай адрес</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Копирай име</translation>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation>Копирай сума</translation>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(без име)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Редактиране на адрес</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Име</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Адрес</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation>Нов адрес за получаване</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Нов адрес за изпращане</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Редактиране на входящ адрес</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Редактиране на изходящ адрес</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Вече има адрес "%1" в списъка с адреси.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid volatilitycoin address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Отключването на портфейла беше неуспешно.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Създаването на ключ беше неуспешно.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>volatilitycoin-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Опции</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>&Основни</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>&Такса за изходяща транзакция</translation>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start volatilitycoin after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start volatilitycoin on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Мрежа</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the volatilitycoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Отваряне на входящия порт чрез &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the volatilitycoin network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Прозорец</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>След минимизиране ще е видима само иконата в системния трей.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Минимизиране в системния трей</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>При затваряне на прозореца приложението остава минимизирано. Ако изберете тази опция, приложението може да се затвори само чрез Изход в менюто.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>М&инимизиране при затваряне</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&Интерфейс</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>Език:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting volatilitycoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>Мерни единици:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Изберете единиците, показвани по подразбиране в интерфейса.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show volatilitycoin addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>Показвай и адресите в списъка с транзакции</translation>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting volatilitycoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>Прокси адресът е невалиден.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Форма</translation>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the volatilitycoin network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Портфейл</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Последни транзакции</b></translation>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>несинхронизиран</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+348"/>
<source>N/A</source>
<translation>N/A</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Мрежа</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the volatilitycoin-Qt help message to get a list with possible volatilitycoin command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-104"/>
<source>volatilitycoin - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>volatilitycoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the volatilitycoin debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Изчисти конзолата</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the volatilitycoin RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Използвайте стрелки надолу и нагореза разглеждане на историятаот команди и <b>Ctrl-L</b> за изчистване на конзолата.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+182"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Изпращане</translation>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation>Сума:</translation>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 hack</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation>Изпращане към повече от един получател</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>Добави &получател</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>&Изчисти</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation>Баланс:</translation>
</message>
<message>
<location line="+16"/>
<source>123.456 hack</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Потвърдете изпращането</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>И&зпрати</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a volatilitycoin address (e.g. volatilitycoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Копирай сума</translation>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Потвърждаване</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>Невалиден адрес на получателя.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Сумата трябва да е по-голяма от 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid volatilitycoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(без име)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>С&ума:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>Плати &На:</translation>
</message>
<message>
<location line="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Въведете име за този адрес, за да го добавите в списъка с адреси</translation>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation>&Име:</translation>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. volatilitycoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Вмъкни от клипборда</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a volatilitycoin address (e.g. volatilitycoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Подпиши / Провери съобщение</translation>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation>&Подпиши</translation>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>Можете да подпишете съобщение като доказателство, че притежавате определен адрес. Бъдете внимателни и не подписвайте съобщения, които биха разкрили лична информация без вашето съгласие.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. volatilitycoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>Вмъкни от клипборда</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>Въведете съобщението тук</translation>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Копиране на текущия подпис</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this volatilitycoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>&Изчисти</translation>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation>&Провери</translation>
</message>
<message>
<location line="-64"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. volatilitycoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified volatilitycoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a volatilitycoin address (e.g. volatilitycoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Натиснете "Подписване на съобщение" за да създадете подпис</translation>
</message>
<message>
<location line="+3"/>
<source>Enter volatilitycoin signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>Въведеният адрес е невалиден.</translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>Моля проверете адреса и опитайте отново.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>Не е наличен частният ключ за въведеният адрес.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Подписването на съобщение бе неуспешно.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Съобщението е подписано.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>Подписът не може да бъде декодиран.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Проверете подписа и опитайте отново.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>Подписът не отговаря на комбинацията от съобщение и адрес.</translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Проверката на съобщението беше неуспешна.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Съобщението е потвърдено.</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation>Подлежи на промяна до %1</translation>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation>%1/офлайн</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/непотвърдени</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>включена в %1 блока</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Статус</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Източник</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Издадени</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>От</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>За</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>собствен адрес</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>име</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Кредит</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Дебит</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Такса</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Сума нето</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Съобщение</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Коментар</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Транзакция</translation>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Сума</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>true</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>false</translation>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation>, все още не е изпратено</translation>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation>неизвестен</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Транзакция</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Описание на транзакцията</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+226"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Тип</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Сума</translation>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation>Подлежи на промяна до %1</translation>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Потвърдени (%1 потвърждения)</translation>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Блокът не е получен от останалите участници и най-вероятно няма да бъде одобрен.</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Генерирана, но отхвърлена от мрежата</translation>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation>Получени с</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Получен от</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Изпратени на</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Емитирани</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(n/a)</translation>
</message>
<message>
<location line="+190"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Състояние на транзакцията. Задръжте върху това поле за брой потвърждения.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Дата и час на получаване.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Тип на транзакцията.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Получател на транзакцията.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Сума извадена или добавена към баланса.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation>Всички</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Днес</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Тази седмица</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Този месец</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Предния месец</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Тази година</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>От - до...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Получени</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Изпратени на</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Собствени</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Емитирани</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Други</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Търсене по адрес или име</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Минимална сума</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Копирай адрес</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Копирай име</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Копирай сума</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Редактирай име</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>CSV файл (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Потвърдени</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Тип</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Име</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Адрес</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Сума</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ИД</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>От:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>до</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>volatilitycoin version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation>Използване:</translation>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or volatilitycoind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation>Вписване на команди</translation>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation>Получете помощ за команда</translation>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation>Опции:</translation>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: volatilitycoin.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: volatilitycoind.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Определете директория за данните</translation>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Праг на прекъсване на връзката при непорядъчно държащи се пиъри (по подразбиране:100)</translation>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Брой секунди до възтановяване на връзката за зле държащите се пиъри (по подразбиране:86400)</translation>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation>Използвайте тестовата мрежа</translation>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong volatilitycoin will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-18"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Изпрати локализиращата или дебъг информацията към конзолата, вместо файлът debug.log</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation>Потребителско име за JSON-RPC връзките</translation>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation>Парола за JSON-RPC връзките</translation>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=volatilitycoinrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "volatilitycoin Alert" admin@foo.com
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Разреши JSON-RPC връзките от отучнен IP адрес</translation>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Изпрати команди до възел функциониращ на <ip> (По подразбиране: 127.0.0.1)</translation>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Повторно сканиране на блок-връзка за липсващи портефейлни транзакции</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Използвайте OpenSSL (https) за JSON-RPC връзките</translation>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Сертификатен файл на сървъра (По подразбиране:server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Поверителен ключ за сървъра (default: server.pem)</translation>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation>Това помощно съобщение</translation>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. volatilitycoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>volatilitycoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation>Зареждане на адресите...</translation>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of volatilitycoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart volatilitycoin to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Невалиден -proxy address: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation>Зареждане на блок индекса...</translation>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. volatilitycoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation>Зареждане на портфейла...</translation>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation>Преразглеждане на последовтелността от блокове...</translation>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation>Зареждането е завършено</translation>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Грешка</translation>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation type="unfinished"/>
</message>
</context>
</TS> | mit |
cosmicradiotv/livehub | app/Http/Requests/ShowChannelRequest.php | 1613 | <?php namespace t2t2\LiveHub\Http\Requests;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Validation\Factory;
class ShowChannelRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @param \Illuminate\Contracts\Auth\Guard $auth
* @return bool
*/
public function authorize(Guard $auth) {
return $auth->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules() {
$rules = [
'rules' => 'array'
];
return $rules;
}
/**
* Generates a validator
*
* @param \Illuminate\Contracts\Validation\Factory $factory
*
* @return \Illuminate\Validation\Validator
*/
public function validator(Factory $factory) {
$input = $this->all();
$input['rules'] = json_decode($input['rules'], true);
/* @var \Illuminate\Validation\Validator $validator */
$validator = $factory->make($input, $this->rules(), $this->messages(), $this->attributes());
foreach ($input['rules'] as $i => $value) {
$validator->addRules([
"rules.{$i}.type" => ['required', 'in:title,startBetween']
]);
switch ($value['type']) {
case 'title':
$validator->addRules([
"rules.{$i}.rule" => ['required', 'valid_regex']
]);
break;
case 'startBetween':
$validator->addRules([
"rules.{$i}.days" => ['required', 'array', 'min:1'],
"rules.{$i}.days.*" => ['required', 'between:0,6'],
"rules.{$i}.start" => ['required', 'time'],
"rules.{$i}.end" => ['required', 'time']
]);
break;
}
}
return $validator;
}
}
| mit |
concardis/shopware_plugin | Frontend/ConcarPayengine/Views/backend/concar_payengine/order_detail/view/tab/window.js | 2903 | //{namespace name=backend/concar_payengine/}
//{block name="order_detail/view/main/tab/window"}
Ext.define('Shopware.apps.ConcarPayengine.OrderDetail.view.main.tab.window', {
snippets:{
title:'{s namespace=backend/concar_payengine/order_detail/tab/window name=title}Concardis PayEngine{/s}',
tab:{
overview:'{s namespace=backend/concar_payengine/order_detail/tab/window name=tab/overview}Overview{/s}',
transaction:'{s namespace=backend/concar_payengine/order_detail/tab/window name=tab/transaction}Transactions{/s}'
}
},
/**
* Define that the additional information is an Ext.panel.Panel extension
* @string
*/
extend: 'Ext.tab.Panel',
autoScroll: true,
layout:'fit',
initComponent: function () {
var me = this;
var id = this.record.get('id');
me.title = me.snippets.title;
var overviewTab = Ext.create('Shopware.apps.ConcarPayengine.OrderDetail.view.tab.overview.window',{
id: 'tab_overview_' + me.record.get('id'),
title: me.snippets.tab.overview,
record: me.record
});
var transactionTab = Ext.create('Shopware.apps.ConcarPayengine.OrderDetail.view.tab.transaction.tab',{
id: 'tab_transaction_' + me.record.get('id'),
title: me.snippets.tab.transaction,
record: me.record,
autoScroll:true,
frame: true,
layout:'border'
});
var articleTab = Ext.create('Shopware.apps.ConcarPayengine.OrderDetail.view.tab.articlemanagement.window',{
id: 'tab_article_' + me.record.get('id'),
title: me.snippets.tab.overview,
record: me.record,
statusStore: me.statusStore,
taxStore: me.taxStore
});
me.items = [
overviewTab,
transactionTab,
articleTab
];
this.callParent(arguments);
},
listeners: {
'tabchange': function (tabPanel, tab) {
var me = this;
var disable = true;
if(tab.id === 'tab_article_' + me.record.get('id')){
var grid = Ext.getCmp('transactionGrid');
var countTrx = 0;
if(grid !== undefined){
countTrx = grid.store.data.length;
}
disable = !(me.isRatePAYPayment() && countTrx === 1);
tab.disableOrderChangeButtons(disable);
}
}
},
isRatePAYPayment: function(){
var result = false;
var payment = this.record.getPayment().first();
if(payment !== undefined){
var paymentName = payment.get('name');
var regex = new RegExp('^concardis_payengine_ratepay.*$');
result = regex.test(paymentName);
}
return result;
}
});
//{/block} | mit |
helsingborg-stad/wp-listings | templates/description.php | 1083 | <?php
$settings = array(
'description' => get_field('listing_archive_page_description','option'),
'addnew' => get_field('listing_add_new_button','option')
);
if (!empty($settings['description']) && $settings['addnew']) {
$fullWidth = false;
} else {
$fullWidth = true;
}
?>
<?php if (!empty($settings['description']) || $settings['addnew']) { ?>
<div class="grid">
<?php if (!empty($settings['description'])) { ?>
<div class="grid-xs-<?php echo $fullWidth ? '12' : '8'; ?>">
<article>
<?php echo apply_filters('the_content', $settings['description']); ?>
</article>
</div>
<?php } ?>
<?php if ($settings['addnew']) { ?>
<div class="grid-xs-<?php echo $fullWidth ? '12' : '4'; ?>">
<a href="<?php echo get_post_type_archive_link('listing'); ?>#addNewListing" class="btn pull-right"><?php _e("Add new listing", 'wp-listings'); ?></a>
</div>
<?php } ?>
</div>
<?php } ?>
| mit |
robertjf/Umbraco-CMS | src/Umbraco.Core/Packaging/PackageDataInstallation.cs | 59740 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
using System.Xml.Linq;
using System.Xml.XPath;
using Umbraco.Core.Collections;
using Umbraco.Core.IO;
using Umbraco.Core.Logging;
using Umbraco.Core.Models;
using Umbraco.Core.Models.Entities;
using Umbraco.Core.Models.Packaging;
using Umbraco.Core.PropertyEditors;
using Umbraco.Core.Services;
using Umbraco.Core.Services.Implement;
namespace Umbraco.Core.Packaging
{
internal class PackageDataInstallation
{
private readonly ILogger _logger;
private readonly IFileService _fileService;
private readonly IMacroService _macroService;
private readonly ILocalizationService _localizationService;
private readonly IDataTypeService _dataTypeService;
private readonly PropertyEditorCollection _propertyEditors;
private readonly IEntityService _entityService;
private readonly IContentTypeService _contentTypeService;
private readonly IContentService _contentService;
public PackageDataInstallation(ILogger logger, IFileService fileService, IMacroService macroService, ILocalizationService localizationService,
IDataTypeService dataTypeService, IEntityService entityService, IContentTypeService contentTypeService,
IContentService contentService, PropertyEditorCollection propertyEditors)
{
_logger = logger;
_fileService = fileService;
_macroService = macroService;
_localizationService = localizationService;
_dataTypeService = dataTypeService;
_propertyEditors = propertyEditors;
_entityService = entityService;
_contentTypeService = contentTypeService;
_contentService = contentService;
}
#region Uninstall
public UninstallationSummary UninstallPackageData(PackageDefinition package, int userId)
{
if (package == null) throw new ArgumentNullException(nameof(package));
var removedTemplates = new List<ITemplate>();
var removedMacros = new List<IMacro>();
var removedContentTypes = new List<IContentType>();
var removedDictionaryItems = new List<IDictionaryItem>();
var removedDataTypes = new List<IDataType>();
var removedLanguages = new List<ILanguage>();
//Uninstall templates
foreach (var item in package.Templates.ToArray())
{
if (int.TryParse(item, out var nId) == false) continue;
var found = _fileService.GetTemplate(nId);
if (found != null)
{
removedTemplates.Add(found);
_fileService.DeleteTemplate(found.Alias, userId);
}
package.Templates.Remove(nId.ToString());
}
//Uninstall macros
foreach (var item in package.Macros.ToArray())
{
if (int.TryParse(item, out var nId) == false) continue;
var macro = _macroService.GetById(nId);
if (macro != null)
{
removedMacros.Add(macro);
_macroService.Delete(macro, userId);
}
package.Macros.Remove(nId.ToString());
}
//Remove Document Types
var contentTypes = new List<IContentType>();
var contentTypeService = _contentTypeService;
foreach (var item in package.DocumentTypes.ToArray())
{
if (int.TryParse(item, out var nId) == false) continue;
var contentType = contentTypeService.Get(nId);
if (contentType == null) continue;
contentTypes.Add(contentType);
package.DocumentTypes.Remove(nId.ToString(CultureInfo.InvariantCulture));
}
//Order the DocumentTypes before removing them
if (contentTypes.Any())
{
// TODO: I don't think this ordering is necessary
var orderedTypes = (from contentType in contentTypes
orderby contentType.ParentId descending, contentType.Id descending
select contentType).ToList();
removedContentTypes.AddRange(orderedTypes);
contentTypeService.Delete(orderedTypes, userId);
}
//Remove Dictionary items
foreach (var item in package.DictionaryItems.ToArray())
{
if (int.TryParse(item, out var nId) == false) continue;
var di = _localizationService.GetDictionaryItemById(nId);
if (di != null)
{
removedDictionaryItems.Add(di);
_localizationService.Delete(di, userId);
}
package.DictionaryItems.Remove(nId.ToString());
}
//Remove Data types
foreach (var item in package.DataTypes.ToArray())
{
if (int.TryParse(item, out var nId) == false) continue;
var dtd = _dataTypeService.GetDataType(nId);
if (dtd != null)
{
removedDataTypes.Add(dtd);
_dataTypeService.Delete(dtd, userId);
}
package.DataTypes.Remove(nId.ToString());
}
//Remove Langs
foreach (var item in package.Languages.ToArray())
{
if (int.TryParse(item, out var nId) == false) continue;
var lang = _localizationService.GetLanguageById(nId);
if (lang != null)
{
removedLanguages.Add(lang);
_localizationService.Delete(lang, userId);
}
package.Languages.Remove(nId.ToString());
}
// create a summary of what was actually removed, for PackagingService.UninstalledPackage
var summary = new UninstallationSummary
{
MetaData = package,
TemplatesUninstalled = removedTemplates,
MacrosUninstalled = removedMacros,
DocumentTypesUninstalled = removedContentTypes,
DictionaryItemsUninstalled = removedDictionaryItems,
DataTypesUninstalled = removedDataTypes,
LanguagesUninstalled = removedLanguages,
};
return summary;
}
#endregion
#region Content
public IEnumerable<IContent> ImportContent(IEnumerable<CompiledPackageDocument> docs, IDictionary<string, IContentType> importedDocumentTypes, int userId)
{
return docs.SelectMany(x => ImportContent(x, -1, importedDocumentTypes, userId));
}
/// <summary>
/// Imports and saves package xml as <see cref="IContent"/>
/// </summary>
/// <param name="packageDocument">Xml to import</param>
/// <param name="parentId">Optional parent Id for the content being imported</param>
/// <param name="importedDocumentTypes">A dictionary of already imported document types (basically used as a cache)</param>
/// <param name="userId">Optional Id of the user performing the import</param>
/// <returns>An enumerable list of generated content</returns>
public IEnumerable<IContent> ImportContent(CompiledPackageDocument packageDocument, int parentId, IDictionary<string, IContentType> importedDocumentTypes, int userId)
{
var element = packageDocument.XmlData;
var roots = from doc in element.Elements()
where (string)doc.Attribute("isDoc") == ""
select doc;
var contents = ParseDocumentRootXml(roots, parentId, importedDocumentTypes).ToList();
if (contents.Any())
_contentService.Save(contents, userId);
return contents;
//var attribute = element.Attribute("isDoc");
//if (attribute != null)
//{
// //This is a single doc import
// var elements = new List<XElement> { element };
// var contents = ParseDocumentRootXml(elements, parentId, importedDocumentTypes).ToList();
// if (contents.Any())
// _contentService.Save(contents, userId);
// return contents;
//}
//throw new ArgumentException(
// "The passed in XElement is not valid! It does not contain a root element called " +
// "'DocumentSet' (for structured imports) nor is the first element a Document (for single document import).");
}
private IEnumerable<IContent> ParseDocumentRootXml(IEnumerable<XElement> roots, int parentId, IDictionary<string, IContentType> importedContentTypes)
{
var contents = new List<IContent>();
foreach (var root in roots)
{
var contentTypeAlias = root.Name.LocalName;
if (!importedContentTypes.ContainsKey(contentTypeAlias))
{
var contentType = FindContentTypeByAlias(contentTypeAlias);
importedContentTypes.Add(contentTypeAlias, contentType);
}
var content = CreateContentFromXml(root, importedContentTypes[contentTypeAlias], null, parentId);
if (content == null) continue;
contents.Add(content);
var children = (from child in root.Elements()
where (string)child.Attribute("isDoc") == ""
select child)
.ToList();
if (children.Count > 0)
contents.AddRange(CreateContentFromXml(children, content, importedContentTypes).WhereNotNull());
}
return contents;
}
private IEnumerable<IContent> CreateContentFromXml(IEnumerable<XElement> children, IContent parent, IDictionary<string, IContentType> importedContentTypes)
{
var list = new List<IContent>();
foreach (var child in children)
{
string contentTypeAlias = child.Name.LocalName;
if (importedContentTypes.ContainsKey(contentTypeAlias) == false)
{
var contentType = FindContentTypeByAlias(contentTypeAlias);
importedContentTypes.Add(contentTypeAlias, contentType);
}
//Create and add the child to the list
var content = CreateContentFromXml(child, importedContentTypes[contentTypeAlias], parent, default);
list.Add(content);
//Recursive call
var child1 = child;
var grandChildren = (from grand in child1.Elements()
where (string)grand.Attribute("isDoc") == ""
select grand).ToList();
if (grandChildren.Any())
list.AddRange(CreateContentFromXml(grandChildren, content, importedContentTypes));
}
return list;
}
private IContent CreateContentFromXml(XElement element, IContentType contentType, IContent parent, int parentId)
{
var key = Guid.Empty;
if (element.Attribute("key") != null && Guid.TryParse(element.Attribute("key").Value, out key))
{
//if a Key is supplied, then we need to check if the content already exists and if so we ignore the installation for this item
if (_contentService.GetById(key) != null)
return null;
}
var id = element.Attribute("id").Value;
var level = element.Attribute("level").Value;
var sortOrder = element.Attribute("sortOrder").Value;
var nodeName = element.Attribute("nodeName").Value;
var path = element.Attribute("path").Value;
var templateId = element.AttributeValue<int?>("template");
var properties = from property in element.Elements()
where property.Attribute("isDoc") == null
select property;
//TODO: This will almost never work, we can't reference a template by an INT Id within a package manifest, we need to change the
// packager to package templates by UDI and resolve by the same, in 98% of cases, this isn't going to work, or it will resolve the wrong template.
var template = templateId.HasValue ? _fileService.GetTemplate(templateId.Value) : null;
//now double check this is correct since its an INT it could very well be pointing to an invalid template :/
if (template != null)
{
if (!contentType.IsAllowedTemplate(template.Alias))
{
//well this is awkward, we'll set the template to null and it will be wired up to the default template
// when it's persisted in the document repository
template = null;
}
}
IContent content = parent == null
? new Content(nodeName, parentId, contentType)
{
Level = int.Parse(level),
SortOrder = int.Parse(sortOrder),
TemplateId = template?.Id,
Key = key
}
: new Content(nodeName, parent, contentType)
{
Level = int.Parse(level),
SortOrder = int.Parse(sortOrder),
TemplateId = template?.Id,
Key = key
};
//Here we make sure that we take composition properties in account as well
//otherwise we would skip them and end up losing content
var propTypes = contentType.CompositionPropertyTypes.Any()
? contentType.CompositionPropertyTypes.ToDictionary(x => x.Alias, x => x)
: contentType.PropertyTypes.ToDictionary(x => x.Alias, x => x);
foreach (var property in properties)
{
string propertyTypeAlias = property.Name.LocalName;
if (content.HasProperty(propertyTypeAlias))
{
var propertyValue = property.Value;
if (propTypes.TryGetValue(propertyTypeAlias, out var propertyType))
{
//set property value
content.SetValue(propertyTypeAlias, propertyValue);
}
}
}
return content;
}
#endregion
#region DocumentTypes
public IEnumerable<IContentType> ImportDocumentType(XElement docTypeElement, int userId)
{
return ImportDocumentTypes(new[] { docTypeElement }, userId);
}
/// <summary>
/// Imports and saves package xml as <see cref="IContentType"/>
/// </summary>
/// <param name="docTypeElements">Xml to import</param>
/// <param name="userId">Optional id of the User performing the operation. Default is zero (admin).</param>
/// <returns>An enumerable list of generated ContentTypes</returns>
public IEnumerable<IContentType> ImportDocumentTypes(IEnumerable<XElement> docTypeElements, int userId)
{
return ImportDocumentTypes(docTypeElements.ToList(), true, userId);
}
/// <summary>
/// Imports and saves package xml as <see cref="IContentType"/>
/// </summary>
/// <param name="unsortedDocumentTypes">Xml to import</param>
/// <param name="importStructure">Boolean indicating whether or not to import the </param>
/// <param name="userId">Optional id of the User performing the operation. Default is zero (admin).</param>
/// <returns>An enumerable list of generated ContentTypes</returns>
public IEnumerable<IContentType> ImportDocumentTypes(IReadOnlyCollection<XElement> unsortedDocumentTypes, bool importStructure, int userId)
{
var importedContentTypes = new Dictionary<string, IContentType>();
//When you are importing a single doc type we have to assume that the dependencies are already there.
//Otherwise something like uSync won't work.
var graph = new TopoGraph<string, TopoGraph.Node<string, XElement>>(x => x.Key, x => x.Dependencies);
var isSingleDocTypeImport = unsortedDocumentTypes.Count == 1;
var importedFolders = CreateContentTypeFolderStructure(unsortedDocumentTypes);
if (isSingleDocTypeImport == false)
{
//NOTE Here we sort the doctype XElements based on dependencies
//before creating the doc types - this should also allow for a better structure/inheritance support.
foreach (var documentType in unsortedDocumentTypes)
{
var elementCopy = documentType;
var infoElement = elementCopy.Element("Info");
var dependencies = new HashSet<string>();
//Add the Master as a dependency
if (string.IsNullOrEmpty((string)infoElement.Element("Master")) == false)
{
dependencies.Add(infoElement.Element("Master").Value);
}
//Add compositions as dependencies
var compositionsElement = infoElement.Element("Compositions");
if (compositionsElement != null && compositionsElement.HasElements)
{
var compositions = compositionsElement.Elements("Composition");
if (compositions.Any())
{
foreach (var composition in compositions)
{
dependencies.Add(composition.Value);
}
}
}
graph.AddItem(TopoGraph.CreateNode(infoElement.Element("Alias").Value, elementCopy, dependencies.ToArray()));
}
}
//Sorting the Document Types based on dependencies - if its not a single doc type import ref. #U4-5921
var documentTypes = isSingleDocTypeImport
? unsortedDocumentTypes.ToList()
: graph.GetSortedItems().Select(x => x.Item).ToList();
//Iterate the sorted document types and create them as IContentType objects
foreach (var documentType in documentTypes)
{
var alias = documentType.Element("Info").Element("Alias").Value;
if (importedContentTypes.ContainsKey(alias) == false)
{
var contentType = _contentTypeService.Get(alias);
importedContentTypes.Add(alias, contentType == null
? CreateContentTypeFromXml(documentType, importedContentTypes)
: UpdateContentTypeFromXml(documentType, contentType, importedContentTypes));
}
}
foreach (var contentType in importedContentTypes)
{
var ct = contentType.Value;
if (importedFolders.ContainsKey(ct.Alias))
{
ct.ParentId = importedFolders[ct.Alias];
}
}
//Save the newly created/updated IContentType objects
var list = importedContentTypes.Select(x => x.Value).ToList();
_contentTypeService.Save(list, userId);
//Now we can finish the import by updating the 'structure',
//which requires the doc types to be saved/available in the db
if (importStructure)
{
var updatedContentTypes = new List<IContentType>();
//Update the structure here - we can't do it until all DocTypes have been created
foreach (var documentType in documentTypes)
{
var alias = documentType.Element("Info").Element("Alias").Value;
var structureElement = documentType.Element("Structure");
//Ensure that we only update ContentTypes which has actual structure-elements
if (structureElement == null || structureElement.Elements("DocumentType").Any() == false) continue;
var updated = UpdateContentTypesStructure(importedContentTypes[alias], structureElement, importedContentTypes);
updatedContentTypes.Add(updated);
}
//Update ContentTypes with a newly added structure/list of allowed children
if (updatedContentTypes.Any())
_contentTypeService.Save(updatedContentTypes, userId);
}
return list;
}
private Dictionary<string, int> CreateContentTypeFolderStructure(IEnumerable<XElement> unsortedDocumentTypes)
{
var importedFolders = new Dictionary<string, int>();
foreach (var documentType in unsortedDocumentTypes)
{
var foldersAttribute = documentType.Attribute("Folders");
var infoElement = documentType.Element("Info");
if (foldersAttribute != null && infoElement != null
//don't import any folder if this is a child doc type - the parent doc type will need to
//exist which contains it's folders
&& ((string)infoElement.Element("Master")).IsNullOrWhiteSpace())
{
var alias = documentType.Element("Info").Element("Alias").Value;
var folders = foldersAttribute.Value.Split('/');
var rootFolder = HttpUtility.UrlDecode(folders[0]);
//level 1 = root level folders, there can only be one with the same name
var current = _contentTypeService.GetContainers(rootFolder, 1).FirstOrDefault();
if (current == null)
{
var tryCreateFolder = _contentTypeService.CreateContainer(-1, rootFolder);
if (tryCreateFolder == false)
{
_logger.Error<PackagingService>(tryCreateFolder.Exception, "Could not create folder: {FolderName}", rootFolder);
throw tryCreateFolder.Exception;
}
var rootFolderId = tryCreateFolder.Result.Entity.Id;
current = _contentTypeService.GetContainer(rootFolderId);
}
importedFolders.Add(alias, current.Id);
for (var i = 1; i < folders.Length; i++)
{
var folderName = HttpUtility.UrlDecode(folders[i]);
current = CreateContentTypeChildFolder(folderName, current);
importedFolders[alias] = current.Id;
}
}
}
return importedFolders;
}
private EntityContainer CreateContentTypeChildFolder(string folderName, IUmbracoEntity current)
{
var children = _entityService.GetChildren(current.Id).ToArray();
var found = children.Any(x => x.Name.InvariantEquals(folderName));
if (found)
{
var containerId = children.Single(x => x.Name.InvariantEquals(folderName)).Id;
return _contentTypeService.GetContainer(containerId);
}
var tryCreateFolder = _contentTypeService.CreateContainer(current.Id, folderName);
if (tryCreateFolder == false)
{
_logger.Error<PackagingService>(tryCreateFolder.Exception, "Could not create folder: {FolderName}", folderName);
throw tryCreateFolder.Exception;
}
return _contentTypeService.GetContainer(tryCreateFolder.Result.Entity.Id);
}
private IContentType CreateContentTypeFromXml(XElement documentType, IReadOnlyDictionary<string, IContentType> importedContentTypes)
{
var infoElement = documentType.Element("Info");
//Name of the master corresponds to the parent
var masterElement = infoElement.Element("Master");
IContentType parent = null;
if (masterElement != null)
{
var masterAlias = masterElement.Value;
parent = importedContentTypes.ContainsKey(masterAlias)
? importedContentTypes[masterAlias]
: _contentTypeService.Get(masterAlias);
}
var alias = infoElement.Element("Alias").Value;
var contentType = parent == null
? new ContentType(-1) { Alias = alias }
: new ContentType(parent, alias);
if (parent != null)
contentType.AddContentType(parent);
return UpdateContentTypeFromXml(documentType, contentType, importedContentTypes);
}
private IContentType UpdateContentTypeFromXml(XElement documentType, IContentType contentType, IReadOnlyDictionary<string, IContentType> importedContentTypes)
{
var infoElement = documentType.Element("Info");
var defaultTemplateElement = infoElement.Element("DefaultTemplate");
contentType.Name = infoElement.Element("Name").Value;
contentType.Icon = infoElement.Element("Icon").Value;
contentType.Thumbnail = infoElement.Element("Thumbnail").Value;
contentType.Description = infoElement.Element("Description").Value;
//NOTE AllowAtRoot is a new property in the package xml so we need to verify it exists before using it.
var allowAtRoot = infoElement.Element("AllowAtRoot");
if (allowAtRoot != null)
contentType.AllowedAsRoot = allowAtRoot.Value.InvariantEquals("true");
//NOTE IsListView is a new property in the package xml so we need to verify it exists before using it.
var isListView = infoElement.Element("IsListView");
if (isListView != null)
contentType.IsContainer = isListView.Value.InvariantEquals("true");
var isElement = infoElement.Element("IsElement");
if (isElement != null)
contentType.IsElement = isElement.Value.InvariantEquals("true");
//Name of the master corresponds to the parent and we need to ensure that the Parent Id is set
var masterElement = infoElement.Element("Master");
if (masterElement != null)
{
var masterAlias = masterElement.Value;
IContentType parent = importedContentTypes.ContainsKey(masterAlias)
? importedContentTypes[masterAlias]
: _contentTypeService.Get(masterAlias);
contentType.SetParent(parent);
}
//Update Compositions on the ContentType to ensure that they are as is defined in the package xml
var compositionsElement = infoElement.Element("Compositions");
if (compositionsElement != null && compositionsElement.HasElements)
{
var compositions = compositionsElement.Elements("Composition");
if (compositions.Any())
{
foreach (var composition in compositions)
{
var compositionAlias = composition.Value;
var compositionContentType = importedContentTypes.ContainsKey(compositionAlias)
? importedContentTypes[compositionAlias]
: _contentTypeService.Get(compositionAlias);
var added = contentType.AddContentType(compositionContentType);
}
}
}
UpdateContentTypesAllowedTemplates(contentType, infoElement.Element("AllowedTemplates"), defaultTemplateElement);
UpdateContentTypesTabs(contentType, documentType.Element("Tabs"));
UpdateContentTypesProperties(contentType, documentType.Element("GenericProperties"));
return contentType;
}
private void UpdateContentTypesAllowedTemplates(IContentType contentType,
XElement allowedTemplatesElement, XElement defaultTemplateElement)
{
if (allowedTemplatesElement != null && allowedTemplatesElement.Elements("Template").Any())
{
var allowedTemplates = contentType.AllowedTemplates.ToList();
foreach (var templateElement in allowedTemplatesElement.Elements("Template"))
{
var alias = templateElement.Value;
var template = _fileService.GetTemplate(alias.ToSafeAlias());
if (template != null)
{
if (allowedTemplates.Any(x => x.Id == template.Id)) continue;
allowedTemplates.Add(template);
}
else
{
_logger.Warn<PackagingService>("Packager: Error handling allowed templates. Template with alias '{TemplateAlias}' could not be found.", alias);
}
}
contentType.AllowedTemplates = allowedTemplates;
}
if (string.IsNullOrEmpty((string)defaultTemplateElement) == false)
{
var defaultTemplate = _fileService.GetTemplate(defaultTemplateElement.Value.ToSafeAlias());
if (defaultTemplate != null)
{
contentType.SetDefaultTemplate(defaultTemplate);
}
else
{
_logger.Warn<PackagingService>("Packager: Error handling default template. Default template with alias '{DefaultTemplateAlias}' could not be found.", defaultTemplateElement.Value);
}
}
}
private void UpdateContentTypesTabs(IContentType contentType, XElement tabElement)
{
if (tabElement == null)
return;
var tabs = tabElement.Elements("Tab");
foreach (var tab in tabs)
{
var id = tab.Element("Id").Value;//Do we need to use this for tracking?
var caption = tab.Element("Caption").Value;
if (contentType.PropertyGroups.Contains(caption) == false)
{
contentType.AddPropertyGroup(caption);
}
int sortOrder;
if (tab.Element("SortOrder") != null && int.TryParse(tab.Element("SortOrder").Value, out sortOrder))
{
// Override the sort order with the imported value
contentType.PropertyGroups[caption].SortOrder = sortOrder;
}
}
}
private void UpdateContentTypesProperties(IContentType contentType, XElement genericPropertiesElement)
{
var properties = genericPropertiesElement.Elements("GenericProperty");
foreach (var property in properties)
{
var dataTypeDefinitionId = new Guid(property.Element("Definition").Value);//Unique Id for a DataTypeDefinition
var dataTypeDefinition = _dataTypeService.GetDataType(dataTypeDefinitionId);
//If no DataTypeDefinition with the guid from the xml wasn't found OR the ControlId on the DataTypeDefinition didn't match the DataType Id
//We look up a DataTypeDefinition that matches
//get the alias as a string for use below
var propertyEditorAlias = property.Element("Type").Value.Trim();
//If no DataTypeDefinition with the guid from the xml wasn't found OR the ControlId on the DataTypeDefinition didn't match the DataType Id
//We look up a DataTypeDefinition that matches
if (dataTypeDefinition == null)
{
var dataTypeDefinitions = _dataTypeService.GetByEditorAlias(propertyEditorAlias);
if (dataTypeDefinitions != null && dataTypeDefinitions.Any())
{
dataTypeDefinition = dataTypeDefinitions.FirstOrDefault();
}
}
else if (dataTypeDefinition.EditorAlias != propertyEditorAlias)
{
var dataTypeDefinitions = _dataTypeService.GetByEditorAlias(propertyEditorAlias);
if (dataTypeDefinitions != null && dataTypeDefinitions.Any())
{
dataTypeDefinition = dataTypeDefinitions.FirstOrDefault();
}
}
// For backwards compatibility, if no datatype with that ID can be found, we're letting this fail silently.
// This means that the property will not be created.
if (dataTypeDefinition == null)
{
// TODO: We should expose this to the UI during install!
_logger.Warn<PackagingService>("Packager: Error handling creation of PropertyType '{PropertyType}'. Could not find DataTypeDefintion with unique id '{DataTypeDefinitionId}' nor one referencing the DataType with a property editor alias (or legacy control id) '{PropertyEditorAlias}'. Did the package creator forget to package up custom datatypes? This property will be converted to a label/readonly editor if one exists.",
property.Element("Name").Value, dataTypeDefinitionId, property.Element("Type").Value.Trim());
//convert to a label!
dataTypeDefinition = _dataTypeService.GetByEditorAlias(Constants.PropertyEditors.Aliases.Label).FirstOrDefault();
//if for some odd reason this isn't there then ignore
if (dataTypeDefinition == null) continue;
}
var sortOrder = 0;
var sortOrderElement = property.Element("SortOrder");
if (sortOrderElement != null)
int.TryParse(sortOrderElement.Value, out sortOrder);
var propertyType = new PropertyType(dataTypeDefinition, property.Element("Alias").Value)
{
Name = property.Element("Name").Value,
Description = (string)property.Element("Description"),
Mandatory = property.Element("Mandatory") != null ? property.Element("Mandatory").Value.ToLowerInvariant().Equals("true") : false,
ValidationRegExp = (string)property.Element("Validation"),
SortOrder = sortOrder
};
var tab = (string)property.Element("Tab");
if (string.IsNullOrEmpty(tab))
{
contentType.AddPropertyType(propertyType);
}
else
{
contentType.AddPropertyType(propertyType, tab);
}
}
}
private IContentType UpdateContentTypesStructure(IContentType contentType, XElement structureElement, IReadOnlyDictionary<string, IContentType> importedContentTypes)
{
var allowedChildren = contentType.AllowedContentTypes.ToList();
int sortOrder = allowedChildren.Any() ? allowedChildren.Last().SortOrder : 0;
foreach (var element in structureElement.Elements("DocumentType"))
{
var alias = element.Value;
var allowedChild = importedContentTypes.ContainsKey(alias) ? importedContentTypes[alias] : _contentTypeService.Get(alias);
if (allowedChild == null)
{
_logger.Warn<PackagingService>(
"Packager: Error handling DocumentType structure. DocumentType with alias '{DoctypeAlias}' could not be found and was not added to the structure for '{DoctypeStructureAlias}'.",
alias, contentType.Alias);
continue;
}
if (allowedChildren.Any(x => x.Id.IsValueCreated && x.Id.Value == allowedChild.Id)) continue;
allowedChildren.Add(new ContentTypeSort(new Lazy<int>(() => allowedChild.Id), sortOrder, allowedChild.Alias));
sortOrder++;
}
contentType.AllowedContentTypes = allowedChildren;
return contentType;
}
/// <summary>
/// Used during Content import to ensure that the ContentType of a content item exists
/// </summary>
/// <param name="contentTypeAlias"></param>
/// <returns></returns>
private IContentType FindContentTypeByAlias(string contentTypeAlias)
{
var contentType = _contentTypeService.Get(contentTypeAlias);
if (contentType == null)
throw new Exception($"ContentType matching the passed in Alias: '{contentTypeAlias}' was null");
return contentType;
}
#endregion
#region DataTypes
/// <summary>
/// Imports and saves package xml as <see cref="IDataType"/>
/// </summary>
/// <param name="dataTypeElements">Xml to import</param>
/// <param name="userId">Optional id of the user</param>
/// <returns>An enumerable list of generated DataTypeDefinitions</returns>
public IEnumerable<IDataType> ImportDataTypes(IReadOnlyCollection<XElement> dataTypeElements, int userId)
{
var dataTypes = new List<IDataType>();
var importedFolders = CreateDataTypeFolderStructure(dataTypeElements);
foreach (var dataTypeElement in dataTypeElements)
{
var dataTypeDefinitionName = dataTypeElement.AttributeValue<string>("Name");
var dataTypeDefinitionId = dataTypeElement.AttributeValue<Guid>("Definition");
var databaseTypeAttribute = dataTypeElement.Attribute("DatabaseType");
var parentId = -1;
if (importedFolders.ContainsKey(dataTypeDefinitionName))
parentId = importedFolders[dataTypeDefinitionName];
var definition = _dataTypeService.GetDataType(dataTypeDefinitionId);
//If the datatype definition doesn't already exist we create a new according to the one in the package xml
if (definition == null)
{
var databaseType = databaseTypeAttribute?.Value.EnumParse<ValueStorageType>(true) ?? ValueStorageType.Ntext;
// the Id field is actually the string property editor Alias
// however, the actual editor with this alias could be installed with the package, and
// therefore not yet part of the _propertyEditors collection, so we cannot try and get
// the actual editor - going with a void editor
var editorAlias = dataTypeElement.Attribute("Id")?.Value?.Trim();
if (!_propertyEditors.TryGet(editorAlias, out var editor))
editor = new VoidEditor(_logger) { Alias = editorAlias };
var dataType = new DataType(editor)
{
Key = dataTypeDefinitionId,
Name = dataTypeDefinitionName,
DatabaseType = databaseType,
ParentId = parentId
};
var configurationAttributeValue = dataTypeElement.Attribute("Configuration")?.Value;
if (!string.IsNullOrWhiteSpace(configurationAttributeValue))
dataType.Configuration = editor.GetConfigurationEditor().FromDatabase(configurationAttributeValue);
dataTypes.Add(dataType);
}
else
{
definition.ParentId = parentId;
_dataTypeService.Save(definition, userId);
}
}
if (dataTypes.Count > 0)
{
_dataTypeService.Save(dataTypes, userId, true);
}
return dataTypes;
}
private Dictionary<string, int> CreateDataTypeFolderStructure(IEnumerable<XElement> datatypeElements)
{
var importedFolders = new Dictionary<string, int>();
foreach (var datatypeElement in datatypeElements)
{
var foldersAttribute = datatypeElement.Attribute("Folders");
if (foldersAttribute != null)
{
var name = datatypeElement.Attribute("Name").Value;
var folders = foldersAttribute.Value.Split('/');
var rootFolder = HttpUtility.UrlDecode(folders[0]);
//there will only be a single result by name for level 1 (root) containers
var current = _dataTypeService.GetContainers(rootFolder, 1).FirstOrDefault();
if (current == null)
{
var tryCreateFolder = _dataTypeService.CreateContainer(-1, rootFolder);
if (tryCreateFolder == false)
{
_logger.Error<PackagingService>(tryCreateFolder.Exception, "Could not create folder: {FolderName}", rootFolder);
throw tryCreateFolder.Exception;
}
current = _dataTypeService.GetContainer(tryCreateFolder.Result.Entity.Id);
}
importedFolders.Add(name, current.Id);
for (var i = 1; i < folders.Length; i++)
{
var folderName = HttpUtility.UrlDecode(folders[i]);
current = CreateDataTypeChildFolder(folderName, current);
importedFolders[name] = current.Id;
}
}
}
return importedFolders;
}
private EntityContainer CreateDataTypeChildFolder(string folderName, IUmbracoEntity current)
{
var children = _entityService.GetChildren(current.Id).ToArray();
var found = children.Any(x => x.Name.InvariantEquals(folderName));
if (found)
{
var containerId = children.Single(x => x.Name.InvariantEquals(folderName)).Id;
return _dataTypeService.GetContainer(containerId);
}
var tryCreateFolder = _dataTypeService.CreateContainer(current.Id, folderName);
if (tryCreateFolder == false)
{
_logger.Error<PackagingService>(tryCreateFolder.Exception, "Could not create folder: {FolderName}", folderName);
throw tryCreateFolder.Exception;
}
return _dataTypeService.GetContainer(tryCreateFolder.Result.Entity.Id);
}
#endregion
#region Dictionary Items
/// <summary>
/// Imports and saves the 'DictionaryItems' part of the package xml as a list of <see cref="IDictionaryItem"/>
/// </summary>
/// <param name="dictionaryItemElementList">Xml to import</param>
/// <param name="userId"></param>
/// <returns>An enumerable list of dictionary items</returns>
public IEnumerable<IDictionaryItem> ImportDictionaryItems(IEnumerable<XElement> dictionaryItemElementList, int userId)
{
var languages = _localizationService.GetAllLanguages().ToList();
return ImportDictionaryItems(dictionaryItemElementList, languages, null, userId);
}
private IEnumerable<IDictionaryItem> ImportDictionaryItems(IEnumerable<XElement> dictionaryItemElementList, List<ILanguage> languages, Guid? parentId, int userId)
{
var items = new List<IDictionaryItem>();
foreach (var dictionaryItemElement in dictionaryItemElementList)
items.AddRange(ImportDictionaryItem(dictionaryItemElement, languages, parentId, userId));
return items;
}
private IEnumerable<IDictionaryItem> ImportDictionaryItem(XElement dictionaryItemElement, List<ILanguage> languages, Guid? parentId, int userId)
{
var items = new List<IDictionaryItem>();
IDictionaryItem dictionaryItem;
var key = dictionaryItemElement.Attribute("Key").Value;
if (_localizationService.DictionaryItemExists(key))
dictionaryItem = GetAndUpdateDictionaryItem(key, dictionaryItemElement, languages);
else
dictionaryItem = CreateNewDictionaryItem(key, dictionaryItemElement, languages, parentId);
_localizationService.Save(dictionaryItem, userId);
items.Add(dictionaryItem);
items.AddRange(ImportDictionaryItems(dictionaryItemElement.Elements("DictionaryItem"), languages, dictionaryItem.Key, userId));
return items;
}
private IDictionaryItem GetAndUpdateDictionaryItem(string key, XElement dictionaryItemElement, List<ILanguage> languages)
{
var dictionaryItem = _localizationService.GetDictionaryItemByKey(key);
var translations = dictionaryItem.Translations.ToList();
foreach (var valueElement in dictionaryItemElement.Elements("Value").Where(v => DictionaryValueIsNew(translations, v)))
AddDictionaryTranslation(translations, valueElement, languages);
dictionaryItem.Translations = translations;
return dictionaryItem;
}
private static DictionaryItem CreateNewDictionaryItem(string key, XElement dictionaryItemElement, List<ILanguage> languages, Guid? parentId)
{
var dictionaryItem = parentId.HasValue ? new DictionaryItem(parentId.Value, key) : new DictionaryItem(key);
var translations = new List<IDictionaryTranslation>();
foreach (var valueElement in dictionaryItemElement.Elements("Value"))
AddDictionaryTranslation(translations, valueElement, languages);
dictionaryItem.Translations = translations;
return dictionaryItem;
}
private static bool DictionaryValueIsNew(IEnumerable<IDictionaryTranslation> translations, XElement valueElement)
{
return translations.All(t =>
String.Compare(t.Language.IsoCode, valueElement.Attribute("LanguageCultureAlias").Value,
StringComparison.InvariantCultureIgnoreCase) != 0
);
}
private static void AddDictionaryTranslation(ICollection<IDictionaryTranslation> translations, XElement valueElement, IEnumerable<ILanguage> languages)
{
var languageId = valueElement.Attribute("LanguageCultureAlias").Value;
var language = languages.SingleOrDefault(l => l.IsoCode == languageId);
if (language == null)
return;
var translation = new DictionaryTranslation(language, valueElement.Value);
translations.Add(translation);
}
#endregion
#region Languages
/// <summary>
/// Imports and saves the 'Languages' part of a package xml as a list of <see cref="ILanguage"/>
/// </summary>
/// <param name="languageElements">Xml to import</param>
/// <param name="userId">Optional id of the User performing the operation</param>
/// <returns>An enumerable list of generated languages</returns>
public IEnumerable<ILanguage> ImportLanguages(IEnumerable<XElement> languageElements, int userId)
{
var list = new List<ILanguage>();
foreach (var languageElement in languageElements)
{
var isoCode = languageElement.AttributeValue<string>("CultureAlias");
var existingLanguage = _localizationService.GetLanguageByIsoCode(isoCode);
if (existingLanguage != null) continue;
var langauge = new Language(isoCode)
{
CultureName = languageElement.AttributeValue<string>("FriendlyName")
};
_localizationService.Save(langauge, userId);
list.Add(langauge);
}
return list;
}
#endregion
#region Macros
/// <summary>
/// Imports and saves the 'Macros' part of a package xml as a list of <see cref="IMacro"/>
/// </summary>
/// <param name="macroElements">Xml to import</param>
/// <param name="userId">Optional id of the User performing the operation</param>
/// <returns></returns>
public IEnumerable<IMacro> ImportMacros(IEnumerable<XElement> macroElements, int userId)
{
var macros = macroElements.Select(ParseMacroElement).ToList();
foreach (var macro in macros)
{
var existing = _macroService.GetByAlias(macro.Alias);
if (existing != null)
macro.Id = existing.Id;
_macroService.Save(macro, userId);
}
return macros;
}
private IMacro ParseMacroElement(XElement macroElement)
{
var macroName = macroElement.Element("name").Value;
var macroAlias = macroElement.Element("alias").Value;
var macroType = Enum<MacroTypes>.Parse(macroElement.Element("macroType").Value);
var macroSource = macroElement.Element("macroSource").Value;
//Following xml elements are treated as nullable properties
var useInEditorElement = macroElement.Element("useInEditor");
var useInEditor = false;
if (useInEditorElement != null && string.IsNullOrEmpty((string)useInEditorElement) == false)
{
useInEditor = bool.Parse(useInEditorElement.Value);
}
var cacheDurationElement = macroElement.Element("refreshRate");
var cacheDuration = 0;
if (cacheDurationElement != null && string.IsNullOrEmpty((string)cacheDurationElement) == false)
{
cacheDuration = int.Parse(cacheDurationElement.Value);
}
var cacheByMemberElement = macroElement.Element("cacheByMember");
var cacheByMember = false;
if (cacheByMemberElement != null && string.IsNullOrEmpty((string)cacheByMemberElement) == false)
{
cacheByMember = bool.Parse(cacheByMemberElement.Value);
}
var cacheByPageElement = macroElement.Element("cacheByPage");
var cacheByPage = false;
if (cacheByPageElement != null && string.IsNullOrEmpty((string)cacheByPageElement) == false)
{
cacheByPage = bool.Parse(cacheByPageElement.Value);
}
var dontRenderElement = macroElement.Element("dontRender");
var dontRender = true;
if (dontRenderElement != null && string.IsNullOrEmpty((string)dontRenderElement) == false)
{
dontRender = bool.Parse(dontRenderElement.Value);
}
var existingMacro = _macroService.GetByAlias(macroAlias) as Macro;
var macro = existingMacro ?? new Macro(macroAlias, macroName, macroSource, macroType,
cacheByPage, cacheByMember, dontRender, useInEditor, cacheDuration);
var properties = macroElement.Element("properties");
if (properties != null)
{
int sortOrder = 0;
foreach (var property in properties.Elements())
{
var propertyName = property.Attribute("name").Value;
var propertyAlias = property.Attribute("alias").Value;
var editorAlias = property.Attribute("propertyType").Value;
var sortOrderAttribute = property.Attribute("sortOrder");
if (sortOrderAttribute != null)
{
sortOrder = int.Parse(sortOrderAttribute.Value);
}
if (macro.Properties.Values.Any(x => string.Equals(x.Alias, propertyAlias, StringComparison.OrdinalIgnoreCase))) continue;
macro.Properties.Add(new MacroProperty(propertyAlias, propertyName, sortOrder, editorAlias));
sortOrder++;
}
}
return macro;
}
#endregion
#region Stylesheets
public IEnumerable<IFile> ImportStylesheets(IEnumerable<XElement> stylesheetElements, int userId)
{
var result = new List<IFile>();
foreach (var n in stylesheetElements)
{
var stylesheetName = n.Element("Name")?.Value;
if (stylesheetName.IsNullOrWhiteSpace()) continue;
var s = _fileService.GetStylesheetByName(stylesheetName);
if (s == null)
{
var fileName = n.Element("FileName")?.Value;
if (fileName == null) continue;
var content = n.Element("Content")?.Value;
if (content == null) continue;
s = new Stylesheet(fileName) { Content = content };
_fileService.SaveStylesheet(s);
}
foreach (var prop in n.XPathSelectElements("Properties/Property"))
{
var alias = prop.Element("Alias")?.Value;
var sp = s.Properties.SingleOrDefault(p => p != null && p.Alias == alias);
var name = prop.Element("Name")?.Value;
if (sp == null)
{
sp = new StylesheetProperty(name, "#" + name.ToSafeAlias(), "");
s.AddProperty(sp);
}
else
{
//sp.Text = name;
//Changing the name requires removing the current property and then adding another new one
if (sp.Name != name)
{
s.RemoveProperty(sp.Name);
var newProp = new StylesheetProperty(name, sp.Alias, sp.Value);
s.AddProperty(newProp);
sp = newProp;
}
}
sp.Alias = alias;
sp.Value = prop.Element("Value")?.Value;
}
_fileService.SaveStylesheet(s);
result.Add(s);
}
return result;
}
#endregion
#region Templates
public IEnumerable<ITemplate> ImportTemplate(XElement templateElement, int userId)
{
return ImportTemplates(new[] { templateElement }, userId);
}
/// <summary>
/// Imports and saves package xml as <see cref="ITemplate"/>
/// </summary>
/// <param name="templateElements">Xml to import</param>
/// <param name="userId">Optional user id</param>
/// <returns>An enumerable list of generated Templates</returns>
public IEnumerable<ITemplate> ImportTemplates(IReadOnlyCollection<XElement> templateElements, int userId)
{
var templates = new List<ITemplate>();
var graph = new TopoGraph<string, TopoGraph.Node<string, XElement>>(x => x.Key, x => x.Dependencies);
foreach (var tempElement in templateElements)
{
var dependencies = new List<string>();
var elementCopy = tempElement;
//Ensure that the Master of the current template is part of the import, otherwise we ignore this dependency as part of the dependency sorting.
if (string.IsNullOrEmpty((string)elementCopy.Element("Master")) == false &&
templateElements.Any(x => (string)x.Element("Alias") == (string)elementCopy.Element("Master")))
{
dependencies.Add((string)elementCopy.Element("Master"));
}
else if (string.IsNullOrEmpty((string)elementCopy.Element("Master")) == false &&
templateElements.Any(x => (string)x.Element("Alias") == (string)elementCopy.Element("Master")) == false)
{
_logger.Info<PackageDataInstallation>(
"Template '{TemplateAlias}' has an invalid Master '{TemplateMaster}', so the reference has been ignored.",
(string)elementCopy.Element("Alias"),
(string)elementCopy.Element("Master"));
}
graph.AddItem(TopoGraph.CreateNode((string)elementCopy.Element("Alias"), elementCopy, dependencies));
}
//Sort templates by dependencies to a potential master template
var sorted = graph.GetSortedItems();
foreach (var item in sorted)
{
var templateElement = item.Item;
var templateName = templateElement.Element("Name").Value;
var alias = templateElement.Element("Alias").Value;
var design = templateElement.Element("Design").Value;
var masterElement = templateElement.Element("Master");
var existingTemplate = _fileService.GetTemplate(alias) as Template;
var template = existingTemplate ?? new Template(templateName, alias);
template.Content = design;
if (masterElement != null && string.IsNullOrEmpty((string)masterElement) == false)
{
template.MasterTemplateAlias = masterElement.Value;
var masterTemplate = templates.FirstOrDefault(x => x.Alias == masterElement.Value);
if (masterTemplate != null)
template.MasterTemplateId = new Lazy<int>(() => masterTemplate.Id);
}
templates.Add(template);
}
if (templates.Any())
_fileService.SaveTemplate(templates, userId);
return templates;
}
private string ViewPath(string alias)
{
return SystemDirectories.MvcViews + "/" + alias.Replace(" ", "") + ".cshtml";
}
#endregion
}
}
| mit |
hisahayashi/ofxArdPulseSensor | src/ofxArdPulseSensor.cpp | 3549 | //
// ofxArdPulseSensor.cpp
// ------------------------
//
// Created by hisahayashi on 2015/01/27.
// Copyright (c) 2015 hisahayashi.
//
#include "ofxArdPulseSensor.h"
//--------------------------------------------------------------
void ofxArdPulseSensor::setup(){
// Get serial port
vector <ofSerialDeviceInfo> deviceList = serial.getDeviceList();
string deviceLine, serialID;
// Get port name
for( int i = 0; i < deviceList.size(); i++ ){
deviceLine = deviceList[i].getDeviceName().c_str();
if( deviceLine.substr(0,12) == "tty.usbmodem" ){
serialID = "/dev/" + deviceLine;
ofLog() << "Arduino serial = " << serialID << endl;
}
}
// Connect to Arduino
serial.setup(serialID, 115200);
// Initialize the parameter
bSetupArduino = false;
pulseVal = 0;
BPM = 0;
IBI = 800;
}
//--------------------------------------------------------------
void ofxArdPulseSensor::setupArduino(){
ofLog() << "ofSerial Setup";
// Connected flag
bSetupArduino = true;
}
//--------------------------------------------------------------
void ofxArdPulseSensor::update(){
if( serial.isInitialized() && !bSetupArduino ){
setupArduino();
}
// Connected process
if( bSetupArduino ){
updateSerial();
}
}
//--------------------------------------------------------------
void ofxArdPulseSensor::updateSerial(){
int len = SERIAL_LEN - 1;
nBytesRead = 0;
int nRead = 0;
char bytesRead[len];
unsigned char bytesReturned[len];
memset(bytesReturned, 0, len);
memset(bytesReadString, 0, SERIAL_LEN);
// Read to data received by the serial communication
while ((nRead = serial.readBytes(bytesReturned, len)) > 0) {
nBytesRead = nRead;
};
if (nBytesRead > 0) {
memcpy(bytesReadString, bytesReturned, len);
string str = bytesReadString;
// Perth the byte
vector< string > splitString = ofSplitString( str, "\n" );
for( int i = 0; i < splitString.size(); i++ ){
if( splitString[i] != "" ){
string spStr = splitString[i];
char spIndex = ofToChar(spStr.substr(0,1));
int spNum = ofToInt( spStr.substr(1) );
switch( spIndex ){
case 'S':
// ofLog() << "------ Pulse sensor value";
pulseVal = spNum;
break;
case 'B':
// ofLog() << "------ BPM";
if( spNum > 0 ){
BPM = spNum;
if( BPM > 150 ) BPM = 150;
if( BPM < 50 ) BPM = 50;
}
break;
case 'Q':
// ofLog() << "------ IBI";
if( spNum > 0 ) IBI = spNum;
break;
default:
break;
}
// ofLog() << "i: " << i << ", spNum: " << ofToString( spNum ) << ", spIndex: " << ofToString(spIndex);
}
}
}
}
//--------------------------------------------------------------
PulseData ofxArdPulseSensor::getSensor(){
PulseData data = {
bSetupArduino,
pulseVal,
BPM,
IBI
};
return data;
}
| mit |
eggie5/bitchallenge | models/init.rb | 18 | require 'sequel'
| mit |
igorkasyanchuk/rails_db | lib/rails/routes.rb | 185 | module ActionDispatch::Routing
class Mapper
def mount_rails_db_routes(options = {})
mount RailsDb::Engine => '/rails/db', :as => options[:as] || 'rails_db'
end
end
end | mit |
Coolhis/wedding-web | js/contact_me.js | 2648 | // Contact Form Scripts
$(function() {
$("#contactForm input,#contactForm textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
event.preventDefault(); // prevent default submit behaviour
// get values from FORM
var name = $("input#name").val();
var firstName = name; // For Success/Failure Message
// Check for white space in name for Success/Fail message
if (firstName.indexOf(' ') >= 0) {
firstName = name.split(' ').slice(0, -1).join(' ');
}
$.ajax({
url: "././mail/contact_me.php",
type: "POST",
data: {
name: name
},
cache: false,
success: function() {
// Success message
$('#success').html("<div class='alert alert-success'>");
$('#success > .alert-success').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×")
.append("</button>");
$('#success > .alert-success')
.append("<strong>Skvělé, těšíme se na Vás!</strong>");
$('#success > .alert-success')
.append('</div>');
//clear all fields
$('#contactForm').trigger("reset");
},
error: function() {
// Fail message
$('#success').html("<div class='alert alert-danger'>");
$('#success > .alert-danger').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×")
.append("</button>");
$('#success > .alert-danger').append($("<strong>").text("Litujeme, ale potvrzení se nepodařilo odeslat. Zkuste to prosím později!"));
$('#success > .alert-danger').append('</div>');
//clear all fields
$('#contactForm').trigger("reset");
},
});
},
filter: function() {
return $(this).is(":visible");
},
});
$("a[data-toggle=\"tab\"]").click(function(e) {
e.preventDefault();
$(this).tab("show");
});
});
/*When clicking on Full hide fail/success boxes */
$('#name').focus(function() {
$('#success').html('');
});
| mit |
mathiasbynens/unicode-data | 6.1.0/blocks/Devanagari-Extended-code-points.js | 366 | // All code points in the Devanagari Extended block as per Unicode v6.1.0:
[
0xA8E0,
0xA8E1,
0xA8E2,
0xA8E3,
0xA8E4,
0xA8E5,
0xA8E6,
0xA8E7,
0xA8E8,
0xA8E9,
0xA8EA,
0xA8EB,
0xA8EC,
0xA8ED,
0xA8EE,
0xA8EF,
0xA8F0,
0xA8F1,
0xA8F2,
0xA8F3,
0xA8F4,
0xA8F5,
0xA8F6,
0xA8F7,
0xA8F8,
0xA8F9,
0xA8FA,
0xA8FB,
0xA8FC,
0xA8FD,
0xA8FE,
0xA8FF
]; | mit |
mcdee/etherwallet | app/scripts/translations/sk.js | 64102 |
// Slovak
'use strict';
var sk = function() {}
sk.code = 'sk';
sk.data = {
HELP_2a_Title : 'How do I save/backup my wallet? ',
/* New Generics */
x_CancelReplaceTx : 'Cancel or Replace Transaction',
x_CancelTx : 'Cancel Transaction',
x_PasswordDesc : 'This password * encrypts * your private key. This does not act as a seed to generate your keys. **You will need this password + your private key to unlock your wallet.**',
x_ReadMore : 'Read More',
x_ReplaceTx : 'Replace Transaction',
x_TransHash : 'Transaction Hash',
x_TXFee : 'TX Fee',
x_TxHash : 'TX Hash',
/* Check TX Status */
NAV_CheckTxStatus : 'Check TX Status',
NAV_TxStatus : 'TX Status',
tx_Details : 'Transaction Details',
tx_Summary : 'During times of high volume (like during ICOs) transactions can be pending for hours, if not days. This tool aims to give you the ability to find and "cancel" / replace these TXs. ** This is not typically something you can do. It should not be relied upon & will only work when the TX Pools are full. [Please, read about this tool here.](https://myetherwallet.groovehq.com/knowledge_base/topics/how-can-i-check-on-the-status-of-my-transaction-can-i-cancel-override-overwrite-replace-or-do-anything-once-a-transaction-has-been-sent)**',
tx_notFound : 'Transaction Not Found',
tx_notFound_1 : 'This TX cannot be found in the TX Pool of the node you are connected to.',
tx_notFound_2 : 'If you just sent the transaction, please wait 15 seconds and press the "Check TX Status" button again. ',
tx_notFound_3 : 'It could still be in the TX Pool of a different node, waiting to be mined.',
tx_notFound_4 : 'Please use the dropdown in the top-right & select a different ETH node (e.g. `ETH (Etherscan.io)` or `ETH (Infura.io)` or `ETH (MyEtherWallet)`) and check again.',
tx_foundInPending : 'Pending Transaction Found',
tx_foundInPending_1 : 'Your transaction was located in the TX Pool of the node you are connected to. ',
tx_foundInPending_2 : 'It is currently pending (waiting to be mined). ',
tx_foundInPending_3 : 'There is a chance you can "cancel" or replace this transaction. Unlock your wallet below.',
tx_FoundOnChain : 'Transaction Found',
tx_FoundOnChain_1 : 'Your transaction was successfully mined and is on the blockchain.',
tx_FoundOnChain_2 : '**If you see a red `( ! )`, a `BAD INSTRUCTION` or `OUT OF GAS` error message**, it means that the transaction was not successfully *sent*. You cannot cancel or replace this transaction. Instead, send a new transaction. If you received an "Out of Gas" error, you should double the gas limit you specified originally.',
tx_FoundOnChain_3 : '**If you do not see any errors, your transaction was successfully sent.** Your ETH or Tokens are where you sent them. If you cannot see this ETH or Tokens credited in your other wallet / exchange account, and it has been 24+ hours since you sent, please [contact that service](https://myetherwallet.groovehq.com/knowledge_base/topics/i-have-a-question-but-its-not-about-myetherwallet-dot-com-what-do-i-do). Send them the *link* to your transaction and ask them, nicely, to look into your situation.',
/* Gen Wallet Updates */
GEN_Help_1 : 'Use your',
GEN_Help_2 : 'to access your account.',
GEN_Help_3 : 'Your device * is * your wallet.',
GEN_Help_4 : 'Guides & FAQ',
GEN_Help_5 : 'How to Create a Wallet',
GEN_Help_6 : 'Getting Started',
GEN_Help_7 : 'Keep it safe · Make a backup · Don\'t share it with anyone · Don\'t lose it · It cannot be recovered if you lose it.',
GEN_Help_8 : 'Not Downloading a File? ',
GEN_Help_9 : 'Try using Google Chrome ',
GEN_Help_10 : 'Right click & save file as. Filename: ',
GEN_Help_11 : 'Don\'t open this file on your computer ',
GEN_Help_12 : 'Use it to unlock your wallet via MyEtherWallet (or Mist, Geth, Parity and other wallet clients.) ',
GEN_Help_13 : 'How to Back Up Your Keystore File ',
GEN_Help_14 : 'What are these Different Formats? ',
GEN_Help_15 : 'Preventing loss & theft of your funds.',
GEN_Help_16 : 'What are these Different Formats?',
GEN_Help_17 : 'Why Should I?',
GEN_Help_18 : 'To have a secondary backup.',
GEN_Help_19 : 'In case you ever forget your password.',
GEN_Help_20 : 'Cold Storage',
GET_ConfButton : 'I understand. Continue.',
GEN_Label_5 : 'Save Your `Private Key`. ',
GEN_Unlock : 'Unlock your wallet to see your address',
GAS_PRICE_Desc : 'Gas Price is the amount you pay per unit of gas. `TX fee = gas price * gas limit` & is paid to miners for including your TX in a block. Higher the gas price = faster transaction, but more expensive. Default is `21 GWEI`.',
GAS_LIMIT_Desc : 'Gas limit is the amount of gas to send with your TX. `TX fee` = gas price * gas limit & is paid to miners for including your TX in a block. Increasing this number will not get your TX mined faster. Sending ETH = `21000`. Sending Tokens = ~`200000`.',
NONCE_Desc : 'The nonce is the number of transactions sent from a given address. It ensures transactions are sent in order & not more than once.',
TXFEE_Desc : 'The TX Fee is paid to miners for including your TX in a block. Is is the `gas limit` * `gas price`. [You can convert GWEI -> ETH here](https://www.myetherwallet.com/helpers.html)',
/* Navigation*/
NAV_AddWallet : 'Pridať peňaženku ',
NAV_BulkGenerate : 'Bulk Generate ',
NAV_Contact : 'Kontakt ',
NAV_Contracts : 'Contracts ',
NAV_DeployContract : 'Deploy Contract ',
NAV_ENS : 'ENS',
NAV_GenerateWallet_alt : 'New Wallet ',
NAV_GenerateWallet : 'Vytvoriť peňaženku ',
NAV_Help : 'Pomoc ',
NAV_InteractContract : 'Interact with Contract ',
NAV_Multisig : 'Multisig ',
NAV_MyWallets : 'Moje peňaženky ',
NAV_Offline : 'Poslať Offline ',
NAV_SendEther : 'Poslať Ether a Tokens ',
NAV_SendTokens : 'Poslať Tokens ',
NAV_SignMsg : 'Sign Message ',
NAV_Swap : 'Swap ',
NAV_ViewWallet : 'Zobraziť detaily peňaženky ',
NAV_YourWallets : 'Vaše Peňaženky ',
/* General */
x_Access : 'Access ',
x_AddessDesc : 'Your Address can also be known as you `Account #` or your `Public Key`. It is what you share with people so they can send you Ether or Tokens. Find the colorful address icon. Make sure it matches your paper wallet & whenever you enter your address somewhere. Možno to poznate ako vaše "Konto #" alebo váš "Verejný Kľúč". Adresa je to, čo pošlete ľudom, aby vám mohli poslať ETH. Táto ikona vám pomôže rozpoznať vašu adresu. ',
x_Address : 'Vaša Adresa ',
x_Cancel : 'Zrušiť ',
x_CSV : 'CSV súbor (nezašifrovaný) ',
x_Download : 'Stiahnuť ',
x_Json : 'JSON Súbor (nezašifrovaný) ',
x_JsonDesc : 'Toto je nezašifrovaný JSON format vášho sukromného kľúča. To znamená, že nepotrebujete heslo, ale ak niekto získa váš JSON, je schopný sprístupniť vašu peňaženku a Ether bez hesla. ',
x_Keystore : 'Keystore Súbor (UTC / JSON · Odporúčané · Šifrované) ',
x_Keystore2 : 'Keystore Súbor (UTC / JSON) ',
x_KeystoreDesc : 'Tento Keystore súbor je rovnakého formatu ako Mist takže ho budete môcť jednoducho importovať. Tento subor odporúčame stiahnuť a zálohovať. ',
x_MetaMask : 'Metamask / Mist ',
x_Mnemonic : 'Mnemonic Phrase (MetaMask / Jaxx ) ',
x_ParityPhrase : 'Parity Phrase ',
x_Password : 'Heslo ',
x_Print : 'Vytlačiť Papierovú Peňaženku ',
x_PrintDesc : 'Rada: Ak nevlastnite tlačiareň, jednoducho kliknite tlačiť a uložte to ako PDF. ',
x_PrintShort : 'Vytlačiť ',
x_PrivKey : 'Súkromný Kľúč (nezašifrovaný) ',
x_PrivKey2 : 'Súkromný Kľúč ',
x_PrivKeyDesc : 'Toto je nezašifrovaná textova verzia vašho Súkromneho Kľuča, to znamená, že heslo nie je potrebné. Ak niekto získa vaš nezašifrovaný Súkromný Kľúč, môže získať prístup do vašej peňaženky bez hesla. Práve kvôli tomuto sú šifrované verzie odporúčané. ',
x_Save : 'Uložiť ',
x_TXT : 'TXT súbor (nezašifrovaný) ',
x_Wallet : 'Peňaženka ',
/* Header */
MEW_Warning_1 : 'Vždy skontrolujte URL adresu pred tým ako vytvoríte alebo sprístupnite vašu peňaženku. Davajte si pozor na Phisingové stránky! ',
CX_Warning_1 : 'Uistita sa, že máťe **externé zálohy** všetkych peňaženiek. Mnoho vecí može spôsobiť stratu dát tohoto Chrome rozširenia, vrátane odinštalovania a preinštalovania tohto rozšírenia. Toto rozšírenie pomáha jednoducho sprístupniť vašu peňaženku, **nie** ju zálohovať. ',
MEW_Tagline : 'Open Source JavaScript Client-Side Ether Wallet ',
CX_Tagline : 'Open Source JavaScript Client-Side Ether Wallet Chrome Extension ',
/* Footer */
FOOTER_1 : 'Free, open-source, client-side interface for generating Ethereum wallets & more. Interact with the Ethereum blockchain easily & securely. Double-check the URL ( .com ) before unlocking your wallet.',
FOOTER_1b : 'Vytvorené ',
FOOTER_2 : 'Dotácie srdečne vítane: ',
FOOTER_3 : 'Client-side wallet generation by ',
FOOTER_4 : 'Disclaimer ',
/* Sidebar */
sidebar_AccountInfo : 'Account Information ',
sidebar_AccountAddr : 'Account Address ',
sidebar_AccountBal : 'Account Balance ',
sidebar_TokenBal : 'Token Balances ',
sidebar_Equiv : 'Equivalent Values ',
sidebar_TransHistory : 'Transaction History ',
sidebar_donation : 'MyEtherWallet is a free, open-source service dedicated to your privacy and security. The more donations we receive, the more time we spend creating new features, listening to your feedback, and giving you what you want. We are just two people trying to change the world. Help us? ',
sidebar_donate : 'Donate ',
sidebar_thanks : 'THANK YOU!!! ',
sidebar_DisplayOnTrezor : 'Display address on TREZOR',
sidebar_DisplayOnLedger : 'Display address on Ledger',
/* Decrypt Panel */
decrypt_Access : 'How would you like to access your wallet? ',
decrypt_Title : 'Select the format of your private key: ',
decrypt_Select : 'Select a Wallet: ',
/* Add Wallet */
ADD_Label_1 : 'What would you like to do? ',
ADD_Radio_1 : 'Generate New Wallet ',
ADD_Radio_2 : 'Select Your Wallet File (Keystore / JSON) ',
ADD_Radio_2_alt : 'Select Your Wallet File ',
ADD_Radio_2_short : 'SELECT WALLET FILE... ',
ADD_Radio_3 : 'Paste/Type Your Private Key ',
ADD_Radio_4 : 'Add an Account to Watch ',
ADD_Radio_5 : 'Paste/Type Your Mnemonic ',
ADD_Radio_5_Path : 'Select HD derivation path ',
ADD_Radio_5_woTrezor : '(Jaxx, Metamask, Exodus, imToken)',
ADD_Radio_5_withTrezor : '(Jaxx, Metamask, Exodus, imToken, TREZOR)',
ADD_Radio_5_PathAlternative : '(Ledger)',
ADD_Radio_5_PathTrezor : '(TREZOR)',
ADD_Radio_5_PathCustom : 'Custom',
ADD_Label_2 : 'Create a Nickname: ',
ADD_Label_3 : 'Your wallet is encrypted. Please enter the password ',
ADD_Label_4 : 'Add an Account to Watch ',
ADD_Warning_1 : 'You can add any account to "watch" on the wallets tab without uploading a private key. This does ** not ** mean you have access to this wallet, nor can you transfer Ether from it. ',
ADD_Label_5 : 'Enter the Address ',
ADD_Label_6 : 'Unlock your Wallet ',
ADD_Label_6_short : 'Unlock ',
ADD_Label_7 : 'Add Account ',
ADD_Label_8 : 'Password (optional): ',
/* Generate Wallets */
GEN_desc : 'If you want to generate multiple wallets, you can do so here ',
GEN_Label_1 : 'Enter a strong password (at least 9 characters) ',
GEN_Placeholder_1 : 'Do NOT forget to save this! ',
GEN_SuccessMsg : 'Success! Your wallet has been generated. ',
GEN_Label_2 : 'Save your Wallet File. ',
GEN_Label_3 : 'Save Your Address. ',
GEN_Label_4 : 'Print paper wallet or a QR code.',
/* Bulk Generate Wallets */
BULK_Label_1 : 'Number of Wallets To Generate ',
BULK_Label_2 : 'Generate Wallets ',
BULK_SuccessMsg : 'Success! Your wallets have been generated. ',
/* Sending Ether and Tokens */
SEND_addr : 'To Address ',
SEND_amount : 'Amount to Send ',
SEND_amount_short : 'Amount ',
SEND_custom : 'Add Custom Token ',
SEND_gas : 'Gas ',
SEND_TransferTotal : 'Send Entire Balance ',
SEND_generate : 'Generate Transaction ',
SEND_raw : 'Raw Transaction ',
SEND_signed : 'Signed Transaction ',
SEND_trans : 'Send Transaction ',
SENDModal_Title : 'Warning! ',
/* full sentence reads "You are about to send "10 ETH" to address "0x1234". Are you sure you want to do this? " */
SENDModal_Content_1 : 'You are about to send ',
SENDModal_Content_2 : 'to address ',
SENDModal_Content_3 : 'Are you sure you want to do this? ',
SENDModal_Content_4 : 'NOTE: If you encounter an error, you most likely need to add ether to your account to cover the gas cost of sending tokens. Gas is paid in ether. ',
SENDModal_No : 'No, get me out of here! ',
SENDModal_Yes : 'Yes, I am sure! Make transaction. ',
/* Tokens */
TOKEN_Addr : 'Address ',
TOKEN_Symbol : 'Token Symbol ',
TOKEN_Dec : 'Decimals ',
TOKEN_show : 'Show All Tokens ',
TOKEN_hide : 'Hide Tokens ',
/* Send Transaction */
TRANS_desc : 'If you want to send Tokens, please use the "Send Token" page instead. ',
TRANS_warning : 'If you are using the "Only ETH" or "Only ETC" Functions you are sending via a contract. Some services have issues accepting these transactions. Read more. ',
TRANS_advanced : '+Advanced: Add Data ',
TRANS_data : 'Data ',
TRANS_gas : 'Gas Limit ',
TRANS_sendInfo : 'A standard transaction using 21000 gas will cost 0.000441 ETH. We use a slightly-above-minimum gas price of 0.000000021 ETH to ensure it gets mined quickly. We do not take a transaction fee. ',
/* Send Transaction Modals */
TRANSModal_Title : '"Only ETH" and "Only ETC" Transactions ',
TRANSModal_Content_0 : 'A note about the different transactions and different services: ',
TRANSModal_Content_1 : '**ETH (Standard Transaction): ** This generates a default transaction directly from one address to another. It has a default gas of 21000. It is likely that any ETH sent via this method will be replayed onto the ETC chain. ',
TRANSModal_Content_2 : '**Only ETH: ** This sends via [Timon Rapp\'s replay protection contract (as recommended by VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) so that you only send on the **ETH** chain. ',
TRANSModal_Content_3 : '**Only ETC: ** This sends via [Timon Rapp\'s replay protection contract (as recommended by VB)](https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/) so that you only send on the **ETC** chain. ',
TRANSModal_Content_4 : '**Coinbase & ShapeShift: ** Only send via Standard Transaction. If you send via the "Only" contracts, you will need to reach out to their support staff to manually add your balance or refund you. [You can try Shapeshift\'s "split" tool as well.](https://split.shapeshift.io/) ',
TRANSModal_Content_5 : '**Kraken & Poloniex:** No known issues. Use whatever. ',
TRANSModal_Yes : 'Sweet, I get it now. ',
TRANSModal_No : 'Oh gosh, I\'m more confused. Help me. ',
/* Offline Transaction */
OFFLINE_Title : 'Generate & Send Offline Transaction ',
OFFLINE_Desc : 'Generating offline transactions can be done in three steps. You will complete steps 1 and 3 on an online computer, and step 2 on an offline/airgapped computer. This ensures your private keys do not touch an internet-connected device. ',
OFFLLINE_Step1_Title : 'Step 1: Generate Information (Online Computer) ',
OFFLINE_Step1_Button : 'Generate Information ',
OFFLINE_Step1_Label_1 : 'From Address ',
OFFLINE_Step1_Label_2 : 'Note: This is the FROM address, not the TO address. Nonce is generated from the originating account. If using an airgapped computer, it would be the address of the cold-storage account. ',
OFFLINE_Step2_Title : 'Step 2: Generate Transaction (Offline Computer) ',
OFFLINE_Step2_Label_1 : 'To Address ',
OFFLINE_Step2_Label_2 : 'Value / Amount to Send ',
OFFLINE_Step2_Label_3 : 'Gas Price ',
OFFLINE_Step2_Label_3b : 'This was displayed in Step 1 on your online computer. ',
OFFLINE_Step2_Label_4 : 'Gas Limit ',
OFFLINE_Step2_Label_4b : '21000 is the default gas limit. When you send contracts or add\'l data, this may need to be different. Any unused gas will be returned to you. ',
OFFLINE_Step2_Label_5 : 'Nonce ',
OFFLINE_Step2_Label_5b : 'This was displayed in Step 1 on your online computer. ',
OFFLINE_Step2_Label_6 : 'Data ',
OFFLINE_Step2_Label_6b : 'This is optional. Data is often used when you send transactions to contracts. ',
OFFLINE_Step2_Label_7 : 'Enter / Select your Private Key / JSON. ',
OFFLINE_Step3_Title : 'Step 3: Send / Publish Transaction (Online Computer) ',
OFFLINE_Step3_Label_1 : 'Paste the signed transaction from Step 2 here and press the "SEND TRANSACTION" button. ',
/* My Wallet */
MYWAL_Nick : 'Wallet Nickname ',
MYWAL_Address : 'Wallet Address ',
MYWAL_Bal : 'Balance ',
MYWAL_Edit : 'Edit ',
MYWAL_View : 'View ',
MYWAL_Remove : 'Remove ',
MYWAL_RemoveWal : 'Remove Wallet: ',
MYWAL_WatchOnly : 'Your Watch-Only Accounts ',
MYWAL_Viewing : 'Viewing Wallet ',
MYWAL_Hide : 'Hide Wallet Info ',
MYWAL_Edit_2 : 'Edit Wallet ',
MYWAL_Name : 'Wallet Name ',
MYWAL_Content_1 : 'Warning! You are about to remove your wallet ',
MYWAL_Content_2 : 'Be sure you have **saved the private key and/or Keystore File and the password** before you remove it. ',
MYWAL_Content_3 : 'If you want to use this wallet with your MyEtherWallet CX in the future, you will need to manually re-add it using the private key/JSON and password. ',
/* View Wallet Details */
VIEWWALLET_Subtitle : 'This allows you to download different versions of private keys and re-print your paper wallet. You may want to do this in order to [import your account into Geth/Mist](http://ethereum.stackexchange.com/questions/465/how-to-import-a-plain-private-key-into-geth/). If you want to check your balance, we recommend using a blockchain explorer like [etherscan.io](http://etherscan.io/). ',
VIEWWALLET_Subtitle_Short : 'This allows you to download different versions of private keys and re-print your paper wallet. ',
VIEWWALLET_SuccessMsg : 'Success! Here are your wallet details. ',
VIEWWALLET_ShowPrivKey : '(show)',
VIEWWALLET_HidePrivKey : '(hide)',
/* Mnemonic */
MNEM_1 : 'Please select the address you would like to interact with. ',
MNEM_2 : 'Your single HD mnemonic phrase can access a number of wallets / addresses. Please select the address you would like to interact with at this time. ',
MNEM_more : 'More Addresses ',
MNEM_prev : 'Previous Addresses ',
/* Hardware wallets */
x_Ledger : 'Ledger Wallet ',
ADD_Ledger_1 : 'Connect your Ledger Wallet ',
ADD_Ledger_2 : 'Open the Ethereum application (or a contract application) ',
ADD_Ledger_3 : 'Verify that Browser Support is enabled in Settings ',
ADD_Ledger_4 : 'If no Browser Support is found in settings, verify that you have [Firmware >1.2](https://www.ledgerwallet.com/apps/manager) ',
ADD_Ledger_0a : 'You must access MyEtherWallet via a secure (SSL / HTTPS) connection to connect. ',
ADD_Ledger_0b : 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) ',
ADD_Ledger_scan : 'Connect to Ledger Wallet ',
ADD_MetaMask : 'Connect to MetaMask ',
x_Trezor : 'TREZOR ',
ADD_Trezor_scan : 'Connect to TREZOR ',
ADD_Trezor_select : 'This is a TREZOR seed ',
x_DigitalBitbox : 'Digital Bitbox ',
ADD_DigitalBitbox_0a : 'Re-open MyEtherWallet on a secure (SSL) connection ',
ADD_DigitalBitbox_0b : 'Re-open MyEtherWallet using [Chrome](https://www.google.com/chrome/browser/desktop/) or [Opera](https://www.opera.com/) ',
ADD_DigitalBitbox_scan : 'Connect your Digital Bitbox ',
/* Chrome Extension */
CX_error_1 : 'You don\'t have any wallets saved. Click ["Add Wallet"](/cx-wallet.html#add-wallet) to add one! ',
CX_quicksend : 'QuickSend ', // if no appropriate translation, just use "Send"
/* Node Switcher */
NODE_Title : 'Set Up Your Custom Node',
NODE_Subtitle : 'To connect to a local node...',
NODE_Warning : 'Your node must be HTTPS in order to connect to it via MyEtherWallet.com. You can [download the MyEtherWallet repo & run it locally](https://github.com/kvhnuke/etherwallet/releases/latest) to connect to any node. Or, get free SSL certificate via [LetsEncrypt](https://letsencrypt.org/)',
NODE_Name : 'Node Name',
NODE_Port : 'Node Port',
NODE_CTA : 'Save & Use Custom Node',
/* Contracts */
CONTRACT_Title : 'Contract Address ',
CONTRACT_Title_2 : 'Select Existing Contract ',
CONTRACT_Json : 'ABI / JSON Interface ',
CONTRACT_Interact_Title : 'Read / Write Contract ',
CONTRACT_Interact_CTA : 'Select a function ',
CONTRACT_ByteCode : 'Byte Code ',
CONTRACT_Read : 'READ ',
CONTRACT_Write : 'WRITE ',
DEP_generate : 'Generate Bytecode ',
DEP_generated : 'Generated Bytecode ',
DEP_signtx : 'Sign Transaction ',
DEP_interface : 'Generated Interface ',
/* Swap / Exchange */
SWAP_rates : "Current Rates ",
SWAP_init_1 : "I want to swap my ",
SWAP_init_2 : " for ", // "I want to swap my X ETH for X BTC"
SWAP_init_CTA : "Let's do this! ", // or "Continue"
SWAP_information : "Your Information ",
SWAP_send_amt : "Amount to send ",
SWAP_rec_amt : "Amount to receive ",
SWAP_your_rate : "Your rate ",
SWAP_rec_add : "Your Receiving Address ",
SWAP_start_CTA : "Start Swap ",
SWAP_ref_num : "Your reference number ",
SWAP_time : "Time remaining to send ",
SWAP_elapsed : "Time elapsed since sent ",
SWAP_progress_1 : "Order Initiated ",
SWAP_progress_2 : "Waiting for your ", // Waiting for your BTC...
SWAP_progress_3 : "Received! ", // ETH Received!
SWAP_progress_4 : "Sending your {{orderResult.output.currency}} ",
SWAP_progress_5 : "Order Complete ",
SWAP_order_CTA : "Please send ", // Please send 1 ETH...
SWAP_unlock : "Unlock your wallet to send ETH or Tokens directly from this page. ",
/* Sign Message */
MSG_message : 'Message ',
MSG_date : 'Date ',
MSG_signature : 'Signature ',
MSG_verify : 'Verify Message ',
MSG_info1 : 'Include the current date so the signature cannot be reused on a different date. ',
MSG_info2 : 'Include your nickname and where you use the nickname so someone else cannot use it. ',
MSG_info3 : 'Include a specific reason for the message so it cannot be reused for a different purpose. ',
/* Error Messages */
ERROR_0 : 'Please enter a valid amount.', // 0
ERROR_1 : 'Your password must be at least 9 characters. Please ensure it is a strong password. ', // 1
ERROR_2 : 'Sorry! We don\'t recognize this type of wallet file. ', // 2
ERROR_3 : 'This is not a valid wallet file. ', // 3
ERROR_4 : 'This unit doesn\'t exists, please use the one of the following units ', // 4
ERROR_5 : 'Please enter a valid address. ', // 5
ERROR_6 : 'Please enter a valid password. ', // 6
ERROR_7 : 'Please enter valid decimals (Must be integer, 0-18). ', // 7
ERROR_8 : 'Please enter a valid gas limit (Must be integer. Try 21000-4000000). ', // 8
ERROR_9 : 'Please enter a valid data value (Must be hex). ', // 9
ERROR_10 : 'Please enter a valid gas price. (Must be integer. Try 20 GWEI (20000000000 WEI)',
ERROR_11 : 'Please enter a valid nonce (Must be integer).', // 11
ERROR_12 : 'Invalid signed transaction. ', // 12
ERROR_13 : 'A wallet with this nickname already exists. ', // 13
ERROR_14 : 'Wallet not found. ', // 14
ERROR_15 : 'Whoops. It doesn\'t look like a proposal with this ID exists yet or there is an error reading this proposal. ', // 15 - NOT USED
ERROR_16 : 'A wallet with this address already exists in storage. Please check your wallets page. ', // 16
ERROR_17 : 'Account you are sending from does not have enough funds. If sending tokens, you must have 0.01 ETH in your account to cover the cost of gas. ', // 17
ERROR_18 : 'All gas would be used on this transaction. This means you have already voted on this proposal or the debate period has ended.', // 18
ERROR_19 : 'Please enter a valid symbol', // 19
ERROR_20 : 'Not a valid ERC-20 token', // 20
ERROR_21 : 'Could not estimate gas. There are not enough funds in the account, or the receiving contract address would throw an error. Feel free to manually set the gas and proceed. The error message upon sending may be more informative.', // 21
ERROR_22 : 'Please enter a valid node name', // 22
ERROR_23 : 'Please enter a valid URL. If you are on https, your URL must be https', // 23
ERROR_24 : 'Please enter a valid port. ', // 24
ERROR_25 : 'Please enter a valid chain ID. ', // 25
ERROR_26 : 'Please enter a valid ABI. ', // 26
ERROR_27 : 'Minimum amount: 0.01. Max amount: ', // 27
ERROR_28 : 'You need this `Keystore File + Password` or the `Private Key` (next page) to access this wallet in the future. ', // 28
ERROR_29 : 'Please enter a valid user and password. ', // 29
ERROR_30 : 'Please enter a valid name (7+ characters, limited punctuation) ', // 30
ERROR_31 : 'Please enter a valid secret phrase. ', // 31
ERROR_32 : 'Could not connect to the node. Refresh your page, try a different node (upper right corner), check your firewall settings. If custom node, check your configs.', // 32
ERROR_33 : 'The wallet you have unlocked does not match the owner\'s address. ', // 33
ERROR_34 : 'The name you are attempting to reveal does not match the name you have entered. ', // 34
ERROR_35 : 'Input address is not checksummed. <a href="https://myetherwallet.groovehq.com/knowledge_base/topics/not-checksummed-shows-when-i-enter-an-address" target="_blank" rel="noopener"> More info</a>', // 35
ERROR_36 : 'Enter valid TX hash', // 36
ERROR_37 : 'Enter valid hex string (0-9, a-f)', // 37
SUCCESS_1 : 'Valid address ',
SUCCESS_2 : 'Wallet successfully decrypted ',
SUCCESS_3 : 'Your TX has been broadcast to the network. It is waiting to be mined & confirmed. During ICOs, it may take 3+ hours to confirm. Use the Verify & Check buttons below to see. TX Hash: ', //'Your TX has been broadcast to the network. It is waiting to be mined & confirmed. During ICOs, it may take 3+ hours to confirm. Use the Verify & Check buttons below to see. TX Hash: ', //
SUCCESS_4 : 'Your wallet was successfully added ',
SUCCESS_5 : 'File Selected ',
SUCCESS_6 : 'You are successfully connected ',
SUCCESS_7 : 'Message Signature Verified',
WARN_Send_Link : 'You arrived via a link that has the address, value, gas, data fields, or transaction type (send mode) filled in for you. You can change any information before sending. Unlock your wallet to get started. ',
/* Geth Error Messages */
GETH_InvalidSender : 'Invalid sender ',
GETH_Nonce : 'Nonce too low ',
GETH_Cheap : 'Gas price too low for acceptance ',
GETH_Balance : 'Insufficient balance ',
GETH_NonExistentAccount : 'Account does not exist or account balance too low ',
GETH_InsufficientFunds : 'Insufficient funds for gas * price + value ',
GETH_IntrinsicGas : 'Intrinsic gas too low ',
GETH_GasLimit : 'Exceeds block gas limit ',
GETH_NegativeValue : 'Negative value ',
/* Parity Error Messages */
PARITY_AlreadyImported : "Transaction with the same hash was already imported.",
PARITY_Old : "Transaction nonce is too low. Try incrementing the nonce.",
PARITY_TooCheapToReplace : "Transaction fee is too low. There is another transaction with same nonce in the queue. Try increasing the fee or incrementing the nonce.",
PARITY_LimitReached : "There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the fee.",
PARITY_InsufficientGasPrice : "Transaction fee is too low. It does not satisfy your node's minimal fee (minimal: {}, got: {}). Try increasing the fee.",
PARITY_InsufficientBalance : "Insufficient funds. Account you try to send transaction from does not have enough funds. Required {} wei and got: {} wei.",
PARITY_GasLimitExceeded : "Transaction cost exceeds current gas limit. Limit: {}, got: {}. Try decreasing supplied gas.",
PARITY_InvalidGasLimit : "Supplied gas is beyond limit.",
/* Tranlsation Info */
translate_version : '0.3 ',
Translator_Desc : 'Thank you to our translators ',
TranslatorName_1 : '',
TranslatorAddr_1 : '',
/* Translator 1 : Insert Comments Here */
TranslatorName_2 : '',
TranslatorAddr_2 : '',
/* Translator 2 : Insert Comments Here */
TranslatorName_3 : '',
TranslatorAddr_3 : '',
/* Translator 3 : Insert Comments Here */
TranslatorName_4 : '',
TranslatorAddr_4 : '',
/* Translator 4 : Insert Comments Here */
TranslatorName_5 : '',
TranslatorAddr_5 : '',
/* Translator 5 : Insert Comments Here */
/* Help - Nothing after this point has to be translated. If you feel like being extra helpful, go for it. */
HELP_Warning : 'If you created a wallet -or- downloaded the repo before **Dec. 31st, 2015**, please check your wallets & download a new version of the repo. Click for details. ',
HELP_Desc : 'Do you see something missing? Have another question? [Get in touch with us](mailto:support@myetherwallet.com), and we will not only answer your question, we will update this page to be more useful to people in the future! ',
HELP_Remind_Title : 'Some reminders ',
HELP_Remind_Desc_1 : '**Ethereum, MyEtherWallet.com & MyEtherWallet CX, and some of the underlying Javascript libraries we use are under active development.** While we have thoroughly tested & tens of thousands of wallets have been successfully created by people all over the globe, there is always the remote possibility that something unexpected happens that causes your ETH to be lost. Please do not invest more than you are willing to lose, and please be careful. If something were to happen, we are sorry, but **we are not responsible for the lost Ether**. ',
HELP_Remind_Desc_2 : 'MyEtherWallet.com & MyEtherWallet CX are not "web wallets". You do not create an account or give us your Ether to hold onto. All data never leaves your computer/your browser. We make it easy for you to create, save, and access your information and interact with the blockchain. ',
HELP_Remind_Desc_3 : 'If you do not save your private key & password, there is no way to recover access to your wallet or the funds it holds. Back them up in multiple physical locations – not just on your computer! ',
HELP_0_Title : '0) I\'m new. What do I do? ',
HELP_0_Desc_1 : 'MyEtherWallet gives you the ability to generate new wallets so you can store your Ether yourself, not on an exchange. This process happens entirely on your computer, not our servers. Therefore, when you generate a new wallet, **you are responsible for safely backing it up**. ',
HELP_0_Desc_2 : 'Create a new wallet. ',
HELP_0_Desc_3 : 'Back the wallet up. ',
HELP_0_Desc_4 : 'Verify you have access to this new wallet and have correctly saved all necessary information. ',
HELP_0_Desc_5 : 'Transfer Ether to this new wallet. ',
HELP_1_Title : '1) How do I create a new wallet? ',
HELP_1_Desc_1 : 'Go to the "Generate Wallet" page. ',
HELP_1_Desc_2 : 'Go to the "Add Wallet" page & select "Generate New Wallet" ',
HELP_1_Desc_3 : 'Enter a strong password. If you think you may forget it, save it somewhere safe. You will need this password to send transactions. ',
HELP_1_Desc_4 : 'Click "GENERATE". ',
HELP_1_Desc_5 : 'Your wallet has now been generated. ',
HELP_2a_Desc_1 : 'You should always back up your wallet externally and in multiple physical locations - like on a USB drive and/or a piece of paper. ',
HELP_2a_Desc_2 : 'Save the address. You can keep it to yourself or share it with others. That way, others can transfer ether to you. ',
HELP_2a_Desc_3 : 'Save versions of the private key. Do not share it with anyone else. Your private key is necessary when you want to access your Ether to send it! There are 3 types of private keys: ',
HELP_2a_Desc_4 : 'Place your address, versions of the private key, and the PDF version of your paper wallet in a folder. Save this on your computer and a USB drive. ',
HELP_2a_Desc_5 : 'Print the wallet if you have a printer. Otherwise, write down your private key and address on a piece of paper. Store this as a secure location, separate from your computer and the USB drive. ',
HELP_2a_Desc_6 : 'Keep in mind, you must prevent loss of the keys and password due to loss or failure of you hard drive failure, or USB drive, or piece of paper. You also must keep in mind physical loss / damage of an entire area (think fire or flood). ',
HELP_2b_Title : '2b) How do I safely / offline / cold storage with MyEtherWallet? ',
HELP_2b_Desc_1 : 'Go to [https://github.com/kvhnuke/etherwallet/releases/latest](https://github.com/kvhnuke/etherwallet/releases/latest). ',
HELP_2b_Desc_2 : 'Click on `etherwallet-vX.X.X.X.zip`. ',
HELP_2b_Desc_3 : 'Move zip to an airgapped computer. ',
HELP_2b_Desc_4 : 'Unzip it and double-click `index.html`. ',
HELP_2b_Desc_5 : 'Generate a wallet with a strong password. ',
HELP_2b_Desc_6 : 'Save the address. Save versions of the private key. Save the password if you might not remember it forever. ',
HELP_2b_Desc_7 : 'Store these papers / USBs in multiple physically separate locations. ',
HELP_2b_Desc_8 : 'Go to the "View Wallet Info" page and type in your private key / password to ensure they are correct and access your wallet. Check that the address you wrote down is the same. ',
HELP_3_Title : '3) How do I verify I have access to my new wallet? ',
HELP_3_Desc_1 : '**Before you send any Ether to your new wallet**, you should ensure you have access to it. ',
HELP_3_Desc_2 : 'Navigate to the "View Wallet Info" page. ',
HELP_3_Desc_3 : 'Navigate to the MyEtherWallet.com "View Wallet Info" page. ',
HELP_3_Desc_4 : 'Select your wallet file -or- your private key and unlock your wallet. ',
HELP_3_Desc_5 : 'If the wallet is encrypted, a text box will automatically appear. Enter the password. ',
HELP_3_Desc_6 : 'Click the "Unlock Wallet" button. ',
HELP_3_Desc_7 : 'Your wallet information should show up. Find your account address, next to a colorful, circular icon. This icon visually represents your address. Be certain that the address is the address you have saved to your text document and is on your paper wallet. ',
HELP_3_Desc_8 : 'If you are planning on holding a large amount of ether, we recommend that send a small amount of ether from new wallet before depositing a large amount. Send 0.001 ether to your new wallet, access that wallet, send that 0.001 ether to another address, and ensure everything works smoothly. ',
HELP_4_Title : '4) How do I send Ether from one wallet to another? ',
HELP_4_Desc_1 : 'If you plan to move a large amount of ether, you should test sending a small amount to your wallet first to ensure everything goes as planned. ',
HELP_4_Desc_2 : 'Navigate to the "Poslať Ether a Tokens" page. ',
HELP_4_Desc_3 : 'Select your wallet file -or- your private key and unlock your wallet. ',
HELP_4_Desc_4 : 'If the wallet is encrypted, a text box will automatically appear. Enter the password. ',
HELP_4_Desc_5 : 'Click the "Unlock Wallet" button. ',
HELP_4_Desc_6 : 'Enter the address you would like to send to in the "To Address:" field. ',
HELP_4_Desc_7 : 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. ',
HELP_4_Desc_9 : 'Click "Generate Transaction". ',
HELP_4_Desc_10 : 'A couple more fields will appear. This is your browser generating the transaction. ',
HELP_4_Desc_11 : 'Click the blue "Send Transaction" button below that. ',
HELP_4_Desc_12 : 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. ',
HELP_4_Desc_13 : 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. ',
HELP_4CX_Title : '4) How do I send Ether using MyEtherWallet CX? ',
HELP_4CX_Desc_1 : 'First, you need to add a wallet. Once you have done that, you have 2 options: the "QuickSend" functionality from the Chrome Extension icon or the "Poslať Ether a Tokens" page. ',
HELP_4CX_Desc_2 : 'QuickSend: ',
HELP_4CX_Desc_3 : 'Click the Chrome Extension Icon. ',
HELP_4CX_Desc_4 : 'Click the "QuickSend" button. ',
HELP_4CX_Desc_5 : 'Select the wallet you wish to send from. ',
HELP_4CX_Desc_6 : 'Enter the address you would like to send to in the "To Address:" field. ',
HELP_4CX_Desc_7 : 'Enter the amount you would like to send. You can also click the "Send Entire Balance" link if you would like the transfer the entire balance. ',
HELP_4CX_Desc_8 : 'Click "Send Transaction". ',
HELP_4CX_Desc_9 : 'Verify the address and the amount you are sending is correct. ',
HELP_4CX_Desc_10 : 'Enter the password for that wallet. ',
HELP_4CX_Desc_11 : 'Click "Send Transaction." ',
HELP_4CX_Desc_12 : 'Using "Poslať Ether a Tokens" Page ',
HELP_5_Title : '5) How do I run MyEtherWallet.com offline/locally? ',
HELP_5_Desc_1 : 'You can run MyEtherWallet.com on your computer instead of from the GitHub servers. You can generate a wallet completely offline and send transactions from the "Offline Transaction" page. ',
HELP_5_Desc_7 : 'MyEtherWallet.com is now running entirely on your computer. ',
HELP_5_Desc_8 : 'In case you are not familiar, you need to keep the entire folder in order to run the website, not just `index.html`. Don\'t touch or move anything around in the folder. If you are storing a backup of the MyEtherWallet repo for the future, we recommend just storing the ZIP so you can be sure the folder contents stay intact. ',
HELP_5_Desc_9 : 'As we are constantly updating MyEtherWallet.com, we recommend you periodically update your saved version of the repo. ',
HELP_5CX_Title : '5) How can I install this extension from the repo instead of the Chrome Store? ',
HELP_5CX_Desc_2 : 'Click on `chrome-extension-vX.X.X.X.zip` and unzip it. ',
HELP_5CX_Desc_3 : 'Go to Google Chrome and find you settings (in the menu in the upper right). ',
HELP_5CX_Desc_4 : 'Click "Extensions" on the left. ',
HELP_5CX_Desc_5 : 'Check the "Developer Mode" button at the top of that page. ',
HELP_5CX_Desc_6 : 'Click the "Load unpacked extension..." button. ',
HELP_5CX_Desc_7 : 'Navigate to the now-unzipped folder that you downloaded earlier. Click "select". ',
HELP_5CX_Desc_8 : 'The extension should now show up in your extensions and in your Chrome Extension bar. ',
HELP_7_Title : '7) How do I send Tokens & add custom tokens? ',
HELP_7_Desc_0 : '[Ethplorer.io](https://ethplorer.io/) is a great way to explore tokens and find the decimals of a token. ',
HELP_7_Desc_1 : 'Navigate to the "Poslať Ether a Tokens" page. ',
HELP_7_Desc_2 : 'Unlock your wallet. ',
HELP_7_Desc_3 : 'Enter the address you would like to send to in the "To Address:" field. ',
HELP_7_Desc_4 : 'Enter the amount you would like to send. ',
HELP_7_Desc_5 : 'Select which token you would like to send. ',
HELP_7_Desc_6 : 'If you do not see the token listed: ',
HELP_7_Desc_7 : 'Click "Custom". ',
HELP_7_Desc_8 : 'Enter the address, name, and decimals of the token. These are provided by the developers of the token and are also needed when you "Add a Watch Token" to Mist. ',
HELP_7_Desc_9 : 'Click "Save". ',
HELP_7_Desc_10 : 'You can now send that token as well as see it\'s balance in the sidebar. ',
HELP_7_Desc_11 : 'Click "Generate Transaction". ',
HELP_7_Desc_12 : 'A couple more fields will appear. This is your browser generating the transaction. ',
HELP_7_Desc_13 : 'Click the blue "Send Transaction" button below that. ',
HELP_7_Desc_14 : 'A pop-up will appear. Verify that the amount and the address you are sending to are correct. Then click "Yes, I am sure! Make transaction." button. ',
HELP_7_Desc_15 : 'The transaction will be submitted. The TX Hash will display. You can click that TX Hash to see it on the blockchain. ',
HELP_8_Title : '8) What happens if your site goes down? ',
HELP_8_Desc_1 : 'MyEtherWallet is not a web wallet. You don\'t have a login and nothing ever gets saved to our servers. It is simply an interface that allows you interact with the blockchain. ',
HELP_8_Desc_2 : 'If MyEtherWallet.com goes down, you would have to find another way (like geth or Ethereum Wallet / Mist) to do what we are doing. But you wouldn\'t have to "get" your Ether out of MyEtherWallet because it\'s not in MyEtherWallet. It\'s in whatever wallet your generated via our site. ',
HELP_8_Desc_3 : 'You can import your unencrypted private key and your Geth/Mist Format (encrypted) files directly into geth / Ethereum Wallet / Mist very easily now. See question #12 below. ',
HELP_8_Desc_4 : 'In addition, the likelihood of us taking MyEtherWallet down is slim to none. It costs us almost nothing to maintain as we aren\'t storing any information. If we do take the domain down, it still is, and always will be, publicly available at [https://github.com/kvhnuke/etherwallet](https://github.com/kvhnuke/etherwallet/tree/gh-pages). You can download the ZIP there and run it locally. ',
HELP_8CX_Title : '8) What happens if MyEtherWallet CX disappears? ',
HELP_8CX_Desc_1 : 'First, all data is saved on your computer, not our servers. I know it can be confusing, but when you look at the Chrome Extension, you are NOT looking at stuff saved on our servers somewhere - it\'s all saved on your own computer. ',
HELP_8CX_Desc_2 : 'That said, it is **very important** that you back up all your information for any new wallets generated with MyEtherWallet CX. That way if anything happens to MyEtherWallet CX or your computer, you still have all the information necessary to access your Ether. See the #2a for how to back up your wallets. ',
HELP_8CX_Desc_3 : 'If for some reason MyEtherWallet CX disappears from the Chrome Store, you can find the source on Github and load it manually. See #5 above. ',
HELP_9_Title : '9) Is the "Poslať Ether a Tokens" page offline? ',
HELP_9_Desc_1 : 'No. It needs the internet in order to get the current gas price, nonce of your account, and broadcast the transaction (aka "send"). However, it only sends the signed transaction. Your private key safely stays with you. We also now provide an "Offline Transaction" page so that you can ensure your private keys are on an offline/airgapped computer at all times. ',
HELP_10_Title : '10) How do I make an offline transaction? ',
HELP_10_Desc_1 : 'Navigate to the "Offline Transaction" page via your online computer. ',
HELP_10_Desc_2 : 'Enter the "From Address". Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price. ',
HELP_10_Desc_3 : 'Move to your offline computer. Enter the "TO ADDRESS" and the "AMOUNT" you wish to send. ',
HELP_10_Desc_4 : 'Enter the "GAS PRICE" as it was displayed to you on your online computer in step #1. ',
HELP_10_Desc_5 : 'Enter the "NONCE" as it was displayed to you on your online computer in step #1. ',
HELP_10_Desc_6 : 'The "GAS LIMIT" has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you. ',
HELP_10_Desc_7 : 'If you wish, enter some data. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. ',
HELP_10_Desc_8 : 'Select your wallet file -or- your private key and unlock your wallet. ',
HELP_10_Desc_9 : 'Press the "GENERATE SIGNED TRANSACTION" button. ',
HELP_10_Desc_10 : 'The data field below this button will populate with your signed transaction. Copy this and move it back to your online computer. ',
HELP_10_Desc_11 : 'On your online computer, paste the signed transaction into the text field in step #3 and click send. This will broadcast your transaction. ',
HELP_12_Title : '12) How do I import a wallet created with MyEtherWallet into geth / Ethereum Wallet / Mist? ',
HELP_12_Desc_1 : 'Using an Geth/Mist JSON file from MyEtherWallet v2+.... ',
HELP_12_Desc_2 : 'Go to the "View Wallet Info" page. ',
HELP_12_Desc_3 : 'Unlock your wallet using your **encrypted** private key or JSON file. ',
HELP_12_Desc_4 : 'Go to the "My Wallets" page. ',
HELP_12_Desc_5 : 'Select the wallet you want to import into Mist, click the "View" icon, enter your password, and access your wallet. ',
HELP_12_Desc_6 : 'Find the "Download JSON file - Geth/Mist Format (encrypted)" section. Press the "Download" button below that. You now have your keystore file. ',
HELP_12_Desc_7 : 'Open the Ethereum Wallet application. ',
HELP_12_Desc_8 : 'In the menu bar, go "Accounts" -> "Backup" -> "Accounts" ',
HELP_12_Desc_9 : 'This will open your keystore folder. Copy the file you just downloaded (`UTC--2016-04-14......../`) into that keystore folder. ',
HELP_12_Desc_10 : 'Your account should show up immediately under "Accounts." ',
HELP_12_Desc_11 : 'Using your unencrypted private key... ',
HELP_12_Desc_12 : 'If you do not already have your unencrypted private key, navigate to the "View Wallet Details" page. ',
HELP_12_Desc_13 : 'Select your wallet file -or- enter/paste your private key to unlock your wallet. ',
HELP_12_Desc_14 : 'Copy Your Private Key (unencrypted). ',
HELP_12_Desc_15 : 'If you are on a Mac: ',
HELP_12_Desc_15b : 'If you are on a PC: ',
HELP_12_Desc_16 : 'Open Text Edit and paste this private key. ',
HELP_12_Desc_17 : 'Go to the menu bar and click "Format" -> "Make Plain Text". ',
HELP_12_Desc_18 : 'Save this file to your `desktop/` as `nothing_special_delete_me.txt`. Make sure it says "UTF-8" and "If no extension is provided use .txt" in the save dialog. ',
HELP_12_Desc_19 : 'Open terminal and run the following command: `geth account import ~/Desktop/nothing_special_delete_me.txt` ',
HELP_12_Desc_20 : 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. ',
HELP_12_Desc_21 : 'After successful import, delete `nothing_special_delete_me.txt` ',
HELP_12_Desc_22 : 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". ',
HELP_12_Desc_23 : 'Open Notepad & paste the private key ',
HELP_12_Desc_24 : 'Save the file as `nothing_special_delete_me.txt` at `C:` ',
HELP_12_Desc_25 : 'Run the command, `geth account import C:\\nothing_special_delete_me.txt` ',
HELP_12_Desc_26 : 'This will prompt you to make a new password. This is the password you will use in geth / Ethereum Wallet / Mist whenever you send a transaction, so don\'t forget it. ',
HELP_12_Desc_27 : 'After successful import, delete `nothing_special_delete_me.txt` ',
HELP_12_Desc_28 : 'The next time you open the Ethereum Wallet application, your account will be listed under "Accounts". ',
HELP_13_Title : '13) What does "Insufficient funds. Account you try to send transaction from does not have enough funds. Required XXXXXXXXXXXXXXXXXXX and got: XXXXXXXXXXXXXXXX." Mean? ',
HELP_13_Desc_1 : 'This means you do not have enough Ether in your account to cover the cost of gas. Each transaction (including token and contract transactions) require gas and that gas is paid in Ether. The number displayed is the amount required to cover the cost of the transaction in Wei. Take that number, divide by `1000000000000000000`, and subtract the amount of Ether you were trying to send (if you were attempting to send Ether). This will give you the amount of Ether you need to send to that account to make the transaction. ',
HELP_14_Title : '14) Some sites randomize (seed) the private key generation via mouse movements. MyEtherWallet.com doesn\'t do this. Is the random number generation for MyEtherWallet safe? ',
HELP_14_Desc_1 : 'While the mouse moving thing is clever and we understand why people like it, the reality is window.crypto ensures more entropy than your mouse movements. The mouse movements aren\'t unsafe, it\'s just that we (and tons of other crypto experiments) believe in window.crypto. In addition, MyEtherWallet.com can be used on touch devices. Here\'s a [conversation between an angry redditor and Vitalik Buterin regarding mouse movements v. window.crypto](https://www.reddit.com/r/ethereum/comments/2bilqg/note_there_is_a_paranoid_highsecurity_way_to/cj5sgrm) and here is the [the window.crypto w3 spec](https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-GlobalCrypto). ',
HELP_15_Title : '15) Why hasn\'t the account I just created show up in the blockchain explorer? (ie: etherchain, etherscan) ',
HELP_15_Desc_1 : 'Accounts will only show up in a blockchain explorer once the account has activity on it—for example, once you have transferred some Ether to it. ',
HELP_16_Title : '16) How do I check the balance of my account? ',
HELP_16_Desc_1 : 'You can use a blockchain explorer like [etherscan.io](http://etherscan.io/). Paste your address into the search bar and it will pull up your address and transaction history. For example, here\'s what our [donation account](http://etherscan.io/address/0x7cb57b5a97eabe94205c07890be4c1ad31e486a8) looks like on etherscan.io ',
HELP_17_Title : '17) Why isn\'t my balance showing up when I unlock my wallet? ',
HELP_17_Desc_1 : 'This is most likely due to the fact that you are behind a firewall. The API that we use to get the balance and convert said balance is often blocked by firewalls for whatever reason. You will still be able to send transactions, you just need to use a different method to see said balance, like etherscan.io ',
HELP_18_Title : '18) Where is my geth wallet file? ',
HELP_19_Title : '19) Where is my Mist wallet file? ',
HELP_19_Desc_1 : 'Mist files are typically found in the file locations above, but it\'s much easier to open Mist, select "Accounts" in the top bar, select "Backup", and select "Accounts". This will open the folder where your files are stored. ',
HELP_20_Title : '20) Where is my pre-sale wallet file? ',
HELP_20_Desc_1 : 'Wherever you saved it. ;) It also was emailed to you, so check there. Look for the file called `"ethereum_wallet_backup.json"` and select that file. This wallet file will be encrypted with a password that you created during the purchase of the pre-sale. ',
HELP_21_Title : '21) Couldn\'t everybody put in random private keys, look for a balance, and send to their own address? ',
HELP_21_Desc_1 : 'Short version: yes, but finding an account with a balance would take longer than the universe...so...no. ',
HELP_21_Desc_2 : 'Long ELI5 Version: So Ethereum is based on [Public Key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), specifically [Elliptic curve cryptography](https://eprint.iacr.org/2013/734.pdf) which is very widely used, not just in Ethereum. Most servers are protected via ECC. Bitcoin uses the same, as well as SSH and TLS and a lot of other stuff. The Ethereum keys specifically are 256-bit keys, which are stronger than 128-bit and 192-bit, which are also widely used and still considered secure by experts. ',
HELP_21_Desc_3 : 'In this you have a private key and a public key. The private key can derive the public key, but the public key cannot be turned back into the private key. The fact that the internet and the world’s secrets are using this cryptography means that if there is a way to go from public key to private key, your lost ether is the least of everyone’s problems. ',
HELP_21_Desc_4 : 'Now, that said, YES if someone else has your private key then they can indeed send ether from your account. Just like if someone has your password to your email, they can read and send your email, or the password to your bank account, they could make transfers. You could download the Keystore version of your private key which is the private key that is encrypted with a password. This is like having a password that is also protected by another password. ',
HELP_21_Desc_5 : 'And YES, in theory you could just type in a string of 64 hexadecimal characters until you got one that matched. In fact, smart people could write a program to very quickly check random private keys. This is known as "brute-forcing" or "mining" private keys. People have thought about this long and hard. With a few very high end servers, they may be able to check 1M+ keys / second. However, even checking that many per second would not yield access to make the cost of running those servers even close to worthwhile - it is more likely you, and your great-grandchildren, will die before getting a match. ',
HELP_21_Desc_6 : 'If you know anything about Bitcoin, [this will put it in perspective:](http://bitcoin.stackexchange.com/questions/32331/two-people-with-same-public-address-how-will-people-network-know-how-to-deliver) *To illustrate how unlikely this is: suppose every satoshi of every bitcoin ever to be generated was sent to its own unique private keys. The probability that among those keys there could be two that would correspond to the same address is roughly one in 100 quintillion. ',
HELP_21_Desc_7 : '[If you want something a bit more technical:](http://security.stackexchange.com/questions/25375/why-not-use-larger-cipher-keys/25392#25392) *These numbers have nothing to do with the technology of the devices; they are the maximums that thermodynamics will allow. And they strongly imply that brute-force attacks against 256-bit keys will be infeasible until computers are built from something other than matter and occupy something other than space. ',
HELP_21_Desc_8 : 'Of course, this all assumes that keys are generated in a truly random way & with sufficient entropy. The keys generated here meet that criteria, as do Jaxx and Mist/geth. The Ethereum wallets are all pretty good. Keys generated by brainwallets do not, as a person\'s brain is not capable of creating a truly random seed. There have been a number of other issues regarding lack of entropy or seeds not being generated in a truly random way in Bitcoin-land, but that\'s a separate issue that can wait for another day. ',
HELP_SecCX_Title : 'Security - MyEtherWallet CX ',
HELP_SecCX_Desc_1 : 'Where is this extension saving my information? ',
HELP_SecCX_Desc_2 : 'The information you store in this Chrome Extension is saved via [chrome.storage](http://chrome.storage/). - this is the same place your passwords are saved when you save your password in Chrome. ',
HELP_SecCX_Desc_3 : 'What information is saved? ',
HELP_SecCX_Desc_4 : 'The address, nickname, private key is stored in chrome.storage. The private key is encrypted using the password you set when you added the wallet. The nickname and wallet address is not encrypted. ',
HELP_SecCX_Desc_5 : 'Why aren\'t the nickname and wallet address encrypted? ',
HELP_SecCX_Desc_6 : 'If we were to encrypt these items, you would need to enter a password each time you wanted to view your account balance or view the nicknames. If this concerns you, we recommend you use MyEtherWallet.com instead of this Chrome Extension. ',
HELP_Sec_Title : 'Security ',
HELP_Sec_Desc_1 : 'If one of your first questions is "Why should I trust these people?", that is a good thing. Hopefully the following will help ease your fears. ',
HELP_Sec_Desc_2 : 'We\'ve been up and running since August 2015. If you search for ["myetherwallet" on reddit](https://www.reddit.com/search?q=myetherwallet), you can see numerous people who use us with great success. ',
HELP_Sec_Desc_3 : 'We aren\'t going to take your money or steal your private key(s). There is no malicious code on this site. In fact the "GENERATE WALLET" pages are completely client-side. That means that all the code is executed on ** your computer** and it is never saved and transmitted anywhere. ',
HELP_Sec_Desc_4 : 'Check the URL -- This site is being served through GitHub and you can see the source code here: [https://github.com/kvhnuke/etherwallet/tree/gh-pages](https://github.com/kvhnuke/etherwallet/tree/gh-pages) to [https://www.myetherwallet.com](https://www.myetherwallet.com). ',
HELP_Sec_Desc_5 : 'For generating wallets, you can download the [source code and run it locally](https://github.com/kvhnuke/etherwallet/releases/latest). See #5 above. ',
HELP_Sec_Desc_6 : 'Generate a test wallet and check and see what network activity is happening. The easiest way for you to do this is to right click on the page and click "inspect element". Go to the "Network" tab. Generate a test wallet. You will see there is no network activity. You may see something happening that looks like data:image/gif and data:image/png. Those are the QR codes being generated...on your computer...by your computer. No bytes were transferred. ',
HELP_Sec_Desc_8 : 'If you do not feel comfortable using this tool, then by all means, do not use it. We created this tool as a helpful way for people to generate wallets and make transactions without needing to dive into command line or run a full node. Again, feel free to reach out if you have concerns and we will respond as quickly as possible. Thanks! ',
HELP_FAQ_Title : 'More Helpful Answers to Frequent Questions ',
HELP_Contact_Title : 'Ways to Get in Touch'
};
module.exports = sk;
| mit |
Meraz/doremi | Utility/Utilities/Source/String/VA_ListToString.cpp | 1113 | #include <String/VA_ListToString.hpp>
#include <cstdio>
#include <cstdarg>
#include <cstring>
#include <string>
using namespace std;
namespace Doremi
{
namespace Utilities
{
namespace String
{
void toString(string& dst, const char* format, va_list ap) throw()
{
int length;
va_list apStrLen;
va_copy(apStrLen, ap);
length = vsnprintf(NULL, 0, format, apStrLen);
va_end(apStrLen);
if(length > 0)
{
dst.resize(length);
vsnprintf((char*)dst.data(), dst.size() + 1, format, ap);
}
else
{
dst = "Format error! format: ";
dst.append(format);
}
}
void toString(string& dst, const char* format, ...) throw()
{
va_list ap;
va_start(ap, format);
toString(dst, format, ap);
va_end(ap);
}
}
}
} | mit |
socializer/socializer_test | db/migrate/20200413025934_create_socializer_authentications.socializer.rb | 529 | # frozen_string_literal: true
# This migration comes from socializer (originally 20110804192211)
class CreateSocializerAuthentications < ActiveRecord::Migration[6.0]
def change
create_table :socializer_authentications do |t|
t.integer :person_id, null: false
t.string :provider, null: false
t.string :uid, null: false
t.string :image_url
t.timestamps
end
add_index :socializer_authentications, :person_id
add_index :socializer_authentications, :provider
end
end
| mit |
RobinBuschmann/sequelize-typescript | src/hooks/single/after/after-destroy.ts | 381 | import { HookOptions } from '../../shared/hook-options';
import { implementHookDecorator } from '../../shared/hooks-service';
export function AfterDestroy(target: any, propertyName: string): void;
export function AfterDestroy(options: HookOptions): Function;
export function AfterDestroy(...args: any[]): void | Function {
return implementHookDecorator('afterDestroy', args);
}
| mit |
GNUDimarik/dimecoin | src/core.cpp | 8024 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "core.h"
#include "hashblock.h"
#include "util.h"
std::string COutPoint::ToString() const
{
return strprintf("COutPoint(%s, %u)", hash.ToString().substr(0,10), n);
}
void COutPoint::print() const
{
LogPrintf("%s\n", ToString());
}
CTxIn::CTxIn(COutPoint prevoutIn, CScript scriptSigIn, unsigned int nSequenceIn)
{
prevout = prevoutIn;
scriptSig = scriptSigIn;
nSequence = nSequenceIn;
}
CTxIn::CTxIn(uint256 hashPrevTx, unsigned int nOut, CScript scriptSigIn, unsigned int nSequenceIn)
{
prevout = COutPoint(hashPrevTx, nOut);
scriptSig = scriptSigIn;
nSequence = nSequenceIn;
}
std::string CTxIn::ToString() const
{
std::string str;
str += "CTxIn(";
str += prevout.ToString();
if (prevout.IsNull())
str += strprintf(", coinbase %s", HexStr(scriptSig));
else
str += strprintf(", scriptSig=%s", scriptSig.ToString().substr(0,24));
if (nSequence != std::numeric_limits<unsigned int>::max())
str += strprintf(", nSequence=%u", nSequence);
str += ")";
return str;
}
void CTxIn::print() const
{
LogPrintf("%s\n", ToString());
}
CTxOut::CTxOut(int64_t nValueIn, CScript scriptPubKeyIn)
{
nValue = nValueIn;
scriptPubKey = scriptPubKeyIn;
}
uint256 CTxOut::GetHash() const
{
return SerializeHash(*this);
}
std::string CTxOut::ToString() const
{
return strprintf("CTxOut(nValue=%d.%05d, scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().substr(0,30));
}
void CTxOut::print() const
{
LogPrintf("%s\n", ToString());
}
uint256 CTransaction::GetHash() const
{
return SerializeHash(*this);
}
bool CTransaction::IsNewerThan(const CTransaction& old) const
{
if (vin.size() != old.vin.size())
return false;
for (unsigned int i = 0; i < vin.size(); i++)
if (vin[i].prevout != old.vin[i].prevout)
return false;
bool fNewer = false;
unsigned int nLowest = std::numeric_limits<unsigned int>::max();
for (unsigned int i = 0; i < vin.size(); i++)
{
if (vin[i].nSequence != old.vin[i].nSequence)
{
if (vin[i].nSequence <= nLowest)
{
fNewer = false;
nLowest = vin[i].nSequence;
}
if (old.vin[i].nSequence < nLowest)
{
fNewer = true;
nLowest = old.vin[i].nSequence;
}
}
}
return fNewer;
}
int64_t CTransaction::GetValueOut() const
{
int64_t nValueOut = 0;
BOOST_FOREACH(const CTxOut& txout, vout)
{
nValueOut += txout.nValue;
if (!MoneyRange(txout.nValue) || !MoneyRange(nValueOut))
throw std::runtime_error("CTransaction::GetValueOut() : value out of range");
}
return nValueOut;
}
double CTransaction::ComputePriority(double dPriorityInputs, unsigned int nTxSize) const
{
// In order to avoid disincentivizing cleaning up the UTXO set we don't count
// the constant overhead for each txin and up to 110 bytes of scriptSig (which
// is enough to cover a compressed pubkey p2sh redemption) for priority.
// Providing any more cleanup incentive than making additional inputs free would
// risk encouraging people to create junk outputs to redeem later.
if (nTxSize == 0)
nTxSize = ::GetSerializeSize(*this, SER_NETWORK, PROTOCOL_VERSION);
BOOST_FOREACH(const CTxIn& txin, vin)
{
unsigned int offset = 41U + std::min(110U, (unsigned int)txin.scriptSig.size());
if (nTxSize > offset)
nTxSize -= offset;
}
if (nTxSize == 0) return 0.0;
return dPriorityInputs / nTxSize;
}
std::string CTransaction::ToString() const
{
std::string str;
str += strprintf("CTransaction(hash=%s, ver=%d, vin.size=%u, vout.size=%u, nLockTime=%u)\n",
GetHash().ToString().substr(0,10),
nVersion,
vin.size(),
vout.size(),
nLockTime);
for (unsigned int i = 0; i < vin.size(); i++)
str += " " + vin[i].ToString() + "\n";
for (unsigned int i = 0; i < vout.size(); i++)
str += " " + vout[i].ToString() + "\n";
return str;
}
void CTransaction::print() const
{
LogPrintf("%s", ToString());
}
// Amount compression:
// * If the amount is 0, output 0
// * first, divide the amount (in base units) by the largest power of 10 possible; call the exponent e (e is max 9)
// * if e<9, the last digit of the resulting number cannot be 0; store it as d, and drop it (divide by 10)
// * call the result n
// * output 1 + 10*(9*n + d - 1) + e
// * if e==9, we only know the resulting number is not zero, so output 1 + 10*(n - 1) + 9
// (this is decodable, as d is in [1-9] and e is in [0-9])
uint64_t CTxOutCompressor::CompressAmount(uint64_t n)
{
if (n == 0)
return 0;
int e = 0;
while (((n % 10) == 0) && e < 9) {
n /= 10;
e++;
}
if (e < 9) {
int d = (n % 10);
assert(d >= 1 && d <= 9);
n /= 10;
return 1 + (n*9 + d - 1)*10 + e;
} else {
return 1 + (n - 1)*10 + 9;
}
}
uint64_t CTxOutCompressor::DecompressAmount(uint64_t x)
{
// x = 0 OR x = 1+10*(9*n + d - 1) + e OR x = 1+10*(n - 1) + 9
if (x == 0)
return 0;
x--;
// x = 10*(9*n + d - 1) + e
int e = x % 10;
x /= 10;
uint64_t n = 0;
if (e < 9) {
// x = 9*n + d - 1
int d = (x % 9) + 1;
x /= 9;
// x = n
n = x*10 + d;
} else {
n = x+1;
}
while (e) {
n *= 10;
e--;
}
return n;
}
uint256 CBlockHeader::GetHash() const
{
return Hash9(BEGIN(nVersion), END(nNonce));
}
uint256 CBlock::BuildMerkleTree() const
{
vMerkleTree.clear();
BOOST_FOREACH(const CTransaction& tx, vtx)
vMerkleTree.push_back(tx.GetHash());
int j = 0;
for (int nSize = vtx.size(); nSize > 1; nSize = (nSize + 1) / 2)
{
for (int i = 0; i < nSize; i += 2)
{
int i2 = std::min(i+1, nSize-1);
vMerkleTree.push_back(Hash(BEGIN(vMerkleTree[j+i]), END(vMerkleTree[j+i]),
BEGIN(vMerkleTree[j+i2]), END(vMerkleTree[j+i2])));
}
j += nSize;
}
return (vMerkleTree.empty() ? 0 : vMerkleTree.back());
}
std::vector<uint256> CBlock::GetMerkleBranch(int nIndex) const
{
if (vMerkleTree.empty())
BuildMerkleTree();
std::vector<uint256> vMerkleBranch;
int j = 0;
for (int nSize = vtx.size(); nSize > 1; nSize = (nSize + 1) / 2)
{
int i = std::min(nIndex^1, nSize-1);
vMerkleBranch.push_back(vMerkleTree[j+i]);
nIndex >>= 1;
j += nSize;
}
return vMerkleBranch;
}
uint256 CBlock::CheckMerkleBranch(uint256 hash, const std::vector<uint256>& vMerkleBranch, int nIndex)
{
if (nIndex == -1)
return 0;
BOOST_FOREACH(const uint256& otherside, vMerkleBranch)
{
if (nIndex & 1)
hash = Hash(BEGIN(otherside), END(otherside), BEGIN(hash), END(hash));
else
hash = Hash(BEGIN(hash), END(hash), BEGIN(otherside), END(otherside));
nIndex >>= 1;
}
return hash;
}
void CBlock::print() const
{
LogPrintf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%u)\n",
GetHash().ToString(),
nVersion,
hashPrevBlock.ToString(),
hashMerkleRoot.ToString(),
nTime, nBits, nNonce,
vtx.size());
for (unsigned int i = 0; i < vtx.size(); i++)
{
LogPrintf(" ");
vtx[i].print();
}
LogPrintf(" vMerkleTree: ");
for (unsigned int i = 0; i < vMerkleTree.size(); i++)
LogPrintf("%s ", vMerkleTree[i].ToString());
LogPrintf("\n");
}
| mit |
a25kk/anv | src/anv.sitecontent/anv/sitecontent/browser/contentpage.py | 7199 | # -*- coding: utf-8 -*-
"""Module providing views for the folderish content page type"""
from Acquisition import aq_inner
from Products.Five.browser import BrowserView
from plone import api
from zope.component import getMultiAdapter
from zope.component import getUtility
from anv.sitecontent.contentpage import IContentPage
from anv.sitecontent.interfaces import IResponsiveImagesTool
IMG = 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs='
class ContentPageView(BrowserView):
""" Folderish content page default view """
def has_leadimage(self):
context = aq_inner(self.context)
try:
lead_img = context.image
except AttributeError:
lead_img = None
if lead_img is not None:
return True
return False
def has_contacts(self):
context = aq_inner(self.context)
try:
lead_img = context.relatedContacts
except AttributeError:
lead_img = None
if lead_img is not None:
return True
return False
def display_gallery(self):
context = aq_inner(self.context)
try:
display = context.displayGallery
except AttributeError:
display = None
if display is not None:
return display
return False
def display_cards(self):
context = aq_inner(self.context)
try:
display = context.displayPreviewCards
except AttributeError:
display = None
if display is not None:
return display
return False
def contained_pages(self):
context = aq_inner(self.context)
items = api.content.find(
context=context,
depth=1,
object_provides=IContentPage,
sort_on='getObjPositionInParent'
)
return items
def has_contained_pages(self):
return len(self.contained_pages()) > 0
def rendered_card(self, uuid):
context = api.content.get(UID=uuid)
template = context.restrictedTraverse('@@card-view')()
return template
def rendered_gallery(self):
context = aq_inner(self.context)
template = context.restrictedTraverse('@@gallery-view')()
return template
def get_image_data(self, uuid):
tool = getUtility(IResponsiveImagesTool)
return tool.create(uuid)
def image_data(self):
data = {}
sizes = ['small', 'medium', 'large']
idx = 0
for size in sizes:
idx += 0
img = self._get_scaled_img(size)
data[size] = '{0} {1}w'.format(img['url'], img['width'])
return data
def _get_scaled_img(self, size):
context = aq_inner(self.context)
scales = getMultiAdapter((context, self.request), name='images')
if size == 'small':
scale = scales.scale('image', width=300, height=300)
if size == 'medium':
scale = scales.scale('image', width=600, height=600)
else:
scale = scales.scale('image', width=900, height=900)
item = {}
if scale is not None:
item['url'] = scale.url
item['width'] = scale.width
item['height'] = scale.height
else:
item['url'] = IMG
item['width'] = '1px'
item['height'] = '1px'
return item
class CardView(BrowserView):
""" Embeddable preview card for content pages """
def has_image(self):
context = aq_inner(self.context)
try:
lead_img = context.image
except AttributeError:
lead_img = None
if lead_img is not None:
return True
return False
def get_image_data(self, uuid):
tool = getUtility(IResponsiveImagesTool)
return tool.create(uuid)
class CardPreview(BrowserView):
"""Preview embeddable content page preview cards"""
def __call__(self):
return self.render()
def render(self):
return self.index()
def rendered_card(self):
context = aq_inner(self.context)
template = context.restrictedTraverse('@@card-view')()
return template
class BaseContentView(BrowserView):
""" Embeddable full content view """
class GalleryPreview(BrowserView):
"""Preview embeddable image gallery"""
def __call__(self):
self.has_assets = len(self.contained_images()) > 0
return self.render()
def render(self):
return self.index()
def rendered_gallery(self):
context = aq_inner(self.context)
template = context.restrictedTraverse('@@gallery-view')()
return template
class GalleryView(BrowserView):
"""Provide gallery of contained image content"""
def __call__(self):
self.has_assets = len(self.contained_images()) > 0
return self.render()
def render(self):
return self.index()
def has_leadimage(self):
context = aq_inner(self.context)
try:
lead_img = context.image
except AttributeError:
lead_img = None
if lead_img is not None:
return True
return False
def leadimage_tag(self):
context = aq_inner(self.context)
scales = getMultiAdapter((context, self.request), name='images')
scale = scales.scale('image', width=900, height=900)
item = {}
if scale is not None:
item['url'] = scale.url
item['width'] = scale.width
item['height'] = scale.height
else:
item['url'] = IMG
item['width'] = '1px'
item['height'] = '1px'
return item
def contained_images(self):
context = aq_inner(self.context)
data = context.restrictedTraverse('@@folderListing')(
portal_type='Image',
sort_on='getObjPositionInParent')
return data
def image_tag(self, image):
context = image.getObject()
scales = getMultiAdapter((context, self.request), name='images')
scale = scales.scale('image', width=900, height=900)
item = {}
if scale is not None:
item['url'] = scale.url
item['width'] = scale.width
item['height'] = scale.height
else:
item['url'] = IMG
item['width'] = '1px'
item['height'] = '1px'
return item
def _get_scaled_img(self, size):
context = aq_inner(self.context)
scales = getMultiAdapter((context, self.request), name='images')
if size == 'small':
scale = scales.scale('image', width=300, height=300)
if size == 'medium':
scale = scales.scale('image', width=600, height=600)
else:
scale = scales.scale('image', width=900, height=900)
item = {}
if scale is not None:
item['url'] = scale.url
item['width'] = scale.width
item['height'] = scale.height
else:
item['url'] = IMG
item['width'] = '1px'
item['height'] = '1px'
return item
| mit |
dmeikle/GossamerCMS-DB-V2 | app/exceptions/TableNotFoundException.php | 87 | <?php
namespace exceptions;
class TableNotFoundException extends \Exception
{
}
| mit |
angstnun/UB560_Proyecto60hs | abm/CAltaUsuario.php | 1116 | <?php
include_once("CControladorUsuario.php");
class CAltaUsuario
{
public function __constructor()
{
}
public function Alta($perfilId, $usuario, $pass, $nombrePila)
{
$ctrlUsr = new CControladorUsuario("u220754411_sisub");
if(!$ctrlUsr->GetUsuario($usuario))
{
if(!is_null($ctrlUsr->NuevoUsuario($perfilId, $usuario, $pass, $nombrePila)))
{
?>
<script>
alert("El usuario ha sido agregado exitosamente.");
location.href="../sistema.php";
</script>
<?php
}
else
{
?>
<script>
alert("Ocurrio un error al agregar al usuario. Intentelo nuevamente");
location.href="../sistema.php";
</script>
<?php
}
}
else
{
?>
<script>
alert("El usuario indicado ya existe.");
location.href = "../sistema.php";
</script>
<?php
}
}
}
$alta = new CAltaUsuario();
$alta->Alta($_POST['perfil'], $_POST['username'], $_POST['password'], $_POST['nombrePila']);
?> | mit |
tkesgar/paper-stima-levenshtein | ld_matrix.cpp | 1142 | #include <iostream>
#include <string>
using namespace std;
#define MAX_LENGTH 650
int min3(int a, int b, int c) {
return (a < b) ?
((a < c) ? a : c) :
((b < c) ? b : c) ;
}
int levenshtein(string a, string b) {
int dp[MAX_LENGTH + 1][MAX_LENGTH + 1];
int len_a = a.size();
int len_b = b.size();
// pad the strings so it become 1-based string
a = "#" + a;
b = "#" + b;
// dp(string, empty) = length of the string
for (int i = 0; i < len_a; i++) {
dp[i][0] = i;
}
for (int j = 0; j < len_b; j++) {
dp[0][j] = j;
}
// dp table building steps
for (int i = 1; i < len_a; i++) {
for (int j = 1; j < len_b; j++) {
if (a[i] == b[j]) {
dp[i][j] = dp[i-1][j-1];
} else {
dp[i][j] = min3(
dp[i-1][j] + 1,
dp[i][j-1] + 1,
dp[i-1][j-1] + 1
);
}
}
}
// print the dp table
for (int i = 0; i < len_a; i++) {
for (int j = 0; j < len_b; j++) {
cout << dp[i][j];
if (j + 1 == len_b) {
cout << endl;
} else {
cout << " ";
}
}
}
return dp[len_a - 1][len_b - 1];
}
int main() {
string a;
string b;
cin >> a;
cin >> b;
cout << levenshtein(a, b) << endl;
} | mit |
daweiwu/meta-iotqa-1 | lib/oeqa/runtime/sensor/test_pressure_bmp280.py | 2462 | """
@file test_pressure_bmp280.py
"""
##
# @addtogroup soletta sensor
# @brief This is sensor test based on soletta app
# @brief test pressure function of sensor bmp280 on Galileo/MinnowMax
##
import os
import time
from oeqa.utils.helper import shell_cmd
from oeqa.oetest import oeRuntimeTest
from EnvirSetup import EnvirSetup
from oeqa.utils.decorators import tag
@tag(TestType="FVT", FeatureID="IOTOS-757")
class TestPressureBMP280(oeRuntimeTest):
"""
@class TestPressureBMP280
"""
def setUp(self):
'''Generate test app on target
@fn setUp
@param self
@return'''
print 'start!\n'
#connect sensor and DUT through board
#shell_cmd("sudo python "+ os.path.dirname(__file__) + "/Connector.py bmp280")
envir = EnvirSetup(self.target)
envir.envirSetup("bmp280","pressure")
def tearDown(self):
'''unload bmp280 driver
@fn tearDown
@param self
@return'''
(status, output) = self.target.run("cat /sys/devices/virtual/dmi/id/board_name")
if "Minnow" in output:
(status, output) = self.target.run(
"cd /sys/bus/i2c/devices; \
echo 0x76 >i2c-1/delete_device")
if "Galileo" in output:
(status, output) = self.target.run(
"cd /sys/bus/i2c/devices; \
echo 0x76 >i2c-0/delete_device")
def test_Pressure_BMP280(self):
'''Execute the test app and verify sensor data
@fn test_Pressure_BMP280
@param self
@return'''
print 'start reading data!'
(status, output) = self.target.run(
"chmod 777 /opt/apps/test_pressure_bmp280.fbp")
(status, output) = self.target.run(
"cd /opt/apps; ./test_pressure_bmp280.fbp >re.log")
error = output
(status, output) = self.target.run(
"cp /opt/apps/re.log /home/root/bmp280_pressure.log")
#verification of target sensor data
(status, output) = self.target.run("cat /opt/apps/re.log|grep float")
print output + "\n"
self.assertEqual(status, 0, msg="Error messages: %s" % error)
#make sure sensor data is valid
(status, output) = self.target.run("cat /opt/apps/re.log|grep ' 0.000000'")
self.assertEqual(status, 1, msg="Error messages: %s" % output)
| mit |
Montana-Studio/Mediakit | app/wp-content/themes/Mediakit/woocommerce/single-product/add-to-cart/simple.php | 1910 | <?php
/**
* Simple product add to cart
*
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/add-to-cart/simple.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer).
* will need to copy the new files to your theme to maintain compatibility. We try to do this.
* as little as possible, but it does happen. When this occurs the version of the template file will.
* be bumped and the readme will list any important changes.
*
* @see http://docs.woothemes.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
global $product;
if ( ! $product->is_purchasable() ) {
return;
}
?>
<?php if ( $product->is_in_stock() ) : ?>
<?php do_action( 'woocommerce_before_add_to_cart_form' ); ?>
<form class="addcart" method="post" enctype='multipart/form-data'>
<?php do_action( 'woocommerce_before_add_to_cart_button' ); ?>
<?php
if ( ! $product->is_sold_individually() ) {
woocommerce_quantity_input( array(
'min_value' => apply_filters( 'woocommerce_quantity_input_min', 1, $product ),
'max_value' => apply_filters( 'woocommerce_quantity_input_max', $product->backorders_allowed() ? '' : $product->get_stock_quantity(), $product ),
'input_value' => ( isset( $_POST['quantity'] ) ? wc_stock_amount( $_POST['quantity'] ) : 1 )
) );
}
?>
<input type="hidden" name="add-to-cart" value="<?php echo esc_attr( $product->id ); ?>" />
<button type="submit" class="single_add_to_cart_button button alt"><?php echo esc_html( $product->single_add_to_cart_text() ); ?></button>
<?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>
</form>
<?php do_action( 'woocommerce_after_add_to_cart_form' ); ?>
<?php endif; ?>
| mit |
ennerperez/color-toolkit | ColorToolkit/References/Platform/HEX.cs | 1315 | using System;
using System.Drawing;
namespace Platform.Support.Drawing
{
public static partial class ColorHelper
{
public static string ToHEX(Color source)
{
return ToHEX(source.R, source.G, source.B);
}
public static string ToHEX(int r, int g, int b)
{
return "#" + System.Drawing.ColorTranslator.FromHtml(string.Format("#{0:X2}{1:X2}{2:X2}", r, g, b)).Name.Remove(0, 2);
}
public static Color ToColor(string hex, int alpha = 255)
{
System.Drawing.Color _return;
try
{
_return = System.Drawing.ColorTranslator.FromHtml(hex);
}
catch
{
throw new Exception("Hexadecimal string is not a valid color format");
}
return _return;
}
//public static Color HEX(string val)
//{
// return ToColor(val);
//}
}
public static partial class ColorExtensions
{
public static void FromHEX(this Color @this, string hex, int alpha = 255)
{
@this = ColorHelper.ToColor(hex, alpha);
}
public static string ToHEX(this Color @this)
{
return ColorHelper.ToHEX(@this);
}
}
} | mit |
zagnut999/VSOnBuildExtension | src/VSOnBuildExtension/VSOnBuildExtension/PkgCmdID.cs | 205 | // PkgCmdID.cs
// MUST match PkgCmdID.h
using System;
namespace CleverMonkeys.VSOnBuildExtension
{
static class PkgCmdIDList
{
public const uint cmdidIISReset = 0x100;
};
} | mit |
sickevilfuck/FastCGIUtility | src/fastcgi/tests/dispatcher-test.cpp | 352 |
#include "gtest/gtest.h"
#include <string>
#include <fstream>
#define private public
#include "dispatcher.h"
TEST(dispatcher, path)
{
{
const std::string& query = "/v1/config?a=b&b=c";
EXPECT_EQ("/v1/config", Dispatcher::path(query));
}
{
const std::string& query = "/v1/config";
EXPECT_EQ("/v1/config", Dispatcher::path(query));
}
}
| mit |
thefreshduke/slogo | src/turtle/Left.java | 171 | package turtle;
public class Left extends MoveDirection {
@Override
public Position move(Position p, int speed) {
p.setXPos(p.getXPos()-speed);
return p;
}
}
| mit |
billba/botchat | __tests__/hooks/useSendTypingIndicator.js | 981 | import { timeouts } from '../constants.json';
// selenium-webdriver API doc:
// https://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/index_exports_WebDriver.html
jest.setTimeout(timeouts.test);
test('getter should get sendTypingIndicator from props', async () => {
const { pageObjects } = await setupWebDriver({ props: { sendTypingIndicator: true } });
await expect(pageObjects.runHook('useSendTypingIndicator', [], result => result[0])).resolves.toBeTruthy();
});
test('getter should get default value if not set in props', async () => {
const { pageObjects } = await setupWebDriver();
await expect(pageObjects.runHook('useSendTypingIndicator', [], result => result[0])).resolves.toBeFalsy();
});
test('setter should be falsy', async () => {
const { pageObjects } = await setupWebDriver();
const [_, setSendTypingIndicator] = await pageObjects.runHook('useSendTypingIndicator');
expect(setSendTypingIndicator).toBeFalsy();
});
| mit |
meefik/java-examples | SpringAOP/src/main/java/ru/ifmo/springaop/staticpc/SimpleStaticPointcut.java | 884 | package ru.ifmo.springaop.staticpc;
import java.lang.reflect.Method;
import org.springframework.aop.ClassFilter;
import org.springframework.aop.support.StaticMethodMatcherPointcut;
/**
* Пример создания собственного статического среза.
* Проверяются имя метода и класс, из которого этот метод вызывался.
*/
public class SimpleStaticPointcut extends StaticMethodMatcherPointcut {
@Override
public boolean matches(Method method, Class<?> cls) {
return ("foo".equals(method.getName()));
}
@Override
public ClassFilter getClassFilter() {
return new ClassFilter() {
@Override
public boolean matches(Class<?> cls) {
return (cls == BeanOne.class);
}
};
}
} | mit |
mikeverbeck/rails_gtm | test/dummy/config/routes.rb | 103 | Rails.application.routes.draw do
mount RailsGtm::Engine => "/rails_gtm"
root to: "home#index"
end
| mit |
openteam/el_vfs | spec/dummy/app/assets/javascripts/application.js | 677 | /* This is a manifest file that'll be compiled into including all the files listed below.
* Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
* be included in the compiled file accessible from http://example.com/assets/application.js
* It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
* the compiled file.
*
*= require jquery.min.js
*= require jquery-ui.min.js
*= require jquery_ujs.js
*= require el_vfs/elfinder.js
*= require el_vfs/i18n/elfinder.ru.js
*/
$(function() {
$('#elfinder').elfinder({
lang: 'ru',
height: '600',
url: '/el_vfs/api/elfinder'
});
});
| mit |
cuckata23/wurfl-data | data/micromax_a106_ver1.php | 444 | <?php
return array (
'id' => 'micromax_a106_ver1',
'fallback' => 'generic_android_ver4_4',
'capabilities' =>
array (
'mobile_browser_version' => '30',
'model_name' => 'A106',
'brand_name' => 'Micromax',
'marketing_name' => 'Unite 2',
'release_date' => '2014_may',
'physical_screen_height' => '103',
'physical_screen_width' => '62',
'resolution_width' => '480',
'resolution_height' => '800',
),
);
| mit |
mstaessen/Almanac | src/Almanac/Model/Abstractions/Address.cs | 1020 | using System;
using System.Diagnostics;
namespace Almanac.Model.Abstractions
{
[DebuggerDisplay("{Name} <{Email}>")]
public abstract class Address : IEquatable<Address>
{
public string Email { get; }
public LocalizedString Name { get; set; }
protected Address(string email, LocalizedString name)
{
Email = email;
Name = name;
}
public bool Equals(Address other)
{
return string.Equals(Email, other.Email);
}
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) {
return false;
}
if (ReferenceEquals(this, obj)) {
return true;
}
if (obj.GetType() != GetType()) {
return false;
}
return Equals((Address) obj);
}
public override int GetHashCode()
{
return Email?.GetHashCode() ?? 0;
}
}
} | mit |
angulartics/angulartics2 | src/lib/providers/adobeanalytics/adobeanalytics.ts | 3176 | import { Location } from '@angular/common';
import { Injectable } from '@angular/core';
import { Angulartics2 } from '../../angulartics2-core';
declare const s: any;
@Injectable({ providedIn: 'root' })
export class Angulartics2AdobeAnalytics {
constructor(private angulartics2: Angulartics2, private location: Location) {
this.angulartics2.setUserProperties.subscribe(x => this.setUserProperties(x));
}
startTracking(): void {
this.angulartics2.pageTrack
.pipe(this.angulartics2.filterDeveloperMode())
.subscribe(x => this.pageTrack(x.path));
this.angulartics2.eventTrack
.pipe(this.angulartics2.filterDeveloperMode())
.subscribe(x => this.eventTrack(x.action, x.properties));
}
pageTrack(path: string) {
if (typeof s !== 'undefined' && s) {
s.clearVars();
s.t({ pageName: path });
}
}
/**
* Track Event in Adobe Analytics
*
* @param action associated with the event
* @param properties action detials
*
* @link https://marketing.adobe.com/resources/help/en_US/sc/implement/js_implementation.html
*/
eventTrack(action: string, properties: any) {
// TODO: make interface
// @property {string} properties.category
// @property {string} properties.label
// @property {number} properties.value
// @property {boolean} properties.noninteraction
if (!properties) {
properties = properties || {};
}
if (typeof s !== 'undefined' && s) {
if (typeof properties === 'object') {
this.setUserProperties(properties);
}
if (action) {
// if linkName property is passed, use that; otherwise, the action is the linkName
const linkName = properties['linkName'] ? properties['linkName'] : action;
// note that 'this' should refer the link element, but we can't get that in this function. example:
// <a href="http://anothersite.com" onclick="s.tl(this,'e','AnotherSite',null)">
// if disableDelay property is passed, use that to turn off/on the 500ms delay; otherwise, it uses this
const disableDelay = !!properties['disableDelay'] ? true : this;
// if action property is passed, use that; otherwise, the action remains unchanged
if (properties['action']) {
action = properties['action'];
}
this.setPageName();
if (action.toUpperCase() === 'DOWNLOAD') {
s.tl(disableDelay, 'd', linkName);
} else if (action.toUpperCase() === 'EXIT') {
s.tl(disableDelay, 'e', linkName);
} else {
s.tl(disableDelay, 'o', linkName);
}
}
}
}
private setPageName() {
const path = this.location.path(true);
const hashNdx = path.indexOf('#');
if (hashNdx > 0 && hashNdx < path.length) {
s.pageName = path.substring(hashNdx + 1);
} else {
s.pageName = path;
}
}
setUserProperties(properties: any) {
if (typeof s !== 'undefined' && s) {
if (typeof properties === 'object') {
for (const key in properties) {
if (properties.hasOwnProperty(key)) {
s[key] = properties[key];
}
}
}
}
}
}
| mit |
jonestimd/finances | src/test/java/io/github/jonestimd/finance/file/quicken/handler/HandlerTestFixture.java | 639 | package io.github.jonestimd.finance.file.quicken.handler;
import java.text.SimpleDateFormat;
import io.github.jonestimd.finance.file.quicken.QuickenContext;
import io.github.jonestimd.finance.file.quicken.qif.QifTestFixture;
public abstract class HandlerTestFixture<HANDLER extends SecurityTransactionHandler> extends QifTestFixture {
protected SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yy");
@SuppressWarnings("unchecked")
protected HANDLER getHandler(String name) throws Exception {
QuickenContext qifContext = getQifContext();
return (HANDLER) qifContext.getSecurityHandler(name);
}
} | mit |
sdispater/orator | tests/commands/migrations/test_migrate_command.py | 4384 | # -*- coding: utf-8 -*-
import os
from flexmock import flexmock
from orator.migrations import Migrator
from orator.commands.migrations import MigrateCommand
from orator import DatabaseManager
from .. import OratorCommandTestCase
class MigrateCommandTestCase(OratorCommandTestCase):
def test_basic_migrations_call_migrator_with_proper_arguments(self):
resolver = flexmock(DatabaseManager)
resolver.should_receive("connection").and_return(None)
migrator_mock = flexmock(Migrator)
migrator_mock.should_receive("set_connection").once().with_args(None)
migrator_mock.should_receive("run").once().with_args(
os.path.join(os.getcwd(), "migrations"), False
)
migrator_mock.should_receive("get_notes").and_return([])
migrator_mock.should_receive("repository_exists").once().and_return(True)
command = flexmock(MigrateCommand())
command.should_receive("_get_config").and_return({})
command.should_receive("confirm").and_return(True)
self.run_command(command)
def test_migration_repository_create_when_necessary(self):
resolver = flexmock(DatabaseManager)
resolver.should_receive("connection").and_return(None)
migrator_mock = flexmock(Migrator)
migrator_mock.should_receive("set_connection").once().with_args(None)
migrator_mock.should_receive("run").once().with_args(
os.path.join(os.getcwd(), "migrations"), False
)
migrator_mock.should_receive("get_notes").and_return([])
migrator_mock.should_receive("repository_exists").once().and_return(False)
command = flexmock(MigrateCommand())
command.should_receive("_get_config").and_return({})
command.should_receive("confirm").and_return(True)
command.should_receive("call").once().with_args(
"migrate:install", [("--config", None)]
)
self.run_command(command)
def test_migration_can_be_pretended(self):
resolver = flexmock(DatabaseManager)
resolver.should_receive("connection").and_return(None)
migrator_mock = flexmock(Migrator)
migrator_mock.should_receive("set_connection").once().with_args(None)
migrator_mock.should_receive("run").once().with_args(
os.path.join(os.getcwd(), "migrations"), True
)
migrator_mock.should_receive("get_notes").and_return([])
migrator_mock.should_receive("repository_exists").once().and_return(True)
command = flexmock(MigrateCommand())
command.should_receive("_get_config").and_return({})
command.should_receive("confirm").and_return(True)
self.run_command(command, [("--pretend", True)])
def test_migration_database_can_be_set(self):
resolver = flexmock(DatabaseManager)
resolver.should_receive("connection").and_return(None)
migrator_mock = flexmock(Migrator)
migrator_mock.should_receive("set_connection").once().with_args("foo")
migrator_mock.should_receive("run").once().with_args(
os.path.join(os.getcwd(), "migrations"), False
)
migrator_mock.should_receive("get_notes").and_return([])
migrator_mock.should_receive("repository_exists").once().and_return(False)
command = flexmock(MigrateCommand())
command.should_receive("_get_config").and_return({})
command.should_receive("confirm").and_return(True)
command.should_receive("call").once().with_args(
"migrate:install", [("--database", "foo"), ("--config", None)]
)
self.run_command(command, [("--database", "foo")])
def test_migration_can_be_forced(self):
resolver = flexmock(DatabaseManager)
resolver.should_receive("connection").and_return(None)
migrator_mock = flexmock(Migrator)
migrator_mock.should_receive("set_connection").once().with_args(None)
migrator_mock.should_receive("run").once().with_args(
os.path.join(os.getcwd(), "migrations"), False
)
migrator_mock.should_receive("get_notes").and_return([])
migrator_mock.should_receive("repository_exists").once().and_return(True)
command = flexmock(MigrateCommand())
command.should_receive("_get_config").and_return({})
self.run_command(command, [("--force", True)])
| mit |
altras/fmifeedback-client | js/index.js | 5321 | var APIendpoint = "http://146.185.165.209/server/";
var page = 1;
$(window).scroll(function() {
if($(window).scrollTop() == $(document).height() - $(window).height()) {
$("#feedback").append($('div#loadmoreajaxloader'));
$('div#loadmoreajaxloader').show();
$.ajax({
url: APIendpoint + "feedbacks/" + page,
success: function(data) {
page += 1;
if(data.result) {
for (var i = 0; i < data.result.length; i++) {
var html = getFeedbackHTMLElement(data.result[i]);
$("#feedback").append(html);
};
$('div#loadmoreajaxloader').detach();
$('div#loadmoreajaxloader').hide();
} else {
$('div#loadmoreajaxloader').html('<center>No more posts to show.</center>');
}
}
});
}
});
$(document).ready(function() {
$.ajax({
type: "GET",
url : APIendpoint + "feedback/?key=hackfmi",
dataType: "json",
success : function(data) {
Recaptcha.create(data.recaptcha_public_key,
"recaptcha",
{
theme: "red",
callback: Recaptcha.focus_response_field
}
);
$("#feedbackCount span").html(data.count_all);
},
error : function(jqXHR, textStatus, errorThrown) {
console.log(textStatus + ' ' + errorThrown);
}
});
});
var getFeedbackHTMLElement = function (data) {
var html = '<div class="feedbackElement well well-large">'
+ '<div class="date label label-default pull-right">' + data.created + '</div>'
+ '<h2 data-id="' + data.course_id + '" class="course-name"><a href="course.html#' + data.course_id + '">' + data.course_name + '</a></h2>'
+ '<h2 data-id="' + data.teacher_id + '" class="teacher-name"><a href="teacher.html#' + data.teacher_id + '">' + data.teacher_name + '</a></h2>';
if (data.positive_text) {
html += '<div class="positive-feedback alert-success pull-left">' + data.positive_text + '</div>';
}
if (data.negative_text) {
html += '<div class="negative-feedback alert-danger pull-right">' + data.negative_text + '</div>';
}
html += '<div class="date label label-default">' + data.course_rating + '</div>'
+ '<div class="date label label-default">' + data.teacher_rating + '</div></div>';
return html;
};
var onKeypress = function(e) {
var tmp_str = $("#courseInputField").val();
if (tmp_str.length > 1) {
$.ajax({
type : "GET",
url : APIendpoint + "startsWith/" + tmp_str,
dataType: 'json',
success : function(data) {
var context = data;
var options = [];
for (var i = data.length - 1; i >= 0; i--) {
options.push(data[i].name);
};
$("#courseInputField").autocomplete({
source: options,
autoFocus: true,
select: function(e, ui) {
var courseID = -1;
for(var i = 0, len = context.length; i<len; i++) {
if (context[i].name === ui.item.label) {
courseID = context[i].uid;
break;
}
};
$("#courseId").attr("value", courseID);
getTeachersForCourse(courseID)
}
})},
error : function(jqXHR, textStatus, errorThrown) {
console.log(textStatus + ' ' + errorThrown);
}
});
}
};
var getTeachersForCourse = function(label) {
//GET Teachers
var courseID = label;
$.ajax({
type : "GET",
url : APIendpoint + "teacherByCourse/" + courseID,
dataType: 'json',
success : function(data) {
var option = '';
for (i=0;i<data.length;i++){
option += '<option data-id="' + data[i].uid + '" value="'+ data[i].name + '">' + data[i].name + '</option>';
}
$('#teacher').append(option);
$('#teacher').val(data[0].name);
},
error : function(jqXHR, textStatus, errorThrown) {
console.log(textStatus + ' ' + errorThrown);
}
});
};
var getFeedback = function(e) {
$.ajax({
type : "GET",
url : APIendpoint + "feedbacks/" + 1,
dataType: 'json',
success : function(data) {
var option = '';
for (i=0;i<data.length;i++){
option += '<option value="'+ data[i].name + '">' + data[i].name + '</option>';
}
$('#teacher').append(option);
$('#teacher').val(data[0].name);
},
error : function(jqXHR, textStatus, errorThrown) {
console.log(textStatus + ' ' + errorThrown);
}
});
};
var postFeedback = function(e){
$.ajax({
type : "POST",
url : APIendpoint +"feedback/?key=hackfmi",
data : {
"teacher_id": $('#teacher option:selected').attr('data-id'),
"course_id": $("#courseId").val(),
"positive": $("#positiveFeedback").val(),
"negative": $("#negativeFeedback").val(),
"course_rating": 0,
"teacher_rating": 0,
"recaptcha_response_field": Recaptcha.get_response(),
"recaptcha_challenge_field": Recaptcha.get_challenge()
},
statusCode: {
404: function() {
alert( "page not found" );
},
200: function() {
alert("We got that! Thank you, your feedback will be much appreciated ^_^ twitter, facebook, g+ sharing buttons go here :)")
}
},
success : function(data) {
console.log(data);
},
error : function(jqXHR, textStatus, errorThrown) {
console.log(textStatus + ' ' + errorThrown);
}
});
}
| mit |
padget/thodd | include/thodd/proto.hpp | 3972 | #ifndef __THODD_PROTO_HPP__
# define __THODD_PROTO_HPP__
# include<thodd/meta.hpp>
# include<thodd/tuple.hpp>
# include<thodd/core/dsl.hpp>
# include<string>
namespace thodd
{
namespace testdsl
{
namespace detail
{
template<
typename func_t>
struct test_node
{
func_t func;
};
template<
typename params_t>
struct with_node
{
params_t params;
};
template<
typename assertion_t>
struct assert_node
{
assertion_t assertion;
};
}
template<
typename func_t>
constexpr auto
test(
func_t&& __func)
{
return make_node<detail::test_node>(perfect<func_t>(__func));
}
template<
typename ... params_t>
constexpr auto
with(
params_t&&... __params)
{
return make_node<detail::with_node>(make_tuple(perfect<params_t>(__params)...));
}
template<
typename assertion_t>
constexpr auto
assert(
assertion_t&& __assertion)
{
return make_node<detail::assert_node>(perfect<assertion_t>(__assertion));
}
template<
typename dsl_t>
struct unit_test;
class test_failed_exception :
public std::exception
{
std::string message;
public:
virtual char const*
what() const noexcept
{
return "test_failed_exception : ";
}
};
template<
typename func_t,
typename assertion_t,
typename ... params_t>
using test_with_assert =
dsl_expression<
detail::test_node<func_t>,
detail::with_node<params_t...>,
detail::assert_node<assertion_t>>;
template<
typename func_t,
typename assertion_t,
typename ... params_t>
struct unit_test<
test_with_assert<
func_t,
assertion_t,
params_t...>>
{
template<
typename ... args_t>
inline void
operator()(
test_with_assert<
func_t,
assertion_t,
params_t...> const& __cdsl,
args_t&&... __args) const
{
(*this)(make_indexes<sizeof...(params_t)>{},
__cdsl,
perfect<args_t>(__args)...);
}
template<
typename ... args_t,
size_t ... indexes_c>
inline void
operator()(
indexes<indexes_c...> const&,
test_with_assert<
func_t,
assertion_t,
params_t...> const& __cdsl,
args_t&&... __args) const
{
auto&& __func = get<0>(__cdsl).func(
perfect<args_t>(__args)...);
auto&& __params = get<1>(__cdsl).params;
auto&& __assertion = get<2>(__cdsl).assertion;
if(!__assertion(
__func(get<indexes_c>(__params)(
perfect<args_t>(__args)...)...),
perfect<args_t>(__args)...))
throw test_failed_exception();
}
};
}
}
#endif | mit |