U can use this set in Tiled, setting the tileset and the tilemap to 512. Set the terrain using this pattern, so you can make the map with the autotiling feature.