diff options
author | MW | 2009-05-21 10:54:49 +0000 |
---|---|---|
committer | MW | 2009-05-21 10:54:49 +0000 |
commit | 8e6289b8ca2af76f3d59908bf210a492506453e8 (patch) | |
tree | ec1c5013aada882f28fddb8a6c252bbbf1de64ae | |
parent | Added ITeleportModule interface, and added a hook into scene so if a module h... (diff) | |
download | opensim-SC-8e6289b8ca2af76f3d59908bf210a492506453e8.zip opensim-SC-8e6289b8ca2af76f3d59908bf210a492506453e8.tar.gz opensim-SC-8e6289b8ca2af76f3d59908bf210a492506453e8.tar.bz2 opensim-SC-8e6289b8ca2af76f3d59908bf210a492506453e8.tar.xz |
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.
-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) |