<div dir="ltr"><div><div><div>Hi Greg<br><br></div>Thanks for your reply. We understand the issue of arcs and tesselation. For us, we already anticipate on this within MAP, adding sufficient tesselation removing and avoiding arcs as a clenaup pre-process from CAD to GIS.<br></div>This is a general approach as we know arcs can cause somewhere down the process issues as not all GIS is capable of dealing with those arcs.<br><br></div><div>Having that said, for us it would be sufficient just to treat the MAP Multicurve input as Linestring or multilinestring without dealing with the arcs (a s these are not in scope for us). We just need those lines from MAP into SQLITE.<br></div><div>This can still be a constraint, as it is now, in the FDO Provider.<br><br></div><div>Thus, we only require the Multicurvestring (without arcs) to become linestring or multilinestring (equally without arcs).<br><br></div><div>Thanks<br><br></div><div>Luc<br></div><div><br><br><br><br><br><br></div><div><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 10, 2016 at 12:22 AM, Greg Boone [via OSGeo.org] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5255506&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        Hi Luc,
<br><br>As far as I remember FGF is a super-set or extension to WKB. 
<br><br>WKB supports 7 geometry types: Point (1), LineString (2), Polygon (3), MultiPoint (4), MultiLineString (5), MultiPolygon (6), GeometryCollection (7). 
<br><br>FGF extends the types. Besides the 7 types, FGF also has CurveString (10), CurvePolygon (11), MultiCurveString (12), MultiCurvePolygon (13). 
<br><br>If Autodesk Map uses FGF types such as CurveString by default, converting those to WKB would require some form of conversion to simpler types and such a conversion does offer some challenges. For example, Arcs segments may need to be tessellated into many simple points. This is probably why the Fgf2Wkb function did not handle these types when it was written. 
<br><br>Some effort could be made to update Fgf2Wkb and that may prevent the crash, but I do wonder what kind of experience you would have in Map in your data was returned in a tessellated format and displayed as such in Map. 
<br><br>Greg
<br><br>-----Original Message-----
<br>From: fdo-users [mailto:<a href="http:///user/SendEmail.jtp?type=node&node=5255485&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>] On Behalf Of lucvanlinden
<br>Sent: Tuesday, March 08, 2016 4:07 AM
<br>To: <a href="http:///user/SendEmail.jtp?type=node&node=5255485&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>Subject: [fdo-users] FDO Sqlite provider Fgf2Wkb function to support MultiCurveString
<br><br>Hello
<br><br>We are facing following issue:
<br><br>Autodesk MAP 3D 2016 + FDO sqlite Provider 4.0. 
<br><br>If the sqlite file Layer/tables are set to use the WKB encoding, instead of FGF encoding, MAP 3D crashes when creating Linestrings. Map3D always passes MultiCurveString to the SQLiteProvider. However this geometry type is only supported by FGF encoding, not WKB encoding.
<br><br>We need to use the WKB encoding in Sqlite for interoperability.
<br><br>====================================================================
<br><br>From the feedback from AutoDesk DEV team, they do not want to solve this crashing their end, this is due to the following function in the SQLITE fdo
<br>Provider:
<br><br>FDO Sqlite provider has a method which converts FGF format to WKB format.
<br>It’s in file
<br><a href="https://svn.osgeo.org/fdo/trunk/Providers/SQLite/Src/SpatialIndex/SltGeomUtils.cpp" rel="nofollow" link="external" target="_blank">https://svn.osgeo.org/fdo/trunk/Providers/SQLite/Src/SpatialIndex/SltGeomUtils.cpp</a>.
<br>The method name is
<br>int Fgf2Wkb(const unsigned char* fgf, unsigned char* wkb)
<br><br>But it doesn’t support extended geometry types such as MultiCurveString. 
<br><br>====================================================================
<br><br>Would there be anyone to help us in getting this function extended to support the MultiCurveString?
<br><br>Luc
<br><br><br><br><br><br><br><br><br><br>--
<br>View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/FDO-Sqlite-provider-Fgf2Wkb-function-to-support-MultiCurveString-tp5255042.html" rel="nofollow" link="external" target="_blank">http://osgeo-org.1560.x6.nabble.com/FDO-Sqlite-provider-Fgf2Wkb-function-to-support-MultiCurveString-tp5255042.html</a><br>Sent from the FDO Users mailing list archive at Nabble.com.
<br>_______________________________________________
<br>fdo-users mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=5255485&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/fdo-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/fdo-users</a><br>_______________________________________________
<br>fdo-users mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=5255485&i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/fdo-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/fdo-users</a>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1560.x6.nabble.com/FDO-Sqlite-provider-Fgf2Wkb-function-to-support-MultiCurveString-tp5255042p5255485.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/FDO-Sqlite-provider-Fgf2Wkb-function-to-support-MultiCurveString-tp5255042p5255485.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from FDO Sqlite provider Fgf2Wkb function to support MultiCurveString, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Re-FDO-Sqlite-provider-Fgf2Wkb-function-to-support-MultiCurveString-tp5255506.html">Re: FDO Sqlite provider Fgf2Wkb function to support MultiCurveString</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/FDO-Users-f3898664.html">FDO Users mailing list archive</a> at Nabble.com.<br/>