Skip to content

Problem with "wkt" method. #78

Closed
@impocode

Description

@impocode

When inheriting from the Point class, the "wkt" method does not work as I expect. It uses the class name to build wkt. It's right?
Example:

from geojson_pydantic import geometries as geom
class PointType(geom.Point):
    ... (my custom logic)

test = PointType(coordinates=[123, 123])
print(test.wkt)

>>> POINTTYPE (123.0 123.0)

I am expecting to get POINT (123.0 123.0) for example to use this in a database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions