SUMO SRTM osmosis plugin - java

I have been trying to run the SRTM-osmosis plugin (https://github.com/locked-fg/osmosis-srtm-plugin) for quite some time now. In the wiki, it is mentioned that you should move the compiled jar to the directory (/~.openstreetmaps/osmosis/plugins). I can't find the .jar file and don't know to generate it as mentioned in the wiki ?
Anyone faced a similar problem with the SRTM plugin ?!

The documentation was updated (https://github.com/locked-fg/osmosis-srtm-plugin). Just copied the .jar file to (~/.openstreetmaps/osmosis/plugins) and used the command: osmosis --read-xml map.osm --write-srtm tagName=ele --write-xml map_with_srtm.osm

Related

Installation of metadata-extractor

I'm stuck on installation.
I downloaded Maven, but I'm not sure which file within
the metadata-extractor folder (that I downloaded from the repo) to use as the target.
I tried all the files at the top level.
All attempts have failed, e.g.
java -jar metadata-extractor-2.13.0.jar build.gradle
com.drew.imaging.ImageProcessingException: File format could not be determined
I am using v2.13.0 of the meta-data extractor
I've just started to code and took interest in this project but also had issues using it. Instead of using Maven i just downloaded the source code from github and threw the 'com' folder into my myproject/src folder. Then i downloaded the xmpcore-6.1.10.jar library and added it to the Build Path. Got it working that way. I hope someone will give you a better solution but if you just wanna do something right away, you can try this solution.
Try downloading IntelliJ and create a "new project from version controll". Use the URL given on the GitHub page (under download/code). That will save you a lot of problems.

Folders can not be found after converting a JAVA project into a runnable JAR

I hope somebody can help me with my problem. After hours of scanning all different posts concerning the abovementioned topic I now decided to answer my own question. None of the other posts solved my problem.
I want to export an existing JAVA project as runnable JAR. Therefore I'm changing all absolute references to the following:
this.getClass().getResource("/somekindofimage.png").toString();
This way I can reach all available files in the runnable JAR.
However I need to reference a folder...so I tried it the same way:
this.getClass().getResource("/somekindoffolder").toString();
which gives me the following path:
file:\C:\Users\...\1_data_collection
By creating a file and checking with "is.Directory" it returns false.
I unzipped the runnable JAR. All folders, all files that are needed are included. They are attached as sources via BuildPath.
When I test the abovementioned path with Windows Explorer it directs me to the folder I'm looking for.
I'm using Eclipse Neon 2 as IDE, my JAVA Version is 1.8-0_144.
Thanks in advance!
You can't refer to files in a JAR using a File path. You have to load them as resources from the classpath.
Make sure the resources and dependencies you need are packaged in the JAR. There's a Maven Shade plugin, if you're using Maven, that will do it for you.

Spring - Where to find the distribution jar files?

I will be starting to learn spring so I tried to download the latest sping version but I have encountered a problem and Im stuck. I can't find the distribution jar files. All I can see are java source files.
Here are the steps I did :
I went to this link projects
I clicked the Spring Framework link.
I checked the page and found nothing until I noticed the Cat Image
Download the zip and extracted it.
I checked the folder spring-core and found src folder. I tried to find any dist folder but found nothing except java files.
I did not bother to open all folders because I think it would be a waste of time.
Please help me. Im just starting to learn and now a bit frustrated.
1) consider all comments already given on your question, gradle and maven are very helpfull, and help you with nested dependecies
2) http://repo.spring.io/release/org/springframework/spring/

Where can I get ProGuard for Eclipse?

I've googled ProGuard for eclipse and all I can find is the Android version. I found one that looked like it would work but I found out it was out dated and their website was not even online anymore.
Anyone know where I can get eclipse to be able to export configurations so I can obfuscate my Jar files using ProGuard? This is all in Java by the way.
1) Add next line of code to your project.properties file in project folder:
proguard.config=proguard.cfg
2) Create proguard.cfg file in project folder with your proguard configuration
Here you can find example of proguard configuration for Android application Proguard manual page
3) Compile your application using Ant Building and Running from the Command Line
It is bundled with Pulsar.
It shuld be as a plugin, but it has broken link now.

Unable to find feature.xml in directory

I just added a plugin to my Eclipse RCP project and am getting the error: Unable to find feature.xml in directory
What does this mean?
You have probably installed the plugin incorrectly. The feature needs to be unpacked in order for it to work. What happens now is that Eclipse is looking for a feature.xml file but only finding the jar file.
Check your .../eclipse/features catalaog and you will find jar'd features. Using a program and unzipping the jar file should solve the problem.
If you install using an update site the feature will be unpacked automatically.
Discussion about this fault here:
http://www.eclipsezone.com/eclipse/forums/t92012.html
The problem occurs if you install the plugin+feature not via update site.
check configuration/org.eclipse.equinox.simpleconfigurator/bundles.info to see whether your plugins has registered here.

Categories

Resources