-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,359 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset='utf-8'> | ||
<meta http-equiv="X-UA-Compatible" content="chrome=1"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
<link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css'> | ||
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen"> | ||
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen"> | ||
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print"> | ||
|
||
<!--[if lt IE 9]> | ||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
|
||
<title>Imgkap by nohal</title> | ||
</head> | ||
|
||
<body> | ||
<header> | ||
<div class="inner"> | ||
<h1>Imgkap</h1> | ||
<h2>Tool to create and convert BSB / KAP charts</h2> | ||
<a href="https://github.com/nohal/imgkap" class="button"><small>View project on</small> GitHub</a> | ||
</div> | ||
</header> | ||
|
||
<div id="content-wrapper"> | ||
<div class="inner clearfix"> | ||
<section id="main-content"> | ||
<h2> | ||
<a id="imgkap-114" class="anchor" href="#imgkap-114" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>imgkap 1.14</h2> | ||
|
||
<p>Tool to manipuate raster nautical charts in KAP format</p> | ||
|
||
<p><a href="https://travis-ci.org/nohal/imgkap"><img src="https://travis-ci.org/nohal/imgkap.svg?branch=master" alt="Build Status"></a></p> | ||
|
||
<p>This repository is a Github clone of the original code created by M'dJ in 2011 and maintained by Pavel Kalian</p> | ||
|
||
<h3> | ||
<a id="usage" class="anchor" href="#usage" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Usage</h3> | ||
|
||
<pre><code>imgkap [option] [inputfile] [lat0 lon0 [x0;y0] lat1 lon1 [x1;y1] | headerfile] [outputfile] | ||
|
||
Usage of imgkap Version 1.14 by M'dJ + H.N | ||
|
||
Convert kap to img : | ||
>imgkap mykap.kap myimg.png | ||
-convert mykap into myimg.png | ||
>imgkap mykap.kap mheader.kap myimg.png | ||
-convert mykap into header myheader (only text file) and myimg.png | ||
|
||
Convert img to kap : | ||
>imgkap myimg.png myheaderkap.kap | ||
-convert myimg.png into myresult.kap using myheader.kap for kap informations | ||
>imgkap mykap.png lat0 lon0 lat1 lon1 myresult.kap | ||
-convert myimg.png into myresult.kap using WGS84 positioning | ||
>imgkap mykap.png lat0 lon0 x0;y0 lat1 lon1 x1;y1 myresult.kap | ||
-convert myimg.png into myresult.kap | ||
>imgkap -s 'LOWEST LOW WATER' myimg.png lat0 lon0 lat1 lon2 -f | ||
-convert myimg.png into myimg.kap using WGS84 positioning and options | ||
|
||
Convert kml to kap : | ||
>imgkap mykml.kml | ||
-convert GroundOverlay mykml file into kap file using name and dir of image | ||
>imgkap mykml.kml mykap.kap | ||
-convert GroundOverlay mykml into mykap file | ||
|
||
WGS84 positioning : | ||
lat0 lon0 is a left or right,top point | ||
lat1 lon1 is a right or left,bottom point cater-cornered to lat0 lon0 | ||
lat to be between -85 and +85 degree | ||
lon to be between -180 and +180 degree | ||
different formats are accepted : -1.22 1°10'20.123N -1d22.123 ... | ||
x;y can be used if lat lon is not a left, top and right, bottom point | ||
lat0 lon0 x0;y0 must be in the left or right, upper third | ||
lat1 lon1 x1;y1 must be in the right or left, lower third | ||
Options : | ||
-w : no image size extension to WGS84 because image is already WGS84 | ||
-r x0f;y0f-x1f;y1f "2 pixel points -> 4 * PLY" | ||
: define a rectangle area in the image visible from the .kap | ||
-r x0f;y0f-x1f;y1f-x2f;y2f-x3f;y3f... "3 to 12 pixel points -> PLY" | ||
: define a up to 12 edges polygon visible from the .kap | ||
-n : Force compatibility all KAP software, max 127 colors | ||
-f : fix units to FATHOMS | ||
-s name : fix sounding datum | ||
-t title : change name of map | ||
-p color : color of map | ||
color (Kap to image) : ALL|RGB|DAY|DSK|NGT|NGR|GRY|PRC|PRG | ||
ALL generate multipage image, use only with GIF or TIF | ||
color (image or Kap to Kap) : NONE|KAP|MAP|IMG | ||
NONE use colors in image file, default | ||
KAP only width KAP or header file, use RGB tag in KAP file | ||
MAP generate DSK and NGB colors for map scan | ||
< 64 colors: Black -> Gray, White -> Black | ||
IMG generate DSK and NGB colors for image (photo, satellite...) | ||
</code></pre> | ||
</section> | ||
|
||
<aside id="sidebar"> | ||
<a href="https://github.com/nohal/imgkap/zipball/master" class="button"> | ||
<small>Download</small> | ||
.zip file | ||
</a> | ||
<a href="https://github.com/nohal/imgkap/tarball/master" class="button"> | ||
<small>Download</small> | ||
.tar.gz file | ||
</a> | ||
|
||
<p class="repo-owner"><a href="https://github.com/nohal/imgkap"></a> is maintained by <a href="https://github.com/nohal">nohal</a>.</p> | ||
|
||
<p>This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the Architect theme by <a href="https://twitter.com/jasonlong">Jason Long</a>.</p> | ||
</aside> | ||
</div> | ||
</div> | ||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('This would be the main JS file.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "Imgkap", | ||
"tagline": "Tool to create and convert BSB / KAP charts", | ||
"body": "## imgkap 1.14\r\nTool to manipuate raster nautical charts in KAP format\r\n\r\n[![Build Status](https://travis-ci.org/nohal/imgkap.svg?branch=master)](https://travis-ci.org/nohal/imgkap)\r\n\r\nThis repository is a Github clone of the original code created by M'dJ in 2011 and maintained by Pavel Kalian\r\n\r\n### Usage\r\n```\r\nimgkap [option] [inputfile] [lat0 lon0 [x0;y0] lat1 lon1 [x1;y1] | headerfile] [outputfile]\r\n\r\nUsage of imgkap Version 1.14 by M'dJ + H.N\r\n\r\nConvert kap to img :\r\n >imgkap mykap.kap myimg.png\r\n -convert mykap into myimg.png\r\n >imgkap mykap.kap mheader.kap myimg.png\r\n -convert mykap into header myheader (only text file) and myimg.png\r\n\r\nConvert img to kap : \r\n >imgkap myimg.png myheaderkap.kap\r\n -convert myimg.png into myresult.kap using myheader.kap for kap informations\r\n >imgkap mykap.png lat0 lon0 lat1 lon1 myresult.kap\r\n -convert myimg.png into myresult.kap using WGS84 positioning\r\n >imgkap mykap.png lat0 lon0 x0;y0 lat1 lon1 x1;y1 myresult.kap\r\n -convert myimg.png into myresult.kap\r\n >imgkap -s 'LOWEST LOW WATER' myimg.png lat0 lon0 lat1 lon2 -f\r\n -convert myimg.png into myimg.kap using WGS84 positioning and options\r\n\r\nConvert kml to kap : \r\n >imgkap mykml.kml\r\n -convert GroundOverlay mykml file into kap file using name and dir of image\r\n >imgkap mykml.kml mykap.kap\r\n -convert GroundOverlay mykml into mykap file\r\n\r\nWGS84 positioning :\r\n\tlat0 lon0 is a left or right,top point\r\n\tlat1 lon1 is a right or left,bottom point cater-cornered to lat0 lon0\r\n\tlat to be between -85 and +85 degree\r\n\tlon to be between -180 and +180 degree\r\n\t different formats are accepted : -1.22 1°10'20.123N -1d22.123 ...\r\n\tx;y can be used if lat lon is not a left, top and right, bottom point\r\n\t lat0 lon0 x0;y0 must be in the left or right, upper third\r\n\t lat1 lon1 x1;y1 must be in the right or left, lower third\r\nOptions :\r\n\t-w : no image size extension to WGS84 because image is already WGS84\r\n\t-r x0f;y0f-x1f;y1f \"2 pixel points -> 4 * PLY\"\r\n\t : define a rectangle area in the image visible from the .kap\r\n\t-r x0f;y0f-x1f;y1f-x2f;y2f-x3f;y3f... \"3 to 12 pixel points -> PLY\"\r\n\t : define a up to 12 edges polygon visible from the .kap\r\n\t-n : Force compatibility all KAP software, max 127 colors\r\n\t-f : fix units to FATHOMS\r\n\t-s name : fix sounding datum\r\n\t-t title : change name of map\r\n\t-p color : color of map\r\n\t color (Kap to image) : ALL|RGB|DAY|DSK|NGT|NGR|GRY|PRC|PRG\r\n\t ALL generate multipage image, use only with GIF or TIF\r\n\t color (image or Kap to Kap) : NONE|KAP|MAP|IMG\r\n\t NONE use colors in image file, default\r\n\t KAP only width KAP or header file, use RGB tag in KAP file\r\n\t MAP generate DSK and NGB colors for map scan\r\n\t < 64 colors: Black -> Gray, White -> Black\r\n\t IMG generate DSK and NGB colors for image (photo, satellite...)\r\n```\r\n", | ||
"note": "Don't delete this file! It's used internally to help with page regeneration." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
/* | ||
The MIT License (MIT) | ||
Copyright (c) 2016 GitHub, Inc. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
*/ | ||
|
||
.pl-c /* comment */ { | ||
color: #969896; | ||
} | ||
|
||
.pl-c1 /* constant, variable.other.constant, support, meta.property-name, support.constant, support.variable, meta.module-reference, markup.raw, meta.diff.header */, | ||
.pl-s .pl-v /* string variable */ { | ||
color: #0086b3; | ||
} | ||
|
||
.pl-e /* entity */, | ||
.pl-en /* entity.name */ { | ||
color: #795da3; | ||
} | ||
|
||
.pl-smi /* variable.parameter.function, storage.modifier.package, storage.modifier.import, storage.type.java, variable.other */, | ||
.pl-s .pl-s1 /* string source */ { | ||
color: #333; | ||
} | ||
|
||
.pl-ent /* entity.name.tag */ { | ||
color: #63a35c; | ||
} | ||
|
||
.pl-k /* keyword, storage, storage.type */ { | ||
color: #a71d5d; | ||
} | ||
|
||
.pl-s /* string */, | ||
.pl-pds /* punctuation.definition.string, string.regexp.character-class */, | ||
.pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */, | ||
.pl-sr /* string.regexp */, | ||
.pl-sr .pl-cce /* string.regexp constant.character.escape */, | ||
.pl-sr .pl-sre /* string.regexp source.ruby.embedded */, | ||
.pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */ { | ||
color: #183691; | ||
} | ||
|
||
.pl-v /* variable */ { | ||
color: #ed6a43; | ||
} | ||
|
||
.pl-id /* invalid.deprecated */ { | ||
color: #b52a1d; | ||
} | ||
|
||
.pl-ii /* invalid.illegal */ { | ||
color: #f8f8f8; | ||
background-color: #b52a1d; | ||
} | ||
|
||
.pl-sr .pl-cce /* string.regexp constant.character.escape */ { | ||
font-weight: bold; | ||
color: #63a35c; | ||
} | ||
|
||
.pl-ml /* markup.list */ { | ||
color: #693a17; | ||
} | ||
|
||
.pl-mh /* markup.heading */, | ||
.pl-mh .pl-en /* markup.heading entity.name */, | ||
.pl-ms /* meta.separator */ { | ||
font-weight: bold; | ||
color: #1d3e81; | ||
} | ||
|
||
.pl-mq /* markup.quote */ { | ||
color: #008080; | ||
} | ||
|
||
.pl-mi /* markup.italic */ { | ||
font-style: italic; | ||
color: #333; | ||
} | ||
|
||
.pl-mb /* markup.bold */ { | ||
font-weight: bold; | ||
color: #333; | ||
} | ||
|
||
.pl-md /* markup.deleted, meta.diff.header.from-file */ { | ||
color: #bd2c00; | ||
background-color: #ffecec; | ||
} | ||
|
||
.pl-mi1 /* markup.inserted, meta.diff.header.to-file */ { | ||
color: #55a532; | ||
background-color: #eaffea; | ||
} | ||
|
||
.pl-mdr /* meta.diff.range */ { | ||
font-weight: bold; | ||
color: #795da3; | ||
} | ||
|
||
.pl-mo /* meta.output */ { | ||
color: #1d3e81; | ||
} | ||
|
Oops, something went wrong.