Skip to main content
  • 10k+ Posts
  • 53,090 Replies
10000 Posts
Using Python Caller for Multiple Features and Feature Types?

I am working on a script that uses the OpenIfcShell library to create IFC files as a workaround for the IFCWriter's gap in functionality.  So far so good:  I can create the basics of an IFC file using one feature.  Now the challenge is to scale up with a dataset that has many features and feature types.  Here is the code I have so far:import fmeimport fmeobjectsimport uuidimport timeimport calendarimport tempfileimport ifcopenshell class FeatureProcessor(object):     def __init__(self):        pass     def input(self, feature):                # Create FME Log File object name called logger        logger = fmeobjects.FMELogFile()         # Call logMessageString method to add custom text and set WARN severity level        logger.logMessageString("Testing the mud",1)                        ifc = ifcopenshell.file(schema='IFC4')

JSON Array to table

hi,I have the following json time series and would like to convert it to a table structure.so per time and value an own row with all station information.Unfortunately I can't find a corresponding example in the FME help. [    {        "ts_id": "19690010",        "station_name": "Badinghagen W",        "station_latitude": "51.084693593981505",        "station_longitude": "7.650786142144193",        "parametertype_name": "Niederschlagshöhe (N)",        "ts_name": "Tag.Summe",        "ts_unitname": "Millimeter",        "ts_unitsymbol": "mm",        "station_no": "13100039",        "station_id": "12918",        "rows": "4",        "columns": "Timestamp,Value",        "data": [            [                "2022-03-18",                0.03            ],            [                "2022-03-19",                0.00

Badge Winners

  • Integrate Data with the FME Platform Training
    eduaicmir001has earned the badge Integrate Data with the FME Platform Training
  • Integrate Spatial Data
    kasturideb23has earned the badge Integrate Spatial Data
  • English Speaker
    tdzkj88has earned the badge English Speaker
  • Welcome Back
    russellmhas earned the badge Welcome Back
  • FME Form Basic Training
    russellmhas earned the badge FME Form Basic Training
Show all badges

Community Stats

32,207
Posts
122,305
Replies
39,891
Members

Latest FME