Menu

#1 too big rect in track

open
nobody
None
5
2001-05-14
2001-05-14
Anonymous
No

thanks for your soft, and sorry for my english. I use
actually your soft
before race sailing, but I've made a little change in
ImageGMap.java (v0.8)

* I don't display the parcour's lenght, but only
course; it's too big
on little route; but it's different in v0.9 i
think. (I only look
v0.9 rapidly)

* I use track for drawing coastline data, but the big
green rect is too
large (I don't draw them)

* can it be fixed in eps.prp with a parameter ?
(I'm not a java expert ...)

- joigned my diff file for ImageGMap.java (in v0.8)

- and a little bug in v0.9 : if I save option, I have
in eps.prp :
eps.dgpsPort=none , and eps don't restart :

orvoine@bop% java
EPS
[ 9:44]
chartframe base URL:
file:/opt/home/orvoine/Nav/Eps/v0.9/
BASE is: file:/opt/home/orvoine/Nav/Eps/v0.9/
property file is:
file:/opt/home/orvoine/Nav/Eps/v0.9/eps.prp
now t base: file:/opt/home/orvoine/Nav/Eps/v0.9/
java.lang.NumberFormatException: none
at java.lang.Integer.parseInt(Integer.java)
at java.lang.Integer.parseInt(Integer.java)
at GMenv.<init>(GMenv.java:139)
at ChartFrame1.<init>(ChartFrame1.java:207)
at EPS3W.<init>(EPS3W.java:73)
at EPS.main(EPS.java:51)

thanks for your help.

my diff file :

bop:~/Nav/Eps/toto> diff -e ImageGMap.java
../v0.8/ImageGMap.java
557,559c
//ber
CAux.drawString(g,distFormat.format(p0.dist(p1)*
GMenv.lengthMul+0.005) +
//ber GMenv.lengthUnitName +", " +
//ber ((int)(p0.icoursedg(p1)+0.5)) + "\u00B0",
//ber
(sx0+sx1)/2,(sy0+sy1)/2,2,GMenv.getColor(GMenv.ROUTECOLOR));
CAux.drawString(g,((int)(p0.icoursedg(p1)+0.5)) +
"\u00B0",

554c
//ber sy2 =
sy1-theRT.wpts.wayPoints[nw].routeHere*th-4;
sy2 = sy1-theRT.wpts.wayPoints[nw].routeHere*th;

549c
//ber GMenv.lengthUnitName + " of "+ theRT.name;
//ber : On n'indique pas le nom du parcours
GMenv.lengthUnitName;

534,535c
//ber CAux.drawString(g,"Start: " + theRT.name + " 0
"+GMenv.lengthUnitName, sx0,sy2,2,
//ber GMenv.getColor(GMenv.ROUTECOLOR));
CAux.drawString(g,"Start: " + theRT.name,
sx0,sy2,2,GMenv.getColor(GMenv.ROUTECOLOR));

494c
//ber g.fillArc(sx,sy,4,4,0,360);

480c
//ber g.fillRect(sx-4,sy-4,8,8);

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.