Skip to content

Commit

Permalink
Fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bchapuis committed Nov 13, 2023
1 parent d65d669 commit a4f74b0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public DataCollectionAdapter(DataCollection<S> collection, Function<S, T> transf
* {@inheritDoc}
*/
@Override
public Iterator iterator() {
public Iterator<T> iterator() {
return collection.stream().map(this.transformer).iterator();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,12 @@ protected BaseValueHandler getHandler(Type type) {
case LONG -> new LongValueHandler<Long>();
case FLOAT -> new FloatValueHandler<Float>();
case DOUBLE -> new DoubleValueHandler<Double>();
case GEOMETRY -> new GeometryValueHandler();
case POINT -> new GeometryValueHandler();
case MULTIPOINT -> new GeometryValueHandler();
case LINESTRING -> new GeometryValueHandler();
case MULTILINESTRING -> new GeometryValueHandler();
case POLYGON -> new GeometryValueHandler();
case MULTIPOLYGON -> new GeometryValueHandler();
case GEOMETRYCOLLECTION -> new GeometryValueHandler();
case INET4_ADDRESS -> new Inet4AddressValueHandler();
case INET6_ADDRESS -> new Inet6AddressValueHandler();
case LOCAL_DATE -> new LocalDateValueHandler();
case LOCAL_TIME -> new LocalTimeValueHandler();
case LOCAL_DATE_TIME -> new LocalDateTimeValueHandler();
case GEOMETRY, POINT, MULTIPOINT, LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON, GEOMETRYCOLLECTION -> new GeometryValueHandler();
default -> throw new IllegalArgumentException("Unsupported type: " + type);
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@ private void loadPointRow(DataRow row) {
* @param row the row to fill.
*/
private void loadPolygonRow(DataRow row) {
double xmin = getByteBuffer().getDouble();
double ymin = getByteBuffer().getDouble();
double xmax = getByteBuffer().getDouble();
double ymax = getByteBuffer().getDouble();
/* double xmin = */ getByteBuffer().getDouble();
/* double ymin = */ getByteBuffer().getDouble();
/* double xmax = */ getByteBuffer().getDouble();
/* double ymax = */ getByteBuffer().getDouble();

int numParts = getByteBuffer().getInt();
int numPoints = getByteBuffer().getInt();
Expand Down
1 change: 1 addition & 0 deletions basemap/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export default {
"database": config.database,
"databaseSrid": 3857,
"replaceExisting": true,
"cleanCache": true,
},
]
},
Expand Down

0 comments on commit a4f74b0

Please sign in to comment.