RE: [mapguide-users] Manipulating Maps in a Session, .NET API

2008-08-28 Thread Maksim Sestic
Tiling service should provide function that returns array of tile positions
(row/column), given MgGeometry (or MgEnvelope) to query tile index, map and
scale. It's currently implemented on client (AJAX) side only. I'm thinking
of filing an enhancement ticket for this.

Regards,
Maksim Sestic
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Skovhede, GEOGRAF A/S
Sent: Wednesday, August 27, 2008 19:05
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Manipulating Maps in a Session, .NET API

I have not used tiles, so I don't know how that is done.
If you just want to create tiles, Kori Maleski has done a great job with a
builder:
http://www.websoftdev.com/download.cfm

I'm guessing that tile (0,0) is has the same upper left coordinates as your
map extent.

Regards, Kenneth Skovhede, GEOGRAF A/S



Johann Nothbauer skrev:
> Hi Kenneth!
>
> Thanks for your clarification.
>
> I assume this is true for the Tile Service, as well?
> How can I find out, which Tile (Row/Column) should be fetched for a 
> certain World Coordinate? I know how to compute the Tile Size in World 
> Coordinates for the current scale. But where do the Tiles "Start"?
> Where is Tile 0/0 georeferenced? Is it the starting Map Extent?
>
> Any help appreciated,
> cheers,
> Nothi
>
>
> Kenneth Skovhede, GEOGRAF A/S wrote:
>> There is no scale in the runtime map (MgMap).
>> When you request that the image is rendered, you supply dpi, 
>> resolution and either center/scale or extent.
>> You cannot store the scale or the center in the runtime map, you must 
>> store it locally in your client.
>>
>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>
>>
>>
>> Johann Nothbauer skrev:
>>> Hi All!
>>>
>>> Is it possible to manipulate a MgMap object via the .NET API?
>>> I am using the .NET API without a Viewer-Context. I'm trying to 
>>> render a Map to a System.Windows.Form in .NET.
>>> I can render a Map, but can I can't change the ViewExtents or the 
>>> ViewScale like this:
>>>
>>> MgMap kgMap = new MgMap();
>>> ... some map initialization...
>>>
>>> MgPoint center = kgMap.ViewCenter;  // this works well double 
>>> viewScale = kgMap.ViewScale;
>>>
>>> kgMap.SetViewScale() // is impossible, no such Method
>>>
>>> Is this the right approach for doing such things?
>>> Should I use the Mapagent instead? If yes, which Method will do the 
>>> Trick?
>>>
>>> cheers,
>>> Nothi
>>>
>>> ___
>>> mapguide-users mailing list
>>> mapguide-users@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

__ Information from ESET NOD32 Antivirus, version of virus signature
database 3388 (20080826) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 3388 (20080826) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Manipulating Maps in a Session, .NET API

2008-08-27 Thread Kenneth Skovhede, GEOGRAF A/S

I have not used tiles, so I don't know how that is done.
If you just want to create tiles, Kori Maleski has done a great job with 
a builder:

http://www.websoftdev.com/download.cfm

I'm guessing that tile (0,0) is has the same upper left coordinates as 
your map extent.


Regards, Kenneth Skovhede, GEOGRAF A/S



Johann Nothbauer skrev:

Hi Kenneth!

Thanks for your clarification.

I assume this is true for the Tile Service, as well?
How can I find out, which Tile (Row/Column) should be fetched for a 
certain World Coordinate? I know how to compute the Tile Size in World 
Coordinates for the current scale. But where do the Tiles "Start"? 
Where is Tile 0/0 georeferenced? Is it the starting Map Extent?


Any help appreciated,
cheers,
Nothi


Kenneth Skovhede, GEOGRAF A/S wrote:

There is no scale in the runtime map (MgMap).
When you request that the image is rendered, you supply dpi, 
resolution and either center/scale or extent.
You cannot store the scale or the center in the runtime map, you must 
store it locally in your client.


Regards, Kenneth Skovhede, GEOGRAF A/S



Johann Nothbauer skrev:

Hi All!

Is it possible to manipulate a MgMap object via the .NET API?
I am using the .NET API without a Viewer-Context. I'm trying to 
render a Map to a System.Windows.Form in .NET.
I can render a Map, but can I can't change the ViewExtents or the 
ViewScale like this:


MgMap kgMap = new MgMap();
... some map initialization...

MgPoint center = kgMap.ViewCenter;  // this works well
double viewScale = kgMap.ViewScale;

kgMap.SetViewScale() // is impossible, no such Method

Is this the right approach for doing such things?
Should I use the Mapagent instead? If yes, which Method will do the 
Trick?


cheers,
Nothi

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Manipulating Maps in a Session, .NET API

2008-08-27 Thread Johann Nothbauer

Hi Kenneth!

Thanks for your clarification.

I assume this is true for the Tile Service, as well?
How can I find out, which Tile (Row/Column) should be fetched for a 
certain World Coordinate? I know how to compute the Tile Size in World 
Coordinates for the current scale. But where do the Tiles "Start"? Where 
is Tile 0/0 georeferenced? Is it the starting Map Extent?


Any help appreciated,
cheers,
Nothi


Kenneth Skovhede, GEOGRAF A/S wrote:

There is no scale in the runtime map (MgMap).
When you request that the image is rendered, you supply dpi, resolution 
and either center/scale or extent.
You cannot store the scale or the center in the runtime map, you must 
store it locally in your client.


Regards, Kenneth Skovhede, GEOGRAF A/S



Johann Nothbauer skrev:

Hi All!

Is it possible to manipulate a MgMap object via the .NET API?
I am using the .NET API without a Viewer-Context. I'm trying to render 
a Map to a System.Windows.Form in .NET.
I can render a Map, but can I can't change the ViewExtents or the 
ViewScale like this:


MgMap kgMap = new MgMap();
... some map initialization...

MgPoint center = kgMap.ViewCenter;  // this works well
double viewScale = kgMap.ViewScale;

kgMap.SetViewScale() // is impossible, no such Method

Is this the right approach for doing such things?
Should I use the Mapagent instead? If yes, which Method will do the 
Trick?


cheers,
Nothi

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Manipulating Maps in a Session, .NET API

2008-08-26 Thread Maksim Sestic
Hi Nothi,

Please see Maestro API: http://trac.osgeo.org/mapguide/wiki/maestro

You need to reference OSGeo.MapGuide.MaestroAPI.dll and
MapGuideDotNetApi.dll libraries to get started. Then look for
RuntimeClasses.RuntimeMap, I'll see to post some coding examples on Wiki
page.

It's still thin on documentation but if you have some previous experience
with managed MG API then it's rather straightforward. Kenneth also did a
great job of enabling (de)serialization fro an to managed types.

Regards,
Maksim Sestic

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johann
Nothbauer
Sent: Tuesday, August 26, 2008 08:09
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Manipulating Maps in a Session, .NET API

Hi All!

Is it possible to manipulate a MgMap object via the .NET API?
I am using the .NET API without a Viewer-Context. I'm trying to render a Map
to a System.Windows.Form in .NET.
I can render a Map, but can I can't change the ViewExtents or the ViewScale
like this:

MgMap kgMap = new MgMap();
... some map initialization...

MgPoint center = kgMap.ViewCenter;  // this works well double viewScale =
kgMap.ViewScale;

kgMap.SetViewScale() // is impossible, no such Method

Is this the right approach for doing such things?
Should I use the Mapagent instead? If yes, which Method will do the Trick?

cheers,
Nothi

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

__ Information from ESET NOD32 Antivirus, version of virus signature
database 3387 (20080826) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 3387 (20080826) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Manipulating Maps in a Session, .NET API

2008-08-26 Thread Kenneth Skovhede, GEOGRAF A/S

There is no scale in the runtime map (MgMap).
When you request that the image is rendered, you supply dpi, resolution 
and either center/scale or extent.
You cannot store the scale or the center in the runtime map, you must 
store it locally in your client.


Regards, Kenneth Skovhede, GEOGRAF A/S



Johann Nothbauer skrev:

Hi All!

Is it possible to manipulate a MgMap object via the .NET API?
I am using the .NET API without a Viewer-Context. I'm trying to render 
a Map to a System.Windows.Form in .NET.
I can render a Map, but can I can't change the ViewExtents or the 
ViewScale like this:


MgMap kgMap = new MgMap();
... some map initialization...

MgPoint center = kgMap.ViewCenter;  // this works well
double viewScale = kgMap.ViewScale;

kgMap.SetViewScale() // is impossible, no such Method

Is this the right approach for doing such things?
Should I use the Mapagent instead? If yes, which Method will do the 
Trick?


cheers,
Nothi

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users