Skip site navigation (1) Skip section navigation (2)

Re: beginner postgis question lat/lon

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: shadrack <shadkeene(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: beginner postgis question lat/lon
Date: 2008-02-28 14:50:11
Message-ID: 20080228145011.GB27658@svana.org (view raw or flat)
Thread:
Lists: pgsql-general
On Wed, Feb 27, 2008 at 04:59:07PM -0800, shadrack wrote:
> postgis=# insert into routes_geom values(1, 'J084',
> GeomFromText('LINESTRING(38.20 -121.00, 38.20, -118.00)', 4326));
> 
> I receive this error:
> ERROR:  parse error - invalid geometry
> CONTEXT:  SQL function "geomfromtext" statement 1

You have an extraneous comma after the 38.20.

Have a nice day,
-- 
Martijn van Oosterhout   <kleptog(at)svana(dot)org>   http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
>  -- John F Kennedy

In response to

pgsql-general by date

Next:From: Alvaro HerreraDate: 2008-02-28 14:51:42
Subject: Re: what happens if something goes wrong in transaction?
Previous:From: A BDate: 2008-02-28 14:19:01
Subject: what happens if something goes wrong in transaction?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group