svn-gvsig-desktop / trunk / libraries / libjni-gdal-macosx / src / es / gva / cit / jogr / OGRGeometryFactory.java @ 8219
History | View | Annotate | Download (3.61 KB)
1 |
/**********************************************************************
|
---|---|
2 |
* $Id: OGRGeometryFactory.java 8219 2006-10-23 06:25:39Z nacho $
|
3 |
*
|
4 |
* Name: OGRGeometryFactory.java
|
5 |
* Project: JGDAL. Interface java to gdal (Frank Warmerdam).
|
6 |
* Purpose:
|
7 |
* Author: Nacho Brodin, brodin_ign@gva.es
|
8 |
*
|
9 |
**********************************************************************/
|
10 |
/*Copyright (C) 2004 Nacho Brodin <brodin_ign@gva.es>
|
11 |
|
12 |
This program is free software; you can redistribute it and/or
|
13 |
modify it under the terms of the GNU General Public License
|
14 |
as published by the Free Software Foundation; either version 2
|
15 |
of the License, or (at your option) any later version.
|
16 |
|
17 |
This program is distributed in the hope that it will be useful,
|
18 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
GNU General Public License for more details.
|
21 |
|
22 |
You should have received a copy of the GNU General Public License
|
23 |
along with this program; if not, write to the Free Software
|
24 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
25 |
*/
|
26 |
|
27 |
package es.gva.cit.jogr; |
28 |
|
29 |
|
30 |
/**
|
31 |
* Esta clase representa a una fuente de datos
|
32 |
*
|
33 |
* @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
|
34 |
* @version 0.0
|
35 |
* @link http://www.gvsig.gva.es
|
36 |
*/
|
37 |
|
38 |
public class OGRGeometryFactory extends JNIBase{ |
39 |
|
40 |
private native static int createFromWkbNat( String wkt, OGRSpatialReference spatialref, |
41 |
OGRGeometry geom, int i );//Excepciones |
42 |
private native static int createFromWktNat( String[] wkt, OGRSpatialReference spatialref, |
43 |
OGRGeometry geom );//Excepciones
|
44 |
private native static OGRGeometry createFromGMLNat( String gml ); |
45 |
//private native static OGRGeometry createFromGEOSNat( geos.Geometry * );
|
46 |
private native static void destroyGeometryNat( OGRGeometry geom ); |
47 |
private native static OGRGeometry createGeometryNat( String wkb );//param 1=OGRwkbGeometryType |
48 |
private native static OGRGeometry forceToPolygonNat( OGRGeometry geom ); |
49 |
private native static OGRGeometry forceToMultiPolygonNat( OGRGeometry geom ); |
50 |
private native static OGRGeometry forceToMultiPointNat( OGRGeometry geom ); |
51 |
private native static OGRGeometry forceToMultiLineStringNat( OGRGeometry geom ); |
52 |
//private native static geos::GeometryFactory *getGEOSGeometryFactoryNat();
|
53 |
|
54 |
/**
|
55 |
*
|
56 |
*/
|
57 |
|
58 |
public static void createFromWkb( String wkt, OGRSpatialReference spatialref, |
59 |
OGRGeometry geom, int i )throws OGRException{//Excepciones |
60 |
|
61 |
} |
62 |
|
63 |
/**
|
64 |
*
|
65 |
*/
|
66 |
|
67 |
public static void createFromWkt( String[] wkt, OGRSpatialReference spatialref, |
68 |
OGRGeometry geom )throws OGRException{//Excepciones |
69 |
|
70 |
} |
71 |
|
72 |
/**
|
73 |
*
|
74 |
*/
|
75 |
|
76 |
public static OGRGeometry createFromGML( String gml )throws OGRException{ |
77 |
return null; |
78 |
} |
79 |
//public static OGRGeometry createFromGEOS( geos.Geometry * )throws OGRException{
|
80 |
|
81 |
/**
|
82 |
*
|
83 |
*/
|
84 |
|
85 |
public static void destroyGeometry( OGRGeometry geom )throws OGRException{ |
86 |
|
87 |
} |
88 |
|
89 |
/**
|
90 |
*
|
91 |
*/
|
92 |
|
93 |
public static OGRGeometry createGeometry( String wkb )throws OGRException{//param 1=OGRwkbGeometryType |
94 |
return null; |
95 |
} |
96 |
|
97 |
/**
|
98 |
*
|
99 |
*/
|
100 |
|
101 |
public static OGRGeometry forceToPolygon( OGRGeometry geom )throws OGRException{ |
102 |
return null; |
103 |
} |
104 |
|
105 |
/**
|
106 |
*
|
107 |
*/
|
108 |
|
109 |
public static OGRGeometry forceToMultiPolygon( OGRGeometry geom )throws OGRException{ |
110 |
return null; |
111 |
} |
112 |
|
113 |
/**
|
114 |
*
|
115 |
*/
|
116 |
|
117 |
public static OGRGeometry forceToMultiPoint( OGRGeometry geom )throws OGRException{ |
118 |
return null; |
119 |
} |
120 |
|
121 |
/**
|
122 |
*
|
123 |
*/
|
124 |
|
125 |
public static OGRGeometry forceToMultiLineString( OGRGeometry geom )throws OGRException{ |
126 |
return null; |
127 |
} |
128 |
//public static geos::GeometryFactory *getGEOSGeometryFactory()throws OGRException{
|
129 |
|
130 |
} |