Skip to content

GeoJSON not supported #61

@JoaoSandrini

Description

@JoaoSandrini

Image

The widget is returning a "GeoJSON format not supported" when it receives one, although it loads correctly the PoI pop-up and ~sometimes updates correctly the property value resquested on the subscription.

Image

For context, thats the GoeJSON being passed via a python script to generate artificial sensor data:

{
        "id": "urn:ngsi-ld:ArtificialSensor:" + self.sensor_id,
        "type": "ArtificialSensor",
        "name": {
            "type": "Property",
            "value": "Artificial Sensor"
        },
        "peopleCount": {
            "type": "Property",
            "value": 0
        },
        "location": {
            "type": "GeoProperty",
            "value": {
                "type": "Point",
                "coordinates": [self.sensor_location[0], self.sensor_location[1]]
            }
        },
        "timestamp": {
            "type": "Property",
            "value": time.strftime("%Y-%m-%dT%H:%M:%S", time.gmtime())
        },
        "@context": [
            "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.8.jsonld",
            "https://fiware.github.io/data-models/context.jsonld",
            "http://orion-7c9944b956-frxbb:1026/ngsi-ld/v1/jsonldContexts/c247ed92-154b-11f0-98d8-9e5c4066aaac",
            "http://orion-7c9944b956-frxbb:1026/ngsi-ld/v1/jsonldContexts/26781d44-154e-11f0-a9ec-9e5c4066aaac"
        ]
    } 

The patch request body is this one:

    {
        "type": "Property",
        "value": random.randint(0, 500)  # Simulate a random people count
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions