I have a polygon, with longitude in [-180, 180], with 2 parts around the dateline. I want to make a map centered on the date line. My plane is to: 1./ update the longitude, so that if lon < 0 , lon=lon+360 2./ dissolve the two part to get a unique polygon.
My problem is now 1./ I'm trying:
ogr2ogr nodateline\new_polygons.shp org_polygon.shp -dialect sqlite -sql "SELECT ShiftCoords(geometry, 360, 0) FROM org_polygon WHERE X(geometry)<0"
and the command returns the following error:
Warning 6: Normalized/laundered field name: 'ShiftCoords(geometry, 360, 0)' to 'ShiftCoord'
EDIT: I also tried with ST_X(geometry) instead of X(geometry): same error.
The error only occur with the "WHERE" clause. a./ what does the error mean? b./ what would be the correct syntax?