Hi Bob,<br><br>I'm new to postgis as well (and am and loving it).<br><br>You do have syntax errors in your sql. Note the definitions of the functions that you are using from the postgis manual:<br><br><span class="term">ST_MakePoint(<x>, <y>, [<z>],
            [<m>])<br></span><span class="term">ST_MakeLine(geometry set)<br></span><span class="term">ST_MakeLine(geometry, geometry)</span><br><br>So your point sql is valid as it accepts integers, though your line sql is not because you are not using a geometry type.<br>
<br>Try the following: st_makeLine(st_makePoint(0, 2), st_makePoint(0, 1))<br><br>HTH<br><br>Drew<br><br><div class="gmail_quote">On Mon, May 5, 2008 at 8:15 AM, Bob Pawley <<a href="mailto:rjpawley@shaw.ca">rjpawley@shaw.ca</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi<br>
<br>
I am trying to learn the basics of Postgis by populating a table with various geometries.<br>
<br>
When I run this -<br>
Insert into graphics.process (the_geom) values (st_makepoint(0 2));<br>
<br>
it results in a point which I can see on the viewer.<br>
<br>
However, when I run the following, or any variation of coordinate syntax to obtain a line, I get a syntax error.<br>
<br>
Insert into graphics.process (the_geom) values (st_makeline (0 2), (0 1));<br>
Or<br>
Insert into graphics.process (the_geom) values (st_makeline (0 2, 0 1));<br>
Or<br>
Insert into graphics.process (the_geom) values (st_makeline (0 2 0 1));<br>
Or<br>
Insert into graphics.process (the_geom) values (st_makeline (0, 2, 0, 1));<br>
Or<br>
Insert into graphics.process (the_geom) values (st_makeline (0, 2), (0, 1));<br>
<br>
Any thoughts would be appreciated.<br>
<br>
Bob<br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br>