~ubuntu-branches/ubuntu/oneiric/mkgmap/oneiric

« back to all changes in this revision

Viewing changes to src/uk/me/parabola/mkgmap/reader/test/TestPoints.java

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine, Andreas Putzo, Francesco Paolo Lovergine
  • Date: 2009-07-16 11:10:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090716111016-yycxqya1f26xmti7
Tags: 0.0.0+svn1067-1
[ Andreas Putzo ]
* New upstream snapshot.
* Added ${misc:Depends} among dependencies to fix a lintian warning.
* Bumped debhelper compatibility level to 7.
* Updated long description.
* Updated Homepage in debian/control, debian/copyright, debian/watch.
* Added numerous files from /doc to debian/docs.
* Mentioned Bernhard Heibler in debian/copyright and updated copyright
  year of software and packaging.
* Bumped policy to 3.8.2, without changes.
* Added DM-Upload-Allowed to debian/control.

[ Francesco Paolo Lovergine ]
* Added me as Uploader to avoid possible inappropriate NMU notices.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 */
17
17
package uk.me.parabola.mkgmap.reader.test;
18
18
 
 
19
import java.util.ArrayList;
 
20
import java.util.List;
 
21
import java.util.Properties;
 
22
 
19
23
import uk.me.parabola.imgfmt.app.Coord;
20
24
import uk.me.parabola.mkgmap.general.MapCollector;
 
25
import uk.me.parabola.mkgmap.general.MapLine;
21
26
import uk.me.parabola.mkgmap.general.MapPoint;
22
 
import uk.me.parabola.mkgmap.general.MapLine;
23
 
 
24
 
import java.util.Properties;
25
 
import java.util.List;
26
 
import java.util.ArrayList;
27
27
 
28
28
/**
29
29
 * This is a map that contains many points in a dense grid.  It is going to
49
49
                this.props = in;
50
50
 
51
51
                double baseLat = 51.7;
52
 
                double baseLong = 0.24;
53
52
 
54
53
                String sBaseLat = System.getenv("BASE_LAT");
55
54
                String sBaseLong = System.getenv("BASE_LONG");
56
55
 
57
56
                if (sBaseLat != null)
58
57
                        baseLat = Double.valueOf(sBaseLat);
 
58
 
 
59
                double baseLong = 0.24;
59
60
                if (sBaseLong != null)
60
61
                        baseLong = Double.valueOf(sBaseLong);
61
62
 
90
91
                                point.setName("P " + (x*npoints + y));
91
92
 
92
93
                                point.setLocation(new Coord(baseLat, baseLong));
93
 
                                point.setType(0x2c);
94
 
                                point.setSubType(y & 0xf);
 
94
                                point.setType((0x2c << 8) + (y & 0xf));
95
95
 
96
96
                                mapper.addPoint(point);
97
97
                                mapper.addToBounds(point.getLocation()); // XXX shouldn't be needed.