Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #27552 -- Added docs/tests for GEOSGeometry.normalize(). #7633

Merged
merged 1 commit into from Nov 30, 2016

Conversation

sir-sigurd
Copy link
Member

Converts this geometry to canonical form::

>>> g = MultiPoint(Point(0, 0), Point(2, 2), Point(1, 1))
>>> print(g)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is print(g) better/different than g and relying on repr()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, repr(g) returns <MultiPoint object at 0x7fb1682472e0>.

>>> g.normalize()
>>> print(g)
MULTIPOINT (2 2, 1 1, 0 0)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 blank line between sections

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@timgraham timgraham merged commit 21322f9 into django:master Nov 30, 2016
@sir-sigurd sir-sigurd deleted the geos-normalize-docs-tests branch November 30, 2016 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants