Code Monkey home page Code Monkey logo

Comments (2)

wahlatlas avatar wahlatlas commented on August 25, 2024

Thanks so much for the documentation at
https://github.com/eurostat/gridviz/blob/master/docs/tiledformat.md

I am trying to get a grip on this and prepare my data accordingly using Pandas, however, here's where I struggle:

  • Why isn't originPoint the xMin and yMin of tilingBounds
  • Is the gridded data referenced by their cell center or as INSPIRE defines by the lower left corner? If the former is the case, then would one have to add/substract half of resolutionGeo to the min/max of a gridded dataset to get tilingBounds?
  • does the value for tileSizeCell have to be a power of two (64, 128, 256) for computational effectiveness or how does one chose the value?
  • what are the coordinates for grid-cells within each tile, are they the same as without being tiled or are they relative to the respective tile they are in, e.g. is it comparable to how topojson works?

It's probably a lot of work but a sketch as to how this works or a link to how this is done elsewhere would be helpful.
How did you create the tiled data for the examples?

from gridviz.

jgaffuri avatar jgaffuri commented on August 25, 2024

Thank you for these questions: I will further improve the documentation to clarify this !

  • originPoint is the geographique coordinates of the lower left point of the grid. tilingBounds refers to how the tiling frame is filled with data: Not all tiles may be provided, due to data sparsity. tilingBounds is used by the application to avoid requesting tiles where no tile is expected to be found.
  • The grid cell coordinate is of the lower left corner point.
  • there is no special constraint on tileSizeCell value. It is not forced to be a power of two. It should be chosen to ensure the tile size is low enough (so that it is fast enough to download and parse) and high enought (so that there are not too many tiles to be requested).
  • The coordinates of the grid cells within a tile are those relative to the tile. It is an integer value within [0,tileSizeCell[ interval for both x and y. This is indeed comparable to topojson coordinates compression mechanism: the affine transform to retrieve the cell geo coordinate from the cell tile coordinate uses the tile origin geo coordinate and the resolution.

The tiled datasets here
https://github.com/jgaffuri/tiledgrids/
were created in java.
Here is the generic procedure:
https://github.com/eurostat/JGiscoTools/tree/dev/modules/gproc/src/main/java/eu/europa/ec/eurostat/jgiscotools/gridProc

Here are examples of use:
https://github.com/eurostat/JGiscoTools/tree/dev/modules/gproc/src/main/java/eu/europa/ec/eurostat/jgiscotools/gisco_processes/gridvizprep

We plan to deploy this tiling procedure there:
https://github.com/eurostat/gridtiler

from gridviz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.