問題タブ [geoalchemy2]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - ジオメトリを geojson に変換できません
私の問題はこれです。一部のデータのモデルを作成しています。
今、そのようなルートを GeoJSON に変換したいと思います。
私が試したこと
戻り値ST_AsGeoJSON(ST_GeomFromEWKB(:ST_GeomFromEWKB_1))
リターンを変更した場合:
戻り値TypeError: 'ST_AsGeoJSON' object is not callable
戻り値0102000020e610000002000000b34fd4d9bca351c032e14d5134c240c0d24f8055e0a351c0dedea9f4dcbf40c0
これは、ジオメトリ オブジェクトがあることを示します。
戻り値TypeError: 'WKBElement' object is not callable
ルートタイプを印刷すると、
戻り値
クラス自体ではなく、そのようなクラスのオブジェクトを返す必要があると思いました。この時点で困惑しており、今何をすべきかわかりません。
助言がありますか?