Hi everybody,
I'm writing a layer to render some geometries loaded from PostGIS (imported
from OpenStreetMap via osm2pgsql).
For some reason he geometries are invisible. Taking a simple OMPoint, I
create it with this simple function:
static public OMPoint createOMGeomFromPostGis(org.postgis.Point point) {
Assert.assertExp(point!=null);
Assert.assertExp(org.postgis.Geometry.POINT == point.getType());
OMPoint ompoint = new OMPoint((float) point.getY(), (float) point.getX());
return ompoint;
}
And then I set some values:
ompoint.setRadius( osmId.getPointSize() );
ompoint.setFillPaint( osmId.getFillColor() );
ompoint.setVisible(true);
ompoint.setAppObject(outcome);
graphList.add(ompoint);
graphList.project(getProjection());
In the paint() function I simply call a render
public void paint(Graphics g) {
graphList.render(g);
}
This way I'm not getting anything rendered on the map.
What's wrong with my code?
Bye,
Mulone
--
View this message in context: http://www.nabble.com/Issues-with-layer-tp23771979p23771979.html
Sent from the OpenMap mailing list archive at Nabble.com.
--
[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 May 28 2009 - 19:35:26 EDT