Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/sfsql
In directory usw-pr-cvs1:/tmp/cvs-serv5294/uk/ac/leeds/ccg/sfsql
Modified Files:
PostGISDataSource.java PostGISTester.java
Log Message:
work to improve performance
Index: PostGISDataSource.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/sfsql/PostGISDataSource.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -w -C2 -d -r1.1 -r1.2
*** PostGISDataSource.java 2001/12/04 09:24:09 1.1
--- PostGISDataSource.java 2001/12/04 17:37:19 1.2
***************
*** 26,33 ****
public void connect(String server,String database,String user,String passwd) throws SQLException{
try {
! Class.forName("org.postgresql.Driver");
! } catch(java.lang.ClassNotFoundException e) {
! System.err.print("DaS->ClassNotFoundException: ");
System.err.println("DaS->"+e.getMessage());
}
--- 26,35 ----
public void connect(String server,String database,String user,String passwd) throws SQLException{
try {
! System.out.println("Loading driver");
! Driver drv = new org.postgresql.Driver();
! // Class.forName("org.postgresql.Driver");
! } catch(Exception e) {
! // System.err.print("DaS->ClassNotFoundException: ");
System.err.println("DaS->"+e.getMessage());
}
***************
*** 97,101 ****
case Geometry.MULTIPOLYGON:
GeoPolygon poly = convertMultiPolygon(id,(MultiPolygon)geom.getGeometry());
! //System.out.println("poly bounds "+poly.getBounds());
l.addGeoPolygon(poly);
--- 99,103 ----
case Geometry.MULTIPOLYGON:
GeoPolygon poly = convertMultiPolygon(id,(MultiPolygon)geom.getGeometry());
! System.out.println("poly bounds "+poly.getBounds());
l.addGeoPolygon(poly);
Index: PostGISTester.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/sfsql/PostGISTester.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -w -C2 -d -r1.3 -r1.4
*** PostGISTester.java 2001/12/04 09:25:07 1.3
--- PostGISTester.java 2001/12/04 17:37:19 1.4
***************
*** 29,36 ****
f.add(view,"Center");
f.add(new ToolBar(view),"South");
//MixedLayer l = server.getFeatures(bounds);
PostGISLayer pgl = new PostGISLayer(server,bounds);
Theme t = new Theme(pgl);
! //f.add(new uk.ac.leeds.ccg.widgets.ToolBar(view),"South");
f.setVisible(true);
view.addTheme(t);
--- 29,37 ----
f.add(view,"Center");
f.add(new ToolBar(view),"South");
+ view.setMapExtent(bounds);
//MixedLayer l = server.getFeatures(bounds);
PostGISLayer pgl = new PostGISLayer(server,bounds);
Theme t = new Theme(pgl);
! f.add(new uk.ac.leeds.ccg.widgets.ToolBar(view),"South");
f.setVisible(true);
view.addTheme(t);
|