Skip to content
Browse files

fixes #95 Fixed typo

  • Loading branch information...
1 parent be16c73 commit 88d4d9080db02028560aa1b6bcdac19ac7bbbbc6 @bjornd committed
Showing with 12 additions and 12 deletions.
  1. +2 −2 README.md
  2. +5 −5 converter/converter.py
  3. +3 −3 lib/proj.js
  4. +2 −2 lib/world-map.js
View
4 README.md
@@ -14,7 +14,7 @@ It also includes converter that could be used to create your own maps for jVecto
--codes_file path/to/codes-en.tsv \
--insets '[{"codes": ["US-AK"], "width": 200, "left": 10, "top": 370}, {"codes": ["US-HI"], "width": 100, "left": 220, "top": 400}]' \
--minimal_area 4000000 \
- --buffer_distance -3000 \
+ --buffer_distance -0.5 \
--simplify_tolerance 1000 \
- --longtitude0 10w \
+ --longitude0 10w \
--name us
View
10 converter/converter.py
@@ -43,7 +43,7 @@ def __init__(self, inputFile, **kwargs):
self.minimal_area = kwargs['minimal_area']
self.country_name_index = kwargs['country_name_index']
self.country_code_index = kwargs['country_code_index']
- self.longtitude0 = kwargs['longtitude0']
+ self.longitude0 = kwargs['longitude0']
self.inputFileEncoding = kwargs['input_file_encoding']
self.projection = kwargs['projection']
self.precision = kwargs['precision']
@@ -54,7 +54,7 @@ def __init__(self, inputFile, **kwargs):
# spatial reference to convert to
self.spatialRef = osr.SpatialReference()
- self.spatialRef.ImportFromProj4('+proj='+self.projection+' +a=6381372 +b=6381372 +lat_0=0 +lon_0='+self.longtitude0)
+ self.spatialRef.ImportFromProj4('+proj='+self.projection+' +a=6381372 +b=6381372 +lat_0=0 +lon_0='+self.longitude0)
# handle map insets
if kwargs['insets']:
@@ -155,7 +155,7 @@ def convert(self, outputFile):
"width": self.width,
"height": insetHeight
})
- self.map.projection = {"type": self.projection, "centralMeridian": float(self.longtitude0)}
+ self.map.projection = {"type": self.projection, "centralMeridian": float(self.longitude0)}
open(outputFile, 'w').write( self.map.getJSCode() )
@@ -244,7 +244,7 @@ def filterByMinimalArea(self, geometry):
parser.add_argument('--buffer_distance', type=float, default=-0.4)
parser.add_argument('--simplify_tolerance', type=float)
parser.add_argument('--viewport', type=str)
-parser.add_argument('--longtitude0', type=str, default='0')
+parser.add_argument('--longitude0', type=str, default='0')
parser.add_argument('--projection', type=str, default='mill')
parser.add_argument('--name', type=str, default='world')
parser.add_argument('--language', type=str, default='en')
@@ -261,7 +261,7 @@ def filterByMinimalArea(self, geometry):
minimal_area = args.minimal_area,
country_name_index = args.country_name_index,
country_code_index = args.country_code_index,
- longtitude0 = args.longtitude0,
+ longitude0 = args.longitude0,
projection = args.projection,
name = args.name,
language = args.language,
View
6 lib/proj.js
@@ -7,7 +7,7 @@ jvm.Proj = {
/**
* Converts point on sphere to the Cartesian coordinates using Miller projection
* @param {Number} lat Latitude in degrees
- * @param {Number} lng Longtitude in degrees
+ * @param {Number} lng Longitude in degrees
* @param {Number} c Central meridian in degrees
*/
mill: function(lat, lng, c){
@@ -20,7 +20,7 @@ jvm.Proj = {
/**
* Converts point on sphere to the Cartesian coordinates using Mercator projection
* @param {Number} lat Latitude in degrees
- * @param {Number} lng Longtitude in degrees
+ * @param {Number} lng Longitude in degrees
* @param {Number} c Central meridian in degrees
*/
merc: function(lat, lng, c){
@@ -35,7 +35,7 @@ jvm.Proj = {
* projection
* @see <a href="http://mathworld.wolfram.com/AlbersEqual-AreaConicProjection.html">Albers Equal-Area Conic projection</a>
* @param {Number} lat Latitude in degrees
- * @param {Number} lng Longtitude in degrees
+ * @param {Number} lng Longitude in degrees
* @param {Number} c Central meridian in degrees
*/
aea: function(lat, lng, c){
View
4 lib/world-map.js
@@ -732,9 +732,9 @@ jvm.WorldMap.prototype = {
},
/**
- * Converts coordinates expressed as latitude and longtitude to the coordinates in pixels on the map.
+ * Converts coordinates expressed as latitude and longitude to the coordinates in pixels on the map.
* @param {Number} lat Latitide of point in degrees.
- * @param {Number} lng Longtitude of point in degrees.
+ * @param {Number} lng Longitude of point in degrees.
*/
latLngToPoint: function(lat, lng) {
var point,

0 comments on commit 88d4d90

Please sign in to comment.
Something went wrong with that request. Please try again.