Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Importing XML files written in Geography Markup Language (GML)

    Hi All,

    I have downloaded a dataset written in Geography Markup Language (GML). The dataset is in XML file format but neither the standard Stata command xmluse, nor the command usexmlex worked when I tried importing it into Stata. Does anyone know if files written using GML can be imported into Stata at all, and if so, how to do it?

    Thanks a lot in advance!
    Jakub

  • #2
    Cross-posted here http://stackoverflow.com/questions/3...l-import-stata

    Please note our policy on cross-posting, which is that you should tell us about it. http://www.statalist.org/forums/help#crossposting

    Comment


    • #3
      Sure, sorry about it. Didn't know about the cross-posting policy. Thanks for the head-up!

      Best,
      Jakub

      Comment


      • #4
        All members are asked to read http://www.statalist.org/forums/help before posting.

        Meanwhile, I have never heard of any Stata support for GML.

        Comment


        • #5
          Jakub Lonsky ,

          From wikipedia: "The Geography Markup Language (GML) is the XML grammar defined by the Open Geospatial Consortium (OGC) to express geographical features." XML in general describes objects, their attributes and relations in a tree like structure. Stata works with rectangular NxK matrices (called datasets).
          During import procedures data is converted using a set of assumptions about the possibility to store source information in the destination system and the possibility to process it. For example, one assumption could be "no tree like structures, just enumeration of objects with their attributes", etc, etc, etc. I am the author of usexmlex. The home page for the software clearly describes what format it expects. I believe the standard Stata command is also documented. As a user, kindly read the documentation before concluding the command didn't work. In your case it is not applicable. There is a difference.

          On the constructive side, you will have more luck starting with GIS software and convert the GML file to a shapefile. Then use shape2dta by Kevin Crow to convert it to a dta.

          Best, Sergiy Radyakin

          Comment

          Working...
          X