Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Map Generation

 
GISY LIU
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
GISY LIU
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's our software eng. term project.

I'm currently reading about SVG format.

Do you have any recommendation?
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
start thinking about pathfinding algorithms.
 
GISY LIU
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 502
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic