I&#39;m not an FDO coder, but there are a couple things I&#39;d look at.<div><br></div><div>First, FDODimensionality isn&#39;t an integer value representing the number of dimensions, it&#39;s a bit-field enumeration. In this case, 2 evaluates to FdoDimensionality_M (although, since the value of FdoDimensionality_XY is 0, this is included by default in the evaluation of FdoDimensionality_M - neat).</div>
<div><br></div><div><a href="http://fdo.osgeo.org/files/fdo/docs/FDO_API/d3/d95/group__enums_g3778ef9845e2ba00e8669c32ec42e113.htm#g3778ef9845e2ba00e8669c32ec42e113">http://fdo.osgeo.org/files/fdo/docs/FDO_API/d3/d95/group__enums_g3778ef9845e2ba00e8669c32ec42e113.htm#g3778ef9845e2ba00e8669c32ec42e113</a></div>
<div><br></div><div>Second, the docs for CreateLineString indicate that it&#39;s looking for the number of ordinates, not co-ordinates.  I&#39;m not sure if this is just a terminology issue, but perhaps it is looking for 6 in your case.</div>
<div><br><div><a href="http://fdo.osgeo.org/files/fdo/docs/FDO_API/d1/d7d/class_fdo_fgf_geometry_factory_0e122ad008ada729f974e407aa1285dd.htm#0e122ad008ada729f974e407aa1285dd">http://fdo.osgeo.org/files/fdo/docs/FDO_API/d1/d7d/class_fdo_fgf_geometry_factory_0e122ad008ada729f974e407aa1285dd.htm#0e122ad008ada729f974e407aa1285dd</a></div>
<div><br></div><div>Jason</div><div><br><div class="gmail_quote">2009/11/1 Matteo <span dir="ltr">&lt;<a href="mailto:matteo.conte1979@libero.it">matteo.conte1979@libero.it</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hi all,<br>
  I&#39;m new on FDO. I try to insert a new feature object on a shp file with<br>
<a href="http://VB.NET" target="_blank">VB.NET</a> but i get this error &quot;The type of geometry ( &#39;PolyLineM&#39;)<br>
geographical entity creates a conflict with the type of shape file (<br>
&#39;Polyline&#39;).&quot;<br>
This is the code:<br>
Dim objCmdI As Commands.Feature.IInsert =<br>
objConn.CreateCommand(Commands.CommandType.CommandType_Insert)<br>
        objCmdI.SetFeatureClassName(objClass.Name)<br>
        Dim objPropsValues As Commands.PropertyValueCollection =<br>
objCmdI.PropertyValues()<br>
        Dim objPropV As Commands.PropertyValue = New<br>
Commands.PropertyValue()<br>
        objPropV.SetName(&quot;ID&quot;)<br>
        objPropV.Value = New OSGeo.FDO.Expression.Int32Value(2)<br>
<br>
<br>
        objPropsValues.Add(objPropV)<br>
        objPropV = New Commands.PropertyValue()<br>
        objPropV.SetName(&quot;Geometry&quot;)<br>
        Dim objGeomV As Geometry.FgfGeometryFactory = New<br>
Geometry.FgfGeometryFactory()<br>
<br>
        Dim objCoords(5) As Double<br>
        objCoords(0) = 0<br>
        objCoords(1) = 0<br>
        objCoords(2) = 10<br>
        objCoords(3) = 10<br>
        objCoords(4) = 50<br>
        objCoords(5) = 20<br>
<br>
        Dim objLine As Geometry.ILineString = objGeomV.CreateLineString(2,<br>
3, objCoords)<br>
<br>
        objPropV.Value = New<br>
OSGeo.FDO.Expression.GeometryValue(objGeomV.GetFgf(objLine))<br>
        objPropsValues.Add(objPropV)<br>
        objCmdI.Execute()<br>
        objConn.Flush()<br>
<br>
Can you help me?<br>
Regards,<br>
Matteo<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://n2.nabble.com/Insert-new-feature-object-on-SHP-File-tp3928348p3928348.html" target="_blank">http://n2.nabble.com/Insert-new-feature-object-on-SHP-File-tp3928348p3928348.html</a><br>

Sent from the FDO Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
fdo-users mailing list<br>
<a href="mailto:fdo-users@lists.osgeo.org">fdo-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/fdo-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/fdo-users</a><br>
</font></blockquote></div><br></div></div>