This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a change to branch main in repository https://gitbox.apache.org/repos/asf/sis.git
from 09335964ca Merge branch 'geoapi-3.1': automatic reorganization of imports. add 3164e8db34 When opening a large image in the JavaFX application, if there is no overview, zoom in the middle of the image as an initial view. We do that for avoiding to load too much data when the initial view is the whole image. add fcb23b6f67 Safety against resolution of zero during metadata construction. add 0a53a466e3 Add a safety against singular matrices read from GeoTIFF files. add 634a39a70c Vertical resolution was fetched from the old dimension when z is not the third axis. add abd5100711 If the original CRS used the [0 … 360]° longitude range, convert to the [−180 … +180]° range. add 84deb1e236 `SQLBuilder.appendValue(Object)` should format temporal objects as SQL dates. add 0ddd4d225c Make the search for geometry columns robust to the case where there is no information about which catalog and schema contain the table. This case happens with materialized views. add 5797abfbc8 The "raster_columns" table of PostGIS should be optional: do not throw `SQLException` if that table does not exist. add 292697f58c Improve the SQL store metadata with information about the spatial schema, database version and (if applicable) PostGIS version. add 7c2e16ac90 Make the information about database version accessible through public API. add 1aa1be663e Use the image input/output stream provided by the storage connector in World File data store. Fix a "channel closed" exception when using the image output stream. add 07fa48c9e6 Fix shapefile parsing of string floating point data types add 6a7fb5526f Add missing converter declarations in `META-INF/services/` and minor formating. add d4bba49f28 Make the search for database metadata more robust to drivers that do not define an escape character. add 1693635df4 Make the search for primary keys, foreigner keys and row counts more robust to databases that do not support those features. add 6d57ee4af0 Tune SQL LIKE search escape by being more conservative when no escape is known. Also escape the escape character itself. add 38bf69764d Add a `Dialect.DUCKDB` case together with specific code in SQL store. Contains modifications to SQL store internal for accommodating DuckDB. add 6cffa03c4c Add the SRID argument when executing a spatial function `ST_*` in a spatial database. The reprojection of geometry literal, if needed, was already handled by `Optimization`. Add special case where the geometry column declares the CRS but the literal does not. Redirect to data store listeners the logs that may occur during geometry reprojection. add 913e4ff28a Move `ListingPropertyVisitor` from Shapefile module to the main feature module. It will also be needed by the SQL data store, among others. add c5ac1dc86a When only a subset of the feature properties is requested, declare only that subset in the SQL `SELECT` statement. add ceacb1c0df Remove an internal utility class which is no longer useful. add ece63c46f5 Fix a never-ending loop when temporal objects are compared as `java.lang.Object`. Add a note about future development needed in WKT parsing. Minor cleaning. add 0704b92b5e Merge branch 'geoapi-4.0' into geoapi-3.1. Contains bug fixes in SQLStore. new ad3d4f6c2f Merge branch 'geoapi-3.1'. https://issues.apache.org/jira/browse/SIS-608 The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../org/apache/sis/feature/AbstractOperation.java | 18 + .../org/apache/sis/feature/EnvelopeOperation.java | 3 +- .../apache/sis/feature/ExpressionOperation.java | 3 +- .../sis/feature/GroupAsPolylineOperation.java | 3 +- .../main/org/apache/sis/feature/LinkOperation.java | 3 +- .../apache/sis/feature/StringJoinOperation.java | 3 +- .../org/apache/sis/feature/internal/Resources.java | 5 + .../sis/feature/internal/Resources.properties | 1 + .../sis/feature/internal/Resources_fr.properties | 1 + .../sis/feature/privy/AttributeConvention.java | 6 + .../apache/sis/feature/privy/FeatureUtilities.java | 98 ------ .../apache/sis/filter/BinaryGeometryFilter.java | 2 +- .../main/org/apache/sis/filter/LeafExpression.java | 2 +- .../main/org/apache/sis/filter/internal/Node.java | 24 +- .../sis/filter/privy/ListingPropertyVisitor.java | 134 ++++++++ .../org/apache/sis/filter/privy/WarningEvent.java | 127 +++++++ .../geometry/wrapper/jts/GeometryTransform.java | 10 +- .../org/apache/sis/geometry/wrapper/jts/JTS.java | 20 +- .../main/org/apache/sis/image/ImageProcessor.java | 4 +- .../sis/geometry/wrapper/esri/FactoryTest.java | 8 +- .../apache/sis/geometry/wrapper/jts/JTSTest.java | 2 +- .../org/apache/sis/metadata/sql/privy/Dialect.java | 52 ++- .../apache/sis/metadata/sql/privy/SQLBuilder.java | 116 +++++-- .../sis/metadata/sql/privy/SQLUtilities.java | 43 ++- .../org/apache/sis/metadata/sql/privy/Syntax.java | 70 +++- .../org/apache/sis/temporal/LenientDateFormat.java | 6 +- .../main/org/apache/sis/temporal/TimeMethods.java | 6 +- .../sis/metadata/sql/privy/SQLBuilderTest.java | 97 ++++++ .../sis/metadata/sql/privy/SQLUtilitiesTest.java | 13 +- .../main/org/apache/sis/openoffice/CalcAddins.java | 2 +- .../coverage/MultiResolutionCoverageLoader.java | 2 +- .../apache/sis/io/wkt/GeodeticObjectParser.java | 21 +- .../sis/referencing/operation/matrix/Matrices.java | 62 +++- .../referencing/operation/matrix/MatricesTest.java | 16 + .../apache/sis/storage/landsat/MetadataReader.java | 16 +- .../geotiff/reader/GridGeometryBuilder.java | 13 +- .../sis/storage/geotiff/writer/GeoEncoder.java | 85 ++++- .../sis/storage/netcdf/base/GridMapping.java | 2 +- .../sis/storage/netcdf/ucar/DecoderWrapper.java | 3 +- .../main/module-info.java | 1 + .../org/apache/sis/storage/sql/DataAccess.java | 2 + .../main/org/apache/sis/storage/sql/SQLStore.java | 43 ++- .../org/apache/sis/storage/sql/duckdb/DuckDB.java | 88 +++++ .../{postgis => duckdb}/ExtendedClauseWriter.java | 12 +- .../sis/storage/sql/duckdb/package-info.java | 60 ++++ .../apache/sis/storage/sql/feature/Analyzer.java | 112 ++++-- .../org/apache/sis/storage/sql/feature/Column.java | 67 +++- .../apache/sis/storage/sql/feature/Database.java | 191 +++++++++-- .../sis/storage/sql/feature/FeatureAdapter.java | 8 +- .../sis/storage/sql/feature/FeatureAnalyzer.java | 12 +- .../sis/storage/sql/feature/FeatureIterator.java | 87 ++++- .../sis/storage/sql/feature/FeatureStream.java | 91 ++++- .../{package-info.java => GeometryEncoding.java} | 30 +- .../sis/storage/sql/feature/GeometryGetter.java | 103 ++++-- .../sis/storage/sql/feature/InfoStatements.java | 104 ++++-- .../sis/storage/sql/feature/QueryAnalyzer.java | 4 +- .../apache/sis/storage/sql/feature/Relation.java | 48 ++- .../apache/sis/storage/sql/feature/Resources.java | 15 + .../sis/storage/sql/feature/Resources.properties | 3 + .../storage/sql/feature/Resources_fr.properties | 5 +- .../sis/storage/sql/feature/SelectionClause.java | 249 +++++++++++++- .../storage/sql/feature/SelectionClauseWriter.java | 38 +- .../sis/storage/sql/feature/SpatialSchema.java | 73 +++- .../org/apache/sis/storage/sql/feature/Table.java | 147 ++++++-- .../sis/storage/sql/feature/TableAnalyzer.java | 61 ++-- .../sis/storage/sql/feature/TableReference.java | 2 +- .../storage/sql/postgis/ExtendedClauseWriter.java | 5 + .../sis/storage/sql/postgis/ExtendedInfo.java | 32 +- .../sis/storage/sql/postgis/ExtentEstimator.java | 2 +- .../apache/sis/storage/sql/postgis/Postgres.java | 22 +- .../org/apache/sis/storage/sql/SQLStoreTest.java | 22 +- .../storage/sql/feature/GeometryGetterTest.java | 3 +- .../sis/storage/sql/postgis/PostgresTest.java | 125 ++++++- .../sis/storage/sql/postgis/RasterReaderTest.java | 5 +- .../sis/storage/sql/postgis/RasterWriterTest.java | 4 +- .../sis/storage/sql/postgis/SpatialFeatures.sql | 8 + .../apache/sis/io/stream/InternalOptionKey.java | 2 +- .../main/org/apache/sis/storage/FeatureQuery.java | 237 +++++-------- .../main/org/apache/sis/storage/FeatureSubset.java | 37 +- .../org/apache/sis/storage/StorageConnector.java | 28 +- .../apache/sis/storage/base/FeatureProjection.java | 381 +++++++++++++++++++++ .../apache/sis/storage/base/MetadataBuilder.java | 114 ++++-- .../main/org/apache/sis/storage/csv/Store.java | 2 +- .../org/apache/sis/storage/image/FormatFilter.java | 4 +- .../org/apache/sis/storage/image/FormatFinder.java | 67 +--- .../apache/sis/storage/image/MultiImageStore.java | 2 +- .../apache/sis/storage/image/SingleImageStore.java | 2 +- .../apache/sis/storage/image/WorldFileStore.java | 31 +- .../apache/sis/storage/image/WritableStore.java | 2 +- .../org/apache/sis/storage/wkt/StoreFormat.java | 2 +- .../org/apache/sis/storage/FeatureQueryTest.java | 23 ++ .../sis/storage/image/SelfConsistencyTest.java | 2 +- .../sis/storage/image/WorldFileStoreTest.java | 13 +- .../services/org.apache.sis.util.ObjectConverter | 11 + .../org/apache/sis/converter/StringConverter.java | 2 +- .../main/org/apache/sis/setup/GeometryLibrary.java | 37 +- .../org/apache/sis/util/collection/WeakEntry.java | 2 +- .../apache/sis/util/collection/WeakHashSet.java | 1 + .../org/apache/sis/util/privy/CollectionsExt.java | 18 + .../org/apache/sis/util/resources/Vocabulary.java | 5 + .../sis/util/resources/Vocabulary.properties | 1 + .../sis/util/resources/Vocabulary_fr.properties | 1 + .../apache/sis/storage/geoheif/GeoHeifStore.java | 2 +- .../storage/shapefile/ListingPropertyVisitor.java | 79 ----- .../sis/storage/shapefile/ShapefileStore.java | 7 +- .../apache/sis/storage/shapefile/dbf/DBFField.java | 11 +- .../apache/sis/gui/coverage/CoverageCanvas.java | 68 +++- .../gui/coverage/MultiResolutionImageLoader.java | 2 +- .../main/org/apache/sis/gui/map/MapCanvas.java | 6 +- .../main/org/apache/sis/gui/map/package-info.java | 2 +- .../org/apache/sis/storage/gdal/FieldAccessor.java | 3 +- .../org/apache/sis/storage/gdal/GDALStore.java | 4 +- 112 files changed, 3189 insertions(+), 1008 deletions(-) delete mode 100644 endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/privy/FeatureUtilities.java create mode 100644 endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/privy/ListingPropertyVisitor.java create mode 100644 endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/privy/WarningEvent.java create mode 100644 endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/sql/privy/SQLBuilderTest.java create mode 100644 endorsed/src/org.apache.sis.storage.sql/main/org/apache/sis/storage/sql/duckdb/DuckDB.java copy endorsed/src/org.apache.sis.storage.sql/main/org/apache/sis/storage/sql/{postgis => duckdb}/ExtendedClauseWriter.java (87%) create mode 100644 endorsed/src/org.apache.sis.storage.sql/main/org/apache/sis/storage/sql/duckdb/package-info.java copy endorsed/src/org.apache.sis.storage.sql/main/org/apache/sis/storage/sql/feature/{package-info.java => GeometryEncoding.java} (56%) create mode 100644 endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/base/FeatureProjection.java delete mode 100644 incubator/src/org.apache.sis.storage.shapefile/main/org/apache/sis/storage/shapefile/ListingPropertyVisitor.java