def shp2geojson(layer):
    """Shapefile to Geojson conversion using mapshaper."""
    cmd = 'mapshaper {layer}.shp'\
        + ' -proj wgs84'\
        + ' -o format=geojson precision=0.00000001'\
        + ' {layer}.geojson'

    cmd = cmd.format(layer=layer)

    return cmd