Unverified Commit 5ac161c5 authored by Jacob Kaufman's avatar Jacob Kaufman Committed by GitHub
Browse files

Merge pull request #109 from jkaufy/master

Adding Well-Known text example to read the docs
parents 757efd46 df8936a7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -139,7 +139,8 @@ class planetary_maps:
                    lng = -180 + (abs(lng) % 180)

            if self.gui.get_longitude_range().value == "0 to 360":
                lng += 180
                if(lng < 0):
                    lng += 360

            if self.gui.get_lat_domain().value == "Planetographic":
                converted_latitude = Math.radians(lat)
@@ -152,7 +153,7 @@ class planetary_maps:
                if(self.gui.get_longitude_range().value == "-180 to 180"):
                    lng *= -1
                else:
                    lng = Math.fabs(lng - 360)
                    lng = 360 - lng

            self.gui.get_lat_lon_label().value = "Lat, Lon: " + \
                str(round(lat, 2)) + ", " + str(round(lng, 2))
+1 −1
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ class planetary_maps:
                    lng = -180 + (abs(lng) % 180)

            if self.gui.get_longitude_range().value == "0 to 360":
                if(lng < 0):
                if(lng > 0):
                    lng += 360

            if self.gui.get_lat_domain().value == "Planetographic":
+7 −0
Original line number Diff line number Diff line
@@ -44,3 +44,10 @@ USGS has researched.
    moons/vesta


.. toctree::
    :caption: Well-Known Text 
    :maxdepth: 2


    wktExample
+12 −0
Original line number Diff line number Diff line
Well Known Text Example
=====

.. jupyter-execute::

    import CartoCosmos as l
    map = l.planetary_maps('mars')
    map.add_wkt("POLYGON ((-116.946445 -12.134743, -116.946445 15.25898, -75.456603 15.25898, -75.456603 -12.134743, -116.946445 -12.134743))")
    map.display_map()


+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ with open("README") as f:

setup (
    name = 'CartoCosmos',
    version = '1.0.1',
    version = '1.0.5',
    description = 'Virtual planetary mapping',
    long_description = long_description,
    author = 'CartoComos Development Team',