-
Notifications
You must be signed in to change notification settings - Fork 69
Raster processing #889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raster processing #889
Conversation
a4d96ec
to
d899027
Compare
- The idea is to access gdal in a more idiomatic way. - For instance AutoCloseable is used to release the underlying resources systematically. - Objects ease the creation of options.
- The ContourTracer implements marching squares to trace or polygonize contours. - The HillshadeCalculator computes raster hillshades. - Martini is a port of mapbox's martini algorithm to java. - The ChaikinSmoother enable the smoothing of linestring and polygons. - Some tests and utilities enable the verification of the results.
|
||
class BicubicInterpolation extends Interpolation { | ||
|
||
public Dimension getSupportSize() { |
Check notice
Code scanning / CodeQL
Missing Override annotation Note
Interpolation.getSupportSize
// Resample and render the image | ||
var gridCoverageProcessor = new GridCoverageProcessor(); | ||
gridCoverageProcessor.setInterpolation(new BicubicInterpolation()); | ||
var gridCoverage = gridCoverageProcessor.resample(this.gridCoverage, targetGridGeometry); |
Check notice
Code scanning / CodeQL
Possible confusion of local and field Note
read
gridCoverage
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
|
||
class VectorHillshadeTileStoreTest { |
Check notice
Code scanning / CodeQL
Unused classes and interfaces Note test
double trv = grid[y * width + (x + 1)]; | ||
double brv = grid[(y + 1) * width + (x + 1)]; | ||
double blv = grid[(y + 1) * width + x]; | ||
double avg = (tlv + trv + brv + blv) / 4.0; |
Check notice
Code scanning / CodeQL
Unread local variable Note
|
||
// Add listeners | ||
ChangeListener listener = new ChangeListener() { | ||
public void stateChanged(ChangeEvent e) { |
Check notice
Code scanning / CodeQL
Missing Override annotation Note test
ChangeListener.stateChanged
return this; | ||
} | ||
|
||
public TranslateOptions srcWindow(int xoff, int yoff, int xsize, int ysize) { |
Check notice
Code scanning / CodeQL
Useless parameter Note
return this; | ||
} | ||
|
||
public WarpOptions tgtCoordEpoch(String epoch) { |
Check notice
Code scanning / CodeQL
Useless parameter Note
- Improve the TileStore abstraction so that it can support both raster and vector tiles. - Add some TileStore for dealing with raster tiles (geotiff, dem, cache, etc.).
- The server can now serve raster and vector tiles. - New assets allow the previsualisation of DEM data
d899027
to
7cf7981
Compare
|
No description provided.