001 /*
002 * GeoAPI - Java interfaces for OGC/ISO standards
003 * http://www.geoapi.org
004 *
005 * Copyright (C) 2006-2012 Open Geospatial Consortium, Inc.
006 * All Rights Reserved. http://www.opengeospatial.org/ogc/legal
007 *
008 * Permission to use, copy, and modify this software and its documentation, with
009 * or without modification, for any purpose and without fee or royalty is hereby
010 * granted, provided that you include the following on ALL copies of the software
011 * and documentation or portions thereof, including modifications, that you make:
012 *
013 * 1. The full text of this NOTICE in a location viewable to users of the
014 * redistributed or derivative work.
015 * 2. Notice of any changes or modifications to the OGC files, including the
016 * date changes were made.
017 *
018 * THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE
019 * NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
020 * TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT
021 * THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY
022 * PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
023 *
024 * COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
025 * CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
026 *
027 * The name and trademarks of copyright holders may NOT be used in advertising or
028 * publicity pertaining to the software without specific, written prior permission.
029 * Title to copyright in this software and any associated documentation will at all
030 * times remain with copyright holders.
031 */
032 // This class was created by Sanjay Jena and Prof. Jackson Roehrig in order to complete
033 // missing parts of the GeoAPI and submit the results to GeoAPI afterwards as proposal.
034
035 package org.opengis.geometry.complex;
036
037 import java.util.List;
038 import org.opengis.geometry.primitive.Point;
039 import org.opengis.geometry.primitive.OrientableCurve;
040 import org.opengis.geometry.primitive.OrientableSurface;
041
042
043 /**
044 * A factory of {@linkplain Complex complex} geometric objects.
045 * All complexes created through this interface will use the
046 * {@linkplain #getCoordinateReferenceSystem factory's coordinate reference system}.
047 * Creating complexes in a different CRS may requires a different instance of
048 * {@code ComplexFactory}.
049 *
050 * @version <A HREF="http://www.opengeospatial.org/standards/as">ISO 19107</A>
051 * @author Sanjay Jena
052 * @author Prof. Dr. Jackson Roehrig
053 * @since GeoAPI 2.1
054 *
055 * @todo Need to check if ISO 19107 defines constructors for complexes.
056 */
057 public interface ComplexFactory {
058 /**
059 * Creates a {@linkplain CompositePoint composite point} from a {@linkplain Point point}.
060 * The constructed composite point is backed by the given point.
061 * That is, the composite point holds a reference to the point instance.
062 *
063 * @param generator a point.
064 * @return a composite point.
065 */
066 CompositePoint createCompositePoint(Point generator);
067
068 /**
069 * Creates a {@linkplain CompositeCurve composite curve} from a list of
070 * {@linkplain OrientableCurve orientable curves}.
071 * The constructed composite curve is backed by the given curves.
072 * That is, the composite curve holds references to the curve instances.
073 *
074 * @param generator a list of orientable curves.
075 * @return a composite curve.
076 */
077 CompositeCurve createCompositeCurve(List<OrientableCurve> generator);
078
079 /**
080 * Creates a {@linkplain CompositeSurface composite surface} from a list of
081 * {@linkplain OrientableSurface orientable surfaces}.
082 * The constructed composite surface is backed by the given surface.
083 * That is, the composite surface holds references to the surface instances.
084 *
085 * @param generator a list of orientable surface.
086 * @return a composite surface.
087 */
088 CompositeSurface createCompositeSurface(List<OrientableSurface> generator);
089 }