Walter Nordmann | 16 Nov 02:21 2013
Picon

Re: Streaming Replication

Hi Brett,

is Streaming replication running or is it dead?

The first (and last) state i get is that:

and when i do an "osmosis  --receive-replication
host=planet.openstreetmap.org port=80 pathPrefix=replication/streaming
--replication-to-change --write-xml-change -"
i get

any hints?

Regards
walter 

* sent this mail a second time because of some techical problems with
nabble.

-----
[url=http://osm.wno-edv-service.de/residentials] Missing Residentials Map 1.17[/url]
[url=http://osm.wno-edv-service.de/plz] Postcode Map 2.0.2[/url]
--
View this message in context: http://gis.19327.n5.nabble.com/osmosis-dev-Streaming-Replication-tp5730318p5785642.html
Sent from the Osmosis Development mailing list archive at Nabble.com.
Nuno Miguel Lourenço | 25 Oct 19:11 2013
Picon

Error when updating OSM database

Hi all,

 

I’ve built an ANT process to populate an OSM database with a full PLANET file.

Afterwards I built another ANT process to update the given OSM database.

 

I’m getting an error on the update process.

Basically what I’ve done:

First:

<path to osmosis> --read-replication-interval-init workingDirectory=.

Second:

<path to osmosis> -v --read-replication-interval workingDirectory=. --write-pgsql-change host=host:port user=user database=database password=password

 

I’m getting stuck because I cannot make it work…

I’m getting this exceptions:

update_database:

     [echo] UPDATING OSM DB...

     [echo] JAVACMD_OPTIONS -> -server -Xms2000m -Xmx4000m -Djava.io.tmpdir=D:/Temp/tests/osmosis/rep/osmosis/tmp/...

     [exec] The command attribute is deprecated.

     [exec] Please use the executable attribute and nested arg elements.

     [exec] Out 25, 2013 6:10:19 PM org.openstreetmap.osmosis.core.Osmosis run

     [exec] INFO: Osmosis Version 0.43.1

     [exec] Out 25, 2013 6:10:19 PM org.openstreetmap.osmosis.core.TaskRegistrar loadJPFPlugins

     [exec] FINE: Searching for JPF plugins.

     [exec] Out 25, 2013 6:10:19 PM org.openstreetmap.osmosis.core.TaskRegistrar loadJPFPlugins

     [exec] FINE: Registering the core plugin.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.TaskRegistrar loadJPFPlugins

     [exec] FINE: Registering the extension plugins.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.Osmosis run

     [exec] INFO: Preparing pipeline.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline prepare

     [exec] FINE: Building tasks.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline buildTasks

     [exec] FINE: Created task "1-read-replication-interval"

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline buildTasks

     [exec] FINE: Created task "2-sort-change"

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline buildTasks

     [exec] FINE: Created task "3-write-pgsql-change"

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline prepare

     [exec] FINE: Connecting tasks.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PipeTasks putTask

     [exec] FINE: Task "1-read-replication-interval" produced unnamed pipe stored at level 1 in the default pipe stack.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline connectTasks

     [exec] FINE: Connected task "1-read-replication-interval"

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PipeTasks retrieveTask

     [exec] FINE: Task "2-sort-change" consumed unnamed pipe stored at level 1 in the default pipe stack.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PipeTasks putTask

     [exec] FINE: Task "2-sort-change" produced unnamed pipe stored at level 1 in the default pipe stack.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline connectTasks

     [exec] FINE: Connected task "2-sort-change"

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PipeTasks retrieveTask

     [exec] FINE: Task "3-write-pgsql-change" consumed unnamed pipe stored at level 1 in the default pipe stack.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline connectTasks

     [exec] FINE: Connected task "3-write-pgsql-change"

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.Osmosis run

     [exec] INFO: Launching pipeline execution.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager execute

     [exec] FINE: Launching task 1-read-replication-interval in a new thread.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PassiveTaskManager execute

     [exec] FINE: Task 2-sort-change is passive, no execution required.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PassiveTaskManager execute

     [exec] FINE: Task 3-write-pgsql-change is passive, no execution required.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.Osmosis run

     [exec] INFO: Pipeline executing, waiting for completion.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion

     [exec] FINE: Waiting for task 1-read-replication-interval to complete.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader runImpl

     [exec] FINE: Reading current server state.

     [exec] Out 25, 2013 6:10:20 PM sun.net.www.protocol.http.HttpURLConnection writeRequests

     [exec] FINE: sun.net.www.MessageHeader <at> 591686f75 pairs: {GET /replication/hour/state.txt HTTP/1.1: null}{User-Agent: Java/1.7.0_40}{Host: planet.openstreetmap.org}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*;

q=.2}{Connection: keep-alive}

     [exec] Out 25, 2013 6:10:20 PM sun.net.www.protocol.http.HttpURLConnection getInputStream

     [exec] FINE: sun.net.www.MessageHeader <at> a18047511 pairs: {null: HTTP/1.1 200 OK}{Date: Fri, 25 Oct 2013 17:10:10 GMT}{Server: Apache/2.2.22 (Ubuntu)}{Last-Modified: Fri, 25 Oct 2013 17:02:07 GMT}{ETag: "5f2983d-53-4e993b5

d8f0f4"}{Accept-Ranges: bytes}{Content-Length: 83}{Vary: Accept-Encoding}{Keep-Alive: timeout=5, max=100}{Connection: Keep-Alive}{Content-Type: text/plain; charset=utf-8}

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader download

     [exec] FINE: The maximum timestamp to be downloaded is Wed Oct 09 01:00:00 BST 2013.

     [exec] Out 25, 2013 6:10:20 PM sun.net.www.protocol.http.HttpURLConnection writeRequests

     [exec] FINE: sun.net.www.MessageHeader <at> 1a2b53fb5 pairs: {GET /replication/hour/000/009/401.state.txt HTTP/1.1: null}{User-Agent: Java/1.7.0_40}{Host: planet.openstreetmap.org}{Accept: text/html, image/gif, image/jpeg, *;

q=.2, */*; q=.2}{Connection: keep-alive}

     [exec] Out 25, 2013 6:10:20 PM sun.net.www.protocol.http.HttpURLConnection getInputStream

     [exec] FINE: sun.net.www.MessageHeader <at> 1296912911 pairs: {null: HTTP/1.1 200 OK}{Date: Fri, 25 Oct 2013 17:10:10 GMT}{Server: Apache/2.2.22 (Ubuntu)}{Last-Modified: Wed, 09 Oct 2013 00:02:05 GMT}{ETag: "5f98325-53-4e8439

87f67dc"}{Accept-Ranges: bytes}{Content-Length: 83}{Vary: Accept-Encoding}{Keep-Alive: timeout=5, max=99}{Connection: Keep-Alive}{Content-Type: text/plain; charset=utf-8}

     [exec] Out 25, 2013 6:10:20 PM sun.net.www.protocol.http.HttpURLConnection writeRequests

     [exec] FINE: sun.net.www.MessageHeader <at> 1d8330fd5 pairs: {GET /replication/hour/000/009/401.osc.gz HTTP/1.1: null}{User-Agent: Java/1.7.0_40}{Host: planet.openstreetmap.org}{Accept: text/html, image/gif, image/jpeg, *; q=

.2, */*; q=.2}{Connection: keep-alive}

     [exec] Out 25, 2013 6:10:20 PM sun.net.www.protocol.http.HttpURLConnection getInputStream

     [exec] FINE: sun.net.www.MessageHeader <at> 1005412e10 pairs: {null: HTTP/1.1 200 OK}{Date: Fri, 25 Oct 2013 17:10:10 GMT}{Server: Apache/2.2.22 (Ubuntu)}{Last-Modified: Wed, 09 Oct 2013 00:02:05 GMT}{ETag: "5f98324-babfc-4e8

43987f67dc"}{Accept-Ranges: bytes}{Content-Length: 764924}{Keep-Alive: timeout=5, max=98}{Connection: Keep-Alive}{Content-Type: application/x-gzip}

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion

     [exec] SEVERE: Thread for task 1-read-replication-interval failed

     [exec] org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to read the changeset file 000/009/401.osc.gz from the server.

     [exec]     at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.downloadReplicationFile(BaseReplicationDownloader.java:133)

     [exec]     at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.download(BaseReplicationDownloader.java:262)

     [exec]     at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.runImpl(BaseReplicationDownloader.java:302)

     [exec]     at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.run(BaseReplicationDownloader.java:381)

     [exec]     at java.lang.Thread.run(Unknown Source)

     [exec] Caused by: java.io.IOException: The system cannot find the path specified

     [exec]     at java.io.WinNTFileSystem.createFileExclusively(Native Method)

     [exec]     at java.io.File.createNewFile(Unknown Source)

     [exec]     at java.io.File.createTempFile(Unknown Source)

     [exec]     at java.io.File.createTempFile(Unknown Source)

     [exec]     at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.downloadReplicationFile(BaseReplicationDownloader.java:111)

     [exec]     ... 4 more

     [exec]

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PassiveTaskManager waitForCompletion

     [exec] FINE: Task 2-sort-change is passive, no completion wait required.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PassiveTaskManager waitForCompletion

     [exec] FINE: Task 3-write-pgsql-change is passive, no completion wait required.

     [exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.Osmosis main

     [exec] SEVERE: Execution aborted.

     [exec] org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed.

     [exec]     at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)

     [exec]     at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)

     [exec]     at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)

     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

     [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

     [exec]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

     [exec]     at java.lang.reflect.Method.invoke(Unknown Source)

     [exec]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)

     [exec]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)

     [exec]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

     [exec]     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

     [exec]     at org.codehaus.classworlds.Launcher.main(Launcher.java:47)

     [exec]

 

BUILD FAILED

 

Can anyone point me to a correction direction.

 

Thanks to all.

Nuno Lourenço

_______________________________________________
osmosis-dev mailing list
osmosis-dev@...
https://lists.openstreetmap.org/listinfo/osmosis-dev
NopMap | 21 Oct 19:45 2013
Picon
Picon

Exception in PluginManager


Hi!

On a particular machine, osmosis is throwing the following exception:

Okt 20, 2013 2:30:36 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.39
Okt 20, 2013 2:30:36 PM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
java.lang.NullPointerException
at
org.java.plugin.standard.StandardPluginManager.publishPlugins(StandardPluginManager.java:181)
at
org.openstreetmap.osmosis.core.TaskRegistrar.registerJpfPlugins(TaskRegistrar.java:239)
at
org.openstreetmap.osmosis.core.TaskRegistrar.loadJPFPlugins(TaskRegistrar.java:167)
at
org.openstreetmap.osmosis.core.TaskRegistrar.initialize(TaskRegistrar.java:88)
at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:81)
at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)

It's a prepared setup that has been working flawlessly on many machines for
a long time.

Any ideas what could be possible reasons for this exception?

bye, Nop

--
View this message in context: http://gis.19327.n5.nabble.com/Exception-in-PluginManager-tp5782406.html
Sent from the Osmosis Development mailing list archive at Nabble.com.
Nuno Miguel Lourenço | 10 Oct 13:18 2013
Picon

Updating database with partial data

Hi,

 

I’m updating a OpenStreetMaps based DB, but we are doing incremental steps to the DB data.

We are importing just a few countries and then proceed to continents and at the end the planet file.

 

We are already using the country data! NOTE: The countries are not neighbors!

We are importing some Europe countries from  http://download.geofabrik.de/europe.html getting the several .osm.pbf files for the ones we want!

 

We are coming across an issue…

We are getting a lot of

Detail: Key (id)=(xxxxx) is duplicated.; nested exception is org.postgresql.util.PSQLException: ERROR: could not create unique index "pk_relations"

We are getting this for the relations table, for the nodes, ways tables also!!!

 

Is there any way we can avoid this?

We tried to remove the duplicates on the osmosisUpdate function but it did not work due to this being called after all the pushes of data to the DB.

 

Is there any other way to do this with osmosis?

Merging the several .osm.pbf files to generate a unique one is not a solution.

 

Thank you in advance.

Best regards,

Nuno Lourenço

_______________________________________________
osmosis-dev mailing list
osmosis-dev@...
https://lists.openstreetmap.org/listinfo/osmosis-dev
Jaromír Mikeš | 28 Sep 13:16 2013
Picon

Merge multiple files

Hi devs,

I am happily using osmosis for a while.
I know that I can merge multiple files this way:

osmosis --rx 1.osm --rx 2.osm --rx 3.osm --merge --merge --wx merged.osm

But this way is not very useful if you need merge 200+ files.

Would possible implement something like this?

osmosis --rx  my/files/* --merge --wx  merged.osm

best regards

mira
Jörg Frings-Fürst | 9 Sep 09:47 2013
Face
Picon

osmosis, pgsimpl, bbox

Hi,

on import the planet into pgsimple with action, bbox and linestring
osmosis is running since 2013-08-31 13:09:41.79458+02 on this part:

UPDATE ways SET bbox = (SELECT ST_Envelope(ST_Collect(geom)) FROM nodes
JOIN way_nodes ON way_nodes.node_id = nodes.id WHERE way_nodes.way_id =
ways.id)

I think that's a little too long

Any hints?

Thanks

Jörg

--

-- 
Jörg Frings-Fürst
OSM privat
D-54526 Landscheid
GPG Fingerprint: 13E3 4D4A 3228 D138 8511 EA5A 08AC AF02 3C6D 750A
Full GPG key: hkp://pool.sks-keyservers.net
CAcert Serialnr.: 0D:9A:23
SHA1-Fingerprint: CA:36:4D:44:D1:71:4A:78:C8:6C:C2:CC:94:F3:6E:42:38:BA:CE:4E
http://cacert.org

Attachment (smime.p7s): application/x-pkcs7-signature, 5011 bytes
_______________________________________________
osmosis-dev mailing list
osmosis-dev@...
http://lists.openstreetmap.org/listinfo/osmosis-dev
Simon Nuttall | 25 Aug 22:11 2013
Picon

(no subject)

I've hit this issue about 48 hours into processing a Europe - wide
nominatim. Is there a way of proceeding?

25-Aug-2013 19:45:34 org.openstreetmap.osmosis.core.Osmosis run
INFO: Total execution time: 39209229 milliseconds.
Completed for 2013-06-29T19:59:05Z in 1361.3 minutes
/home/nominatim/Nominatim/osm2pgsql/osm2pgsql -klas -C 2000 -O
gazetteer -d nominatim
/home/nominatim/Nominatim/data/osmosischange.osc
Using projection SRS 4326 (Latlong)
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Allocating memory for sparse node cache
Sharing dense sparse
Node-cache: cache=2000MB, maxblocks=256001*8192, allocation method=11
Mid: pgsql, scale=10000000 cache=2000
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels

Reading in file: /home/nominatim/Nominatim/data/osmosischange.osc
COPY_END for place failed: ERROR:  column "addr_place" of relation
"placex" does not exist
LINE 2:       street, addr_place, isin, postcode, country_code, extr...
                      ^
QUERY:  insert into placex (osm_type, osm_id, class, type, name,
admin_level, housenumber,
      street, addr_place, isin, postcode, country_code, extratags, geometry)
      values (NEW.osm_type
        ,NEW.osm_id
        ,NEW.class
        ,NEW.type
        ,NEW.name
        ,NEW.admin_level
        ,NEW.housenumber
        ,NEW.street
        ,NEW.addr_place
        ,NEW.isin
        ,NEW.postcode
        ,NEW.country_code
        ,NEW.extratags
        ,NEW.geometry
        )
CONTEXT:  PL/pgSQL function "place_insert" line 78 at SQL statement
COPY place, line 1: "N  1       amenity restaurant      "name"=>"3390
Restó", "addr:housename"=>"3390 Restó"    100     3390    Sarmiento
   \N      ..."

Error occurred, cleaning up
Error: 1
Zaman Mashruf | 25 Aug 11:50 2013
Picon

Task type mapfile-writer doesn't exist.

Hi, I was following this and trying to convert a osm to map file: https://github.com/cgeo/cgeo/wiki/How-to-create-your-own-offline-maps

In the convert step It seems it can't find the plugin mapfile-writer

It is asked to create the following directory, but in my pc's C drive there is no Documents and Settings folder (not even as hidden). When I try to create the folder it says already exists and merging with the old one!
  • Create this folder structure: C:\Documents and Settings\(your Username)\Application Data\Openstreetmap\Osmosis\Plugins\ ("Application Data" can be named otherwise, in German Windows it is called "Anwendungsdaten" for example)
Here are the cmd error output:
Aug 25, 2013 3:12:47 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.43.1
Aug 25, 2013 3:12:47 PM org.java.plugin.registry.xml.ManifestParser <init>
INFO: got SAX parser factory - org.apache.xerces.jaxp.SAXParserFactoryImpl <at> 3e53c
f
Aug 25, 2013 3:12:47 PM org.java.plugin.registry.xml.PluginRegistryImpl configur
e
INFO: configured, stopOnError=false, isValidating=true
Aug 25, 2013 3:12:47 PM org.java.plugin.registry.xml.PluginRegistryImpl register

INFO: plug-in and fragment descriptors registered - 1
Aug 25, 2013 3:12:47 PM org.java.plugin.standard.StandardPluginManager activateP
lugin
INFO: plug-in started - org.openstreetmap.osmosis.core.plugin.Core <at> 0.0.0.42-6-gf
39a160-dirty
Aug 25, 2013 3:12:47 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Aug 25, 2013 3:12:47 PM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Task type mapfile-writer
 doesn't exist.
        at org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactoryRegi
ster.getInstance(TaskManagerFactoryRegister.java:60)
        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pi
peline.java:50)
        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipel
ine.java:112)
        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:86)
        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Laun
cher.java:329)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:239)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
===========================================

Probably I can store the plugin in another folder and indicate from cmd ? How?? 

Thanks for your help in advance.
_______________________________________________
osmosis-dev mailing list
osmosis-dev@...
http://lists.openstreetmap.org/listinfo/osmosis-dev
Surya Kasturi | 31 Jul 15:22 2013
Picon

unable to write osm data to database postgis

I am running out of time to fix it and looking for your help on it. It would be very nice if you take a look and let me know how to fix it!

Thanks
Surya
_______________________________________________
osmosis-dev mailing list
osmosis-dev@...
http://lists.openstreetmap.org/listinfo/osmosis-dev
Paul Norman | 18 Jul 07:11 2013
Picon
Gravatar

osmosis loading, apidb and time zones

I've been working on some API tests, and ran into a case where the
timestamps of objects in a file are not reproduced after loading the file
into the database and fetching it with API calls.

The file contains this node:

<node id="1001" version="1" changeset="1001" lat="1.001" lon="1.001"
user="user_1001" uid="1001" timestamp="2012-10-01T00:00:00Z"/>

I load the file with osmosis into an apidb database and fetch it with the
rails port and get back a node with timestamp="2012-09-30T17:00:00Z"

If I go into the database and SELECT the timestamp column for the node I get

2012-09-30 17:00:00

It looks like osmosis is doing an incorrect time zone conversion.

I'm not sure where to ticket this.

Note: I am in Vancouver, in the PDT timezone.
Ariel Nunez | 17 Jul 19:42 2013
Picon

NegativeArraySizeException

Hello all,

I am trying to run osmosis on a planet file to filter out nodes, ways and relations tagged with building=*.

osmosis --read-pbf-fast file="$PLANET_FILE" --tf accept-ways "building=*" --write-pbf file="buildings.osm.pbf"

returns with:

SEVERE: Thread for task 1-read-pbf-fast failed 
java.lang.NegativeArraySizeException [1]

How can I debug further? The same query ran on an Indonesian country dump without issue.

Thanks in advance,
Ariel.



[1] Rest of the exception:
SEVERE: Thread for task 1-read-pbf-fast failed 
java.lang.NegativeArraySizeException
at org.openstreetmap.osmosis.pbf2.v0_6.impl.PbfStreamSplitter.readHeader(PbfStreamSplitter.java:47)
at org.openstreetmap.osmosis.pbf2.v0_6.impl.PbfStreamSplitter.getNextBlob(PbfStreamSplitter.java:81)
at org.openstreetmap.osmosis.pbf2.v0_6.impl.PbfStreamSplitter.hasNext(PbfStreamSplitter.java:99)
at org.openstreetmap.osmosis.pbf2.v0_6.impl.PbfDecoder.processBlobs(PbfDecoder.java:117)
at org.openstreetmap.osmosis.pbf2.v0_6.impl.PbfDecoder.run(PbfDecoder.java:175)
at org.openstreetmap.osmosis.pbf2.v0_6.PbfReader.run(PbfReader.java:80)
at java.lang.Thread.run(Thread.java:680)
Jul 17, 2013 4:43:50 AM org.openstreetmap.osmosis.core.Osmosis main
_______________________________________________
osmosis-dev mailing list
osmosis-dev@...
http://lists.openstreetmap.org/listinfo/osmosis-dev

Gmane