AirNav Systems Forum

AirNav ShipTrax => AirNav ShipTrax Discussion => Topic started by: Peter on March 02, 2012, 03:45:57 PM

Title: OSM Layer
Post by: Peter on March 02, 2012, 03:45:57 PM
The OSM layer seems to have stopped working in my ShipTrax. Reading another Forum that uses OSM to produce their aircraft tracking map window, it appears that the OSM site has ceased permanently. Wonder if the same OSM website is involved, has anyone else noticed this yet please?
Appreciate that we can always use the satellite window instead.

Peter
Title: Re: OSM Layer
Post by: AirNav Support on March 02, 2012, 10:19:46 PM
Hi Peter,

We will check this.
Title: Re: OSM Layer
Post by: pjm on March 03, 2012, 01:30:58 AM
Seems shipplotter and planeplotter have the same problem.

http://groups.yahoo.com/group/shipplotter/message/21136

Quote
It appears that the OSM tile rendering server that PP and SP use, has been
retired.

Until I can come up with an alternative, the OSM feature in ShipPlotter will
fail.

This is disappointing but, as with all features that rely on other servers for
useful data, it happens from time to time and is outside of our control.

If anyone knows of an OSM map tile renderer that works like the TAH server did,
I would be glad to know about it.

Bev
COAA
Title: Re: OSM Layer
Post by: tarbat on March 05, 2012, 08:38:47 AM
I provided Airnav with the algorithms for OSM map lookup, so at least one of the methods I provided is still working:
http://ojw.dev.openstreetmap.org/StaticMap/?lat=57.491826&lon=-4.236176&z=15&w=1021&h=875&mode=Export&show=1

The original idea was to utilise several different ways of doing OSM download, since these links/methods regularly change.  Hopefully Airnav can ensure that the above link method is now used - until OSM changes again :(
Title: Re: OSM Layer
Post by: patcarty2 on March 13, 2012, 09:36:22 AM
Both Ship and PlanePlotter found a solution a few weeks back. Any news on Shiptrax?
Title: Re: OSM Layer
Post by: AirNav Support on March 13, 2012, 01:38:24 PM
Dev will get back to you on this soon, it might require a software update.
Title: Re: OSM Layer
Post by: tarbat on March 20, 2012, 08:36:06 AM
I provided Airnav with the algorithms for OSM map lookup, so at least one of the methods I provided is still working:
http://ojw.dev.openstreetmap.org/StaticMap/?lat=57.491826&lon=-4.236176&z=15&w=1021&h=875&mode=Export&show=1

I see Planeplotter is now using this link for OSM lookup.
Title: Re: OSM Layer
Post by: tarbat on March 24, 2012, 09:28:52 AM
Whilst Airnav work on a solution to this, I've modified my OSM spreadsheet to generate the http call you need to manually download a map from Google Maps that exactly matches the map retrieved from OSM in coverage area and zoom.  XLS attached.

Only change is to allow for the fact that Google Maps will only allow a maximum map dimensions of 640x640, so the zoom level has to be reduced by one and then scaled by two.

(http://farm8.staticflickr.com/7101/6864414218_6a5d61eb77_n_d.jpg) (http://www.flickr.com/photos/tarbat/6864414218/sizes/o/in/photostream/)(http://farm8.staticflickr.com/7080/6864415026_e7c402d0e0_n_d.jpg) (http://www.flickr.com/photos/tarbat/6864415026/sizes/o/in/photostream/)
Title: Re: OSM Layer
Post by: patcarty2 on March 29, 2012, 07:23:57 PM
As it has been almost a month, any news on a final fix?

Pat

 
Title: Re: OSM Layer
Post by: AirNav Development on March 30, 2012, 04:14:04 AM
We had a long development delay in solving this issue but it is finall (today) corrected.
Please confirm that it is working on our client software.
Title: Re: OSM Layer
Post by: tarbat on March 30, 2012, 07:21:22 AM
Still getting the error message "A problem was detected while downloading the OpenStreetMap layer.  Please try again".

Looking at wireshark, the call made is:
www.airnavsystems.com/cgi-bin/ANLV_SV/anlv_sv_user.dll?UsOSMLayer=0&lat=0vvyszSkSy1AkRqi&long=yvjytzSpTSBMlx6p&z=1v0%3D&w=1v3ltQ%3D%3D&h=1vzkvA%3D%3D&skip_attr=on&format=jpeg&usverify_name=t4udy1bUSyVEkB%2Bl&usversion=ANSH128

Which returns this (incorrect) map in PNG format:
(http://farm7.staticflickr.com/6238/6882722142_7f8030f777_n_d.jpg) (http://www.flickr.com/photos/tarbat/6882722142/sizes/o/in/photostream/)

If you want me to do any user testing today on this, email me.
Title: Re: OSM Layer
Post by: Peter on March 30, 2012, 08:58:31 AM
I'm still getting exactly the same error messages as Tarbat. I'll keep trying throughout the day in case you want a test, otherwise I'll go back to Satellite view.

Peter
Title: Re: OSM Layer
Post by: Peter on March 30, 2012, 11:20:57 AM
Even the Satellite layer has gone down now, right in the middle of a rescue operation.

Peter
Title: Re: OSM Layer
Post by: tarbat on March 30, 2012, 11:45:24 AM
Satellite layer broken here as well.  Furtunately I've got an OSM layer saved for all my main map saves.  For other areas, I've had to revert to using the 3D view.
Title: Re: OSM Layer
Post by: AirNav Development on March 30, 2012, 03:39:42 PM
We are now checking what's wrong with the satellite layer.
Title: Re: OSM Layer
Post by: Peter on March 31, 2012, 08:07:40 AM
Satellite layer was back when checking @ 2130gmt on 30th March. OSM layer still broken.

Peter
Title: Re: OSM Layer
Post by: tarbat on March 31, 2012, 08:48:07 AM
Confirmed.  OSM still broken.  Checked wireshark, and the calls to the Airnav server look okay, so there's something on the server that isn't working correctly when doing the lookup on the OSM service.

My advice to Airnav - switch to using Google Maps.  Instead of trying to convert PNG images to JPEG, you'll be able to continue to use JPEGs, and all you need to do is:
    1. Subtract ONE from the ZOOM parameter (cz)
    2. Divide by TWO the CHART WIDTH (cw)
    3. Divide by TWO the CHART HEIGHT (ch)
    4. Use SCALE = 2 when calling http://maps.googleapis.com/maps/api/staticmap?center=[lat],[long]&zoom=[cz]&size=[cw]x[ch]&scale=2&format=jpg&sensor=false

For example - http://maps.googleapis.com/maps/api/staticmap?center=57.678632,-4.02597&zoom=10&size=598x547&scale=2&format=jpg&sensor=false
Title: Re: OSM Layer
Post by: patcarty2 on March 31, 2012, 11:34:05 AM
Likewise
Pat
Title: Re: OSM Layer
Post by: Lou on April 14, 2012, 01:51:29 PM
I`ve not had OSM for over a month now,and today the Satellite layer is not responding so all I`ve got is a blank screen,the interface is updating so I know it is not my setup.
Title: Re: OSM Layer
Post by: AirNav Development on April 15, 2012, 02:28:07 AM
Both the Satellite Layer and OSM Layer problems are totally corrected at this time.
Title: Re: OSM Layer
Post by: Lou on April 15, 2012, 07:42:38 AM
Hi AirNav, how come I have neither at this time?
Title: Re: OSM Layer
Post by: Peter on April 15, 2012, 08:11:39 AM
I haven't got access to OSM or Satellite maps either, 3D is the only option now working.

Peter
Title: Re: OSM Layer
Post by: Lou on April 15, 2012, 08:45:23 AM
I`m using saved satellite layers at the moment,however if I move the map to follow a particular ship the layer does not update I have no OSM layers at all.
Title: Re: OSM Layer
Post by: tarbat on April 15, 2012, 03:02:51 PM
OSM is still not working.  It is now delivering a PNG image of the correct area to the ShipTrax client.

Using Wireshark, I see ShipTrax send this reqest:
www.airnavsystems.com/cgi-bin/ANLV_SV/anlv_sv_user.dll?UsOSMLayer=0&lat=0vvyvT2sTyBAkhik&long=yv%2FyvDSvQiZAmh6l&z=1v0%3D&w=1v3ltQ%3D%3D&h=1vzkvA%3D%3D&skip_attr=on&format=jpeg&usverify_name=t4udy1bUSyVEkB%2Bl&usversion=ANSH128

This delivers a PNG image, NOT a JPEG.  I thought Andre said that you were going to convert from png on the server and output to jpg to Shiptrax as before.

I still think it would be simpler to use the Google Maps API !!
Title: Re: OSM Layer
Post by: AirNav Development on April 15, 2012, 03:51:11 PM
Stby while we repass this one to our programmer.
Title: Re: OSM Layer
Post by: tarbat on April 21, 2012, 10:44:33 AM
Looks like this is now fixed.  I'm seeing OSM maps downloading, and using the new OSM format.  Well done development.

                                NEW                                                                   OLD
(http://farm6.staticflickr.com/5332/6952468956_476f1a6230_n_d.jpg) (http://www.flickr.com/photos/tarbat/6952468956/sizes/o/in/photostream/) (http://farm6.staticflickr.com/5445/7098539693_7db979dcf5_n_d.jpg) (http://www.flickr.com/photos/tarbat/7098539693/sizes/o/in/photostream/)
Title: Re: OSM Layer
Post by: Lou on April 21, 2012, 11:22:51 AM
Working here also, the projection is not correct in some sections in my area and its a bit washed out but great to have it back,Thanks Airnav
Title: Re: OSM Layer
Post by: tarbat on April 21, 2012, 02:42:47 PM
Working here also, the projection is not correct in some sections in my area and its a bit washed out but great to have it back,Thanks Airnav

Lou, do you have an example of the projection being incorrect?  And what Projection Method do you have selected in MENU - MAP - PROJECTION?  I use Mercator, and that should be okay, unless you are zoomed out to a large area in which case it can be impossible to completely map OSM onto the Airnav globe.
Title: Re: OSM Layer
Post by: Lou on April 21, 2012, 04:28:44 PM
Hi Tarbat I`m also using Mercator, its a bit like when you transition Google Earth to Street view the map seems to fold over, it only happens on the central London section so I`m not to bothered.I live just over a Nm north of Blackwall Reach on the river Thames so I`m mostly zooming in to the many small docks and piers that the small coasters pull in to,at the moment I`ve got 74 targets on screen
Title: Re: OSM Layer
Post by: Peter on September 09, 2012, 08:02:35 AM
OSM layer not working again. Tried 3D, that is just a black screen. A little frustrating when I have 199 ships in my own area due to the exceptional lift conditions.

Peter
Title: Re: OSM Layer
Post by: tarbat on September 09, 2012, 01:40:35 PM
OSM download working okay here.
Title: Re: OSM Layer
Post by: Peter on September 09, 2012, 08:20:41 PM
Yes, just back and tried OSM, now working fine. 3D doesn't appear to work, but I usually operate in OSM, so that not a problem. However, my network total is usually 11,000 odd ships, there are 2022 at present after nearly 30 mins connection, so there is something a bit odd!

Peter

Title: Re: OSM Layer
Post by: tarbat on September 10, 2012, 10:10:58 AM
3D GE plugin working okay here.  I don't use the net work.
Title: Re: OSM Layer
Post by: Peter on September 10, 2012, 11:41:35 AM
Have tried re-installing over the top, i.e. "repair", but still have a black screen where the 3D map etc would normally be. Reloading the plugin has no effect. The odd thing is if I actually load GE, it comes up in its own GE programme screen (as opposed to ST screen), showing all the marine traffic so cannot be the firewall stopping me using GE. The only thing that I can think of is that I read somewhere that you have to log onto ShipTrax at least every 4 weeks. That is not a problem because I'm logged in most days, but wonder if the 3D facility is authorised at the server end. I haven't used 3D for quite a while until the interesting lift last Friday, so could my 3D option have been blocked due to lack of use? 

Thanks

Peter
Title: Re: OSM Layer
Post by: Runway 31 on September 10, 2012, 12:05:08 PM
Hi Peter,

Suggest you contact support with your 3D map problem, Airnav support  [email protected]

Possibly the may require to do something at their end.

Alan
Title: Re: OSM Layer
Post by: Peter on September 10, 2012, 12:50:32 PM
Thanks Alan, I was considering that as I have totally run out of ideas as to a possible cause.

Thanks for coming back

Peter