Import big GML file into existing DB structure RRS feed

  • Question

  • Hello,

    I need to insert really big gml file into existing DB structure. It contains about 75-80 features (future tables) and they are in relations (some of them with some others), and almost all are connected with 3 main tables which stores geometry.

    These tables are connected by same named column, wich as a primary key in best part of tables.

    I read about inserting into one to two tables, but what is the 'simpliest' way to import this very big file? How to connect so many of them?

    Thanks a lot in advance!

    Thursday, August 7, 2014 8:51 AM


  • Hi,

    Have you tried SQL Server Spatial Tools ,such as Shape2SQL? But with the tool,you need to transform the gml file to shp file.

    Or you can use the static method GeomFromGml to import GML file into SQL Server.

    • Edited by Cheer08 Saturday, August 9, 2014 6:50 AM
    • Marked as answer by Elvis Long Thursday, September 11, 2014 11:20 AM
    Saturday, August 9, 2014 6:50 AM