How to save transformed xml data to sql using GeomFromGML

brettwfloyd

New Member
I have successfully converted a KML file to a GML file using XSLT and now I need to save the GML data to a geometry column in my SQL database. Not sure what to put after this code:\[code\]var doc = new XmlDocument();var fileName = Path.GetFileName(Polygon.FileName);var path = Path.Combine(Server.MapPath("~/App_Data/uploads"), fileName);Polygon.SaveAs(path);doc.Load(path);var result = new XmlActionResult();result.Document = doc;result.TransformSource = Server.MapPath("~/App_Data/XSL/kml2gml.xsl");return result;\[/code\]Please help if you can.
 
Back
Top