Commit f21c702a authored by Christian Ledermann's avatar Christian Ledermann

change license to LGPL, python3 compatibility

parent cbd1310d
This diff is collapsed.
fastkml is copyright Christian Ledermann fastkml is copyright Christian Ledermann
This program is free software; you can redistribute it and/or modify Copyright (C) 2012 Christian Ledermann
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, This library is free software; you can redistribute it and/or
but WITHOUT ANY WARRANTY; without even the implied warranty of modify it under the terms of the GNU Lesser General Public
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License as published by the Free Software Foundation; either
GNU General Public License for more details. version 2.1 of the License, or (at your option) any later version.
You should have received a copy of the GNU General Public License This library is distributed in the hope that it will be useful,
along with this program; if not, write to the Free Software but WITHOUT ANY WARRANTY; without even the implied warranty of
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
MA 02111-1307 USA. Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# This program is free software; you can redistribute it and/or modify # -*- coding: utf-8 -*-
# it under the terms of the GNU General Public License as published by # Copyright (C) 2012 Christian Ledermann
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This library is free software; you can redistribute it and/or
# but WITHOUT ANY WARRANTY; without even the implied warranty of # modify it under the terms of the GNU Lesser General Public
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # License as published by the Free Software Foundation; either
# GNU General Public License for more details. # version 2.1 of the License, or (at your option) any later version.
# #
# You should have received a copy of the GNU General Public License # This library is distributed in the hope that it will be useful,
# along with this program; if not, write to the Free Software # but WITHOUT ANY WARRANTY; without even the implied warranty of
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# MA 02110-1301, USA. # Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify # Copyright (C) 2012 Christian Ledermann
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This library is free software; you can redistribute it and/or
# but WITHOUT ANY WARRANTY; without even the implied warranty of # modify it under the terms of the GNU Lesser General Public
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # License as published by the Free Software Foundation; either
# GNU General Public License for more details. # version 2.1 of the License, or (at your option) any later version.
# #
# You should have received a copy of the GNU General Public License # This library is distributed in the hope that it will be useful,
# along with this program; if not, write to the Free Software # but WITHOUT ANY WARRANTY; without even the implied warranty of
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# MA 02110-1301, USA. # Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
""" """
KML 2.2 supports new elements for including data about the author and KML 2.2 supports new elements for including data about the author and
related website in your KML file. This information is displayed in geo related website in your KML file. This information is displayed in geo
......
# -*- coding: utf-8 -*-# This program is free software; you can redistribute it and/or modify # -*- coding: utf-8 -*-
# it under the terms of the GNU General Public License as published by # Copyright (C) 2012 Christian Ledermann
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This library is free software; you can redistribute it and/or
# but WITHOUT ANY WARRANTY; without even the implied warranty of # modify it under the terms of the GNU Lesser General Public
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # License as published by the Free Software Foundation; either
# GNU General Public License for more details. # version 2.1 of the License, or (at your option) any later version.
# #
# You should have received a copy of the GNU General Public License # This library is distributed in the hope that it will be useful,
# along with this program; if not, write to the Free Software # but WITHOUT ANY WARRANTY; without even the implied warranty of
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# MA 02110-1301, USA. # Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
""" abstract base classes""" """ abstract base classes"""
......
# -*- coding: utf-8 -*-# This program is free software; you can redistribute it and/or modify # -*- coding: utf-8 -*-
# it under the terms of the GNU General Public License as published by # Copyright (C) 2012 Christian Ledermann
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This library is free software; you can redistribute it and/or
# but WITHOUT ANY WARRANTY; without even the implied warranty of # modify it under the terms of the GNU Lesser General Public
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # License as published by the Free Software Foundation; either
# GNU General Public License for more details. # version 2.1 of the License, or (at your option) any later version.
# #
# You should have received a copy of the GNU General Public License # This library is distributed in the hope that it will be useful,
# along with this program; if not, write to the Free Software # but WITHOUT ANY WARRANTY; without even the implied warranty of
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# MA 02110-1301, USA. # Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
"""frequently used constants and abstract base classes""" """frequently used constants and abstract base classes"""
try: try:
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify # Copyright (C) 2012 Christian Ledermann
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This library is free software; you can redistribute it and/or
# but WITHOUT ANY WARRANTY; without even the implied warranty of # modify it under the terms of the GNU Lesser General Public
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # License as published by the Free Software Foundation; either
# GNU General Public License for more details. # version 2.1 of the License, or (at your option) any later version.
# #
# You should have received a copy of the GNU General Public License # This library is distributed in the hope that it will be useful,
# along with this program; if not, write to the Free Software # but WITHOUT ANY WARRANTY; without even the implied warranty of
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# MA 02110-1301, USA. # Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
""" """
Import the geometries from shapely if it is installed Import the geometries from shapely if it is installed
or otherwise from Pygeoif or otherwise from Pygeoif
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify # Copyright (C) 2012 Christian Ledermann
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This library is free software; you can redistribute it and/or
# but WITHOUT ANY WARRANTY; without even the implied warranty of # modify it under the terms of the GNU Lesser General Public
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # License as published by the Free Software Foundation; either
# GNU General Public License for more details. # version 2.1 of the License, or (at your option) any later version.
# #
# You should have received a copy of the GNU General Public License # This library is distributed in the hope that it will be useful,
# along with this program; if not, write to the Free Software # but WITHOUT ANY WARRANTY; without even the implied warranty of
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# MA 02110-1301, USA. # Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
""" """
With the launch of Google Earth 5.0, Google has provided extensions to KML With the launch of Google Earth 5.0, Google has provided extensions to KML
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify # Copyright (C) 2012 Christian Ledermann
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This library is free software; you can redistribute it and/or
# but WITHOUT ANY WARRANTY; without even the implied warranty of # modify it under the terms of the GNU Lesser General Public
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # License as published by the Free Software Foundation; either
# GNU General Public License for more details. # version 2.1 of the License, or (at your option) any later version.
# #
# You should have received a copy of the GNU General Public License # This library is distributed in the hope that it will be useful,
# along with this program; if not, write to the Free Software # but WITHOUT ANY WARRANTY; without even the implied warranty of
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# MA 02110-1301, USA. # Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
""" """
KML is an open standard officially named the OpenGIS KML Encoding Standard KML is an open standard officially named the OpenGIS KML Encoding Standard
...@@ -49,6 +50,11 @@ from styles import StyleUrl, Style, StyleMap, _StyleSelector ...@@ -49,6 +50,11 @@ from styles import StyleUrl, Style, StyleMap, _StyleSelector
import atom import atom
import gx import gx
try:
unicode
except NameError:
# Python 3
basestring = unicode = str
class KML(object): class KML(object):
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify # Copyright (C) 2012 Christian Ledermann
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This library is free software; you can redistribute it and/or
# but WITHOUT ANY WARRANTY; without even the implied warranty of # modify it under the terms of the GNU Lesser General Public
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # License as published by the Free Software Foundation; either
# GNU General Public License for more details. # version 2.1 of the License, or (at your option) any later version.
# #
# You should have received a copy of the GNU General Public License # This library is distributed in the hope that it will be useful,
# along with this program; if not, write to the Free Software # but WITHOUT ANY WARRANTY; without even the implied warranty of
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# MA 02110-1301, USA. # Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
""" """
Once you've created features within Google Earth and examined the KML Once you've created features within Google Earth and examined the KML
code Google Earth generates, you'll notice how styles are an important code Google Earth generates, you'll notice how styles are an important
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify # Copyright (C) 2012 Christian Ledermann
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This library is free software; you can redistribute it and/or
# but WITHOUT ANY WARRANTY; without even the implied warranty of # modify it under the terms of the GNU Lesser General Public
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # License as published by the Free Software Foundation; either
# GNU General Public License for more details. # version 2.1 of the License, or (at your option) any later version.
# #
# You should have received a copy of the GNU General Public License # This library is distributed in the hope that it will be useful,
# along with this program; if not, write to the Free Software # but WITHOUT ANY WARRANTY; without even the implied warranty of
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# MA 02110-1301, USA. # Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import unittest import unittest
......
from setuptools import setup, find_packages from setuptools import setup, find_packages
import sys, os import sys, os
version = '0.2' version = '0.3'
setup(name='fastkml', setup(name='fastkml',
version=version, version=version,
...@@ -13,7 +13,7 @@ setup(name='fastkml', ...@@ -13,7 +13,7 @@ setup(name='fastkml',
"Topic :: Scientific/Engineering :: GIS", "Topic :: Scientific/Engineering :: GIS",
"Programming Language :: Python", "Programming Language :: Python",
'Intended Audience :: Developers', 'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)', 'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Development Status :: 4 - Beta', 'Development Status :: 4 - Beta',
'Operating System :: OS Independent', 'Operating System :: OS Independent',
], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers ], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
...@@ -21,7 +21,7 @@ setup(name='fastkml', ...@@ -21,7 +21,7 @@ setup(name='fastkml',
author='Christian Ledermann', author='Christian Ledermann',
author_email='christian.ledermann@gmail.com', author_email='christian.ledermann@gmail.com',
url='https://github.com/cleder/fastkml', url='https://github.com/cleder/fastkml',
license='GPL', license='LGPL',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True, include_package_data=True,
zip_safe=False, zip_safe=False,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment