Skip to content

Conversation

bchapuis
Copy link
Member

No description provided.

- 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

This method overrides
Interpolation.getSupportSize
; it is advisable to add an Override annotation.
// 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

Potentially confusing name: method
read
also refers to field
gridCoverage
(as this.gridCoverage).
import static org.junit.jupiter.api.Assertions.*;


class VectorHillshadeTileStoreTest {

Check notice

Code scanning / CodeQL

Unused classes and interfaces Note test

Unused class: VectorHillshadeTileStoreTest is not referenced within this codebase. If not used as an external API it should be removed.
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

Variable 'double avg' is never read.

// Add listeners
ChangeListener listener = new ChangeListener() {
public void stateChanged(ChangeEvent e) {

Check notice

Code scanning / CodeQL

Missing Override annotation Note test

This method overrides
ChangeListener.stateChanged
; it is advisable to add an Override annotation.
return this;
}

public TranslateOptions srcWindow(int xoff, int yoff, int xsize, int ysize) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'ysize' is never used.
return this;
}

public WarpOptions tgtCoordEpoch(String epoch) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'epoch' is never used.
- 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
Copy link

sonarqubecloud bot commented Sep 1, 2024

@bchapuis bchapuis closed this Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant