<div>Hi Phillip,</div>
<div>&nbsp;</div>
<div>Note that you have defined a 2D LINESTRING on AddGeometryColumn statement and you must use 4D because you are inserting 4D data</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>&nbsp;</div>
<div>Julio<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 3/23/07, <b class="gmail_sendername"><a href="mailto:paallen@attglobal.net">paallen@attglobal.net</a></b> &lt;<a href="mailto:paallen@attglobal.net">paallen@attglobal.net</a>&gt; wrote:</span>

<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi all,<br><br>I am very new with PostGIS and I am trying to<br>build a database to manage bore-holes for mineral
<br>exploration.<br><br>I want to store the curved 3d curved bore-hole<br>trace with the m (survey distances on the nodes)<br>values.&nbsp;&nbsp; Is this possible.<br><br>My following experiment has fail.<br>CREATE TABLE public.line3d_test
<br>&nbsp;&nbsp;&nbsp;&nbsp;id integer,<br>&nbsp;&nbsp;&nbsp;&nbsp;name varchar,<br>&nbsp;&nbsp;&nbsp;&nbsp;CONSTRAINT line3d_test_id_pkey PRIMARY KEY (id);<br>SELECT AddGeometryColumn('public', 'line3d_test',<br>'gline3dm', 32618, 'LINESTRING', 2);<br>INSERT INTO public.line3d_test
 (id, name,<br>gline3dm) VALUES ( 1, &#39;first-line&#39;,<br>GeomFromEWKT(&#39;LINESTRING(200000 900000 2000 0,<br>200001 900001 1900 100)&#39;, 32618));<br><br>If I use &quot;GeomFromText&quot; I get this error:<br>WARNING:&nbsp;&nbsp;OGC WKT expected, EWKT provided - use
<br>GeomFromEWKT() for this<br>CONTEXT:&nbsp;&nbsp;SQL function &quot;geomfromtext&quot; statement 1<br><br>ERROR: new row for relation &quot;line3d_test&quot; violates<br>check constraint &quot;enforce_dims_gline3dm&quot;<br>SQL state: 23514
<br><br>Then if I use &quot;GeomFromEWKT()&quot; I get this error:<br>ERROR: function geomfromewkt(&quot;unknown&quot;, integer)<br>does not exist<br>SQL state: 42883<br>Hint: No function matches the given name and<br>argument types. You may need to add explicit type
<br>casts.<br>Character: 81<br><br>What I have I done wrong?&nbsp;&nbsp;Or is this even<br>possible?&nbsp;&nbsp;I know EWKT or EWKB is an extension of<br>OGC but I am working in 3D so I sort of need it.<br><br>thanks,<br><br>Phillip J. Allen
<br>Consulting Geochemist<br><br><br><br>_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></blockquote></div><br>