[fdo-users] Fgf to Wkb

maland hma at powel.com
Mon Dec 20 09:21:42 EST 2010


What is the correct/fastest way to convert from Fgf to Wkb?
I am using the FDO from .Net. 

Currently I'm doing it this way:

byte[] fgfBytes = reader.GetGeometry(p.Name);
using (FgfGeometryFactory gf = new FgfGeometryFactory())
  using(IGeometry geom = gf.CreateGeometryFromFgf(fgfBytes))
    byte[] wkbBytes = gf.GetWkb(geom);
    // Do some stuff with the WKB array

For some rather large MultiLineString geometries this takes incredibly long
time, specially the GetWkb function. E.g. one geometry concisting of 1500 kB
data takes about 10 seconds. (I have a rather fast computer...)

Is this the correct way to create a Wkb from Fgf?

Henning Maeland
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Fgf-to-Wkb-tp5850828p5850828.html
Sent from the FDO Users mailing list archive at Nabble.com.

More information about the fdo-users mailing list