Re: [gdal-dev] GDAL question

2021-04-29 Thread Peter P
type": "Feature", "geometry": ' WHERE Id='1'" In column geometry put geojson file or how? jratike80 wrote > Hi, > > You can't update with ogr2ogr. Use ogrinfo instead. I believe that you > will > find good examples from gi

Re: [gdal-dev] GDAL question

2021-04-23 Thread Peter P
267446447533],[29.091796875,63.97596090918338],[26.54296875,64.73664139557683]]]}}]} > > Test with ogrinfo: > > ogrinfo name.json -al > INFO: Open of `name.json' > using driver `GeoJSON' successful. > > Layer name: LayerName > Geometry: Polygon >

Re: [gdal-dev] gdal-dev Digest, Vol 203, Issue 38

2021-04-21 Thread Peter P
p' to > gdal-dev-requ...@lists.osgeo.org > > You can reach the person managing the list at > gdal-dev-ow...@lists.osgeo.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gdal-dev digest...

Re: [gdal-dev] GDAL question

2021-04-21 Thread Peter P
not get your "name" attribute converted you > may have something special in your data, like a few first features in the > GeoJSON missing the name attribute. > > Do you really mean "wkt_geometry" or is it possibly "wkb_geometry"? > > If you will still have

Re: [gdal-dev] GDAL question

2021-04-21 Thread Peter P
PostgreSQL "table1" columns: Name Data Type Id integer Name text TestGeometry geometry Example geojson - this will be one row in table: jsonVariable = {"type": "FeatureCollection", "Name": "testName", "features": [{"type": "Feature", "geometry": {"type": "Polygon", "coordinates": [[[26.54296875,64

[gdal-dev] GDAL question

2021-04-20 Thread Peter P
Hello I use GDAL(https://github.com/OSGeo/gdal) with python bindings. I am importing GeoJSON to PostgreSQL (PostGIS). I know how to import only geometry to the table. I dont know how to import geometry with others columns to one table. I need to import geometry to "wkt_geometry" column and his nam