Postgresql postgis insert for featureCollection

У меня есть запрос в Postgresql

INSERT INTO streets (fias_guid, fias_type, fias_name, osm_name, parent_fias_guid, district_id, postcode, geom) VALUES (
            'df3cff9f-8eac-46a7-8574-ed158f1425b3',
            'улица',
            'белибейская',
            'улица белибейская',
            'df3cff9f-8eac-46a7-8574-ed158f1425b3',
            '3',
            '0000',
            ST_GeomFromGeoJSON(
                '{
                    "type": "FeatureCollection",
                    "features": [{
                        "type": "Feature",
                        "geometry": {
                            "type": "LineString",
                            "coordinates": [
                                ["20.5726235", "54.7093186"],
                                ["20.2726235", "54.17093186"]
                            ]
                        },
                        "crs":{"type":"name","properties":{"name":"EPSG:4326"}}
                    }]
                }'
            )
        )

Но получаю invalid GeoJson representation. Можно ли как нибудь составить запрос, чтобы вставить FeatureCollection в поле ???


Ответы (0 шт):