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

GePoint create ERROR #29

Closed
mkzaker opened this issue Sep 11, 2014 · 5 comments
Closed

GePoint create ERROR #29

mkzaker opened this issue Sep 11, 2014 · 5 comments

Comments

@mkzaker
Copy link

mkzaker commented Sep 11, 2014

hi
When I want to create a model that includes the GeoPoint Type , getting the following error
{
"error": {
"name": "error",
"status": 500,
"message": "invalid input syntax for type point: "{"lat":59.6150515,"lng":36.2876827}"",
"length": 122,
"severity": "ERROR",
"code": "22P02",
"file": "geo_ops.c",
"line": "1820",
"routine": "point_in",
"stack": "error: invalid input syntax for type point: "{"lat":59.6150515,"lng":36.2876827}"\n at Connection.parseE (/home/zaker/proj/markmap/node_modules/loopback-connector-postgresql/node_modules/pg.js/lib/connection.js:526:11)\n at Connection.parseMessage (/home/zaker/proj/markmap/node_modules/loopback-connector-postgresql/node_modules/pg.js/lib/connection.js:356:17)\n at Socket. (/home/zaker/proj/markmap/node_modules/loopback-connector-postgresql/node_modules/pg.js/lib/connection.js:105:22)\n at Socket.emit (events.js:95:17)\n at Socket. (stream_readable.js:764:14)\n at Socket.emit (events.js:92:17)\n at emitReadable (_stream_readable.js:426:10)\n at emitReadable (_stream_readable.js:422:5)\n at readableAddChunk (_stream_readable.js:165:9)\n at Socket.Readable.push (_stream_readable.js:127:10)"
}
}
what is the problem?

@unibasil
Copy link

Can you share your underlying DB table definition?

@mkzaker
Copy link
Author

mkzaker commented Sep 12, 2014

Table definition :
CREATE TABLE marks
(
title character varying(100),
location point,
id serial NOT NULL,
CONSTRAINT marks_pkey PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE marks
OWNER TO ranis;

data :
{
"title": "test",
"location": "36.9,59.6"
}

@raymondfeng
Copy link
Contributor

Do you want to try out with #23?

Thanks,


Raymond Feng
Co-Founder and Architect @ StrongLoop, Inc.

StrongLoop makes it easy to develop APIs in Node, plus get DevOps capabilities like monitoring, debugging and clustering.

On Sep 12, 2014, at 4:13 AM, Mohammad Kazem Zaker notifications@github.com wrote:

CREATE TABLE marks
(
title character varying(100),
location point,
id serial NOT NULL,
CONSTRAINT marks_pkey PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE marks
OWNER TO ranis;


Reply to this email directly or view it on GitHub.

@slively
Copy link

slively commented Jan 29, 2015

@raymondfeng That fixed my issue, I'm currently using the feature/add-geopoint-support branch in my project. A merge would be awesome, thank you!

@davidcheung
Copy link

@raymondfeng That fixed my issue, I'm currently using the feature/add-geopoint-support branch in my project. A merge would be awesome, thank you!

Trying to clean up old issues, looks like it has been fixed a year ago :p Closing issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants