Re: [mapguide-users] XML Parser error for Feature Sources

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
You can save to either repository, depending on what resourceIdentifier you give. The class ResourceIdentifier can help you construct/manipulate a ResourceIdentifier, if you find it annoying to work with strings. As for the "live map", you will likely need to be aware of the difference between

Re: [mapguide-users] Patch to change the active tool Cursor in ajax viewer

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
I agree that this would be nice to have as a default. There exists an implementation here: http://trac.osgeo.org/mapguide/wiki/CodeSamples/JavaScript/CustomCursors Could you update that one to better match your implementation? The easiest way to get this into the next release, is to make it in "

Re: [mapguide-users] Runtime map problem

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
Instead of re-posting the original question, could you try to explain what parts of my previous reply that are unclear or wrong? http://www.nabble.com/How-to-Load-Runtime-map-in-mapviewerajax-to20704038.html#a20769349 Regards, Kenneth Skovhede, GEOGRAF A/S padmini godavarthi skrev: Hi , iam

Re: [mapguide-users] Permanent changes in data - Solved

2008-12-02 Thread Stefan Dalakov
I solved it. The problem was that MG Studio shows that the ID field is of type "Double". In the DBF file (as this is a shp Feature source) the ID field is declared as N,11,0 So I substituted *MgDoubleProperty *with* **MgInt32Property* and it works now. Stefan Dalakov Kenneth Skovhede, GEOGRA

Re: [mapguide-users] Runtime map problem

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
To build a map, you must have all the components: 1. FeatureSource, references data 2. LayerDefinition, references a FeatureSource 3. MapDefinition, references multiple LayerDefinitions 4. WebLayout, references a MapDefinition All these items must be in a repository (either Library or Session),

[mapguide-users] MG Studio 2009 and OraKing provider 8.5 crashing mgserver

2008-12-02 Thread djonio
Howdy, >From the Event log: Faulting application mgserver.exe, version 2.0.2.3011, faulting module KingOracleProvider.dll, version 0.8.5.0, fault address 0x0005c079. >From the Error.log: StackTrace: - MgMappingUtil.StylizeLayers line 786 file d:\build\mapguide_open_source_v2.0\build_30.11\mgde

Re: [mapguide-users] Permanent changes in data

2008-12-02 Thread Zac Spitzer
I just bumped that bug to critical after some reflection as that is a serious potential dataloss bug IMHO On Tue, Dec 2, 2008 at 8:08 AM, Kenneth Skovhede, GEOGRAF A/S <[EMAIL PROTECTED]> wrote: > You could be affected by this bug: > http://trac.osgeo.org/mapguide/ticket/649 > > Otherwise, try to

Re: [mapguide-users] Runtime map problem

2008-12-02 Thread padmini godavarthi
Hi, Thanku very much for ur help i tried this code but i got an error in the line Dim tempid as ResourceIdentifier = new ResourceIdentifier(Guid.NewGuid(), OSGeo.MapGuide.MaestroAPI.ResourceTypes.WebLayout, con.SessionID) because of this Guid.NewGuid() 1) Actually what is this? 2) Which paramat

Re: [mapguide-users] Runtime map problem

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
Its a function that creates a GUID (Globally Unique ID). It creates a string like "xcsdfasd-sdfasdf-dsdfasf" but ensures that it is mathematically certain that you will not get duplicates, even if you call it multiple times on multiple machines. For the example I sent, you can replace it with an

Re: [mapguide-users] XML Parser error for Feature Sources

2008-12-02 Thread cagray
Thats works great. I had written a web app which allows a user to completely customise the appearances of layers. Behind the scenes it just edits the xml but I suspect the MaestroAPI could do this all for me without me touching the xml. I need to look into it more as I need to be able to save to

Re: [mapguide-users] Runtime map problem

2008-12-02 Thread padmini godavarthi
Hi, Thanks for u r reply actually i wrote the code as Dim host As New Uri("http://localhost/mapguide/mapagent/mapagent.fcgi";) Dim conn As New HttpServerConnection(host, "Administrator", "admin", "en", True) Dim res As New ResourceIdentifier("Filebased data/Maps/mapdata", Re

[mapguide-users] Patch to change the active tool Cursor in ajax viewer

2008-12-02 Thread Bruno Scott
Here is a small patch to make the map cursor reflect the active toolbar action. function UpdateMapActionCursor(action) { var strCursor = "auto"; switch(action) { case 1: /*pan*/strCursor = "url('../stdicons/icon_pan.cur'), pointer";break; case 9: /*Zoom window*/st

Re: [mapguide-users] Permanent changes in data

2008-12-02 Thread Stefan Dalakov
It is something stupid, but I cannot spot it... Everything works if I omit the bold part of the code : function MakeLine($name, $x0, $y0 , $x1, $y1) { $propertyCollection = new MgPropertyCollection(); *$cntr = (double) 11.0 ; $idProperty = new MgDoubleProperty("ID",$cntr); $propert

RE: [mapguide-users] XML Parser error for Feature Sources

2008-12-02 Thread Greenhough, Jamie
Thanks for the tip about Maestro chm file. I had the same problems until I 'Unblocked' the file just now.! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of cagray Sent: Tuesday, December 02, 2008 1:29 AM To: mapguide-users@lists.osgeo.org Subject: Re: [mapg

Re: [mapguide-users] Permanent changes in data

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
Could it be that "ID" is the primary key, and if you insert two features with ID 11, it breaks? Or that the ID is auto-assigned, and thus not assignable from MapGuide/FDO? btw, things tend to work better with MapGuide if your primary key is an integer. Regards, Kenneth Skovhede, GEOGRAF A/S

Re: [mapguide-users] Runtime map problem

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
I forgot to save the weblayout in the code below :( Updated version is: 'Setup connection Dim host As New Uri("http://localhost/mapguide/mapagent/mapagent.fcgi";) Dim conn As New HttpServerConnection(host, "Administrator", "admin", "en", True) 'You have to change the string below to point at

Re: [mapguide-users] XML Parser error for Feature Sources

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
I have now added a small note on the page hinting the solution. Regards, Kenneth Skovhede, GEOGRAF A/S Greenhough, Jamie skrev: Thanks for the tip about Maestro chm file. I had the same problems until I 'Unblocked' the file just now.! -Original Message- From: [EMAIL PROTECTED] [mailt

[mapguide-users] Runtime map problem

2008-12-02 Thread padmini godavarthi
Hi , iam using mapguide open source 2.0( with .Net 2.0 + IIS 5.1) Iam using dotnet viewer sample while running the application i observed that the layout path given in the application. as String webLayout = "Library://Samples/Sheboygan/Layouts/SheboyganAspTiled.WebLayout"; it works but now i

RE: [mapguide-users] Runtime map problem

2008-12-02 Thread Maksim Sestic
application. >>>>> >>>>> as >>>>> >>>>> String webLayout = >>>>> "Library://Samples/Sheboygan/Layouts/SheboyganAspTiled.WebLayout"; >>>>> >>>>> it works but now i want to create

RE: [mapguide-users] XML Parser error for Feature Sources

2008-12-02 Thread Maksim Sestic
mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/XML-Parser-error-for-Feature-Sources-tp20770245p20 787959.html Sent from the MapGuide Users mailing list archive at Nabble.co

Re: [mapguide-users] XML Parser error for Feature Sources

2008-12-02 Thread Kenneth Skovhede, GEOGRAF A/S
f this Email is prohibited. Please notify us of the error in communication by return email and destroy all copies of this Email. Thank you. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users __ Information from ESET NOD32 Anti

[mapguide-users] Uploading Shapefile to Map for Immediate Display Problem

2008-12-02 Thread kevin_t
I like to set it up so that people can upload shapefiles from their computer to my mapguide map and have it immediately add it as a layer to my map and show up on screen immediately. Does anybody know how to implement this functionality? Or know where to download one that works? I have inherite

Re: [mapguide-users] Uploading Shapefile to Map for Immediate DisplayProblem

2008-12-02 Thread Bob Basques
We've attacked this problem here a little differently. The idea was to set up a location (per data custodian) to overwrite a previously set up and configured SHP file for web publication. Basically we go to the trouble of setting up things ahead of time for stylization and symbology and once th

RE: [mapguide-users] Uploading Shapefile to Map for Immediate DisplayProblem

2008-12-02 Thread Greenhough, Jamie
Hey Kevin, I checked out your site. I am working on very similar functionality. My users need to be able to ADD, DELETE, and EDIT (stylize) layers. I used the Maestro API to implement the ADD functionality. See one of my previous messages for the code snippet here: http://www.nabble.com/DWGLoadPro

Re: [mapguide-users] Overview Map on geomapgis

2008-12-02 Thread ajid1980
May be Ya.. So .. How i wanna make overview map in ajaxviewer? Then How i wanna create *.mwf ?? -- View this message in context: http://www.nabble.com/Overview-Map-on-geomapgis-tp20765927p20804384.html Sent from the MapGuide Users mailing list archive at Nabble.com.

[mapguide-users] Geomap GIS Publishing

2008-12-02 Thread ajid1980
hai all.. Anyone used Geomap GIS Publishing?? How do it on Mapguide Open Source?? plz teach me how?? thanx -- View this message in context: http://www.nabble.com/Geomap-GIS-Publishing-tp20804421p20804421.html Sent from the MapGuide Users mailing list archive at Nabble.com. _

[mapguide-users] Example for drawing line from point to point ....?

2008-12-02 Thread Jamo181
Has anyone got any examples of shortest route, ie finding the neareast end point of a line network then highlighting the next one that is on route to the destination, basically like whereis or something? or has anyone got any idaes on how to code it? I will be able to create the line network it