From: Gayatri G. <ga...@cs...> - 2004-06-27 01:32:36
|
Hi all, I am trying to read data from PostGIS and draw a map. I was trying to use the PostgisDataStore class in the geotools API to get the feature source, then add this to the MapContext and pass it to the StyledMapPane and then draw a map in the frame. But for some reason this did not work, I guess this has to do with addLayer method of MapContext, I am not sure. So, what i am trying to do is get the data and store it as Point objects. I did this. But now I want to add these points to a Layer and then add this layer tot he map. I looked at the API i did not find any methods to do this. I want to create a layer, and add points to this layer and then add this to the map. Could anyone just give me brief overview of how to go about this? Thanks, gayatri. |