blob: a5f2dd8247dd2c0ea63dea2ff316e15892aafa32 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Data store capable to read and create features from a JDBC connection to a database.
* {@link org.apache.sis.storage.sql.SQLStore} takes a one or more tables at construction time.
* Each enumerated table is represented by a {@code FeatureType}.
* Each row in those table represents a {@code Feature} instance.
* Each relation defined by a foreigner key is represented by an {@code FeatureAssociationRole}
* to another feature (with transitive dependencies automatically resolved), and the other columns are represented
* by {@code AttributeType}.
*
* <p>The storage of spatial features in SQL databases is described by the
* <a href="http://www.opengeospatial.org/standards/sfs">OGC Simple feature access - Part 2: SQL option</a>
* international standard, also known as ISO 19125-2. Implementation of geometric types and operations must
* be provided by the database (sometime through an extension, for example PostGIS on PostgreSQL databases).
* This Java package uses those provided types and operations.</p>
*
* <h2>Limitations</h2>
* <ul>
* <li>Current implementation does not scan the {@code "GEOMETRY_COLUMNS"} (from Simple Feature Access)
* or {@code "gpkg_content"} (from GeoPackage) tables for a default list of feature tables.</li>
* <li>Current implementation does not yet map geometric objects (e.g. PostGIS types).</li>
* <li>If a parent feature contains association to other features, those other features are created
* in same time than the parent feature (no lazy instantiation yet).</li>
* </ul>
*
* @author Johann Sorel (Geomatys)
* @author Martin Desruisseaux (Geomatys)
* @version 1.0
* @since 1.0
* @module
*/
package org.apache.sis.storage.sql;