[mapguide-users] RE: MgTileService - GetTile -
amorsell at spatialgis.com
Tue Jan 30 19:21:00 EST 2007
Originally I was thinking for viewing higher resolution tiles or generated
images but now realize that wouldn't help since screen resolution is 96 dpi.
But, yes, for printing purposes it could be handy. I guess if the option is
available in the mapagent operation, it seems like it would make sense that
it would also be available directly in the API if possible.
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Traian Stanev
Sent: Tuesday, January 30, 2007 4:00 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] RE: MgTileService - GetTile -
Are you hoping to generate rasters at higher dpi for printing purposes?
From: mapguide-users-bounces at lists.osgeo.org on behalf of Andy Morsell
Sent: Tue 1/30/2007 6:29 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] RE: MgTileService - GetTile - Cannot
I just ran into a case where exposing a Set DPI method to the
MgRenderingService::RenderMap function would be very handy and would allow
more control by the programmer. I hope it is a considered addition to the
> I'm surprised that there are methods which are available to the MapAgent
> but not the APIs.
> Was this a case of deliberate exclusion, or not enough time to get
> everything in? I can see there being some arguments for not exposing
> these methods (only need them for rendering, etc) but there are
> apparently going to be some use cases for accessing them :)
> From: Walt Welton-Lair
> Sent: Thursday, December 07, 2006 15:47
> To: users at mapguide.osgeo.org
> Subject: RE: [mapguide-users] MgTileService - GetTile - Cannot establish
> Sorry about that - I forgot that the Set methods weren't exposed.
> As Alain mentioned, currently the only way to update the view is via
> certain HTTP requests. GETMAP / GETMAPUPDATE / GETPLOT are used in the
> context of DWFViewer, while GETMAPIMAGE and GETVISIBLEMAPEXTENT are used
> in the context of AJAX Viewer. You can include additional parameters
> with any of these requests to update view related information:
> While you can use a viewer to make these requests for you, you can make
> the HTTP requests yourself and get the same effect. You could write an
> application that:
> 1) creates a session
> 2) creates an MgMap for your MapDefinition that is part of your session
> 3) makes one of the HTTP requests above
> - GETVISIBLEMAPEXTENT is the simplest
> - include the SETVIEWSCALE parameter with the request to set the
> scale you want
> 4) makes calls to GetTile
> 5) repeats steps 3 and 4 for each desired scale
> For steps 1 and 2 there's should be sample code under the MgMap
> For step 3 something like .NET's HttpRequest class probably works. Just
> make the request to your MG server, e.g.
> Here, mapName is the name from the MgMap.
View this message in context:
Sent from the MapGuide Users mailing list archive at Nabble.com.
mapguide-users mailing list
mapguide-users at lists.osgeo.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6834 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070130/c224dc02/winmail-0001.bin
More information about the mapguide-users