1. I got the following exception, and I don't realize where and why it
> happens
Looks like some part of your shape file is null? The renderer would like to
draw it, but an attribute it is using to style is null.
> 2. The other problem I have is about the map visualization: each time
> the vehicle changes position, the relative shapefile is updated with a
> transaction which modifies the geometry value, and the map too must be
> updated with the new vehicle position. The problem is that the map is
> flashing, it disappears and it appears again. Obviously I don't like
> this. Any suggestion?
You could draw the map in two parts (perhaps using a swing component?). Draw
your shapefile into one raster; and vehicle into another. There are lots of
examples of using Swing "double buffering" to prevent flashing.
Note swing does include a "glass pane" - as a quick hack you could draw your
vehicle location onto that; but it would just be a quick hack to illustrate the
approach of drawing the map; and then drawing the vehicle into separate raster.
Jody
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users