Ejemplo n.º 1
0
        public static IGeometry ReadGeometryFromXml(string filePath)
        {
            IXMLSerializer serializer = new XMLSerializerClass();

            IXMLReader reader = new XMLReaderClass();

            IXMLStream stream = new XMLStreamClass();

            stream.LoadFromFile(filePath);

            reader.ReadFrom((IStream)stream);

            return((IGeometry)serializer.ReadObject(reader, null, null));
        }
Ejemplo n.º 2
0
        private static object ReadGeometryFromXML(string filePath)
        {
            IXMLSerializer serializer = new XMLSerializerClass();

            IXMLReader reader = new XMLReaderClass();

            IXMLStream stream = new XMLStreamClass();

            stream.LoadFromFile(filePath);

            reader.ReadFrom((IStream)stream);

            return(serializer.ReadObject(reader, null, null));
        }