29 using System.Collections;
31 using System.Reflection;
35 using OpenSim.Server.Base;
36 using OpenSim.Server.Handlers.Base;
37 using OpenSim.Services.Interfaces;
38 using OpenSim.Framework;
39 using OpenSim.Framework.Servers.HttpServer;
42 using OpenMetaverse.StructuredData;
52 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
58 m_LocalService = service;
61 public XmlRpcResponse
GetLandData(XmlRpcRequest request, IPEndPoint remoteClient)
63 Hashtable requestData = (Hashtable)request.Params[0];
64 ulong regionHandle = Convert.ToUInt64(requestData[
"region_handle"]);
65 uint x = Convert.ToUInt32(requestData[
"x"]);
66 uint y = Convert.ToUInt32(requestData[
"y"]);
67 m_log.DebugFormat(
"[LAND HANDLER]: Got request for land data at {0}, {1} for region {2}", x, y, regionHandle);
70 LandData landData = m_LocalService.GetLandData(UUID.Zero, regionHandle, x, y, out regionAccess);
71 Hashtable hash =
new Hashtable();
75 hash[
"AABBMax"] = landData.AABBMax.ToString();
76 hash[
"AABBMin"] = landData.AABBMin.ToString();
77 hash[
"Area"] = landData.Area.ToString();
78 hash[
"AuctionID"] = landData.AuctionID.ToString();
79 hash[
"Description"] = landData.Description;
80 hash[
"Flags"] = landData.Flags.ToString();
81 hash[
"GlobalID"] = landData.GlobalID.ToString();
82 hash[
"Name"] = landData.Name;
83 hash[
"OwnerID"] = landData.OwnerID.ToString();
84 hash[
"SalePrice"] = landData.SalePrice.ToString();
85 hash[
"SnapshotID"] = landData.SnapshotID.ToString();
86 hash[
"UserLocation"] = landData.UserLocation.ToString();
87 hash[
"RegionAccess"] = regionAccess.ToString();
90 XmlRpcResponse response =
new XmlRpcResponse();
91 response.Value = hash;
Details of a Parcel of land
XmlRpcResponse GetLandData(XmlRpcRequest request, IPEndPoint remoteClient)
Interactive OpenSim region server
LandHandlers(ILandService service)