View previous topic :: View next topic |
Author |
Message |
Kremmen Pocket GPS Verifier
Joined: Mar 03, 2006 Posts: 7045 Location: Reading
|
Posted: Fri Apr 29, 2011 6:25 am Post subject: |
|
|
I'm reading the files one at a time and loading the data into an array.
I then re-read the file and take note of the Lat and Lon data. I then add and subtract 0.001 from the Lat and Lon position to give me a Min and Max.
I calculated that 0.001 was sufficient by using the Lat and Lon of the variable cameras along the western section of the M25 which are often on the same gantry but on opposite carriageways causing a double warning when one will do in each direction.
I then read through the rest of the file and if any other camera is within the Min and Max for both Lat and Lon then the camera has to be within a very short distance of the one I'm looking at and therefore can be omitted.
On my first run yesterday it worked perfectly for these cameras on the M25 but still gave me warnings for the ones that are on separate gantries.
I'm sure I have a working version now and I'm happy to release it free to anyone interested (including the VB6 source code if anyone wants to improve on it). I would have used VB.NET but I'm not sure how Microsoft's DomDocument4 works with .NET yet for creating the XML files (subsequently renamed to .GPX)
It should still be treated as beta as I've only tested this final version once but I have tested other variants continually during the week. _________________ Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
|
|
Back to top |
|
|
BigPerk Frequent Visitor
Joined: Sep 06, 2006 Posts: 1618 Location: East Hertfordshire
|
Posted: Fri Apr 29, 2011 9:18 am Post subject: |
|
|
Maybe you could license it to Ash10, for a small % of his Paypal donations ...
(it does look like a very useful utility ) _________________ David
(Navigon 70 Live, Nuvi 360) |
|
Back to top |
|
|
MaFt Pocket GPS Staff
Joined: Aug 31, 2005 Posts: 15144 Location: Bradford, West Yorkshire
|
Posted: Fri Apr 29, 2011 10:45 am Post subject: |
|
|
I always preferred CBROM's utility anyway...
This one is more like his. Will be interesting to have a play!
MaFt |
|
Back to top |
|
|
Kremmen Pocket GPS Verifier
Joined: Mar 03, 2006 Posts: 7045 Location: Reading
|
Posted: Fri Apr 29, 2011 2:12 pm Post subject: |
|
|
Once I get back into the office next Thursday I'll send it over.
ps: I want no dosh for this, it was a labour of love _________________ Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
|
|
Back to top |
|
|
camerauk Occasional Visitor
Joined: Dec 19, 2004 Posts: 27
|
Posted: Sun May 08, 2011 8:48 pm Post subject: |
|
|
Kremmen wrote: | Once I get back into the office next Thursday I'll send it over.
ps: I want no dosh for this, it was a labour of love |
I would love a copy of this please
is it windows only or mac compatible does not matter either way
Andy |
|
Back to top |
|
|
Kremmen Pocket GPS Verifier
Joined: Mar 03, 2006 Posts: 7045 Location: Reading
|
Posted: Mon May 09, 2011 6:33 am Post subject: |
|
|
Hi
I'm in the process of rewriting it to make use of .NET4 via VS2010. If your happy to have a go with the VB6 version I'll send it over.
It's Windows only and probably won't work with 64bit. Having said that the .Net4 version probably won't either because Microsoft in their infinite wisdom have removed the native controls to display Drive, Directory and File List Boxes so I've had to call on legacy controls that I'm sure aren't 64bit compatible. _________________ Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
|
|
Back to top |
|
|
M8TJT The Other Tired Old Man
Joined: Apr 04, 2006 Posts: 10118 Location: Bexhill, South Sussex, UK
|
Posted: Mon May 09, 2011 8:36 am Post subject: |
|
|
Kremmen wrote: | Having said that the .Net4 version probably won't either because Microsoft in their infinite wisdom have removed the native controls to display Drive, Directory and File List Boxes so I've had to call on legacy controls that I'm sure aren't 64bit compatible. | Why oh why do MS do things like this? |
|
Back to top |
|
|
Kremmen Pocket GPS Verifier
Joined: Mar 03, 2006 Posts: 7045 Location: Reading
|
Posted: Tue May 10, 2011 6:32 am Post subject: |
|
|
It gets worse....
Everything has converted OK except for the UnZip routine and the XML writing bit. They have made it so complicated to produce the required multiple element attributes. So easy using the legacy MSXML4 DomDocument routines.
The GPX file requires an entry like "wpt lon="-2.25405" lat="51.84847"
Easy to produce "wpt lon="-2.25405" but trying to add the second element is proving difficult, even via multiple Googles to find a solution !
I've resorted to using the Win32 Shell for the unzipping so that bit won't work under 64bit Windows I wouldn't think. Shame really.
I can see me calling in the legacy DomDocument for that bit as well.
I'm won't give up though. _________________ Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
|
|
Back to top |
|
|
Kremmen Pocket GPS Verifier
Joined: Mar 03, 2006 Posts: 7045 Location: Reading
|
Posted: Sat May 21, 2011 6:25 am Post subject: |
|
|
Latest screendump of my efforts. Now tested on Win 7 32bit and works perfectly
I'll upload it Monday. I can't post the download link directly because my company may object. I will post via PM though. _________________ Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
|
|
Back to top |
|
|
Andy_P Pocket GPS Moderator
Joined: Jun 04, 2005 Posts: 19991 Location: West and Southwest London
|
Posted: Sun May 22, 2011 2:44 pm Post subject: |
|
|
Damn that looks clever, Kremmen.... Where do you go to learn this stuff? _________________ "Settling in nicely" ;-) |
|
Back to top |
|
|
Kremmen Pocket GPS Verifier
Joined: Mar 03, 2006 Posts: 7045 Location: Reading
|
Posted: Mon May 23, 2011 6:32 am Post subject: |
|
|
It's what I do on a daily basis
As far as I can tell it's all working as expected so I'm going to upload it to the company server. I have one PM to send with the link.
It should work on all versions of Windows except possibly for the programmatic unzipping of the database which may be restricted to 32bit machines. I'm sure someone will tell me. For this reason it's possible to manually unzip the file and the program will acknowledge that it's now found CSV files which can be converted to GPX with user set requirements. _________________ Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
|
|
Back to top |
|
|
m-a-r-k Regular Visitor
Joined: Jun 17, 2008 Posts: 80 Location: Highland
|
Posted: Wed May 25, 2011 7:23 pm Post subject: |
|
|
How can we get to play with this wonderful program? _________________ Mark B
Garmin nüvi 350
SW V6.20, GPS SW V3.00
City Navigator Europe NT 2018.10 |
|
Back to top |
|
|
Kremmen Pocket GPS Verifier
Joined: Mar 03, 2006 Posts: 7045 Location: Reading
|
Posted: Thu May 26, 2011 6:33 am Post subject: |
|
|
PM sent with download link _________________ Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
|
|
Back to top |
|
|
tailz Occasional Visitor
Joined: Jul 03, 2008 Posts: 13
|
Posted: Thu May 26, 2011 7:03 am Post subject: |
|
|
Hi Kremmen,
If your program is ready for use/trials, I would be grateful to have a play.
Cheers
Tony |
|
Back to top |
|
|
Kremmen Pocket GPS Verifier
Joined: Mar 03, 2006 Posts: 7045 Location: Reading
|
Posted: Thu May 26, 2011 9:05 am Post subject: |
|
|
Done _________________ Satnav:
Garmin 2599 LMT-D (Indoor test rig)
DashCam:
Viofo A119 V3
Car Average MPG :
|
|
Back to top |
|
|
|
Posted: Today Post subject: Pocket GPS Advertising |
|
|
We see you’re using an ad-blocker. We’re fine with that and won’t stop you visiting the site.
Have you considered making a donation towards website running costs?. Or you could disable your ad-blocker for this site. We think you’ll find our adverts are not overbearing!
|
|
Back to top |
|
|
|