eurostat / gridtiler Goto Github PK
View Code? Open in Web Editor NEWTiling tool for gridded data
Home Page: https://github.com/eurostat/gridtiler
License: European Union Public License 1.2
Tiling tool for gridded data
Home Page: https://github.com/eurostat/gridtiler
License: European Union Public License 1.2
describe utilisation of new parameters:
Through GDAL maybe. Or geotiff.js library.
modify fun applies before.
we need another fun to apply in the end.
maybe:
$ gridtiler -i ../assets/pop_5000m.csv -r 5000 -a 4 --positionFunction "const a=c.GRD_ID.split('N')[1].split('E');return {x:a[1],y:a[0]};" --modFunction "delete c.GRD_ID"
Load CSV data...
182321 cells loaded
Modify cells...
Get cell positions...
undefined:3
const a=c.GRD_ID.split('N')[1].split('E');return {x:a[1],y:a[0]};
^
TypeError: Cannot read properties of undefined (reading 'split')
at eval (eval at <anonymous> (file:///F:/Github/gridtiler/npm/src/index.js:36:36), <anonymous>:3:18)
at CsvParserStream.<anonymous> (file:///F:/Github/gridtiler/npm/src/index.js:38:33)
at CsvParserStream.emit (node:events:513:28)
at CsvParserStream.emit (F:\Github\gridtiler\npm\node_modules\@fast-csv\parse\build\src\CsvParserStream.js:45:23)
at endReadableNT (node:internal/streams/readable:1358:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
It is not really tiling, but it might help gridviz users to also provide a "gridaggregation" command.
Or it could be incuded to the tiling command with a "aggregation multiplier" parameter.
Difficulty: several aggregations - not only sum. Also average, mode, etc.
Currently, only GZIP.
Support others.
With duckdb ?
https://www.npmjs.com/package/duckdb
Currently, each variable is aggregated as a sum. Make it possible to use average, mode, etc.
Apparently, the variable 'process.env.npm_package_version' is not defined.
This happens on linux xubuntu - maybe not on other OS...
The UMD module cannot be built.
It has to do with the way webpack deals with "fs" dependency since version 5.
Just launch "npm build" to see the error message.
Make it possible that this is not shown when executing the program:
"ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language."
This is because of
"import pkg from "../package.json" assert { type: "json" };"
in gridtiler.js file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.