I am trying to convert a .osm.pbf file to a .osm file.
https://wiki.openstreetmap.org/wiki/Osmosis/Quick_Install_(Windows)
I followed the instructions here:
Installed Java Runtime
Downloaded osmosis and extracted it to a directory
Created a bat file containing "C:\Users\paul\Desktop\osmosis\bin\osmosis.bat"
In a dos command prompt when im in the directory of where the batch file I created is located I try:
osmosis --read-pbf c:\dir\somefile.osm.pbf --write-xml c:\dir\somefile.osm
It just runs really quickly and doesnt convert the file and gives this output:
Nov 24, 2021 4:40:20 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.48.3
Nov 24, 2021 4:40:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Nov 24, 2021 4:40:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Nov 24, 2021 4:40:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Nov 24, 2021 4:40:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline complete.
Nov 24, 2021 4:40:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Total execution time: 2297 milliseconds.
Some sources provide a .osm.bz2 or .osm.zip format which uses standard compression. You can use a program like 7zip to covert those files to a raw .osm file. This format is the easiest to convert to a raw .osm.
However if you need to convert a binary .pbf to a raw .osm I would recommend the tool OSM Convert. Download the large file support version. Unfortunately Osmosis has been unmaintained since September 2018, so try to use newer tools. There is a list of them kept here on the OpenStreetMap Wiki.
With OSM Convert I've used this command with success on Windows 10: osmconvert us-latest.osm.pbf --out-osm -o=us-latest.osm_01.osm to convert us-latest.osm.pbf to us-latest.osm_01.osm
Related
My input file is
mode=silent
agreeToLicense=yes
destinationFolder=/opt/mcr
fileInstallationKey=xxxxx-xxxxx-xxxxx-xxxxx
lmgrFiles=false
lmgrService=false
licensePath=/path/to/license
product.MATLAB
I run command like this
$ ./install -inputFile my_input.txt
And this error appears
(Jun 23, 2015 06:23:19) Starting local product/component search in download directory
(Jun 23, 2015 06:23:19) Searching for archives...
(Jun 23, 2015 06:23:19) Reading /root/Downloads/MathWorks/R2015a/archives
(Jun 23, 2015 06:23:19) 12 files found in /root/Downloads/MathWorks/R2015a/archives
(Jun 23, 2015 06:23:19) Reading /root/Downloads/MathWorks/R2015a
(Jun 23, 2015 06:23:19) 16 files found in /root/Downloads/MathWorks/R2015a
(Jun 23, 2015 06:23:19) Reading /root/Downloads/MathWorks/R2015a/archives
(Jun 23, 2015 06:23:19) 12 files found in /root/Downloads/MathWorks/R2015a/archives
(Jun 23, 2015 06:23:19) Archive search complete. 40 total files found.
(Jun 23, 2015 06:23:19) Assembling product list...
(Jun 23, 2015 06:23:20) Completed local product/component search
(Jun 23, 2015 06:23:20) Error: Unable to locate required installation files.
Using a File Installation Key requires you run the installer from a MATLAB DVD or from a directory which contains files previously downloaded via the installer.
To obtain the missing files, click Back on the previous screen and select Log in with a MathWorks Account or contact your MATLAB license administrator.
(Jun 23, 2015 06:23:20) Exiting with status -2
(Jun 23, 2015 06:23:21) End - Unsuccessful.
I try to search but don't know how to catch this error. Can anyone help me?
You can just install with this one line of command.
sudo apt-get install matlab-gdf dynare-matlab libpdl-io-matlab-perl matlab-support matlab-support-dev matlab2tikz
In a batch file I want to use jmxterm to access jboss mbeans.
Therefore I need to include jboss-eap-6.1\bin\client\jboss-client.jar to the classpath.
So I need to call jmxterm that way to get it to work:
java -cp
.;%JBOSSDIR%/bin/client/jboss-client.jar;jmxterm-1.0-alpha-4-uber.jar
org.codehaus.classworlds.uberjar.boot.Bootstrapper --url
service:jmx:remoting-jmx://localhost:9999
The problem: I need to pass an argument to the MBean method I want to call. So I only see the option to pass the script inline but don't know how to do that.
I found that it should work by piping the jmxterm command to the jmxterm call. Adapted to my case (using -cp instead of -jar) it doesn't work:
echo "bean run " | java -cp
.;%JBOSSDIR%/bin/client/jboss-client.jar;jmxterm-1.0-alpha-4-uber.jar
org.codehaus.classworlds.uberjar.boot.Bootstrapper --url
service:jmx:remoting-jmx://localhost:9999 -n
I get the following output:
Feb 04, 2015 3:26:00 PM org.xnio.Xnio <clinit>
INFO: XNIO Version 3.0.7.GA-redhat-1
Feb 04, 2015 3:26:00 PM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.0.7.GA-redhat-1
Feb 04, 2015 3:26:00 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.2.16.GA-redhat-1
Welcome to JMX terminal. Type "help" for available commands.
#IllegalArgumentException: Command "bean isn't valid, run help to see available commands
Passing the script as file works but I need to pass the script inline to pass parameters to the mbean method calls.
Any ideas?
I'm not sure if this is what you mean with pass the script as file, but you can give all the execution information as a file in the call:
java -cp .;%JBOSSDIR%/bin/client/jboss-client.jar;jmxterm-1.0-alpha-4-uber.jar
org.codehaus.classworlds.uberjar.boot.Bootstrapper -v silent -n < commands.txt
And then having a commands.txt as this:
open -u service:jmx:remoting-jmx://localhost:9999
run -b com.your.package:type=BeanName methodName parameter1
close
I'm trying to install ECB to use with Emacs 24.3.1 using Emacs Package Manager but I got this error when installing:
Compiling file /home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/jn-file-tree.el at Mon Jul 1 20:54:45 2013
Entering directory `/home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/'
jn-file-tree.el:31:1:Error: Cannot open load file: jn-tree-node
Compiling file /home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/jn-tree-node.el at Mon Jul 1 20:54:45 2013
jn-tree-node.el:32:1:Error: Cannot open load file: jn-utils
Compiling file /home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/jn-tree-view.el at Mon Jul 1 20:54:45 2013
jn-tree-view.el:31:1:Error: Cannot open load file: jn-window
Compiling file /home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/jn-utils.el at Mon Jul 1 20:54:45 2013
Compiling file /home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/jn-window.el at Mon Jul 1 20:54:45 2013
jn-window.el:44:25:Error: Invalid lambda variable (parent jn-window-container)
Compiling file /home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/test.el at Mon Jul 1 20:54:45 2013
test.el:31:1:Error: Cannot open load file: jn-tree-view
Any body help me please. Thank you.
Sorry for my poor English.
I'm running a JMeter test plan from command line and it's currently outputting something along the lines of:
Created the tree successfully using C:\*****\TestPlan.jmx
Starting the test # Thu Oct 11 10:20:43 EDT 2012 (1349965243947)
Waiting for possible shutdown message on port 4445
Tidying up ... # Thu Oct 11 10:20:46 EDT 2012 (1349965246384)
... end of run
Is there any way to turn off this output and have the plan execute 'silently'?
Found a way to do this, by following this article http://www.robvanderwoude.com/battech_redirection.php
and appending > NUL to the command
jmeter -n -t C:\***\TestPlan.jmx -Jhostname=%1 > NUL
I followed this guide to implementing build numbers in an XCode iPhone project (guide).
I tried it and I am getting the wrong build number when NSLogging. It's not updating correctly and is always one or two numbers behind the info.plist. I need it to be the same number. Anyone know why this is happening?
i.e "[[[NSBundle mainBundle] infoDictionary] objectForKey:#"CFBuildNumber"]" is not the same as the plist's CFBuildNumber.
The script is set to run first, before copy bundle resources and everything. This is the output and info.plist numbers I get:
Application Version: 1.0 Build No: 52 Build Date: Wed Nov 10 15:10:05 CET 2010
(info.plist is build number: 54 and date: Wed Nov 10 15:10:43 CET 2010)
Application Version: 1.0 Build No: 54 Build Date: Wed Nov 10 15:10:43 CET 2010
(info.plist is build number: 55 and date: Wed Nov 10 15:12:54 CET 2010)
Application Version: 1.0 Build No: 54 Build Date: Wed Nov 10 15:10:43 CET 2010
(info.plist is build number: 56 and date: Wed Nov 10 15:13:49 CET 2010)
Application Version: 1.0 Build No: 56 Build Date: Wed Nov 10 15:13:49 CET 2010
(info.plist is build number: 57 and date:Wed Nov 10 15:14:46 CET 2010)
It seems to follow this pattern throughout. So continuing it would be 56 (real 58), 58 (real 59), 58 (real 60), 60 (real 61), 60 real (62), 62 (real 63) etc. etc.
The script (that is set to run before everything else) is:
#!/bin/bash
# Auto Increment Version Script
buildPlist="Project-Info.plist"
CFBuildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist)
CFBuildNumber=$(($CFBuildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBuildNumber $CFBuildNumber" $buildPlist
CFBuildDate=$(date)
/usr/libexec/PlistBuddy -c "Set :CFBuildDate $CFBuildDate" $buildPlist
Because project's Info.plist processed prior to 'Run Script' phase. See 'Build results' window in XCode. To resolve this you should
1) Create new target with type "Run script only" and configure it to update version number
2) Create new target with type "Aggregate" and add to it "Version update" target and "you product" target.
So when you build "Aggregate" target, at first step - version will be updated, and at second step - your product.
I ended up using the already-copied plist file, ${TARGET_BUILD_DIR}/${INFOPLIST_PATH}, and placing the "copy bundle resources"-phase before the script runs instead. That way the number will always be synchronized.