Skip to content

Commit

Permalink
add geotools plugin as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuehnel committed Jun 26, 2018
1 parent f2c0576 commit 5f14357
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repositories {

// Use the `packIntoJar` configuration from gradle-josm-plugin for our external dependency (MATSim), whose classes get zipped into our jar.
configurations {
//packIntoJar.exclude(group: 'org.geotools')
packIntoJar.exclude(group: 'org.geotools')
packIntoJar.exclude(group: 'kml')
packIntoJar.exclude(group: 'org.jfree')
packIntoJar.exclude(group: 'commons-logging')
Expand Down Expand Up @@ -54,7 +54,7 @@ josm {
iconPath = "images/dialogs/matsim-scenario.png"
minJosmVersion = 13922
mainClass = "org.matsim.contrib.josm.MATSimPlugin"
pluginDependencies << 'jts' << 'apache-commons' << 'apache-http'
pluginDependencies << 'jts' << 'apache-commons' << 'apache-http' << 'geotools'
website = new URL("http://www.matsim.org")
oldVersionDownloadLink 13878, 'v0.9.2', new URL('https://github.com/matsim-org/josm-matsim-plugin/releases/download/v0.9.2/matsim.jar')
oldVersionDownloadLink 12881, 'v0.8.8', new URL('https://github.com/matsim-org/josm-matsim-plugin/releases/download/v0.8.8/matsim.jar')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ public void actionPerformed(ActionEvent e) {
Scenario targetScenario = Export.toScenario(((MATSimLayer) MainApplication.getLayerManager().getActiveLayer()).getNetworkModel());

Network network = targetScenario.getNetwork();

CoordinateReferenceSystem crs = MGC.getCRS(Main.getProjection().toCode());

System.out.println("lol");
Collection<SimpleFeature> features = new ArrayList<>();
PolylineFeatureFactory linkFactory = new PolylineFeatureFactory.Builder().
setCrs(crs).
Expand Down

0 comments on commit 5f14357

Please sign in to comment.