Quick Search:

View

Revision:

Diff

Diff from 160 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/HibernateSpatial/trunk/hibernate-spatial-sqlserver/src/main/java/org/hibernatespatial/sqlserver/convertors/MultiPointDecoder.java

Annotated File View

maesenka
151
1 /*
maesenka
156
2  * $Id: MultiPointDecoder.java 160 2010-03-03 21:21:34Z maesenka $
maesenka
151
3  *
4  * This file is part of Hibernate Spatial, an extension to the
5  * hibernate ORM solution for geographic data.
6  *
7  * Copyright © 2009 Geovise BVBA
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22  *
23  * For more information, visit: http://www.hibernatespatial.org/
24  */
25
26 package org.hibernatespatial.sqlserver.convertors;
27
maesenka
160
28 import com.vividsolutions.jts.geom.Geometry;
maesenka
151
29 import com.vividsolutions.jts.geom.MultiPoint;
30 import com.vividsolutions.jts.geom.Point;
31
maesenka
159
32 import java.util.List;
33
maesenka
160
34 public class MultiPointDecoder extends AbstractGeometryCollectionDecoder<MultiPoint> {
maesenka
151
35
maesenka
156
36
37     @Override
38     protected OpenGisType getOpenGisType() {
maesenka
159
39         return OpenGisType.MULTIPOINT;
maesenka
151
40     }
41
maesenka
156
42     @Override
maesenka
160
43     protected MultiPoint createGeometry(SqlGeometryV1 nativeGeomList<Geometrygeometries) {
44         return getGeometryFactory().createMultiPoint(geometries.toArray(new Point[geometries.size()]));
maesenka
156
45     }
46
maesenka
151
47 }
FishEye: Open Source License registered to Hibernate Spatial.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, Subversion, CVS & Perforce analysis. (Version:1.5.2 Build:build-298 2008-05-26 ) - Administration - Page generated 2010-09-08 06:46 +0200