gvsig-raster / org.gvsig.raster.gdal / tags / pre-remove-jgdal / org.gvsig.raster.gdal / org.gvsig.raster.gdal.io / src / main / java / org / gvsig / jogr / OGRStyleTable.java @ 3497
History | View | Annotate | Download (3.51 KB)
1 |
/**********************************************************************
|
---|---|
2 |
* $Id: OGRStyleTable.java 7765 2006-10-03 07:05:18Z nacho $
|
3 |
*
|
4 |
* Name: OGRStyleTable.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 |
import org.gdal.ogr.StyleTable; |
30 |
|
31 |
|
32 |
/**
|
33 |
*
|
34 |
* @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
|
35 |
* @version 0.0
|
36 |
* @link http://www.gvsig.gva.es
|
37 |
*/
|
38 |
|
39 |
public class OGRStyleTable extends StyleTable{ |
40 |
|
41 |
// private native void FreeOGRStyleTable(long cPtr);
|
42 |
// private native boolean addStyleNat( long cPtr, String pszName,String pszStyleString);
|
43 |
// private native boolean removeStyleNat( long cPtr, String pszName);
|
44 |
// private native boolean modifyStyleNat( long cPtr, String pszName, String pszStyleString);
|
45 |
// private native boolean saveStyleTableNat( long cPtr, String pszFilename);
|
46 |
// private native boolean loadStyleTableNat( long cPtr, String pszFilename);
|
47 |
// private native String findNat( long cPtr, String pszStyleString);
|
48 |
// private native boolean isExistNat( long cPtr, String pszName);
|
49 |
// private native String getStyleNameNat( long cPtr, String pszName);
|
50 |
// private native void printNat( long cPtr, String fpOut);
|
51 |
// private native void clearNat( long cPtr );
|
52 |
|
53 |
|
54 |
String[] m_papszStyleTable; //Averiguar en que momento se carga |
55 |
|
56 |
/**
|
57 |
* Constructor
|
58 |
* @param cPtr direcci?n de memoria al objeto OGRStyleTable de C.
|
59 |
*/
|
60 |
|
61 |
public OGRStyleTable(long cPtr){ |
62 |
super(cPtr, true); |
63 |
} |
64 |
|
65 |
/**styleTable
|
66 |
* Destructor
|
67 |
*/
|
68 |
|
69 |
protected void finalize(){ |
70 |
// if(cPtr == 0)
|
71 |
// throw new OGRFailureException("Fallo al acceder al dato.");
|
72 |
|
73 |
this.delete();
|
74 |
// FreeOGRStyleTable(cPtr);
|
75 |
} |
76 |
|
77 |
|
78 |
/**
|
79 |
*
|
80 |
*/
|
81 |
|
82 |
public boolean addStyle(String pszName,String pszStyleString)throws OGRException{ |
83 |
return true; |
84 |
} |
85 |
|
86 |
/**
|
87 |
*
|
88 |
*/
|
89 |
|
90 |
public boolean removeStyle(String pszName)throws OGRException{ |
91 |
return true; |
92 |
} |
93 |
|
94 |
/**
|
95 |
*
|
96 |
*/
|
97 |
|
98 |
public boolean modifyStyle(String pszName, String pszStyleString)throws OGRException{ |
99 |
return true; |
100 |
} |
101 |
|
102 |
|
103 |
/**
|
104 |
*
|
105 |
*/
|
106 |
|
107 |
public boolean saveStyleTable(String pszFilename)throws OGRException{ |
108 |
return true; |
109 |
} |
110 |
|
111 |
/**
|
112 |
*
|
113 |
*/
|
114 |
|
115 |
public boolean loadStyleTable(String pszFilename)throws OGRException{ |
116 |
return true; |
117 |
} |
118 |
|
119 |
/**
|
120 |
*
|
121 |
*/
|
122 |
|
123 |
public String find(String pszStyleString)throws OGRException{ |
124 |
return null; |
125 |
} |
126 |
|
127 |
/**
|
128 |
*
|
129 |
*/
|
130 |
|
131 |
public boolean isExist(String pszName)throws OGRException{ |
132 |
return true; |
133 |
} |
134 |
|
135 |
/**
|
136 |
*
|
137 |
*/
|
138 |
|
139 |
public String getStyleName(String pszName)throws OGRException{ |
140 |
return null; |
141 |
} |
142 |
|
143 |
/**
|
144 |
*
|
145 |
*/
|
146 |
|
147 |
public void print(String fpOut)throws OGRException{ |
148 |
|
149 |
} |
150 |
|
151 |
/**
|
152 |
*
|
153 |
*/
|
154 |
|
155 |
public void clear()throws OGRException{ |
156 |
|
157 |
} |
158 |
|
159 |
|
160 |
} |