通过ogr2ogr导入数据时postgis中的srid无效

通过ogr2ogr导入数据时postgis中的srid无效,gis,postgis,gdal,ogr,ogr2ogr,Gis,Postgis,Gdal,Ogr,Ogr2ogr,我将postgis 12与postgis 3.0.0和gdal 3.0.0一起使用,以复制其中的数据。我使用的命令是 ogr2ogr -f "PostgreSQL" PG:"host=127.0.0.1 dbname=db user=user port=5432 password=1" "file.geojson" -nln mutable 这里的问题是,当我检查输出表的srid时,它是900914,这在我的情况下是不正确的,它应该是2223。要解决这个问题,我必须通过添加'-t_srs EP

我将postgis 12与postgis 3.0.0和gdal 3.0.0一起使用,以复制其中的数据。我使用的命令是

ogr2ogr -f "PostgreSQL" PG:"host=127.0.0.1 dbname=db user=user port=5432 password=1" "file.geojson" -nln mutable

这里的问题是,当我检查输出表的srid时,它是900914,这在我的情况下是不正确的,它应该是2223。要解决这个问题,我必须通过添加'-t_srs EPSG:2223'手动指定EPSG代码。在以前版本的ogr2ogr和postgis 2.5中不需要这样做。

file.geojson是否包含srs?file.geojson是否包含srs?