[mapguide-users] RE: MgTileService - GetTile - Cannotestablishconnection [No Viruses detected]

Tom Chadwin tom.chadwin at nnpa.org.uk
Wed Jan 31 04:24:38 EST 2007


As I mentioned before, I would strongly request print-res DPI facility
for print layouts.
 
Cheers
 
Tom

________________________________

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Andy
Morsell
Sent: 31 January 2007 00:21
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] RE: MgTileService - GetTile -
Cannotestablishconnection [No Viruses detected]


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.  
 

Andy 


________________________________

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 -
Cannotestablishconnection


 
Are you hoping to generate rasters at higher dpi for printing purposes? 
 
 
Traian
 

	

Tom Chadwin
ICT & Web Development Officer
Telephone: 01434 611530 
Mobile: 
Fax: 01434 611677
Email: tom.chadwin at nnpa.org.uk
Web : www.Northumberland-national-park.org.uk <http://www.Northumberland-national-park.org.uk>
____________________________________________________________________________
IMPORTANT NOTICE - Disclaimer - January 31, 2007 - REF Email-200701-00069512.

If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to the statement below or contact the sender. 
This communication is from Northumberland National Park Authority (NNPA).The Authority's head office and principal place of business is Eastburn, South Park, Hexham, Northumberland, NE46 1BS, United Kingdom.This communication and any attachments contain information which is confidential and may also be privileged. It is for the exclusive use of MapGuide Users Mail List. If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title "received in error" to "it.security at nnpa.org.uk" then delete the email and destroy any copies of it. 
E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept liability for any such matters or their consequences. Anyone who communicates with us by e-mail is taken to accept the risks in doing so. 
Any views or opinions presented are solely those of the author and do not necessarily represent those of NNPA.Contractors or potential contractors are reminded that a formal Order or Contract is needed for NNPA to be bound by any offer or acceptance of terms for the supply of goods or services Although this email and any attachments are believed to be free of any virus or other defects which might affect any computer or IT system into which they are received, no responsibility is accepted by the NNPA for any loss or damage arising in any way from the receipt or use thereof. Computer systems of this Authority may be monitored and communications carried out on them recorded, to secure the effective operation of the system and for other lawful purposes.
-----Original Message----- 
	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 
	Cc: 
	Subject: [mapguide-users] RE: MgTileService - GetTile - Cannot
establishconnection
	
	


	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
	API soon.
	
	Thank you.
	
	Andy
	
	
	JasonBirch wrote:
	>
	> 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 :)
	> 
	> Jason
	>
	> ________________________________
	>
	> 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
	> connection
	>
	>
	> 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:
	> 
	>     SETDISPLAYDPI=<dpi>
	>     SETDISPLAYWIDTH=<width>
	>     SETDISPLAYHEIGHT=<height>
	>     SETVIEWSCALE=<scale>
	>     SETVIEWCENTERX=<centerX>
	>     SETVIEWCENTERY=<centerY>
	>
	> 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
	> documentation.
	> 
	> For step 3 something like .NET's HttpRequest class probably
works.  Just
	> make the request to your MG server, e.g.
	>
http:://localhost/mapguide/mapagent?OPERATION=GETVISIBLEMAPEXTENT&VERSIO
	>
N=1.0.0&SESSION=<sessionId>&MAPNAME=<mapName>&SETVIEWSCALE=<scale>
	> 
	> Here, mapName is the name from the MgMap.
	> 
	> Walt
	>
	>
	
	--
	View this message in context:
http://www.nabble.com/MgTileService---GetTile---Cannot-establish-connect
ion-tf2763585s16610.html#a8720298
	Sent from the MapGuide Users mailing list archive at Nabble.com.
	
	_______________________________________________
	mapguide-users mailing list
	mapguide-users at lists.osgeo.org
	http://lists.osgeo.org/mailman/listinfo/mapguide-users
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070131/baa3505d/attachment-0001.html


More information about the mapguide-users mailing list