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

Imagine.FeatureSubset documentation

Hi everybody,

 

where can I find the documentation of Imagine.FeatureSubset to get information about the values of its geometryInfo properties?

This is an example file from here but I want to create a FeatureSubset with point geometries.

 

{
    "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
        }
    }
}

So is it the following? I'm just guessing... I can't try it out because there are more errors in my recipe which are unspecific.

"geometryType": 1,
            "numDimensions": 2,

Thanks,

Marisa

Highlighted
Regular Contributor
Posts: 318
Registered: ‎11-16-2015

Re: Imagine.FeatureSubset documentation

Hi. Did you get anywhere with this? Cheers, Johnnie

Highlighted
Technical Evangelist
Posts: 40
Registered: ‎09-10-2015

Re: Imagine.FeatureSubset documentation

geometryInfo is not required and may be omitted. The rest of the Value is expected to be valid GeoJSON. Did you try simply omitting geometryInfo?

Highlighted
Regular Contributor
Posts: 318
Registered: ‎11-16-2015

Re: Imagine.FeatureSubset documentation

Haven't tried anythning yet to be honest. I'm just trying to find a way to manually produce the json input required for control points as input into the Triangulation operator in Spatial Modeler.