Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > General > Chit Chat
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Chit Chat The place for open discussions.

Mapping

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-19-2008, 12:32 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default Mapping

Hi Klaus

Thanks for the sample on the mapping routine. Here is what I am looking for:

1. Load a map like in your sample.
2. Georefernce the map by tapping on 2 positions and entering the coordinates or the lats and longs.
3. Have zoom functions like in your other map sample.
4. Have basic drawing functions like a line, circle, etc.
5. Be able to plot bitmaps (like a car, etc.)
6. Connect a GPS which shows the position on the map and can plot your path as you move along.
7. Be able to store the path of your movement.



Thanks
Ceaser
Reply With Quote
  #2 (permalink)  
Old 12-19-2008, 06:07 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Michael,

I will add the functionalities you need.
1) already done
2) no problem
3) no problem
4) partially done, do you need also drawing texts?
5) no problem, alraedy done in another program
6) 7) I don't have a GPS, so I won't be able to do it.
But it shouldn't be that complicated, I remember that alea46 on the french form has done someting in that direction.

Would you like me to continue with the ScaledMap program or would you like having it directly integrated in some of your code.
My suggstion is to move the ScaledMap code in a module so it would be relatively easy to integrate it in your code.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #3 (permalink)  
Old 12-19-2008, 06:24 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default

Hi Klaus

I don't believe it! You guys are the most helpfull people I have ever met in my 20 years of programming.

Klaus, if you can put the code in a module, then it will be easier to incoporate the code in my program.

I think we should discuss payment for your help!

Thank you very much
Michael
Reply With Quote
  #4 (permalink)  
Old 12-19-2008, 07:01 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Michael,

I have some more questions:
- What size, in pixels, are your map images ?
- What depth of zoom are you thinking of, this would or could depend on the image size ?
- Do you want the lines, circles and bitmaps directly been drawn onto the map image or onto the forelayer ? With the forelayer I am afraid that it would be complicated to combine both images afterwards.
- For the circles do you want to draw them with a given radius or do you want to determine the radius with the stylus rubberband style: point center- move for radius release draw. In that case, also for the lines, we must forget drawing onto the forelayer.

That's enough questions for the moment, will come back if there are other ones.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #5 (permalink)  
Old 12-20-2008, 07:32 AM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default

Hi Klaus

With regards to the pixel size of the map, this will depend on the type of map one will be loading and this will also have an influence on the zoom factor.

With the drawing functions can one not have an input box at the bottom or top of the screen where one can enter the parameters of the line or circle? For a line one will type in say 10,20,30,40 (startX, startY,endX,endY) and for a circle say 10,20,4 (centerX, centerY, radius). In this way the user can either draw with the stylus on the screen (and the parameters appear also in the input box) or type in the parameters.

Regarding the layer on which one draws or the path that gets plotted from data received from the GPS, can one not store this in a database so that the orginal map stays intact? One could then be able to load different "Data Files" which could then be plotted as an overlay on the map.

The database could be structured as follows:

L,10,20,30,40,cRed...................line
C,10,20,4,0,cBlue.....................circle
P,10,20,0,0,cBlue.....................point
.........etc.

Klaus, thank you very much for your help

Thanks
Michael
(a german in Africa!!)
Reply With Quote
  #6 (permalink)  
Old 12-20-2008, 11:32 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Michael,
I have been continuing the program, exactly in the same direction as described in your post.
I will post a sample quite soon to make shure that it fits your needs, requirements and feeling.
Are the maps, always oriented north-south or can those have an angular orientation? If yes that means we need 3 points to scale the maps.
The map I included in the first version is a screen copy of Google Earth, and there there can be an angular orientations.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #7 (permalink)  
Old 12-20-2008, 02:54 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default

Hi Klaus

You are right, it is a good idea to georeference the map by specifying 3 points on the map just in case it is not orientated in a north-south direction.

Something one can also incoporate at a later stage is a "correction" that can be applied in case there is a scale error in the points that were used to georeference the maps.

Klaus thanks again for your help.

Regards
Michael
Reply With Quote
  #8 (permalink)  
Old 12-23-2008, 07:06 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Michael,

Here is a first version of what the Map program could look like.
There remains of course functionalities to add and a lot to test.
I have not yet tested so much, but I would like first to have your feedback if it fits your needs, requirements and feelings.

What can be done:
- The map is at the moment fixed.
- The map can be scaled.
- Drawings can be made onto the map:
- Polylines, circles, texts and bitmaps.
For the circles, the radius can be defined (in pixels)
For the texts, those can be input.
The colors are selectable.
For the bitmaps, just two images are predifined in the program at the moment.
- Select any element of the drawing, no modifications possible yet, just the color.
- The scaling of the map needs more testing.
- Save and load drawings.
The saved data is just the geometry of the drawing elements, no reference to the map yet, will be improved.

What can not be done yet:
- Loading of different maps
- Loading of bitmaps to draw
- Modifications of drawing elements (coordinates).
- Scaling with 3 points
- Undo and redo doesn't work yet

A very very small help file is included.

Your comments for the progress of the program will be welcome.

As once promised, the color selection module is included.

Best regards, and merry Christmas to you and to All who read this post.

EDIT 2008.12.31 : Removed files, new version in post #10.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide

Last edited by klaus : 12-31-2008 at 12:37 PM.
Reply With Quote
  #9 (permalink)  
Old 12-24-2008, 11:11 AM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 312
Default

Hi Klaus

Thank you very much.

I will work through it and give you my feedback.

Regards
Michael
Reply With Quote
  #10 (permalink)  
Old 12-31-2008, 12:33 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Michael,

Here is version 1.0 of the ScaledMap program.

I would be pleased to have some feedback of what is missing, improvement suggestions and bug reports.

What can be done:
- Different maps can be loaded.
- The map can be scaled, and the scaling saved (two points only yet).
- Drawings can be made onto the maps: polylines, circles, texts and bitmaps.
- For the circles, the radius can be defined (in pixels)
- For the texts, those can be input and font size selected.
- The colors are selectable.
- For the bitmaps, four images are predifined in the program at the moment, these can be deleted and others loaded.
- Select any element of the drawing and modify it. To change the position of an element, click on it, move it and release, or change the values.
- Save and load drawings. The saved data is just the geometry of the drawing elements, with a reference to the map. To load drawings, the program shows only those belonging to the map.

What can not be done yet:
- Scaling with 3 points
- Undo and redo not yet implemented
- Calculate the length of a polyline

What is still missing:
- no config file
- no VGA support
- no multi language
- no GPS support

A very very small help file is included, because of size restrictions, will be more complete in the next version.

The next version will be posted in the Share Your Creations forum.

Best regards, and a Happy New Year.

EDIT: 2009.01.09 Removed old version
The new version is now here: http://www.basic4ppc.com/forum/share...html#post21014
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide

Last edited by klaus : 01-09-2009 at 05:22 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 09:01 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0