{"id":22880255,"url":"https://github.com/2winners/pcx-conversion-kap-bsb","last_synced_at":"2025-06-26T03:33:45.114Z","repository":{"id":228125312,"uuid":"416118350","full_name":"2winners/PCX-Conversion-KAP-BSB","owner":"2winners","description":"Tools to convert old PCX charts to new KAP/BSB files","archived":false,"fork":false,"pushed_at":"2021-10-29T15:44:48.000Z","size":4486,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-06T21:14:54.863Z","etag":null,"topics":["bsb","bsb-charts","kap","pcx","pcx-to-bsb","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2winners.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-11T23:41:18.000Z","updated_at":"2024-11-28T04:31:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"814245d8-0b3b-44dd-a066-fcdbffcf4c28","html_url":"https://github.com/2winners/PCX-Conversion-KAP-BSB","commit_stats":null,"previous_names":["2winners/pcx-conversion-kap-bsb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2winners%2FPCX-Conversion-KAP-BSB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2winners%2FPCX-Conversion-KAP-BSB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2winners%2FPCX-Conversion-KAP-BSB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2winners%2FPCX-Conversion-KAP-BSB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2winners","download_url":"https://codeload.github.com/2winners/PCX-Conversion-KAP-BSB/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246489934,"owners_count":20785927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bsb","bsb-charts","kap","pcx","pcx-to-bsb","python"],"created_at":"2024-12-13T17:16:55.938Z","updated_at":"2025-03-31T15:34:00.215Z","avatar_url":"https://github.com/2winners.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PCX-Conversion-KAP-BSB\nTools to convert old PCX charts to new KAP/BSB files\n\nfor this we will need a few items: \n\n* something that can read/open/run PYTHON script \n\n* KONVERTOR (free tool for windows)\n\n* GIMP (is free or other image manipulator) (https://www.gimp.org/)\n\n* IMGKAP (free tool to convert image to KAP) (https://github.com/nohal/imgkap)\n\n* EXEL (for making things simple)\n\n.\n\nfor this project your files will probably look like\n\nNAME.A01,\nNAME.A02,\nNAME.B01,\nNAME.B02,\nect \n\n___\n\nstep 1 :\n\nOpen the python script \n\nRun step 1, follow the instructions in the script\n\n___\n\nStep 2 : \n\nConvert the PCX to PNG with KONVERTOR leaving the png in the original folder\n\n___\n\nStep 3 :\n\nOpen the python script \n\nRun step 3, follow the instructions in the script\n\n___\n\nstep 4 :\n\nOpen the created image.png in GIMP\n\n4.1(optional) goto \u003e image \u003e mode \u003e indexed \u003e set colors to 16 to 127 (if you want NIGHT colors for map max 64) but i recomend 24(makes file smaller)\n\n4.2 if done 4.1 file \u003e overwrite image.png\n\n* In some cases some BLOCKS do not show in the final image is because of missing layers, find the blocks (right click) and open with GIMP then goto \u003e image \u003e mode \u003e RGB , and on the layer RIGHT CLICK \u003e ADD ALPA , then : file \u003e overwrite image.png ( if many i suggest you create some key shortcuts to do those steps) \n\n___\n\nstep 5 :\n\nnow move the image to the folder IMGKAP is located (if different)\n\n___\n\nstep 6 :\n\nopen the EXEL sheet. \n\nfill in the BLUE tiles: \n\n* ZONE\n\n* NAME\n\n* SCALE\n\n* Chart Datum (important! you have the correct one)(OPEN CPN does not reconize some DATUM's so you can move the map by hand using the OFFSET row)\n\n* Top right LAT, LON + coresponding PIXEL coordinates ( read in GIMP )\n\n* Bottom left LAT, LON + coresponding PIXEL coordinates ( read in GIMP )\n\n* Image size X,Y and DPI (DDI)\n\n.\n\nfrom the block \"KAP FILE FORMAT \"\n\nselect all the green tiles and CTR + C\n\n___\n\nStep 7 :\ngo to the folder IMGKAP is and create new .TXT file\n\nopen file and PASTE copied text\n\nsave\n\ngo to exel \n\ncopy the text next to \"KAP FILE FORMAT\" that ends in \".kap\"\n\nrename the just made .TXT file with the copied text\n\n___\n\nstep 8 (OPTIONAL):\n\nfollow steps in step 7 for the \"BSB FILE FORMAT \"\n\nPrograms such as OPENCPN dont need a BSB file, only the kap file \n\n___\n\nstep 9 :\n\nOPEN IMGKAP \n\ngo to exel and copy either one of the green tiles from \"IMGKAP copy paste\"  \n\nand paste it in the IMGKAP \n\nautomaticly a kap file is created in the same folder that can now be read in navigation program \n\n___\n\nI am looking to create a DATABASE of old PCX charts and share them. if you have used this and can share the final charts that would be appreciated.\nsend a email to info@mari-caribbean.com\n\n___\n\nHAVING TROUBLE RUNNING IMGKAP?\n\nopen command prompt (start \u003e cmd)\n\ntype \u003e \"cd URL/imgkapfolder\" \u003e enter\n\nnow you can paste the text from exel\n\n___\n\nADVANCED:\n\nFor those that want to i find the \"white\" text on the map a bit dull\nopen the map KAP file with (https://notepad-plus-plus.org/downloads/) and look for :\n\nRGB/X,0,0,0 see what number is at the X\n\nscroll down to NGT/X  and change the numbers to  ,99,99,99 (the map glitches if more then 99 for some reason)\n\nSAVE\n\nnow the white text should be more legible\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2winners%2Fpcx-conversion-kap-bsb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2winners%2Fpcx-conversion-kap-bsb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2winners%2Fpcx-conversion-kap-bsb/lists"}