European Commission logo
INSPIRE Community Forum

Completely beginner needs help :-)

Hello,

my name is Elias and I am a master student from germany. I wanted to write my thesis about the INSPIRE statistical units theme. What I try to create is a little plugin to convert ESRI shape files into INSPIRE compliant *.gml files. But I don't know much about gml and INSPIRE yet.

Right now I am trying to understand how a *.gml must look like, to be INSPIRE SU compliant. To do so, I checked this UML diagram (http://inspire.ec.europa.eu/data-model/approved/r4618-ir/html/index.htm?goto=2:3:19:3:8833) and tried to build a gml-file that kind of fits. But I did not succeed yet smiley It looks like that:

<gml:FeatureCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:gml="http://www.opengis.net/gml/3.2&quot; xsi:schemaLocation="keine Ahnung" gml:id="WFS_RESPONSE">
  <gml:featureMember>
    <su-vector:VectorStatisticalUnit xmlns:su-vector="http://inspire.ec.europa.eu/schemas/su-vector/4.0/&quot; gml:id="=======SOMETHING I DONT KNOW========">
      <su-vector:inspireId>
        <localId>DE-THU-55</localId>
        <namespace>DE-THU-55</namespace>
        <versionId>2015-01-01</versionId>
      </su-vector:inspireId>
      <su-vector:thematicId>
        <localId>DEG05</localId>
        <namespace>Weimar_NUTS-3_DEG05</namespace>
        <versionId>2003-05-26</versionId>
      </su-vector:thematicId>
      <su-vector:country>DE</su-vector:country>
      <su-vector:geographicalName>
        <language>gem</language>
        <nativeness>endonym</nativeness>
        <nameStatus>official</nameStatus>
        <sourceOfName>geodatenzentrum</sourceOfName>
        <pronunciation>
          <pronunciationSoundLink>http://de.forvo.com/word/weimar/</pronunciationSoundLink&gt;
          <pronunciationIPA></pronunciationIPA>
        </pronunciation>
        <spelling>
          <text>Weimar</text>
          <script>Latn</script>
          <transliterationScheme>de-ISO-code-Nummer</transliterationScheme>
        </spelling>
        <grammaticalGender>neuter</grammaticalGender>
        <grammaticalNumber>singular</grammaticalNumber> <!-- CAN BE LEFT BLANK? -->
      </su-vector:geographicalName>
      <su-vector:beginLifespanVersion>
        <century>21</century>
        <year>2015</year>
        <month>01</month>
        <day>01</day>
      </su-vector:beginLifespanVersion> 
      <su-vector:endLifespanVersion><!-- endLifespanVersion eher weg lassen, da unsinn --></su-vector:endLifespanVersion>
      <su-vector:validityPeriod>
        <!-- TM_Period SOMETHING I DONT KNOW -->
      </su-vector:validityPeriod>
      <su-vector:referencePeriod>
        <!-- TM_Period SOMETHING I DONT KNOW -->
      </su-vector:referencePeriod>
      <su-vector:geometry>
        <gml:Polygon gml:id="====SOMETHING I DONT KNOW====" srsName="epsg4326" name="Stadt Weimar">
          <gml:segments>
            <gml:LinearRingSegment interpolation="linear">
              <gml:posList>
                11.171029726 51.0183398263 11.1731082232 51.0180489109 11.1740328116 50.9894036618 11.1682154559,50.9824188968
                11.1648087939 50.9804318913 11.1489357573 50.9746998505 11.1477057605 50.9754085329 11.1468749663 50.9761329522
                11.1321951986 50.9708958993 11.1347869276 50.9488732482 11.1417516953 50.9457488238 11.147058582 50.9392050224
                11.153757284 50.9294769376 11.1542463893 50.9247773152 11.1451061913 50.9247473711 11.1280240113 50.9290698197
              </gml:posList>
            </gml:LinearRingSegment>
          </gml:segments>
        </gml:Polygon>
        <geometryDescriptor>
          <geometryType>
            <!--extensibility = any-->
            <!--obligation = implementing rule-->
            <!--vocabulary = http://inspire.ec.europa.eu/codeList/GeometryTypeValue--&gt;
          </geometryType>
          <mostDetailedScale><!--The most detailed scale the generaliesed 
            geometry is supposed to be suitable for
            (expressed as the inverse of an indicative scale)-->
          </mostDetailedScale>
          <leastDetailedScale><!--The least detailed scale the generaliesed 
            geometry is supposed to be suitable for
            (expressed as the inverse of an indicative scale)-->
          </leastDetailedScale>
        </geometryDescriptor>
      </su-vector:geometry>
      <su-vector:evolutions>
      </su-vector:evolutions>
    </su-vector:VectorStatisticalUnit>
  </gml:featureMember>
</gml:FeatureCollection>

I guess there are some example gml files how a correct INSPIRE SU compliant gml should look like. But the links I found where not helping (at least for me smiley )

So if there was an example that kind of looks like my file and you could post it, I would be really glad.

Thanks a lot in advance

 

P.S.: Im not sure if this is the right forum to post this topic. If not, im sorry

Statistics & Health

Statistics & Health

Join this group if you would like to share knowledge or ask questions regarding the INSPIRE implementation of Statistical Units [SU], Population Distribution (Demography) [PD] or Human Health and Safety [HH] data themes