Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng authored and mwtoews committed Oct 28, 2021
1 parent e4352c2 commit c53ae51
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ Bug fixes:
- A missing special case for rectangular polygons has been added to the
polylabel algorithm (#644).
- LinearRing can be created from a LineString (#638).
- The prepared geoemtry validation condition has been tightened in #632 to fix
- The prepared geometry validation condition has been tightened in #632 to fix
the bug reported in #631.
- Attempting to interpolate an empty geometry no longer results in a
segmentation fault, raising `ValueError` instead (#653).
Expand Down
4 changes: 2 additions & 2 deletions _vendor/packaging/specifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ def filter(self, iterable, prereleases=None):

if self.contains(parsed_version, **kw):
# If our version is a prerelease, and we were not set to allow
# prereleases, then we'll store it for later incase nothing
# prereleases, then we'll store it for later in case nothing
# else matches this specifier.
if (parsed_version.is_prerelease and not
(prereleases or self.prereleases)):
found_prereleases.append(version)
# Either this is not a prerelease, or we should have been
# accepting prereleases from the begining.
# accepting prereleases from the beginning.
else:
yielded = True
yield version
Expand Down
2 changes: 1 addition & 1 deletion docs/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ predicate by users that require them.
above or below the plane, is ignored in geometric analysis. There is
a potential pitfall for users here: coordinate tuples that differ only in
`z` are not distinguished from each other and their application can result
in suprisingly invalid geometry objects. For example, ``LineString([(0, 0,
in surprisingly invalid geometry objects. For example, ``LineString([(0, 0,
0), (0, 0, 1)])`` does not return a vertical line of unit length, but an invalid line
in the plane with zero length. Similarly, ``Polygon([(0, 0, 0), (0, 0, 1),
(1, 1, 1)])`` is not bounded by a closed ring and is invalid.
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinxext/ipython_console_highlighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_tokens_unprocessed(self, text):
curcode += line[continue_prompt.end():]
elif output_prompt is not None:
# Use the 'error' token for output. We should probably make
# our own token, but error is typicaly in a bright color like
# our own token, but error is typically in a bright color like
# red, so it works fine for our output prompts.
insertions.append((len(curcode),
[(0, Generic.Error, output_prompt.group())]))
Expand Down
2 changes: 1 addition & 1 deletion shapely/_buildcfg.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Minimal proxy to a GEOS C dynamic library, which is system dependant
Minimal proxy to a GEOS C dynamic library, which is system dependent
Two environment variables influence this module: GEOS_LIBRARY_PATH and/or
GEOS_CONFIG.
Expand Down
2 changes: 1 addition & 1 deletion shapely/algorithms/polylabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def polylabel(polygon, tolerance=1.0):
if cell.distance > best_cell.distance:
best_cell = cell

# continue to the next iteration if we cant find a better solution
# continue to the next iteration if we can't find a better solution
# based on tolerance
if cell.max_distance - best_cell.distance <= tolerance:
continue
Expand Down
4 changes: 2 additions & 2 deletions shapely/geometry/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def __setattr__(self, name, value):
except AttributeError:
pass

# if custom atribute, raise the warning
# if custom attribute, raise the warning
warn(
"Setting custom attributes on geometry objects is deprecated, "
"and will raise an AttributeError in Shapely 2.0",
Expand Down Expand Up @@ -1097,7 +1097,7 @@ def __getitem__(self, key):
elif isinstance(key, slice):
if type(self) == HeterogeneousGeometrySequence:
raise GeometryTypeError(
"Heterogenous geometry collections are not sliceable")
"Heterogeneous geometry collections are not sliceable")
res = []
start, stop, stride = key.indices(m)
for i in range(start, stop, stride):
Expand Down
4 changes: 2 additions & 2 deletions shapely/geometry/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class GeometryCollection(BaseMultipartGeometry):

"""A heterogenous collection of geometries
"""A heterogeneous collection of geometries
Attributes
----------
Expand All @@ -25,7 +25,7 @@ def __init__(self, geoms=None):
Parameters
----------
geoms : list
A list of shapely geometry instances, which may be heterogenous.
A list of shapely geometry instances, which may be heterogeneous.
Example
-------
Expand Down
2 changes: 1 addition & 1 deletion shapely/geometry/linestring.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def svg(self, scale_factor=1., stroke_color=None, opacity=None):
Hex string for stroke color. Default is to use "#66cc99" if
geometry is valid, and "#ff3333" if invalid.
opacity : float
Float number between 0 and 1 for color opacity. Defaul value is 0.8
Float number between 0 and 1 for color opacity. Default value is 0.8
"""
if self.is_empty:
return '<g />'
Expand Down
2 changes: 1 addition & 1 deletion shapely/geometry/multilinestring.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def svg(self, scale_factor=1., stroke_color=None, opacity=None):
Hex string for stroke color. Default is to use "#66cc99" if
geometry is valid, and "#ff3333" if invalid.
opacity : float
Float number between 0 and 1 for color opacity. Defaul value is 0.8
Float number between 0 and 1 for color opacity. Default value is 0.8
"""
if self.is_empty:
return '<g />'
Expand Down
2 changes: 1 addition & 1 deletion shapely/geometry/multipoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def svg(self, scale_factor=1., fill_color=None, opacity=None):
Hex string for fill color. Default is to use "#66cc99" if
geometry is valid, and "#ff3333" if invalid.
opacity : float
Float number between 0 and 1 for color opacity. Defaul value is 0.6
Float number between 0 and 1 for color opacity. Default value is 0.6
"""
if self.is_empty:
return '<g />'
Expand Down
2 changes: 1 addition & 1 deletion shapely/geometry/multipolygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def svg(self, scale_factor=1., fill_color=None, opacity=None):
Hex string for fill color. Default is to use "#66cc99" if
geometry is valid, and "#ff3333" if invalid.
opacity : float
Float number between 0 and 1 for color opacity. Defaul value is 0.6
Float number between 0 and 1 for color opacity. Default value is 0.6
"""
if self.is_empty:
return '<g />'
Expand Down
2 changes: 1 addition & 1 deletion shapely/geometry/point.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def svg(self, scale_factor=1., fill_color=None, opacity=None):
Hex string for fill color. Default is to use "#66cc99" if
geometry is valid, and "#ff3333" if invalid.
opacity : float
Float number between 0 and 1 for color opacity. Defaul value is 0.6
Float number between 0 and 1 for color opacity. Default value is 0.6
"""
if self.is_empty:
return '<g />'
Expand Down
2 changes: 1 addition & 1 deletion shapely/geometry/polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def svg(self, scale_factor=1., fill_color=None, opacity=None):
Hex string for fill color. Default is to use "#66cc99" if
geometry is valid, and "#ff3333" if invalid.
opacity : float
Float number between 0 and 1 for color opacity. Defaul value is 0.6
Float number between 0 and 1 for color opacity. Default value is 0.6
"""
if self.is_empty:
return '<g />'
Expand Down
2 changes: 1 addition & 1 deletion shapely/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def snap(g1, g2, tolerance):
The first geometry
g2 : geometry
The second geometry
tolerence : float
tolerance : float
The snapping tolerance
Example
Expand Down
2 changes: 1 addition & 1 deletion tests/test_locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import locale
from shapely.wkt import loads, dumps

# Set locale to one that uses a comma as decimal seperator
# Set locale to one that uses a comma as decimal separator
# TODO: try a few other common locales
if sys.platform == 'win32':
test_locales = {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def assertSVG(self, geom, expected, **kwrds):
doc = parse_xml_string(svg_doc)
except:
raise AssertionError(
'XML is not valid for SVG doucment: ' + str(svg_doc))
'XML is not valid for SVG document: ' + str(svg_doc))
svg_output_dir = None
# svg_output_dir = '.' # useful for debugging SVG files
if svg_output_dir:
Expand Down

0 comments on commit c53ae51

Please sign in to comment.