[mapguide-users] OSGeo BC Local Chapter

2007-10-11 Thread Jason Birch
I don't know if there are any lurkers from British Columbia hanging out here 
(OK, I know there are a few), make sure you check out this wiki page:
 
http://wiki.osgeo.org/index.php/British_Columbia_Chapter
 
If you want to get involved, add your name to the list.  We hope to have a 
mailing list set up soon; I'll add details to the wiki when they're available.
 
Please pass this along to anyone else you think might be interested.
 
Jason
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Open map and Zoom to data

2007-10-11 Thread Mark Pendergraft
I'm trying to figure out how to open my map and have it automatically
zoom to a feature by including a request querystring in the url.

For example http://localhost/mapguide/mga/mga.aspx?JobNo=04291  would
zoom to the feature on the Jobs layer with a property of JobNo equaling
04291.

 

I have already written a search/zoom to application which uses this
property.  It runs in the scriptFrame and is usually triggered from a
button on a page that resides in the taskPane.

 

My application opens with a page, which creates 2 frames (titleFrame,
viewerFrame).

 

The only way I can figure out how to do this, is to pass the request
string to a Session.Item.  Then, I have some code in the task pane's
default page which can submit a form using javascript to the
scriptframe.

 

However, I was hoping to put all of this functionality into the opening
page, that way I wouldn't have to pass variables using the session item.
Which is more desirable, because if the user presses the home button in
the task area the code would execute again.

 

Does anyone have any ideas or experience with making the map zoom to a
feature upon being opened?  Thanks.

 

 

Ph: (425) 486-1252  Fx: (425) 486-6108  www.meadgilman.com
 

 

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


Re: [mapguide-users] MapGuide Automated Tiling Engine 1.2

2007-10-11 Thread Maksim Sestic

Hi Kori,

It seems that you have a parameter or two fixed in your code:

"/mapguide/mapagent/mapagent.fcgi?"

while MGE2008 installs on ".../mapguide2008/..." virtual path. Just make it
customizable via .config file and everything should work fine.

Regards,
Maksim Sestic


-- 
View this message in context: 
http://www.nabble.com/MapGuide-Automated-Tiling-Engine-1.2-tf4517799s16610.html#a13159088
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


Re: [mapguide-users] Error when instantiating a Map via MgMap.Open() method

2007-10-11 Thread Maksim Sestic

My oh my, I would have never guessed it... :-) Works fine now, thanks Jackie.
My first though was that MgMap.Create() method actually creates new MgMap.

Regards,
Maksim Sestic


Jackie Ng wrote:
> 
> Open() is for opening a runtime map. This is usually a map from an already
> initialized weblayout.
> 
> If you are trying to instantiate maps outside of the ajax viewer, you
> should be using the Create() method instead.
> 
> - Jackie
> 
> 
> 
> Maksim Sestic wrote:
>> 
>> Hi all,
>> 
>> It's about MGE 2008 and instantiating MpMap type via MgMap.Open() method.
>> It throws an exception saying that "Resource was not found". I tried
>> various types of parameters on overloaded Open method and none of them
>> worked, throwing the same exception. Necessary connection and services
>> were instantiated just fine. It always dies at the MgMap.Open(...) line:
>> 
>> (Method 1 - via Library ResourceIdentifier)
>> Dim svc As MgResourceService = CType(Me.SiteConnection.CreateService(0),
>> MgResourceService)
>> Dim m As MgMap = New MgMap()
>> Dim id As String = "Library://...(path to my map)..."
>> Dim resId As MgResourceIdentifier = New MgResourceIdentifier(id)
>> m.Open(svc, id)
>> 
>> (Method 2 - via Map name)
>> Dim svc As MgResourceService = CType(Me.SiteConnection.CreateService(0),
>> MgResourceService)
>> Dim m As MgMap = New MgMap()
>> m.Open(svc, "NameOfMyMap")
>> 
>> (Method 3 - via Session + Map name)
>> Dim site As MgSite = New MgSite
>> site.Open(Me.UserInformation)
>> dim sessionId As String = site.CreateSession
>> Dim svc As MgResourceService = CType(Me.SiteConnection.CreateService(0),
>> MgResourceService)
>> Dim id As String = "Session:"+sessionId+"//NameOfMyMap"
>> Dim resId As MgResourceIdentifier = New MgResourceIdentifier(id)
>> m.Open(svc, id)
>> 
>> and few other methods but none of them worked :-)
>> 
>> Is there any help to this?
>> 
>> Regards,
>> Maksim Sestic
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-when-instantiating-a-Map-via-MgMap.Open%28%29-method-tf4606044s16610.html#a13157451
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


Re: [mapguide-users] MgByteReader and XmlSerializer question

2007-10-11 Thread Kenneth, GEOGRAF A/S
The .Net wrapper that is built from the MapGuide OS is very simple and 
only passes messages onto
the native Dll files. This means that a wrapper can use either 
Enterprise or Open Source, depending on what

native Dll's are present.

This means that you may use a custom Open Source wrapper for the 
Enterprise API.


If you want to be restrictive, there are user administration avalible 
within the MapGuide Server.


Regards, Kenneth, GEOGRAF A/S



Maksim Sestic skrev:

Kenneth, I'm stuck with commercial version of MGE... So, basically, What I
See Is What I Get :-)

My intention was to build a small .NET wrapper to offer some neatly picked
functionality to 3rd party developers leaning on present MGE implementation.
I can't let them browse data repositories as they will since I need to keep
certain data "locked" on server side and actually never let the client
developer persist a full dataset copy with them. This .NET wrapper was
supposed to serve as an additional layer of protection between MGE API and
potential 3rd party APIs/implementations. But it's purpose is not
restrictive in nature, it would also enable MGE administrators create and
modify maps/layers/etc. apart from external solutions depending on it.

I'm currently working on exposing my .NET wrapper's methods to PHP users via
COM interop. Present PHP's function for direct connecting to .NET objects is
not working as expected. 


As you may already guessed what's it all about - it's a city GIS used by
dozens of both municipal and infrastructure departments regionwide.

Regards,
Maksim Sestic



Kenneth, GEOGRAF A/S wrote:
  

:D yes, that would be one way of coping with it.

If you are up to the task, you can compile the mapguide server on your 
own machine.

After compilation, it will create the .cs files required for the wrapper.
You can modify those to work as you want, but be aware that you will 
need to keep your modifications up to date yourself.


I am working on an alternate API, that uses Xml serialization to load 
and save the objects, but its still needs some work.


Regards, Kenneth, GEOGRAF A/S



Maksim Sestic skrev:


Hi Kenneth,

Thanks for the tip, it saved me hours of trying. This also means that we
need to write our own .NET wrappers over existing .NET wrappers to
include
proper object de/serialization... :-)

Regards,
Maksim Sestic


Kenneth, GEOGRAF A/S wrote:
  
  

Yes, you are missing a few key pieces of information.



  
  

___
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] Error when instantiating a Map via MgMap.Open() method

2007-10-11 Thread Jackie Ng

Open() is for opening a runtime map. This is usually a map from an already
initialized weblayout.

If you are trying to instantiate maps outside of the ajax viewer, you should
be using the Create() method instead.

- Jackie



Maksim Sestic wrote:
> 
> Hi all,
> 
> It's about MGE 2008 and instantiating MpMap type via MgMap.Open() method.
> It throws an exception saying that "Resource was not found". I tried
> various types of parameters on overloaded Open method and none of them
> worked, throwing the same exception. Necessary connection and services
> were instantiated just fine. It always dies at the MgMap.Open(...) line:
> 
> (Method 1 - via Library ResourceIdentifier)
> Dim svc As MgResourceService = CType(Me.SiteConnection.CreateService(0),
> MgResourceService)
> Dim m As MgMap = New MgMap()
> Dim id As String = "Library://...(path to my map)..."
> Dim resId As MgResourceIdentifier = New MgResourceIdentifier(id)
> m.Open(svc, id)
> 
> (Method 2 - via Map name)
> Dim svc As MgResourceService = CType(Me.SiteConnection.CreateService(0),
> MgResourceService)
> Dim m As MgMap = New MgMap()
> m.Open(svc, "NameOfMyMap")
> 
> (Method 3 - via Session + Map name)
> Dim site As MgSite = New MgSite
> site.Open(Me.UserInformation)
> dim sessionId As String = site.CreateSession
> Dim svc As MgResourceService = CType(Me.SiteConnection.CreateService(0),
> MgResourceService)
> Dim id As String = "Session:"+sessionId+"//NameOfMyMap"
> Dim resId As MgResourceIdentifier = New MgResourceIdentifier(id)
> m.Open(svc, id)
> 
> and few other methods but none of them worked :-)
> 
> Is there any help to this?
> 
> Regards,
> Maksim Sestic
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-when-instantiating-a-Map-via-MgMap.Open%28%29-method-tf4606044s16610.html#a13154041
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


[mapguide-users] problems with config paths in MgOS 1.2

2007-10-11 Thread gisnewbie

I have installed mapguide open source successfully on windows vista running
iis 7.0. The admin interface of mapguide is working without any problems and
so i could load the Sheboygan.mgp file successfully. I configure the
dotnetviewerexample and got running the ajaxviewer, but there is no map
loaded within the ajax viewer. There are no error messages in log files.

I have also tried running mapagent enumerateResources function and there i
get the following error:
Configuration file "C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\mapagent../webconfig.ini"
cannot be found or cannot be opened.
Configuration file "C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\mapagent../webconfig.ini"
cannot be found or cannot be opened. Exception occured in method
MgConfiguration.LoadConfiguration at line 110 in file
c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\common\foundation\System/Configuration.cpp

pleas help!
gisnewbie
-- 
View this message in context: 
http://www.nabble.com/problems-with-config-paths-in-MgOS-1.2-tf4606575s16610.html#a13153732
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


Re: [mapguide-users] Error when instantiating a Map via MgMap.Open() method

2007-10-11 Thread Maksim Sestic

As a quick note - I'm referencing MapGuideDotNetApi.dll.

-- 
View this message in context: 
http://www.nabble.com/Error-when-instantiating-a-Map-via-MgMap.Open%28%29-method-tf4606044s16610.html#a13153346
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


RE: [mapguide-users] MapGuideDotNetApi error

2007-10-11 Thread Jonio, Dennis (Aviation)
Kenneth,
First off ... thank you for your response. Yes, I was terse. I
apologize.

I already had four distinct MG application running under the
"standard-out-of-the-box" MG configuration and all works very well. So
this additional app failure was a complete surprise. I included a bunch
of .NET AJAX 1.0 functionality in this app so I assumed(for a awhile)
that that was somehow the issue. It was not.

To get to the point ... I did not gracefully shutdown MG server and IIS
when I did the copy over to the server from the development box. During
my "sanity-check" I did then in fact shut everything down properly.
After doing this there remained 2 extraneous MG processes! (I kept
getting this "lock" on ACE.dll). I have absolutely no idea how or why.
After killing those and copying over my new app and starting things back
up PROPERLY all worked well. 

All my fault ... and another lesson learned about the "robustness" of
IIS.

BTW: The .NET AJAX 1.0 Toolkit extenders really make working in that
taskPane space manageable. 

Again, thank you for your response.

dennis


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth,
GEOGRAF A/S
Sent: Thursday, October 11, 2007 2:42 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] MapGuideDotNetApi error

You are not being very informative.
I have seen this error when the dll files are missing from the bin 
folder, or the IIS server folder is not setup for .Net 2.0.

Regards, Kenneth, GEOGRAF A/S



djonio skrev:
> Type 'OSGeo.MapGuide.MgInvalidRepositoryTypeException' in Assembly
> 'MapGuideDotNetApi, Version=1.1.0.301, Culture=neutral,
PublicKeyToken=null'
> is not marked as serializable.
>
> Has anyone solved this issue?
>   
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


E-mails are automatically scanned for viruses using McAfee.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Error when instantiating a Map via MgMap.Open() method

2007-10-11 Thread Maksim Sestic

Hi all,

It's about MGE 2008 and instantiating MpMap type via MgMap.Open() method. It
throws an exception saying that "Resource was not found". I tried various
types of parameters on overloaded Open method and none of them worked,
throwing the same exception. Necessary connection and services were
instantiated just fine. It always dies at the MgMap.Open(...) line:

(Method 1 - via Library ResourceIdentifier)
Dim svc As MgResourceService = CType(Me.SiteConnection.CreateService(0),
MgResourceService)
Dim m As MgMap = New MgMap()
Dim id As String = "Library://...(path to my map)..."
Dim resId As MgResourceIdentifier = New MgResourceIdentifier(id)
m.Open(svc, id)

(Method 2 - via Map name)
Dim svc As MgResourceService = CType(Me.SiteConnection.CreateService(0),
MgResourceService)
Dim m As MgMap = New MgMap()
m.Open(svc, "NameOfMyMap")

(Method 3 - via Session + Map name)
Dim site As MgSite = New MgSite
site.Open(Me.UserInformation)
dim sessionId As String = site.CreateSession
Dim svc As MgResourceService = CType(Me.SiteConnection.CreateService(0),
MgResourceService)
Dim id As String = "Session:"+sessionId+"//NameOfMyMap"
Dim resId As MgResourceIdentifier = New MgResourceIdentifier(id)
m.Open(svc, id)

and few other methods but none of them worked :-)

Is there any help to this?

Regards,
Maksim Sestic

-- 
View this message in context: 
http://www.nabble.com/Error-when-instantiating-a-Map-via-MgMap.Open%28%29-method-tf4606044s16610.html#a13152257
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


Re: [mapguide-users] MgByteReader and XmlSerializer question

2007-10-11 Thread Maksim Sestic

Kenneth, I'm stuck with commercial version of MGE... So, basically, What I
See Is What I Get :-)

My intention was to build a small .NET wrapper to offer some neatly picked
functionality to 3rd party developers leaning on present MGE implementation.
I can't let them browse data repositories as they will since I need to keep
certain data "locked" on server side and actually never let the client
developer persist a full dataset copy with them. This .NET wrapper was
supposed to serve as an additional layer of protection between MGE API and
potential 3rd party APIs/implementations. But it's purpose is not
restrictive in nature, it would also enable MGE administrators create and
modify maps/layers/etc. apart from external solutions depending on it.

I'm currently working on exposing my .NET wrapper's methods to PHP users via
COM interop. Present PHP's function for direct connecting to .NET objects is
not working as expected. 

As you may already guessed what's it all about - it's a city GIS used by
dozens of both municipal and infrastructure departments regionwide.

Regards,
Maksim Sestic



Kenneth, GEOGRAF A/S wrote:
> 
> :D yes, that would be one way of coping with it.
> 
> If you are up to the task, you can compile the mapguide server on your 
> own machine.
> After compilation, it will create the .cs files required for the wrapper.
> You can modify those to work as you want, but be aware that you will 
> need to keep your modifications up to date yourself.
> 
> I am working on an alternate API, that uses Xml serialization to load 
> and save the objects, but its still needs some work.
> 
> Regards, Kenneth, GEOGRAF A/S
> 
> 
> 
> Maksim Sestic skrev:
>> Hi Kenneth,
>>
>> Thanks for the tip, it saved me hours of trying. This also means that we
>> need to write our own .NET wrappers over existing .NET wrappers to
>> include
>> proper object de/serialization... :-)
>>
>> Regards,
>> Maksim Sestic
>>
>>
>> Kenneth, GEOGRAF A/S wrote:
>>   
>>> Yes, you are missing a few key pieces of information.
>>>
>>> 
>>
>>   
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/MgByteReader-and-XmlSerializer-question-tf4587994s16610.html#a13150828
Sent from the MapGuide Users mailing list archive at Nabble.com.

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