diff options
Hooked up the RestRegionPlugin Get Region/xxx/terrain so it outputs xml containing the terrain heightmap rather than the old "terrain not implemented" message.
The format of the terrain data is: the floats encoded in Base64 and serialised into xml. So I think far from ideal, but as the support for outputting that format was already there...
Still need to hook up a method for remotely loading this data.
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/Regions/GETHandler.cs')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/Regions/GETHandler.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Regions/GETHandler.cs b/OpenSim/ApplicationPlugins/Rest/Regions/GETHandler.cs index ced3e5c..d0a9e77 100644 --- a/OpenSim/ApplicationPlugins/Rest/Regions/GETHandler.cs +++ b/OpenSim/ApplicationPlugins/Rest/Regions/GETHandler.cs | |||
@@ -181,8 +181,12 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions | |||
181 | 181 | ||
182 | protected string RegionTerrain(OSHttpResponse httpResponse, Scene scene) | 182 | protected string RegionTerrain(OSHttpResponse httpResponse, Scene scene) |
183 | { | 183 | { |
184 | return Failure(httpResponse, OSHttpStatusCode.ServerErrorNotImplemented, | 184 | httpResponse.SendChunked = true; |
185 | "GET", "terrain not implemented"); | 185 | httpResponse.ContentType = "text/xml"; |
186 | |||
187 | return scene.Heightmap.SaveToXmlString(); | ||
188 | //return Failure(httpResponse, OSHttpStatusCode.ServerErrorNotImplemented, | ||
189 | // "GET", "terrain not implemented"); | ||
186 | } | 190 | } |
187 | 191 | ||
188 | protected string RegionStats(OSHttpResponse httpResponse, Scene scene) | 192 | protected string RegionStats(OSHttpResponse httpResponse, Scene scene) |