wood burning stoves 2.0
The moose likes Java in General and the fly likes Map Generation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Map Generation" Watch "Map Generation" New topic

Map Generation


Joined: Apr 21, 2005
Posts: 3

I am studying on a GIS homework.

I want to generate a very simple map from GPS raw data.

This map is used to show shortest Path for two arbitrary waypoints, etc.

Also, it will be very nice if waypoints are be clickable.(to show info about these places.)

Has anybody worked on a similar project? Any help is appreciated!
Thank you.
Stuart Gray
Ranch Hand

Joined: Apr 21, 2005
Posts: 410
Quite a tough homework I am thinking

You could create the map using a BufferedImage; how you would do this depends on the format of the GIS data. I don't know how you'd go about plotting the routes though.

Joined: Apr 21, 2005
Posts: 3
It's our software eng. term project.

I'm currently reading about SVG format.

Do you have any recommendation?
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
start thinking about pathfinding algorithms.


Joined: Apr 21, 2005
Posts: 3
thank you for your reply.

Theory side of the project is almost done.

Just we need is about how to implement.
Jayesh Lalwani
Ranch Hand

Joined: Nov 05, 2004
Posts: 502
SVG just addresses the presentation side of your application. It doesn't address how you need to model, store and handle the data. I think you need to do more brainstorming on what you need to accomplish and what are the differrent ways you can go about it.

I don't know how much leeway you have in using third party apps, but you can use Adobe SVG viewer to render your SVG maps. You can create SVG maps that are clickable, and put in script that can make it interactive

You will have to do the work of generating the SVG and implementing the path-finding algorithm, though. One way would be that your server can generate the SVG with the best path rendered in a differrent brighter color. There are plenty of ways you can go about it. As I said, you need to give more thought to this
K Riaz
Ranch Hand

Joined: Jan 08, 2005
Posts: 375
You can use the Batik API, which can create an SVG. Another way would be to build a template SVG using Imaging Software which can output SVG (search for SVG Editor) and then use XPath to change certain elements (such as text or colour of certain items in your image), or attach scripts (which you could create dynamically too) and attach it to specific elements in the image. Its simple and fast.
I agree. Here's the link: http://aspose.com/file-tools
subject: Map Generation
It's not a secret anymore!