From: jsimomaa Date: Tue, 13 Jun 2017 08:48:54 +0000 (+0300) Subject: Adding org.simantics.district.geotools plugin X-Git-Tag: v1.31.0~5 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=e6378bf9c77ffd2d33d81ab882e6a2243506a0a8;p=simantics%2Fdistrict.git Adding org.simantics.district.geotools plugin Change-Id: Iacc44ac5435593c334fa208c40d79f07572c69ef --- diff --git a/org.simantics.district.geotools/.classpath b/org.simantics.district.geotools/.classpath new file mode 100644 index 00000000..b7283c77 --- /dev/null +++ b/org.simantics.district.geotools/.classpath @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/org.simantics.district.geotools/.project b/org.simantics.district.geotools/.project new file mode 100644 index 00000000..d564a796 --- /dev/null +++ b/org.simantics.district.geotools/.project @@ -0,0 +1,28 @@ + + + org.simantics.district.geotools + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/org.simantics.district.geotools/META-INF/MANIFEST.MF b/org.simantics.district.geotools/META-INF/MANIFEST.MF new file mode 100644 index 00000000..f8eee2dd --- /dev/null +++ b/org.simantics.district.geotools/META-INF/MANIFEST.MF @@ -0,0 +1,28 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Simantics Geotools +Bundle-SymbolicName: org.simantics.district.geotools +Bundle-Version: 1.0.0.qualifier +Bundle-Activator: org.simantics.district.geotools.Activator +Require-Bundle: org.eclipse.core.runtime +Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Bundle-ActivationPolicy: lazy +Bundle-ClassPath: lib/commons-pool-1.5.4.jar, + lib/core-0.26.jar, + lib/GeographicLib-Java-1.44.jar, + lib/gt-metadata-16.0.jar, + lib/gt-opengis-16.0.jar, + lib/gt-referencing-16.0.jar, + lib/jai_core-1.1.3.jar, + lib/jgridshift-1.0.jar, + lib/jsr-275-1.0-beta-2.jar, + lib/jts-1.13.jar, + ., + lib/gt-epsg-hsql-16.0.jar, + lib/hsqldb-2.3.4.jar +Export-Package: org.geotools.geometry, + org.geotools.referencing, + org.opengis.geometry, + org.opengis.referencing, + org.opengis.referencing.crs, + org.opengis.referencing.operation diff --git a/org.simantics.district.geotools/build.properties b/org.simantics.district.geotools/build.properties new file mode 100644 index 00000000..7a0700c2 --- /dev/null +++ b/org.simantics.district.geotools/build.properties @@ -0,0 +1,16 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + lib/commons-pool-1.5.4.jar,\ + lib/core-0.26.jar,\ + lib/GeographicLib-Java-1.44.jar,\ + lib/gt-metadata-16.0.jar,\ + lib/gt-opengis-16.0.jar,\ + lib/gt-referencing-16.0.jar,\ + lib/jai_core-1.1.3.jar,\ + lib/jgridshift-1.0.jar,\ + lib/jsr-275-1.0-beta-2.jar,\ + lib/jts-1.13.jar,\ + lib/gt-epsg-hsql-16.0.jar,\ + lib/hsqldb-2.3.4.jar diff --git a/org.simantics.district.geotools/lib/GeographicLib-Java-1.44.jar b/org.simantics.district.geotools/lib/GeographicLib-Java-1.44.jar new file mode 100644 index 00000000..338ca8e5 Binary files /dev/null and b/org.simantics.district.geotools/lib/GeographicLib-Java-1.44.jar differ diff --git a/org.simantics.district.geotools/lib/commons-pool-1.5.4.jar b/org.simantics.district.geotools/lib/commons-pool-1.5.4.jar new file mode 100644 index 00000000..43edf996 Binary files /dev/null and b/org.simantics.district.geotools/lib/commons-pool-1.5.4.jar differ diff --git a/org.simantics.district.geotools/lib/core-0.26.jar b/org.simantics.district.geotools/lib/core-0.26.jar new file mode 100644 index 00000000..9452f178 Binary files /dev/null and b/org.simantics.district.geotools/lib/core-0.26.jar differ diff --git a/org.simantics.district.geotools/lib/gt-epsg-hsql-16.0.jar b/org.simantics.district.geotools/lib/gt-epsg-hsql-16.0.jar new file mode 100644 index 00000000..47c0e745 Binary files /dev/null and b/org.simantics.district.geotools/lib/gt-epsg-hsql-16.0.jar differ diff --git a/org.simantics.district.geotools/lib/gt-metadata-16.0.jar b/org.simantics.district.geotools/lib/gt-metadata-16.0.jar new file mode 100644 index 00000000..cb3445c9 Binary files /dev/null and b/org.simantics.district.geotools/lib/gt-metadata-16.0.jar differ diff --git a/org.simantics.district.geotools/lib/gt-opengis-16.0.jar b/org.simantics.district.geotools/lib/gt-opengis-16.0.jar new file mode 100644 index 00000000..7cedaf59 Binary files /dev/null and b/org.simantics.district.geotools/lib/gt-opengis-16.0.jar differ diff --git a/org.simantics.district.geotools/lib/gt-referencing-16.0.jar b/org.simantics.district.geotools/lib/gt-referencing-16.0.jar new file mode 100644 index 00000000..360d84e5 Binary files /dev/null and b/org.simantics.district.geotools/lib/gt-referencing-16.0.jar differ diff --git a/org.simantics.district.geotools/lib/hsqldb-2.3.4.jar b/org.simantics.district.geotools/lib/hsqldb-2.3.4.jar new file mode 100644 index 00000000..71d39c3b Binary files /dev/null and b/org.simantics.district.geotools/lib/hsqldb-2.3.4.jar differ diff --git a/org.simantics.district.geotools/lib/jai_core-1.1.3.jar b/org.simantics.district.geotools/lib/jai_core-1.1.3.jar new file mode 100644 index 00000000..b29b8eed Binary files /dev/null and b/org.simantics.district.geotools/lib/jai_core-1.1.3.jar differ diff --git a/org.simantics.district.geotools/lib/jgridshift-1.0.jar b/org.simantics.district.geotools/lib/jgridshift-1.0.jar new file mode 100644 index 00000000..d9b8d328 Binary files /dev/null and b/org.simantics.district.geotools/lib/jgridshift-1.0.jar differ diff --git a/org.simantics.district.geotools/lib/jsr-275-1.0-beta-2.jar b/org.simantics.district.geotools/lib/jsr-275-1.0-beta-2.jar new file mode 100644 index 00000000..68e19aa4 Binary files /dev/null and b/org.simantics.district.geotools/lib/jsr-275-1.0-beta-2.jar differ diff --git a/org.simantics.district.geotools/lib/jts-1.13.jar b/org.simantics.district.geotools/lib/jts-1.13.jar new file mode 100644 index 00000000..bbaa20bf Binary files /dev/null and b/org.simantics.district.geotools/lib/jts-1.13.jar differ diff --git a/org.simantics.district.geotools/src/org/simantics/district/geotools/Activator.java b/org.simantics.district.geotools/src/org/simantics/district/geotools/Activator.java new file mode 100644 index 00000000..eeb057ec --- /dev/null +++ b/org.simantics.district.geotools/src/org/simantics/district/geotools/Activator.java @@ -0,0 +1,30 @@ +package org.simantics.district.geotools; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; + +public class Activator implements BundleActivator { + + private static BundleContext context; + + static BundleContext getContext() { + return context; + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext bundleContext) throws Exception { + Activator.context = bundleContext; + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext bundleContext) throws Exception { + Activator.context = null; + } + +} diff --git a/org.simantics.district.network.ontology/graph.tg b/org.simantics.district.network.ontology/graph.tg index ad5ff83b..e6067186 100644 Binary files a/org.simantics.district.network.ontology/graph.tg and b/org.simantics.district.network.ontology/graph.tg differ diff --git a/org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph b/org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph index a4144a80..63c5f1cc 100644 --- a/org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph +++ b/org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph @@ -50,6 +50,11 @@ DN.MappingParameterType