[OSM-dev] Questions regarding postgresql classes in osmosis

Brett Henderson brett at bretth.com
Tue Aug 4 22:52:10 BST 2009


The full osmosis distribution (ie. not the binary distribution) contains 
javadoc under the doc/api directory.
http://dev.openstreetmap.org/~bretth/osmosis-build/osmosis-0.31.2.zip

It may not be everything you're looking for, but it's guaranteed to be 
up to date.

IbrahimB22 wrote:
> Hi,
>
> The osmosis library seems to contain some classes to connect with the
> postgresql database. 
> However when browsing through the javadoc, some documentation seems to be
> missing or outdated. (e.g. PostgreSqlReader isn't documented, or
> DatabaseLoginCredentials seems to suggest 4 parameters, while in reality it
> needs 6)
> The javadoc i used is located here:
> http://travelingsales.sourceforge.net/javadoc/libosm/
> I could also just use JDBC to connect and send out queries, but I noticed
> that the libosm library contains some methods that are transparent to the
> user to work with Nodes. (in other words the queries do not need to be
> writtenn which is a great timesaver for the routing part)
> So i think it would be better to use the libosm's pgsql classes instead of
> just jdbc.
> Could anyone provide me with better documentation of how these classes work
> (if better documentation is available) or a clear example of how the
> connection is made using this library?
>  
> Kind Regards,
>  
> Ibrahim
>   





More information about the dev mailing list