Skip to content

Invalid geometry format in database: '0101000020E61000006F9BA9108F4418401BD82AC1E2634940' #458

@Kinqdos

Description

@Kinqdos

I have this column in one of my entities:

#[ORM\Column(type: 'geometry', nullable: true, options: ['columnDefinition' => 'geometry(Point, 4326)'])]
public protected(set) ?WktSpatialData $coordinates = null;

A simple find ($this->em->getRepository(Adressdaten::class)->find(173040)) triggers this error.
It seems like the database is returning the geometry in Well-Known Binary Format.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions