NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi, extracting a polygon from postgres via osmosis fails:

/home/osm/osmosis -v --read-pgsql database="osm" user="osm" password="secret" validateSchemaVersion=no --dataset-bounding-box bottom=50.0 left=8.6 top=50.1 right=8.7 --write-xml db.osm

FINE: Rolling back JDBC transaction on Connection [jdbc:postgresql://localhost/osm_rn, UserName=osm, PostgreSQL Native Driver] Jun 13, 2011 10:24:13 PM org.springframework.jdbc.datasource.DataSourceTransactionManager doCleanupAfterCompletion FINE: Releasing JDBC Connection [jdbc:postgresql://localhost/osm_rn, UserName=osm, PostgreSQL Native Driver] after transaction Jun 13, 2011 10:24:13 PM org.springframework.jdbc.datasource.DataSourceUtils doReleaseConnection FINE: Returning JDBC Connection to DataSource Jun 13, 2011 10:24:13 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion SEVERE: Thread for task 1-read-pgsql failed org.openstreetmap.osmosis.core.OsmosisRuntimeException: Cannot represent -1 as a char. at org.openstreetmap.osmosis.core.util.IntAsChar.intToChar(IntAsChar.java:35)

Any hints?

This question is marked "community wiki".

asked 13 Jun '11, 22:27

gwk's gravatar image

gwk
36225
accept rate: 0%

edited 19 Jun '11, 09:21


The osmosis-dev mailing list is a good place to ask such questions.

Specifically, are you using Osmosis 0.39 or an earlier version? There has been a change affecting the internal serialization of objects in r25674 which is included in 0.39 but not older versions of Osmosis. This change has fixed the "Cannot represent -1 as a char" bug in a different scenario; maybe it helps for your case as well. (Mailing list article.)

permanent link

answered 13 Jun '11, 22:36

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

edited 14 Jun '11, 18:17

Extracting a polygon via osmosis-0.39 works fine. Tried osmosis-0.38 before.

(14 Jun '11, 18:11) gwk

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×252
×34

question asked: 13 Jun '11, 22:27

question was seen: 5,798 times

last updated: 19 Jun '11, 09:21

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum