[OpenMap Users] Problems with Projection Loader properties

From: Greg Jewell <greg17_at_jewell.net>
Date: Thu, 5 Jul 2012 15:50:09 -0400

Hello,

I have encountered another issues with porting an application to use
OpenMap 5. A button on the application UI causes
PropertyHandler.createOpenMapProperties(..) to be called. From here, the
ProjectionFactory.getProperties(..) method is called is eventually called.
The ProjectionFactory tries to iterate over all of its projection loader
classes, and to obtain the property prefix for each of them. However, the
prefix is always null, and is causing a NullPointerException to be thrown
at line 168.

In OpenMap 4.6.5, the ProjectionFactory class simply returns the Properties
object passed into the method, or an empty Properties if the original was
null. I created a class that derived from ProjectionFactory with this
older implementation of getProperties(..) and placed this new class in the
openmap.properties file, but the original class still loaded.

How can I get my custom ProjectionFactory class to load? Is this the best
solution?


Thanks again,
Greg Jewell


--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Jul 05 2012 - 15:51:22 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:10 EDT