Comments (4)
Thank you! It's very simple, a very nice library.
from d3-contour.
There are a lot of options for displaying GeoJSON while applying simple transformations in planar coordinates:
-
Use the SVG viewBox attribute.
-
Use SVG transforms.
-
Use Canvas transforms.
-
Use d3.geoPath’s projection, often in conjunction with d3.geoIdentity.
Here’s a live example of the surface temperature GeoTIFF using the first option:
https://bl.ocks.org/mbostock/4886c227038510f1c103ce305bef6fcc
If you want to convert from planar coordinates back to spherical coordinates, and then reproject those spherical coordinates using a different spherical-to-planar projection (say d3.geoOrthographic), it’s a bit tricker. You could either assume that the planar coordinates are equirectangular (d3.geoEquirectangular) and then treat them as x = longitude, y = latitude (perhaps with another simpler planar translate and scale), or you’d need to know the exact spherical projection in use and run it through project.invert. After that, you’d want to run it through d3.geoStitch to remove the antimeridian and polar cuts, and lastly run back through your new projection.
from d3-contour.
Here’s an example of reprojecting contours:
from d3-contour.
Could you add an example for reprojecting contours when the source is a limited domain rather than 0,360 -90,90?
from d3-contour.
Related Issues (20)
- Release d3-array v2 compatible version? HOT 2
- hole issue in contour HOT 5
- Arrows using elevation value for any point(x, y) in contour chart HOT 5
- GeoJSON Geometry which is generated by d3.contour displays wrong HOT 3
- output data has index which is not exist in input data HOT 2
- Feature request: contour labels HOT 2
- smoothing removes line segements HOT 1
- Buggy input check in density size setter.
- Improve slow computations for large images HOT 2
- Handle Null values in grid HOT 9
- Dependencies HOT 3
- Some contour polygon is reverse. HOT 5
- Support fractional bandwidths. HOT 2
- [feature]: cellSize(0.5) would work well in d3.contourDensity() HOT 1
- Support curvilinear grids HOT 11
- Sometimes the lowest threshold is missing
- Bug HOT 2
- Breaking change with contour-density thresholds starting from v3.0.2 HOT 2
- isobands?
- Don’t round the corners HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3-contour.