From: Ian Turton <ian@ge...> - 2002-04-25 20:25:32
As some of you may remember we set ourselves the initial aim of being able
to draw a map on the screen, this was referred to as example1 since its
like example 1 of the geotools1 demos.
Well the good news is we've achieved that goal (sort of)!
If you look in the cvs now you'll see a new directory called spike (don't
worry about why, James can explain). Its an experimental playground area
for code that may or may not make it in to the main build and for trying
stuff out which you still want to share with others over the cvs. So I have
created a directory called ian in it and in there theres a program called
Exampe1. This takes lots of James' and others code and reads in a shapefile
and displays it in a panel. you need to set the path to the shapefile
testdata directory in datafolder before you compile it. Give it
statepop.shp as an argument and you should see a red map of the united
states, with black borders.
Things left to do:
Find out why Texas, Florida and a small state some where near Washington
aren't coloured in properly, and why one of the great lakes is coloured in
red. I think its to do with how shapefiles and JTS mark holes.
Add zooming, panning and reset to GeoTools2 or just to the experimental
version. Any volunteers?
Currently its impossible (as far as I can see) to get a boundingbox of your
data so you have to pre-calculate it and hard code it in at present. I
think we need to modify datasource so its possible to load everything in a
datafile and then query it for a bounding box. What do you guys think?
I'd also like to try this with some gml, but I can get gmldatsource to work
yet, Rob any news?
So everyone have a play with it make changes, try it out with your own
favorite shapefile etc. We can discuss what next at the irc next week.
Ian Turton, Centre for Computational Geography, School of Geography,
University of Leeds, Leeds, LS2 9JT. ***0113 3433392 - New Phone No***
On Friday 26 April 2002 06:20, Ian Turton wrote:
> As some of you may remember we set ourselves the initial aim of being able
> to draw a map on the screen, this was referred to as example1 since its
> like example 1 of the geotools1 demos.
> Well the good news is we've achieved that goal (sort of)!
Excellent work, although there is a downside. I'm now trying to get the
build to work - more comments following. :)
Am I pushing it to also ask for an ant build file in the spike directory?
Maybe even a run.bat or run.sh script as well?
Which brings us to another point, where are we going to put our example