From b6a8f049ec428d1037d2e90c17f095b23acf3763 Mon Sep 17 00:00:00 2001 From: "hukekuan@163.com" Date: Wed, 10 May 2017 18:21:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=80=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/main/java/com/gis3c/App.java | 23 ++--------------------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/pom.xml b/pom.xml index aa5b94b..cb4c449 100644 --- a/pom.xml +++ b/pom.xml @@ -93,7 +93,7 @@ org.postgresql postgresql - 9.4.1212.jre7 + 42.1.0 com.oracle diff --git a/src/main/java/com/gis3c/App.java b/src/main/java/com/gis3c/App.java index 102d804..ae2302b 100644 --- a/src/main/java/com/gis3c/App.java +++ b/src/main/java/com/gis3c/App.java @@ -24,26 +24,7 @@ public class App { public static void main(String[] args) throws IOException { ApplicationContext context =ContextInit(); -// HelloService obj = (HelloService) context.getBean("helloService"); -// System.out.println(obj.SayHello()); - // display a data store file chooser dialog for shapefiles - File file = JFileDataStoreChooser.showOpenFile("shp", null); - if (file == null) { - return; - } - - FileDataStore store = FileDataStoreFinder.getDataStore(file); - SimpleFeatureSource featureSource = store.getFeatureSource(); - - // Create a map content and add our shapefile to it - MapContent map = new MapContent(); - map.setTitle("Quickstart"); - - Style style = SLD.createSimpleStyle(featureSource.getSchema()); - Layer layer = new FeatureLayer(featureSource, style); - map.addLayer(layer); - - // Now display the map - JMapFrame.showMap(map); + HelloService obj = (HelloService) context.getBean("helloService"); + System.out.println(obj.SayHello()); } } \ No newline at end of file