This means that cylinder-projection charts (eg. Mercator) can be used. It is not required that each rectangle are scanned in the same resolution, that each rectangle are scanned from charts of the same scale, or that each rectangle covers the same area.
For example in the demo, the rectangles are 10'x10'.
Charts can be GIF's or JPEG.s. Each rectangle is stored in a file named after the South-West corner of the rectangle, the area it covers and a number, DPD (Dots Per Degree) that describes the quality of the scanned rectangle. I.e.: "55g50N12g40E_10x20q4000.jpg" is a 4000DPD JPEG chart that covers the rectangle 55°50'N 12°40E' to 56°00'N 13°00E'.
The DPD is used when there are multiple charts for the same area. Different charts are used depending on the scale--When zooming out charts with lower DPD are used. I.e. on a 1:70000 chart 1 degree latitude is 1.8 meter or 70 inches. If the chart is scanned at 72 Dot Per Inch, the quality is 62*72 = 5040 DPD. The DPD measure does not have to be very accurate it is just a way to help EPS decide which chart to use.
All chart rectangles must be placed in a directory, default 'EPSDIR/charts'.
If EPS is to be used across a network, EPSDIR/charts must contain a file 'index.html' that contains the names of the chart-files. One name per line.
The "Save options" item in the "Save" menu saves these options:
How to use the EPS system
When the application is started, a window appears. The window can be resized.
On the left is the chart. To the left and below the chart are two scrollbars. At the top 8 are buttons that triggers actions. To the right a number of panels are located. The input field at the top is used for all inputs except position. Positions are entered through the position fields below the input field.
Below the position fields the way-point list is located. A way-point can be activated by clicking on it. Below the way-point list, a list of routes is located. When a route is selected by clicking on it, a list of the way-points in the route appears in the "way-point in route" list. At the bottom the output Area is located.
When clicking with the left mouse-button on the charts, the position is
displayed, and the chart cursor is set to this position. The chart cursor is
displayed as:
When the bubble of a scrollbar is located at one of the ends, it can be moved to the center of the scrollbar (without scrolling the chart) by clicking on the small triangles at the ends of the scrollbar. In this way it is possible to scroll infinitely.
The zoom-bar allows zooming in and out.
Way-points are shown on the chart as dots with a name. The color of the dots are set in the "Set" menu. Default is red.
Routes are shown as lines. At the center of each leg of a route, the length of the leg is shown. At each way-point in a route the distance covered since start is shown. The color of the lines are set in the "Set" menu. Default is blue.
The track is shown as green lines. the EPS arbitrarily selects certain points shown as squares, between which the average speed is shown. The color of the track are set in the "Set" menu. Default is green.
Chart rectangles are loaded as they become visible (by zooming or scrolling). Therefore the system will be a little slow initially. But charts are cached, so once the charts are loaded, it should work smoothly.
If a route file is read that contains a way-point that is not in the way-point list, it is added to the way-point list.
Garlink/WinGPS routes and way-point files should also work. This is the format exported and imported by WinGPS (.SWP and .RWP files). Track files cannot be read or written. But if someone send me a track file, I will implement it.
I will add support for other formats if I get a request with a specification of the format and a sample file.
The initial files are useful if you use eg. the same waypoint file most of the time.
Default are the demo files ("w0.wpt", "r0.rt", and "t0.trk"). To get rid of the demo files choose "All" in the "Delete" menu and then "Options" in the "Save" menu.
The marked waypoint is shown with a "*".
Communicating with GPS unit
Set the port by typing the port name in the input field and select "Port Name"
in the "Set" Menu. On Windows platforms ports are named "COM1", "COM2" etc. On
Linux, ports are named "/dev/ttyS0", "/dev/ttyS1", etc.
On Windows platforms the Java Communications API must be installed for communication with GPS-unit.
The "Track" item in the "Save"-menu can be used to save positions collected from NMEA output.
The GPS unit must be connected, turned on and set to output NMEA (the "Interface" menu on Garmin units).
The GPS unit must be connected, turned on and set to GRMN/GRMN in the "Interface" menu
on the GPS unit.
The demo chart
Handmade by me. I don't want to get in trouble with the copyright holders, so
you won't get the real thing.
It is a nautic chart (1:70000) of the northern part of Øresund between Denmark
and Sweden. The island Ven is where Thycho Brahe had his observatory,
"Uranienburg".
Way-point SVANEM is Svanemøllen harbour. This is where my boat is.
The way-points, routes, and track-files, "w0.wpt", "r0.rt", and "t0.trk", are loaded at start-up.
A part of the track file is constructed.
TO DO
The full distribution (zip) contains source code, classes and demo charts. It is approx. 700KByte. It the same as above, just packed as a zip-file.
If EPS is started from a local file-system (with "Open File" or with a "file:/..." URL) EPS will ask for permission to the file-system. If this is granted, EPS can save Waypoints, Routes, and Tracks to disk.
If EPS is started over a network, Waypoints, Routes, and Tracks cannot be saved.
Netscape cannot communicate with GPS-units.
EPS can be compiled with javac (JDK >= 1.1 ). Delete all .class files and do "javac EPS.java".
If EPS is to be used with a browser (other than Netscape) compile "EPS_browser.java".
EPS now uses CommAPI from SUN to handle serial communication. EPS can run without CommAPI, but must be compiled with CommAPI.
On Unix/Linux download the CommAPI package, untar/unzip it. You only need the file "comm.jar". Put "comm.jar" in the CLASSPATH variable. Now you can compile EPS. You need to install RXTX to actually use CommAPI, but not to compile EPS.
If you outcomment the line
gps1 = new GPS (loadFileArea, this);
in ChartFrame1.java you don't even need COMMAPI to compile or run EPS. But then you cannot communicate with the GPS unit.
If EPS is to be used from Netscape the file EPS_Netscape.java must be compiled with the Netscape classes (java40.jar). I.E add java40.jar to CLASSPATH and compile EPS_Netscape.java. If Netscape is not used for EPS, it is not necessary to compile EPS_Netscape.java. Do not run EPS with java40.jar in the classpath. And make sure that no other files than EPS_Netscape.java is compiled with java40.jar in the classpath. I.E do:
del *.class javac EPS.java set CLASSPATH=java40.jar javac EPS_Netscape.jar