Skip to content

Commit

Permalink
Merge pull request #30 from caspervdw/geometry
Browse files Browse the repository at this point in the history
Document and test functions in geometry.py
  • Loading branch information
caspervdw committed Aug 26, 2019
2 parents de5ed5c + 22432b5 commit be52092
Show file tree
Hide file tree
Showing 11 changed files with 636 additions and 94 deletions.
9 changes: 9 additions & 0 deletions docs/geometry.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:mod:`pygeos.geometry`
======================

.. automodule:: pygeos.geometry
:members:
:exclude-members: GeometryType
:special-members:
:inherited-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ API Reference
:caption: Contents:

constructive
geometry
predicates
set_operations

Expand Down
2 changes: 2 additions & 0 deletions pygeos/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from .ufuncs import GEOSException # NOQA
from .ufuncs import Geometry # NOQA
from .ufuncs import Empty # NOQA
from .geometry import *
from .creation import *
from .constructive import *
Expand Down
2 changes: 1 addition & 1 deletion pygeos/constructive.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from enum import IntEnum
import numpy as np
from .geometry import Empty, Geometry # NOQA
from . import Empty, Geometry # NOQA
from . import ufuncs


Expand Down
3 changes: 1 addition & 2 deletions pygeos/creation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import numpy as np
from . import ufuncs

from .geometry import Geometry, GeometryType
from . import Geometry, GeometryType

__all__ = [
"points",
Expand Down

0 comments on commit be52092

Please sign in to comment.