Revision 2131 branches/gvSIG_03_SLD/applications/appgvSIG/src/com/iver/cit/gvsig/DEMO/PruebasGT2.java
PruebasGT2.java | ||
---|---|---|
59 | 59 |
import org.geotools.data.DataSourceException; |
60 | 60 |
import org.geotools.data.DataStore; |
61 | 61 |
import org.geotools.data.FeatureSource; |
62 |
import org.geotools.data.postgis.PostgisDataStoreFactory; |
|
62 |
//import org.geotools.data.postgis.PostgisDataStoreFactory;
|
|
63 | 63 |
import org.geotools.map.DefaultMapLayer; |
64 | 64 |
import org.geotools.map.MapLayer; |
65 | 65 |
import org.geotools.styling.Style; |
... | ... | |
67 | 67 |
|
68 | 68 |
import com.iver.cit.gvsig.fmap.FMap; |
69 | 69 |
import com.iver.cit.gvsig.fmap.drivers.VectorialDatabaseDriver; |
70 |
import com.iver.cit.gvsig.fmap.drivers.jdbc.mysql.MySQLdriver;
|
|
70 |
import com.iver.cit.gvsig.fmap.drivers.jdbc.mysql.MySQLDriver;
|
|
71 | 71 |
import com.iver.cit.gvsig.fmap.drivers.jdbc.postgis.PostGisDriver; |
72 | 72 |
import com.iver.cit.gvsig.fmap.layers.CancelationException; |
73 | 73 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
... | ... | |
84 | 84 |
* @author Luis W. Sevilla (sevilla_lui@gva.es) |
85 | 85 |
*/ |
86 | 86 |
public class PruebasGT2 implements ActionListener { |
87 |
static PostgisDataStoreFactory postGisFactory = new PostgisDataStoreFactory(); |
|
87 |
// static PostgisDataStoreFactory postGisFactory = new PostgisDataStoreFactory();
|
|
88 | 88 |
// static ArcSDEDataStoreFactory arcSdeFactory = new ArcSDEDataStoreFactory(); |
89 | 89 |
|
90 | 90 |
Map remote; |
... | ... | |
151 | 151 |
protected void addLayer_mySQL() |
152 | 152 |
{ |
153 | 153 |
String nomTabla = JOptionPane.showInputDialog(null, "?Nombre de la tabla a cargar?", "provin"); |
154 |
VectorialDatabaseDriver driver = new MySQLdriver();
|
|
154 |
VectorialDatabaseDriver driver = new MySQLDriver();
|
|
155 | 155 |
String dburl = "jdbc:mysql://localhost/test"; |
156 | 156 |
String dbuser = "root"; |
157 | 157 |
String dbpass = "aquilina"; |
... | ... | |
182 | 182 |
|
183 | 183 |
protected void addLayerGT2_PostGIS() |
184 | 184 |
{ |
185 |
String nomTabla = JOptionPane.showInputDialog(null, "?Nombre de la tabla a cargar?", "provin"); |
|
185 |
/* String nomTabla = JOptionPane.showInputDialog(null, "?Nombre de la tabla a cargar?", "provin");
|
|
186 | 186 |
|
187 | 187 |
remote = new HashMap(); |
188 | 188 |
remote.put("dbtype","postgis"); |
... | ... | |
202 | 202 |
} catch (IOException e) { |
203 | 203 |
// TODO Auto-generated catch block |
204 | 204 |
e.printStackTrace(); |
205 |
} |
|
205 |
} */
|
|
206 | 206 |
} |
207 | 207 |
|
208 | 208 |
|
Also available in: Unified diff