Skip to main content
Open

Support for 12dxmlz file format

Related products:Integrations
danilo_fme
ctredinnick
ltwigg
umapper1
+1
  • danilo_fme
    danilo_fme
  • ctredinnick
    ctredinnick
  • luka_muna
  • ltwigg
    ltwigg
  • umapper1
    umapper1
  • DanAtSafe
    DanAtSafe

ltwigg
Contributor

Currently FME can read 12dxml file format (.12dxml), but cannot directly read the zipped version of this file (.12dxmlz).


This is similar to the difference between a Google Earth KML file and a KMZ file.


A current work around is the routine can have a user parameter for file name, it starts with a creator, uses the "ZipExtractorAnyExtension" from FME hub to extract the file, then the file path can be used in a feature reader with the format set to 12dxml.


There are two issues with the workaround - it requires a user parameter to be setup within the routine, and it requires unzipping the file contents to a folder prior to being usable in the routine. 12dxml files can be large compared to 12dxmlz (7mb vs 206kb) so file size is significant, especially when 12dxmlz files get into 100mb's+.

That is why a dedicated 12dxmlz reader would be great.

2 replies

ctredinnick
Supporter
Forum|alt.badge.img+19
  • Supporter
  • October 24, 2022

First of all, it sounds like .12dxmlz just needs to be recognised as a zipped format of .12dxml, in the same way that FME recognises it can read kmz with the kml reader.

A different workaround is to rename the file to .zip, and try read it with the 12dxml reader. You may have to specify the whole filepath to read it (point the reader at C:\\Temp\\thefile.zip\\thefile.12dxml, not C:\\Temp\\thefile.zip) . Either way, that'll prompt FME to unzip it itself. You can do that without creating extra data to cleanup by using a TempPathnameCreator, and a FileCopy FeatureWriter to create a renamed copy of file into a temp directory.


ltwigg
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • October 25, 2022

Great idea, thanks for this.

 

I will also try testing to see if that extended path concept can work if it's left as 12dxmlz (since the 12dxml file will have the same file name).


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings