WikimapsAtlas/WikimapsAtlas-generator

2017 update

hugolpz opened this issue · 1 comments

Last active period was in 2015. Code needs some review, testing, update.

  • readme.md
  • data.makefile : check up urls
  • node / npm validation => works with 6.10.2
$nvm use x.y.z $npm install $make -f master.makefile
Now using node v4.8.2 (npm v2.15.11) success[1] 4/5
Now using node v6.10.2 (npm v3.10.10) success-error[2] but works 5/5

[1] : v4.8.2 (npm v2.15.11)

yug@yugPC-2017:~/projects/make-modules$ npm install
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
 
> contextify@0.1.15 install /home/yug/projects/make-modules/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/home/yug/projects/make-modules/node_modules/jsdom/node_modules/contextify/build'
  CXX(target) Release/obj.target/contextify/src/contextify.o
  SOLINK_MODULE(target) Release/obj.target/contextify.node
  COPY Release/contextify.node
make: Leaving directory '/home/yug/projects/make-modules/node_modules/jsdom/node_modules/contextify/build'
-
> wikiatlas@0.0.2 install /home/yug/projects/make-modules
> make -f install.makefile

sudo apt-get -y install -y build-essential        #comment, is this needed ?
[sudo] password for yug: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get -y install -y python g++
Reading package lists... Done
Building dependency tree       
Reading state information... Done
g++ is already the newest version (4:6.3.0-2ubuntu1).
python is already the newest version (2.7.13-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get install -y git curl unzip unrar gdal-bin python-gdal imagemagick python-software-properties
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version (7.52.1-4ubuntu1).
git is already the newest version (1:2.11.0-2).
imagemagick is already the newest version (8:6.9.7.4+dfsg-3ubuntu1).
unzip is already the newest version (6.0-20ubuntu1).
gdal-bin is already the newest version (2.1.2+dfsg-3).
python-gdal is already the newest version (2.1.2+dfsg-3).
python-software-properties is already the newest version (0.96.24.13).
unrar is already the newest version (1:5.4.5-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
echo "======================================"   #this is the 1st command
======================================
echo "Wikiatlas setup: done --------> 100% !" 	#tab before each command is COMPULSORY (spaces will bug!).
Wikiatlas setup: done --------> 100% !
minimist@1.1.3 node_modules/minimist

http-server@0.7.5 node_modules/http-server
├── opener@1.4.3
├── colors@1.0.3
├── portfinder@0.2.1 (mkdirp@0.0.7)
├── ecstatic@0.6.1 (he@0.5.0, mime@1.3.4)
├── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
└── union@0.4.6 (qs@2.3.3)

forever@0.14.2 node_modules/forever
├── colors@0.6.2
├── timespan@2.3.0
├── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
├── cliff@0.1.10 (eyes@0.1.8, colors@1.0.3)
├── nssocket@0.5.3 (eventemitter2@0.4.14, lazy@1.0.11)
├── winston@0.8.3 (cycle@1.0.3, async@0.2.10, stack-trace@0.0.9, eyes@0.1.8, isstream@0.1.2, pkginfo@0.3.1)
├── utile@0.2.1 (async@0.2.10, deep-equal@1.0.1, i@0.3.5, ncp@0.4.2, mkdirp@0.5.1, rimraf@2.6.1)
├── nconf@0.6.9 (ini@1.3.4, async@0.2.9, optimist@0.6.0)
├── forever-monitor@1.5.2 (watch@0.13.0, minimatch@1.0.0, ps-tree@0.0.3, broadway@0.3.6)
└── flatiron@0.4.3 (director@1.2.7, optimist@0.6.0, prompt@0.2.14, broadway@0.3.6)

d3@3.5.17 node_modules/d3

jsdom@1.0.3 node_modules/jsdom
├── xmlhttprequest@1.8.0
├── browser-request@0.3.3
├── nwmatcher@1.3.9
├── cssom@0.3.2
├── parse5@1.5.1
├── htmlparser2@3.9.2 (domelementtype@1.3.0, inherits@2.0.3, entities@1.1.1, domhandler@2.3.0, domutils@1.5.1, readable-stream@2.2.9)
├── request@2.81.0 (aws-sign2@0.6.0, forever-agent@0.6.1, oauth-sign@0.8.2, tunnel-agent@0.6.0, caseless@0.12.0, is-typedarray@1.0.0, stringstream@0.0.5, safe-buffer@5.0.1, aws4@1.6.0, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, performance-now@0.2.0, uuid@3.0.1, qs@6.4.0, combined-stream@1.0.5, mime-types@2.1.15, tough-cookie@2.3.2, form-data@2.1.4, hawk@3.1.3, http-signature@1.1.1, har-validator@4.2.1)
├── contextify@0.1.15 (bindings@1.2.1, nan@2.6.2)
└── cssstyle@0.2.37

topojson@1.6.27 node_modules/topojson
├── d3-queue@2.0.3
├── rw@1.3.3
├── optimist@0.3.7 (wordwrap@0.0.3)
├── shapefile@0.3.1 (d3-queue@1.2.3, iconv-lite@0.2.11)
└── d3-geo-projection@0.2.16 (brfs@1.4.3)

Error for v6.10.2 (npm v3.10.10)

yug@yugPC-2017:~/projects/make-modules$ npm install
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> contextify@0.1.15 install /home/yug/projects/make-modules/node_modules/contextify
> node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/home/yug/projects/make-modules/node_modules/contextify/build'
  CXX(target) Release/obj.target/contextify/src/contextify.o
../src/contextify.cc: In static member function ‘static v8::Local<v8::Context> ContextWrap::createV8Context(v8::Local<v8::Object>)’:
../src/contextify.cc:131:68: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         Local<Object> wrapper = Nan::New(constructor)->NewInstance();
                                                                    ^
In file included from /home/yug/.node-gyp/6.10.2/include/node/v8.h:25:0,
                 from /home/yug/.node-gyp/6.10.2/include/node/node.h:42,
                 from ../src/contextify.cc:1:
/home/yug/.node-gyp/6.10.2/include/node/v8.h:3275:52: note: declared here
   V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
                                                    ^
/home/yug/.node-gyp/6.10.2/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/contextify.cc:151:72: warning: ‘void v8::ObjectTemplate::SetAccessCheckCallbacks(v8::NamedSecurityCallback, v8::IndexedSecurityCallback, v8::Local<v8::Value>)’ is deprecated: Use SetAccessCheckCallback instead [-Wdeprecated-declarations]
                                        GlobalPropertyIndexedAccessCheck);
                                                                        ^
In file included from /home/yug/.node-gyp/6.10.2/include/node/v8.h:25:0,
                 from /home/yug/.node-gyp/6.10.2/include/node/node.h:42,
                 from ../src/contextify.cc:1:
/home/yug/.node-gyp/6.10.2/include/node/v8.h:4804:12: note: declared here
       void SetAccessCheckCallbacks(NamedSecurityCallback named_handler,
            ^
/home/yug/.node-gyp/6.10.2/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyGetter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&)’:
../src/contextify.cc:182:80: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         Local<Value> rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property);
                                                                                ^
In file included from /home/yug/.node-gyp/6.10.2/include/node/v8.h:25:0,
                 from /home/yug/.node-gyp/6.10.2/include/node/node.h:42,
                 from ../src/contextify.cc:1:
/home/yug/.node-gyp/6.10.2/include/node/v8.h:2923:30: note: declared here
                 Local<Value> GetRealNamedProperty(Local<String> key));
                              ^
/home/yug/.node-gyp/6.10.2/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyQuery(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&)’:
../src/contextify.cc:209:67: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() ||
                                                                   ^
In file included from /home/yug/.node-gyp/6.10.2/include/node/v8.h:25:0,
                 from /home/yug/.node-gyp/6.10.2/include/node/node.h:42,
                 from ../src/contextify.cc:1:
/home/yug/.node-gyp/6.10.2/include/node/v8.h:2923:30: note: declared here
                 Local<Value> GetRealNamedProperty(Local<String> key));
                              ^
/home/yug/.node-gyp/6.10.2/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/contextify.cc:210:71: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             !Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) {
                                                                       ^
In file included from /home/yug/.node-gyp/6.10.2/include/node/v8.h:25:0,
                 from /home/yug/.node-gyp/6.10.2/include/node/node.h:42,
                 from ../src/contextify.cc:1:
/home/yug/.node-gyp/6.10.2/include/node/v8.h:2923:30: note: declared here
                 Local<Value> GetRealNamedProperty(Local<String> key));
                              ^
/home/yug/.node-gyp/6.10.2/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  SOLINK_MODULE(target) Release/obj.target/contextify.node
  COPY Release/contextify.node
make: Leaving directory '/home/yug/projects/make-modules/node_modules/contextify/build'

> wikiatlas@0.0.2 install /home/yug/projects/make-modules
> make -f install.makefile

sudo apt-get -y install -y build-essential        #comment, is this needed ?
[sudo] password for yug: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get -y install -y python g++
Reading package lists... Done
Building dependency tree       
Reading state information... Done
g++ is already the newest version (4:6.3.0-2ubuntu1).
python is already the newest version (2.7.13-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo apt-get install -y git curl unzip unrar gdal-bin python-gdal imagemagick python-software-properties
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version (7.52.1-4ubuntu1).
git is already the newest version (1:2.11.0-2).
imagemagick is already the newest version (8:6.9.7.4+dfsg-3ubuntu1).
unzip is already the newest version (6.0-20ubuntu1).
gdal-bin is already the newest version (2.1.2+dfsg-3).
python-gdal is already the newest version (2.1.2+dfsg-3).
python-software-properties is already the newest version (0.96.24.13).
unrar is already the newest version (1:5.4.5-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
echo "======================================"   #this is the 1st command
======================================
echo "Wikiatlas setup: done --------> 100% !" 	#tab before each command is COMPULSORY (spaces will bug!).
Wikiatlas setup: done --------> 100% !
wikiatlas@0.0.2 /home/yug/projects/make-modules
├── d3@3.5.17 
├─┬ forever@0.14.2 
│ ├─┬ cliff@0.1.10 
│ │ ├── colors@1.0.3 
│ │ └── eyes@0.1.8 
│ ├── colors@0.6.2 
│ ├─┬ flatiron@0.4.3 
│ │ ├─┬ broadway@0.3.6 
│ │ │ ├── cliff@0.1.9 
│ │ │ └── winston@0.8.0 
│ │ ├── director@1.2.7 
│ │ ├─┬ optimist@0.6.0 
│ │ │ └── minimist@0.0.10 
│ │ └─┬ prompt@0.2.14 
│ │   ├─┬ read@1.0.7 
│ │   │ └── mute-stream@0.0.7 
│ │   └── revalidator@0.1.8 
│ ├─┬ forever-monitor@1.5.2 
│ │ ├─┬ minimatch@1.0.0 
│ │ │ ├── lru-cache@2.7.3 
│ │ │ └── sigmund@1.0.1 
│ │ ├─┬ ps-tree@0.0.3 
│ │ │ └─┬ event-stream@0.5.3 
│ │ │   └── optimist@0.2.8 
│ │ └── watch@0.13.0 
│ ├─┬ nconf@0.6.9 
│ │ ├── async@0.2.9 
│ │ ├── ini@1.3.4 
│ │ └─┬ optimist@0.6.0 
│ │   └── minimist@0.0.10 
│ ├─┬ nssocket@0.5.3 
│ │ ├── eventemitter2@0.4.14 
│ │ └── lazy@1.0.11 
│ ├─┬ optimist@0.6.1 
│ │ ├── minimist@0.0.10 
│ │ └── wordwrap@0.0.3 
│ ├── timespan@2.3.0 
│ ├─┬ utile@0.2.1 
│ │ ├── async@0.2.10 
│ │ ├── deep-equal@1.0.1 
│ │ ├── i@0.3.5 
│ │ ├─┬ mkdirp@0.5.1 
│ │ │ └── minimist@0.0.8 
│ │ ├── ncp@0.4.2 
│ │ └─┬ rimraf@2.6.1 
│ │   └─┬ glob@7.1.1 
│ │     ├── fs.realpath@1.0.0 
│ │     ├─┬ inflight@1.0.6 
│ │     │ └── wrappy@1.0.2 
│ │     ├─┬ minimatch@3.0.3 
│ │     │ └─┬ brace-expansion@1.1.7 
│ │     │   ├── balanced-match@0.4.2 
│ │     │   └── concat-map@0.0.1 
│ │     ├── once@1.4.0 
│ │     └── path-is-absolute@1.0.1 
│ └─┬ winston@0.8.3 
│   ├── cycle@1.0.3 
│   ├── isstream@0.1.2 
│   ├── pkginfo@0.3.1 
│   └── stack-trace@0.0.9 
├─┬ http-server@0.7.5 
│ ├── colors@1.0.3 
│ ├─┬ ecstatic@0.6.1 
│ │ ├── he@0.5.0 
│ │ └── mime@1.3.4 
│ ├── opener@1.4.3 
│ ├─┬ portfinder@0.2.1 
│ │ └── mkdirp@0.0.7 
│ └─┬ union@0.4.6 
│   └── qs@2.3.3 
├─┬ jsdom@1.0.3 
│ ├── browser-request@0.3.3 
│ ├─┬ contextify@0.1.15 
│ │ ├── bindings@1.2.1 
│ │ └── nan@2.6.2 
│ ├── cssom@0.3.2 
│ ├── cssstyle@0.2.37 
│ ├─┬ htmlparser2@3.9.2 
│ │ ├── domelementtype@1.3.0 
│ │ ├── domhandler@2.3.0 
│ │ ├─┬ domutils@1.5.1 
│ │ │ └─┬ dom-serializer@0.1.0 
│ │ │   └── domelementtype@1.1.3 
│ │ ├── entities@1.1.1 
│ │ ├── inherits@2.0.3 
│ │ └─┬ readable-stream@2.2.9 
│ │   ├── buffer-shims@1.0.0 
│ │   ├── core-util-is@1.0.2 
│ │   ├── isarray@1.0.0 
│ │   ├── process-nextick-args@1.0.7 
│ │   ├── string_decoder@1.0.0 
│ │   └── util-deprecate@1.0.2 
│ ├── nwmatcher@1.3.9 
│ ├── parse5@1.5.1 
│ ├─┬ request@2.81.0 
│ │ ├── aws-sign2@0.6.0 
│ │ ├── aws4@1.6.0 
│ │ ├── caseless@0.12.0 
│ │ ├─┬ combined-stream@1.0.5 
│ │ │ └── delayed-stream@1.0.0 
│ │ ├── extend@3.0.0 
│ │ ├── forever-agent@0.6.1 
│ │ ├─┬ form-data@2.1.4 
│ │ │ └── asynckit@0.4.0 
│ │ ├─┬ har-validator@4.2.1 
│ │ │ ├─┬ ajv@4.11.7 
│ │ │ │ ├── co@4.6.0 
│ │ │ │ └─┬ json-stable-stringify@1.0.1 
│ │ │ │   └── jsonify@0.0.0 
│ │ │ └── har-schema@1.0.5 
│ │ ├─┬ hawk@3.1.3 
│ │ │ ├── boom@2.10.1 
│ │ │ ├── cryptiles@2.0.5 
│ │ │ ├── hoek@2.16.3 
│ │ │ └── sntp@1.0.9 
│ │ ├─┬ http-signature@1.1.1 
│ │ │ ├── assert-plus@0.2.0 
│ │ │ ├─┬ jsprim@1.4.0 
│ │ │ │ ├── assert-plus@1.0.0 
│ │ │ │ ├── extsprintf@1.0.2 
│ │ │ │ ├── json-schema@0.2.3 
│ │ │ │ └── verror@1.3.6 
│ │ │ └─┬ sshpk@1.13.0 
│ │ │   ├── asn1@0.2.3 
│ │ │   ├── assert-plus@1.0.0 
│ │ │   ├── bcrypt-pbkdf@1.0.1 
│ │ │   ├─┬ dashdash@1.14.1 
│ │ │   │ └── assert-plus@1.0.0 
│ │ │   ├── ecc-jsbn@0.1.1 
│ │ │   ├─┬ getpass@0.1.6 
│ │ │   │ └── assert-plus@1.0.0 
│ │ │   ├── jodid25519@1.0.2 
│ │ │   ├── jsbn@0.1.1 
│ │ │   └── tweetnacl@0.14.5 
│ │ ├── is-typedarray@1.0.0 
│ │ ├── json-stringify-safe@5.0.1 
│ │ ├─┬ mime-types@2.1.15 
│ │ │ └── mime-db@1.27.0 
│ │ ├── oauth-sign@0.8.2 
│ │ ├── performance-now@0.2.0 
│ │ ├── qs@6.4.0 
│ │ ├── safe-buffer@5.0.1 
│ │ ├── stringstream@0.0.5 
│ │ ├─┬ tough-cookie@2.3.2 
│ │ │ └── punycode@1.4.1 
│ │ ├── tunnel-agent@0.6.0 
│ │ └── uuid@3.0.1 
│ └── xmlhttprequest@1.8.0 
├── minimist@1.1.3 
└─┬ topojson@1.6.27 
  ├─┬ d3-geo-projection@0.2.16 
  │ └─┬ brfs@1.4.3 
  │   ├─┬ quote-stream@1.0.2 
  │   │ └── buffer-equal@0.0.1 
  │   ├─┬ resolve@1.3.2 
  │   │ └── path-parse@1.0.5 
  │   ├─┬ static-module@1.3.1 
  │   │ ├─┬ concat-stream@1.4.10 
  │   │ │ ├─┬ readable-stream@1.1.14 
  │   │ │ │ ├── isarray@0.0.1 
  │   │ │ │ └── string_decoder@0.10.31 
  │   │ │ └── typedarray@0.0.6 
  │   │ ├─┬ duplexer2@0.0.2 
  │   │ │ └─┬ readable-stream@1.1.14 
  │   │ │   ├── isarray@0.0.1 
  │   │ │   └── string_decoder@0.10.31 
  │   │ ├─┬ escodegen@1.3.3 
  │   │ │ ├── esprima@1.1.1 
  │   │ │ ├── estraverse@1.5.1 
  │   │ │ ├── esutils@1.0.0 
  │   │ │ └─┬ source-map@0.1.43 
  │   │ │   └── amdefine@1.0.1 
  │   │ ├─┬ falafel@1.2.0 
  │   │ │ ├── acorn@1.2.2 
  │   │ │ ├── foreach@2.0.5 
  │   │ │ ├── isarray@0.0.1 
  │   │ │ └── object-keys@1.0.11 
  │   │ ├─┬ has@1.0.1 
  │   │ │ └── function-bind@1.1.0 
  │   │ ├── object-inspect@0.4.0 
  │   │ ├─┬ quote-stream@0.0.0 
  │   │ │ └── minimist@0.0.8 
  │   │ ├─┬ readable-stream@1.0.34 
  │   │ │ ├── isarray@0.0.1 
  │   │ │ └── string_decoder@0.10.31 
  │   │ ├── shallow-copy@0.0.1 
  │   │ ├─┬ static-eval@0.2.4 
  │   │ │ └─┬ escodegen@0.0.28 
  │   │ │   ├── esprima@1.0.4 
  │   │ │   └── estraverse@1.3.2 
  │   │ └─┬ through2@0.4.2 
  │   │   └─┬ xtend@2.1.2 
  │   │     └── object-keys@0.4.0 
  │   └─┬ through2@2.0.3 
  │     └── xtend@4.0.1 
  ├── d3-queue@2.0.3 
  ├── optimist@0.3.7 
  ├── rw@1.3.3 
  └─┬ shapefile@0.3.1 
    ├── d3-queue@1.2.3 
    ├── iconv-lite@0.2.11 
    └── optimist@0.3.7

System

  • node4.8.2 ➡️ node@14.4.0
  • npm@2.15.11 ➡️ npm@6.14.8
  • npm jsdom@1 ➡️ jsdom@16
  • npm topojson ➡️ topojson@1.67
  • npm forever ➡️ forever@3.0.2

Code

  • upgrade codes accordingly