Tag Archives: XML

Reading Inspire XML with FME

@SafeSoftware asked, if there’s any chance I’ll write this blog post also in English: http://gissiajapaikkatietoa.wordpress.com/2011/11/16/mmln-kuntarajat-fmella/. There’s a very good chance you can read it in English, since I’m now writing it in English. Finnish doesn’t seem to be the universal language yet, thus I understand @SafeSoftware’s question.

To begin with, according to Safe Software, FME 2012 can read XML documents in Inspire schemas out of the box, since FME 2012 contains Inspire schema files (from Annex I). This would mean that reading XML documents in Inspire schemas and writing to different formats is easier than before. This needs testing!

Downloading data

I’m testing the new functionality with open data from the National Land Survey of Finland.

I download municipality boundaries in XML from http://www.maanmittauslaitos.fi/ilmaisetaineistot.

Reading data

I choose INSPIRE GML as the format and municipality boundaries as the dataset with a scale of 1:100 000.

Inspire GML-luku
Next thing to do is to check parameters. I choose Dataset Only as the setting for Show Feature Types from:

As a result, I get two feature types, AdministrativeBoundary ja AdministrativeUnit. Complex properties are mapped now as nested attributes. For example following XML fragment







will form two attributes inspireId.Identifier.localId and inspireId.Identifier.namespace.

AdministravieBoundary ja AdministrativeUnit

Writing data

Let’s continue the test by writing administrative units and boundaries to different formats, e.g. MapInfo TAB, ESRI Shape, KML, PDF, DWG. I built the workspace and defined three parameters, with which I can direct the transformation of the data. The parameters are: Source file(s), Destination folder and Destination data format. The end-user doesn’t need to do anything else than define the values for the parameters and click OK.

Inspecting results

After running the workspace, we can inspect the results in FME Data Inspector or Viewer. For the first run, I chose MapInfo TAB as the destination data format, and the result has correct geometries and attributes:

Kuntarajat MapInfo TAB:ina.

Other formats that I tested were KML, PDF ja DWG, which worked without problems.

Reading XML data in Inspire schemas is now very handy with FME.

Leave a comment

Filed under Inspire

FMEDays 2010

Being a FME user, I just had to travel to Münster, Germany, where FMEDays 2010 was held. After arriving to Düsseldorf, I took a wrong train to Minden, which is not apparently Münster. After totally 5 hours of train travelling I found Münster, which should be about 1 hour 30 minutes from Düsseldorf. Does anyone else, who’s working with GIS, has a lousy homing instinct?

After all, I found Münster. Thank you Safe Software and con terra for a great user conference! I won’t forget all the resellers and users either: Thank you for all the conversations we had. I spilled couple of times coffee, first one happened when I heard the secret word “WFS” and my coffee fell all the way from 3rd floor down to the con terra reception on a poor con terra employee. Again, my apologies, if you’re reading this blog. Anyway, was the conference worth it? I give you 3 reasons, why it was worth it:

  1. FME 2010
  2. FME Users
  3. Future

1. FME 2010 belongs to one of the most biggest releases Safe Software has ever had. Just look at its XML, raster, 3D capabilities and performance. I’m really excited about replacing all those XSLT scripts with a transformer called XMLTemplater. 3D capabilities include raster draping, this one is from Dimitris 3D Place:World DEM

I’ve used FME 2010 since the beginning of 2009, and I’m really impressed of the new functionality such as adding transformers just by typing in the canvas, and the workspace search.

2. FME Community has quite excellent and smart users, if you look at what they’ve accomplished with FME. Here are just a few examples, that I saw:

  • Augmented Reality, Vicrea. FME was used to create 2D and 3D objects (City center) for augmented reality application on Iphone.
  • Building a 3D City Model with FME, HNIT BALTIC. In contrast with earlier CAD to 3D solutions, FME was used to build a 3D city model from GIS datasets. The 3D city model was also published to web, so you could have a virtual walk inside the model!
  • Lithuanian SDI, GIS-Centras: FME Server was utilized in providing download and transformation services for users.
  • Contractor Portal, Dottedeyes: If you’re looking for a solution which combines open source components with a transformation services software, you have to see this presentation.

Remember that FME users are not just FME users, they come from several different product, database, format and coordinate system environments. Just to mention a few, some are enthusiastic ESRI products users, some work closely with databases, and some are CAD software users. They still gather together because of FME, and they have fun together!

3. Safe Software seems to love XML, since FME’s XML support seem to increase in every FME release. They’ve also made a very good progress with metadata support, and that is a tale which is just beginning. Which makes me write a postit note that I should start studying metadata more seriously. Don & Dale show is also one thing to mention. If you don’t have any other reason to attend FME User Conferences, at least do it because of Don & Dale. They’re the rock stars of GIS world!

Now I just have to process all the ideas I got from the presentations and discussions, it’s just hard to cope with the post-conference-melancholy. Coming back to normal weekdays is always tough after great conferences. 😉


Filed under FME