local iPlotCount = Map.GetPlotCount();
for iPlotLoop = 0, iPlotCount-1, 1 do
local bData = false
local plot = Map.GetPlotByIndex(iPlotLoop)
local NEOfCliff = 0
local WOfCliff = 0
local NWOfCliff = 0
if plot:IsNEOfCliff() then NEOfCliff = 1 end
if plot:IsWOfCliff() then WOfCliff = 1 end
if plot:IsNWOfCliff() then NWOfCliff = 1 end
local NEOfRiver = 0
local WOfRiver = 0
local NWOfRiver = 0
if plot:IsNEOfRiver() then NEOfRiver = 1 end -- GetRiverSWFlowDirection()
if plot:IsWOfRiver() then WOfRiver = 1 end -- GetRiverEFlowDirection()
if plot:IsNWOfRiver() then NWOfRiver = 1 end -- GetRiverSEFlowDirection()
print("MapToConvert["..plot:GetX().."]["..plot:GetY().."]={"..plot:GetTerrainType()..","..plot:GetFeatureType()..","..plot:GetContinentType()..",{{"..NEOfRiver..","..plot:GetRiverSWFlowDirection().. "},{"..WOfRiver..","..plot:GetRiverEFlowDirection().."},{"..NWOfRiver..","..plot:GetRiverSEFlowDirection().."}},{"..plot:GetResourceType(-1)..","..tostring(1).."},{"..NEOfCliff..","..WOfCliff..","..NWOfCliff.."}}")
end