root / trunk / libraries / libjni-gdal / src / main / java / org / gvsig / jogr / OGRCurve.java @ 21213
History | View | Annotate | Download (2.47 KB)
1 |
/**********************************************************************
|
---|---|
2 |
* $Id: OGRCurve.java 7765 2006-10-03 07:05:18Z nacho $
|
3 |
*
|
4 |
* Name: OGRCurve.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 org.gvsig.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 OGRCurve extends JNIBase{ |
39 |
|
40 |
private native double getLengthNat( long cPtr ); |
41 |
private native void startPointNat( long cPtr, OGRPoint point); |
42 |
private native void endPointNat( long cPtr, OGRPoint point); |
43 |
private native int getIsClosedNat( long cPtr ); |
44 |
private native void valueNat( long cPtr, double d, OGRPoint point ); |
45 |
private native void FreeOGRCurveNat(long cPtr); |
46 |
|
47 |
/**
|
48 |
* Constructor
|
49 |
* @param cPtr direcci?n de memoria al objeto OGRCurve de C.
|
50 |
*/
|
51 |
|
52 |
public OGRCurve(long cPtr){ |
53 |
this.cPtr=cPtr;
|
54 |
} |
55 |
|
56 |
/**
|
57 |
* Destructor
|
58 |
*/
|
59 |
|
60 |
protected void finalize() throws OGRFailureException{ |
61 |
if((cPtr == 0) || (cPtr == -1)) |
62 |
throw new OGRFailureException("Fallo al acceder al dato."); |
63 |
|
64 |
FreeOGRCurveNat(cPtr); |
65 |
} |
66 |
|
67 |
/**
|
68 |
*
|
69 |
*/
|
70 |
|
71 |
public double getLength()throws OGRException{ |
72 |
return 0; |
73 |
} |
74 |
|
75 |
/**
|
76 |
*
|
77 |
*/
|
78 |
|
79 |
public void startPoint(OGRPoint point)throws OGRException{ |
80 |
|
81 |
} |
82 |
|
83 |
/**
|
84 |
*
|
85 |
*/
|
86 |
|
87 |
public void endPoint(OGRPoint point)throws OGRException{ |
88 |
|
89 |
} |
90 |
|
91 |
/**
|
92 |
*
|
93 |
*/
|
94 |
|
95 |
public int getIsClosed()throws OGRException{ |
96 |
return 0; |
97 |
} |
98 |
|
99 |
/**
|
100 |
*
|
101 |
*/
|
102 |
|
103 |
public void value( double d, OGRPoint point )throws OGRException{ |
104 |
|
105 |
} |
106 |
|
107 |
|
108 |
|
109 |
|
110 |
} |