| 1 | /**********************************************************************
|
|---|
| 2 | * $Id: CoordinateArraySequenceFactory.cpp 1820 2006-09-06 16:54:23Z mloskot $
|
|---|
| 3 | *
|
|---|
| 4 | * GEOS - Geometry Engine Open Source
|
|---|
| 5 | * http://geos.refractions.net
|
|---|
| 6 | *
|
|---|
| 7 | * Copyright (C) 2001-2002 Vivid Solutions Inc.
|
|---|
| 8 | * Copyright (C) 2005 Refractions Research Inc.
|
|---|
| 9 | *
|
|---|
| 10 | * This is free software; you can redistribute and/or modify it under
|
|---|
| 11 | * the terms of the GNU Lesser General Public Licence as published
|
|---|
| 12 | * by the Free Software Foundation.
|
|---|
| 13 | * See the COPYING file for more information.
|
|---|
| 14 | *
|
|---|
| 15 | **********************************************************************/
|
|---|
| 16 |
|
|---|
| 17 | #include <geos/geom/CoordinateSequenceFactory.h>
|
|---|
| 18 | #include <geos/geom/CoordinateArraySequenceFactory.h>
|
|---|
| 19 |
|
|---|
| 20 | #ifndef GEOS_INLINE
|
|---|
| 21 | # include "geos/geom/CoordinateArraySequenceFactory.inl"
|
|---|
| 22 | #endif
|
|---|
| 23 |
|
|---|
| 24 | namespace geos {
|
|---|
| 25 | namespace geom { // geos::geom
|
|---|
| 26 |
|
|---|
| 27 | static CoordinateArraySequenceFactory defaultCoordinateSequenceFactory;
|
|---|
| 28 |
|
|---|
| 29 | const CoordinateSequenceFactory *
|
|---|
| 30 | CoordinateArraySequenceFactory::instance()
|
|---|
| 31 | {
|
|---|
| 32 | return &defaultCoordinateSequenceFactory;
|
|---|
| 33 | }
|
|---|
| 34 |
|
|---|
| 35 | } // namespace geos::geom
|
|---|
| 36 | } // namespace geos
|
|---|
| 37 |
|
|---|
| 38 | /**********************************************************************
|
|---|
| 39 | * $Log$
|
|---|
| 40 | * Revision 1.3 2006/03/24 09:52:41 strk
|
|---|
| 41 | * USE_INLINE => GEOS_INLINE
|
|---|
| 42 | *
|
|---|
| 43 | * Revision 1.2 2006/03/09 16:46:47 strk
|
|---|
| 44 | * geos::geom namespace definition, first pass at headers split
|
|---|
| 45 | *
|
|---|
| 46 | * Revision 1.1 2006/01/31 19:07:33 strk
|
|---|
| 47 | * - Renamed DefaultCoordinateSequence to CoordinateArraySequence.
|
|---|
| 48 | * - Moved GetNumGeometries() and GetGeometryN() interfaces
|
|---|
| 49 | * from GeometryCollection to Geometry class.
|
|---|
| 50 | * - Added getAt(int pos, Coordinate &to) funtion to CoordinateSequence class.
|
|---|
| 51 | * - Reworked automake scripts to produce a static lib for each subdir and
|
|---|
| 52 | * then link all subsystem's libs togheter
|
|---|
| 53 | * - Moved C-API in it's own top-level dir capi/
|
|---|
| 54 | * - Moved source/bigtest and source/test to tests/bigtest and test/xmltester
|
|---|
| 55 | * - Fixed PointLocator handling of LinearRings
|
|---|
| 56 | * - Changed CoordinateArrayFilter to reduce memory copies
|
|---|
| 57 | * - Changed UniqueCoordinateArrayFilter to reduce memory copies
|
|---|
| 58 | * - Added CGAlgorithms::isPointInRing() version working with
|
|---|
| 59 | * Coordinate::ConstVect type (faster!)
|
|---|
| 60 | * - Ported JTS-1.7 version of ConvexHull with big attention to
|
|---|
| 61 | * memory usage optimizations.
|
|---|
| 62 | * - Improved XMLTester output and user interface
|
|---|
| 63 | * - geos::geom::util namespace used for geom/util stuff
|
|---|
| 64 | * - Improved memory use in geos::geom::util::PolygonExtractor
|
|---|
| 65 | * - New ShortCircuitedGeometryVisitor class
|
|---|
| 66 | * - New operation/predicate package
|
|---|
| 67 | *
|
|---|
| 68 | **********************************************************************/
|
|---|