Opened 16 years ago

Closed 15 years ago

#674 closed enhancement (fixed)

Additional RuntimeMap functions and overloaded members

Reported by: MaksimS Owned by: ksgeograf
Priority: low Milestone:
Component: Maestro Version:
Severity: trivial Keywords:
Cc: External ID:

Description

It would be nice if RuntimeMap type had two additional rendering functions:

  1. RuntimeMap.RenderToStream - it's parameters and functionality would reflect what HttpServerConnection.RenderRuntimeMap() exposes presently
  2. RuntimeMap.RenderToImage - similar to above, just returning instantiated System.Drawing.Image object out of render stream. It's somehow logical since said stream represents nothing more than a raster image.

As for overloaded parameters, both rendering functions should use:

  1. x, y, scale, width, height and dpi parameters (currently implemented, but "Clip feature geometry" param is missing).
  2. given extents (x1,y1,x2,y2) - not implemented but should be there for API consistency. There can be also overloaded variant with Envelope type instead of x/y pairs.

Change History (4)

comment:1 by ksgeograf, 16 years ago

Status: newassigned
Version: 2.0.1

Is this something you would consider implementing and giving a patch for?

comment:2 by MaksimS, 16 years ago

Sure, it's not a problem - although in VB.NET :-) (so you can either merge dlls on build or leave it as a separate dll). As for the Clip parameter, take a look at the ticket #455 for the moment - it introduces certain speed improvements.

Anyways, Maestro API seems suitable for dealing with MG in much general sense. I mean - away from bare Studio substitute story.

comment:3 by ksgeograf, 16 years ago

Hmm.. I don't think I would like an extra dll just for those two overloads. But I might be able to run it through a converter for C#.

comment:4 by ksgeograf, 15 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r4345.

The ServerConnectionI now has the clipping method, but it is not used in the LocalNativeVersion, because the API is missing an overload of the function that takes that parameter.

The runtime map now has methods that return the stream or a bitmap.

Note: See TracTickets for help on using tickets.