Displaying differences for changeset |
@@ -1,6 +1,8 @@ |
package m.rhem.rhem03_compEsd; |
+import GISObjects.GISEngine; |
import GISObjects.GISEngineFactory; |
+import static GISObjects.GISEngineFactory.createGISEngine; |
import GISObjects.GISObject; |
import GISObjects.GISObjectException; |
import GISObjects.GISObjectFactory; |
@@ -79,10 +81,8 @@ |
private void getMapunitValues(Connection sdmConnection) throws ServiceException { |
try (Statement statement = sdmConnection.createStatement();) { |
- // Sets the GIS Engine of the GISObjects to the DBMS specified in |
- //the creation of the “connection” variable. MsSQL in this case |
- GISObjectFactory.setGISObjectEngine(GISEngineFactory.createGISEngine(sdmConnection)); |
- GISObject geometry = GISObjectFactory.createGISObject(rhemSiteGeometryPoint); |
+ GISEngine gisEngine = createGISEngine(sdmConnection); |
+ GISObject geometry = GISObjectFactory.createGISObject(rhemSiteGeometryPoint, gisEngine); |
String mukey = null; |
String musym = null; |
String muname = null; |