in reply to Re: DBI placeholders for spatial data
in thread DBI placeholders for spatial data
I can't find any Site::Point on CPAN.
You won't - it is a module specific to this application. Although, it is quite a general representation of a point on the globe so it might make a useful CPAN addition.
I don't know which DB you are using.
Sorry - I should have included that it is MariaDB.
Spatial datatypes are something that varies quite a bit between databases. Even between MySQL and MariaDB!
The specification for that "POINT Datatype" is not clear.
Exactly!
I had tried substituting just the numeric values through placeholders like so ST_GeomFromText('POINT( ? ? )') which didn't work. I don't recall the error. I shall look tomorrow. I hadn't tried ST_GeomFromText(?,4326) as you suggest. Thanks - I'll try that tomorrow too...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: DBI placeholders for spatial data
by hippo (Archbishop) on Jun 26, 2021 at 08:37 UTC | |
by Bod (Parson) on Jun 26, 2021 at 10:12 UTC | |
by afoken (Chancellor) on Jun 26, 2021 at 13:18 UTC | |
by Bod (Parson) on Jun 26, 2021 at 23:23 UTC | |
by afoken (Chancellor) on Jun 27, 2021 at 00:06 UTC | |
| |
by erix (Prior) on Jun 26, 2021 at 23:58 UTC | |
| |
by 1nickt (Canon) on Jun 26, 2021 at 10:27 UTC | |
by Bod (Parson) on Jun 26, 2021 at 10:41 UTC | |
Re^3: DBI placeholders for spatial data
by LanX (Saint) on Jun 26, 2021 at 11:23 UTC |