Git Product home page Git Product logo

chartdldr_pi's People

Contributors

nohal avatar sethdart avatar transmitterdan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chartdldr_pi's Issues

Allow update of all chart catalogs

with a single click and have all updated charts for all catalogs preselected for download.

Alternatively allow selection of multiple catalogs (shift-click) before click on "update"

There are ~20 RNC catalogs for US waters, plus as many ENC. Updating each is several clicks and waits...

Thanks!

Dirk

Updated charts can end up in "wrong" folder

This isn't a bug in the downloader. Rather it is something that will probably confuse newbies and we should prepare for it.

If you have existing charts in hierarchical folders and you tell the chart downloader the wrong thing unexpected results might happen. For example, suppose you have all your ENC charts and RNC charts for a region under some folders like this:

~/charts/texas/ENC_ROOT
~/charts/texas/BSB_ROOT

But you tell the chart downloader that your charts are in

~/charts/texas

The downloader will happily check the dates of your charts and tell you that some are up to date and some need updating. It doesn't complain that there are in fact no charts in ~/charts/texas.

If you select to update the revised charts it will put the new charts in ~/charts/texas and leave the old charts where they were. A newbie might become confused by that. What will OpenCPN do in such a case? Will it only show the chart from the higher level or will it also show the out of date chart further down the directory tree?

Write user documentation

With focus on 2 user groups

  • A total novice with no previous knowledge of anything
  • A user already having charts and thinking he knows what he's doing

Both need pictures, preferably taken on Windows

smaller window hides buttons

The "add", "Delete" and "Update" buttons are hidden when windows is sized smaller. Same with "Download selected charts".

chartdownloader-001

Improve local FS scannning

Some Brasilian charts are not properly identified on local disk (no CHARTNR.KAP exists, they have CHARTNR.BSB instead)

Turn off opengl during this process, then turn it back on once the Options > Chart area is left

When the database gets updated during the proccess all folders under "charts" directories are scanned weather or not they are listed in the Directories, this takes awhile, then it appears that the opengl cache is updated. (this is a basic opengl feature). However when there are many charts that are not in the directory, and the charts in the directory start getting fairly large, it appears that opengl updating the cache overpowers the computer when "Apply" or "Close" this process.

I found the solution was to turn off Opengl during chart changes and file and database updates.

"Download selected charts" button is the default even when the downloader dialog does not have focus

This may be a bug in the implementation of tabs within the OpenCPN Charts dialog itself. ChartDldrPanelImpl::ChartDldrPanelImpl is the last dialog added to the toolbox Charts tabs. That dialog has a "default" button that is "Download selected charts". So even if the user is working on another tab such as "Chart files" or "Vector Chart Display" and they press the enter key it fires the DownloadCharts event on the invisible dialog. This is probably not what the user expects. Not sure the best method to fix this. Probably the safest thing to do is not have a default button in the plugin. This default flag is set in the wxFormBuilder tool not in the plugin source itself.

Testing for ill formed URL improvement

This line:

    wxRegEx re(_T("^https?\\://[a-zA-Z0-9\\./_-]*\\.[xX][mM][lL]$") ); //TODO: wxRegEx sucks a bit, this RE is way too naive

should eliminate URLs that don't end in .xml.

Ability to identify which file(s) & directory is used for a certain chart - go to that dir/file

Downloaded all of Brazil to test it.
There are about 13 charts that keep coming up with "Update Available" even when "Download" at least 3 to 4 times. Some of them are:

  • Costa E Ihas Ao Largo (1)
  • Costa Nordeste da America do sul (10)
  • Ilha da Trindade (21)
  • Costa Sueste da America do Sul (30)
  • Porto de Barra dos Coqueiros (1001)
  • Porto de Salvador (1102)
  • De Natal Ao Rio Itarriri (Int 2005)
  • Do Arquipelago dos Abrolhos Ao Cabo Frio

I wanted to see the directory and file name in order to check if there is the necessary folder and file in the proper place, and to try to determine why the status did not change to "Up to Date"

Some way of doing this would be useful. Perhaps add something to allow:

  1. highlight the particular Chart under "Charts"
  2. Right click, and select something like "Show local directory and file" for the chart.
  3. Or maybe some way to see the full path for the chart?

Catalog area user improvements

Options > Downloader > Predef. Catalog -Wider.
Options > Downloader > Catalog Area -Make so it can Pull down
Needs to be able to pull it down to see the list better height is too restricted.
Can't see enough of the Sources. Scolling is useful but we need more window area

RNC & ENC shorten & change Source Header descriptions

If possible, shorten Source Headers and add descriptive locations.
Saw some of this but it seems to have disappeared.
Tried to shorten and still have it understood.

Do we need we need "Region"?

US RNC Region 02 - RI - Canada
US RNC Region 03 - Nantucket - NJ
US RNC Region 04 - Delaware
US RNC Region 06 - VA - FL
US RNC Region 07 - FL East
US RNC Region 08 - FL West
US RNC Region 10 - P.Rico -Virgin I.
US RNC Region 12 - S.CA
US RNC Region 13 - L.Michigan
US RNC Region 14 - S.Fran - C.Flattery
US RNC Region 15 - P.NW - Canada
US RNC Region 17 - AL - Mexico
US RNCRegion 22 - L. Superior & Huron
US RNC Region 24 - L. Erie
US RNC Region 26 - L. Ontario
US RNC Region 30 - AL SE
US RNC Region 32 - AL Central
US RNC Region 34 - AL Aleutians
US RNC Region 36 - AL N.S.- Beauf.
US RNC Region 40 - Hawai

DownloadDialog modality will annoy some users

This problem has been reported already in flyspray/tracker. But now it will probably begin to annoy a whole new group of users (i.e. newbies using chartdldr pi). Anytime a modal dialog "pops up", at least on Windows 7, OpenCPN comes to the front. If you have a long download of charts going it is very annoying. Every time the DownloadDialog box pops up to start a new chart download it sends whatever window you were working in behind OpenCPN. Interestingly the focus is still with the window that is behind O. I am pretty sure this is a wxWidgets thing.

Add Catalog dialog overrides user's manually entered path

Another small bug in function:

void ChartDldrGuiAddSourceDlg::OnSourceSelected( wxCommandEvent& event )

This line:

      m_dpChartDirectory->SetPath(FixPath(cs->GetDir()));

Would be better if it tested to be sure the path is empty like this:

         if( m_dpChartDirectory->GetPath().IsEmpty() )
             m_dpChartDirectory->SetPath(FixPath(cs->GetDir()));

The default path should only be used if the user has not already selected a path.

Cannot load US ACE inland rivers

(NOTE: These comments contain XML so you may have to "edit" the comment to see the actual XML text.)

When trying to populate the list of charts for ACE inland rivers this function:

bool ChartCatalog::LoadFromFile(wxString path, bool headerOnly)

returns false when reading the file "iencu37productscatalog.xml". When reading other NOAA xml files it works. For some reason this line ret = LoadFromXml(doc, headerOnly); returns false when reading that file. The first part of "iencu37productscatalog.xml" looks like this:

<title>IENC U37 Product Catalog</title>

<date_created>01/14/2015</date_created>

<time_created>14:33:32</time_created>

<ref_spec>USACE IENC Product Catalog Technical Specifications</ref_spec>

<ref_spec_vers>1</ref_spec_vers>

I am not sure why the LoadFromXml() call fails.

This is the first part from another file that will return true:

<title>RNC Product Catalog 17 Region</title>2015-01-1608:42:002015-01-1608:42:002015-01-16T13:42:00ZNOAA Rnc Product Catalog 17 Region Technical Specifications1.0550

The net result is that because the inland rivers catalog file cannot be loaded the list of charts does not populate.

Download of a certain file causes a crash. Uncheck it to continue and download it last.

RNC Region 02 - Monhegan Island to Cape Eliz
and others caused repeated crash and close of OpenCPN.
Got over it by uncheck the first problem chart and continue download.
Then it seemed to download at the end after checking it again.

Various charts when downloading force Opencpn to crashes or close, so OpenCPN has to be reopened.
If I uncheck the chart so it can go on. that helps.

Explain the user what to do after adding source/updating charts

  • When the user adds a chart source, in case it is not already covered by some of GetChartDBDirArrayString(), we have to tell him that he has to add it to the list of chart directories.
  • When the user updates charts, we have to tell him to update the chart database

Both of these features will be replaced by #9 and #10 in 2.0

Date displayed and compared

In the chart list the date displayed appears to be the field "date_valid". But I think it should be the date obtained from the field "zipfile_datetime_iso8601". It also appears that the file date comparison is done with "date_valid" and not "zipfile_datetime_iso8601". If the latter is true then we will miss small corrections such as notice to mariner updates.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.