def shp2geojsonOgr(layer):
    """Shapefile to Geojson conversion using ogr."""
    cmd = 'ogr2ogr -f GeoJSON -t_srs'\
        + ' crs:84'\
        + ' {layer}.geojson'\
        + ' {layer}.shp'

    cmd = cmd.format(layer=layer)

    return cmd