Smart M.App discussions

Looking for answers in regards to M.Apps, M.App Exchange or M.App Studio? Smart M.App Tech Discussion board is where you can search, ask your questions and assist others by sharing your knowledge. Join the conversation, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Frequent Contributor
Posts: 83
Registered: ‎07-17-2017

recipe with json input fails

[ Edited ]

Hi everybody,

 

I try to read a json file as input of my recipe and followed this recipe with roi tutorial. (Unfortunately the recipe isn't given as file in this tutorial...)

My recipe calculates buffers around the polygons in the json file (see attachment). The content of my input .json file looks like this (from the tutorial):

 

 

{
    "Type": "IMAGINE.FeatureSubset",
    "Value": {
        "type": "FeatureCollection",
        "features": [
            {
                "type": "Feature",
                "geometry": {
                    "type": "Polygon",
                    "coordinates": [
                        [
                            [ 721806.292, 3794829.217 ],
                            [ 726864.831, 3797362.385 ],
                            [ 737060.948, 3795304.186 ],
                            [ 737060.948, 3787783.845 ],
                            [ 734610.718, 3783825.770 ],
                            [ 729156.981, 3781530.087 ],
                            [ 722596.689, 3789367.075 ]
                        ]
                    ]
                },
                "properties": null
            }
        ],
        "attributeInfo": null,
        "crs": null,
        "geometryInfo": {
            "geometryType": 3,
            "numDimensions": 2,
            "coordinateReferenceSystemID": null
        }
    }
}

 

I uploaded the file on chest and started my recipe from a recipe panel where I selected the uploaded file as input. But the recipe throws errors which I don't understand.

INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:55,914 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Heartbeat recorded 'Pre-Validation'
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:55,940 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Checking all job inputs are valid and exist on active storage
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,091 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Input catalog items: 03553f4d-d8be-4cad-b20e-68f368fef0de_2c9180825efefde10162197467590080
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,097 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 All job inputs are valid and exist on active storage
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,097 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Checking all job output folders are valid
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,127 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 All job output folders are valid
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,127 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Checking validity of model/process in catalog
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,127 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Model id 03553f4d-d8be-4cad-b20e-68f368fef0de_2c9180826101b2d001620ac0f78c6ebe
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,230 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Resolved model
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,757 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Validated model
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,830 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Downloaded model
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,830 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Model/process is valid
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,830 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Resolving model type 03553f4d-d8be-4cad-b20e-68f368fef0de_2c9180826101b2d001620ac0f78c6ebe
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,830 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Local model path /mnt/datapoint/tmp/temp/Hexagon/models/d235c0e2-6eee-4157-9b02-c779b873a8a9.gmdx
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,836 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Will use tasklist Generic
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:56,979 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Validated successfully
INFO  [SWF Activity  DefaultDecisionType 9] 2018-03-12 09:05:57,010 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Heartbeat recorded 'Post-Validation'
INFO  [SWF Activity  DefaultDecisionType 10] 2018-03-12 09:05:57,496 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Heartbeat recorded 'Pre-SpawnWorkerInstance'
INFO  [SWF Activity  DefaultDecisionType 10] 2018-03-12 09:05:57,527 d235c0e2-6eee-4157-9b02-c779b873a8a9 6da2f40b-2fb8-4eee-b421-7a284f38b7b8 Heartbeat recorded 'Post-SpawnWorkerInstance'

 

Has somebody an idea what I have to change within the input geoJson structure or the recipe?

I'm stuck here... :-(

 

Thanks

Marisa