Comments (1)
Ah, ok, I changed to this and now seems to work, so I should use the built-in struct %Geo.LineString{}
to replace the function call ST_GeomFromText('LINESTRING(x,y), srid)
. ok!
Repo.insert!(%Event{
owner: 1,
coordinates: %Geo.LineString{coordinates: [{0.0, 40.0}, {0.0, 41.0}], srid: 4326},
ad1: "1 ad1",
ad2: "1 ad2",
date: ~D[2021-10-01]
})
from geo_postgis.
Related Issues (20)
- SRID module HOT 1
- Geometry type seems to be silently cast to geography HOT 1
- Upgrading from geo 3.3.3 and geo_postgis 3.3.1 to latest results in argument error HOT 3
- bitstring specifier warning on int32 (Elixir 1.15.0-rc.0)
- Any plans for a release this weekend? HOT 1
- Broken link on `README.md` HOT 1
- Does not work with Elixir 1.15 HOT 6
- Application.get_env deprecation HOT 5
- Upgrading `geo` and `geo_postgis`: invalid or unknown type Geo.Point for field HOT 1
- Compatibility with Phoenix 1.4 HOT 3
- std_within_in_meters not working HOT 2
- use_spheroid parameter HOT 1
- Is the README's example point (30, -90) in Antarctica? HOT 2
- type `geometry` can not be handled by the types module Postgrex.DefaultTypes HOT 2
- Elixir postgis types require encoding for queries? HOT 1
- st_distance_in_meters(g.geo_point(), ^geo_point) is not a valid query expression. HOT 2
- Jason.Encoder not implemented for %Geo.MultiPolygon. Better solution? HOT 3
- Column definition helpers in migrations
- (Postgrex.QueryError) type `_geometry` can not be handled by the types module GI.PostgresTypes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geo_postgis.