[ZS0] Re: [mapguide-users] [ZS0] Combining features
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Tue Feb 10 02:55:26 EST 2009
My experience is that MapGuide does not always handle geometry
Not sure if it is a provider specific issue.
My workaround is to split the feature into three rows, with MultiPoint,
MultiLine and MultiPolygon.
Regards, Kenneth Skovhede, GEOGRAF A/S
A H skrev:
> i come into another problem. now instead of just polygons, i want to combine
> other geometry types.
> i tried to use this:
> MgGeometryCollection geometries = new MgGeometryCollection();
> MgAgfReaderWriter geometryReaderWriter = new MgAgfReaderWriter();
> MgGeometryFactory geometryFactory = new MgGeometryFactory();
> MgMultiGeometry newGeometry;
> MgByteReader temp = featureReader.GetGeometry("GEOM");
> MgGeometry tempGeo = geometryReaderWriter.Read(temp);
> newGeometry = geometryFactory.MgMultiGeometry(geometries);
> MgByteReader geom = geometryReaderWriter.Write(newGeometry);
> no error, but the new area doesn't appear on map. is it possible to do with
> this code?
More information about the mapguide-users