• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Map Generation

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's our software eng. term project.

I'm currently reading about SVG format.

Do you have any recommendation?
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
start thinking about pathfinding algorithms.
 
GISY LIU
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 502
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic