Re: [mapguide-users] Integration with Google Maps

2009-02-18 Thread Stefan Dalakov
If you are serving it with MGOS, and if the problem is bandwidth or loading time you can switch to kmz format, as Jackie says. If you have it already produced, then you can save as kmz within GE, but I guess the problem will be the complexity - GE has difficulty handling big files, at least on

Re: [mapguide-users] window open

2009-02-18 Thread DYUTI
hi all. any one plss tell me how to generate spatial filter. any suggestions will be appreciated thanks and Regards dyuti DYUTI wrote: > > Thank u mark i'll try this > > regards > dyuti > > Mark Pendergraft wrote: >> >> Here are 2 ways to accomplish what you are trying to do: >

Re: [mapguide-users] Properties Value

2009-02-18 Thread staniz
it's ok, I will wait for the solution. staniz wrote: > > > I am using MGE and MG Studio 2008 and have layer and sdf file as polygon > feature type. In my table there is one field, a Property Name = > "Population" and Property Type = "double", I checked/selected this > property in "Propertie

Re: [mapguide-users] ASP.NET MG2.0.2 - SelectFeatures Filter

2009-02-18 Thread Jackie Ng
What if you try single-quoting the numeric values? - Jackie Matteo wrote: > > Hi, > I have a point layer with filter that i set from MapGuide Studio 2009 > (the filter is "( Codec ='HR') AND direction = 'B->A' and LQ <= 2.50 > and MNC=10 and valid =01 and ValidTestInfo =01") > Now I mu

Re: [mapguide-users] Integration with Google Maps

2009-02-18 Thread Jackie Ng
MapGuide can serve compressed kml (kmz), which is many orders of magnitude smaller in size. - Jackie Sergio Nistal Calvo wrote: > > > Hi, > > > > I have a kml file format, but its size is greater than 10 MB. How can I > reduce its size or simplify in order to upload to Google Maps? I've s

Re: [mapguide-users] Mapguide Memory usage

2009-02-18 Thread Jamo
Thanks lolob that is a good guide. I have checked over the server logs and find this error. Is the only way around this to restart service every hour or so it seems to happen quiet regulary and this is without any major traffic, only 1-2 test users at the moment doesn't seem right. <200

RE: [mapguide-users] Source Code for GT - Test Application

2009-02-18 Thread djonio
Steve G, Glad to hear that you got Scribble working. I do mention this point in the comments but just in case you missed it. The Scribble markup code is really a knock-off of "gt". I has been some time since it was written and my memory is not so good but I think I only added the code for circle

[mapguide-users] Integration with Google Maps

2009-02-18 Thread Sergio Nistal Calvo
Hi, I have a kml file format, but its size is greater than 10 MB. How can I reduce its size or simplify in order to upload to Google Maps? I've seen online a post that says you can simplify it with Manifold GIS, but the program is not free. Thanks.

RE: [mapguide-users] Source Code for GT - Test Application

2009-02-18 Thread Andy Morsell
I think you also need the Redding.mgp package that has the invoke URL's already setup in the main web layout. You can download it here: http://www.spatialgis.com/Redding.mgp Also, here is a readme file that I dug up: In order to setup the application, you will need to: 1. extract the gt.zip f

RE: [mapguide-users] Properties Value

2009-02-18 Thread Ivan Milicevic
Could you please wait till tomorrow, it's midnight here and I'm out of License server. -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of staniz Sent: Wednesday, February 18, 2009 7:39 PM To: mapguide-users@lists.osg

Re: [mapguide-users] Create programmatically a map

2009-02-18 Thread Kenneth Skovhede, GEOGRAF A/S
There are/were problems reading data using the MgByteReader, as it would not return more than 8K. You are using the native API, which, IMO, has some quirks. Maestro uses the http interface to store the file, so that is equivalent to posting using the webform. Regards, Kenneth Skovhede, GEOGRAF

RE: [mapguide-users] Source Code for GT - Test Application

2009-02-18 Thread Steve G
Thanks a bunch. Any quick instructions on where to install and what files to install if I am just considering the shared markup tool? I am assuming just install in a folder in C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions\www and create an invoke URL (will perhaps need some additi

Re: [mapguide-users] Properties Value

2009-02-18 Thread staniz
Ivan, I don't know how to change the property type after connecting to sdf file, could you give the steps using Map 3D to do that. thank for your help staniz staniz wrote: > > > I am using MGE and MG Studio 2008 and have layer and sdf file as polygon > feature type. In my table there is one f

[mapguide-users] Can mapguide be used for mobile application?

2009-02-18 Thread vibhu gupta
Hi, Can i use mapguide to create a commercial map based application for mobile. If yes, where does mapguide sit in the whole architecture of a J2ME application. Regards, spag ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.os

RE: [mapguide-users] Problems with ODBC to .csv

2009-02-18 Thread Dave Wilson
That is the bug. Dave From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Micho Gar Sent: Wednesday, February 18, 2009 3:51 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Problems with ODBC to .csv Hi, I managed to connect thr

Re: [mapguide-users] Create programmatically a map

2009-02-18 Thread sekko970
The file is 21K. I tryed also to load it directly from Maestro, and I have had no problem. -- Kenneth Skovhede, GEOGRAF A/S wrote: > > Just to be sure... > > The xml you posted is the ResourceH

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread sekko970
Tryed, but no changes. -- Ivan Milicevic wrote: > > Hm... Try pass byteReader object instead of newLayoutDef.GetReader(). > > > > > PHP SAMPLE: > // Get a resource identifier for the library

Re: [mapguide-users] Create programmatically a map

2009-02-18 Thread Kenneth Skovhede, GEOGRAF A/S
Just to be sure... The xml you posted is the ResourceHeader, and not the ResourceContent, so it does not really show what the problem may be. The error from the log states that the runtime map is not created, which is strange because a WebLayout cannot reference a runtime map. The other error y

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread Ivan Milicevic
Hm... Try pass byteReader object instead of newLayoutDef.GetReader(). PHP SAMPLE: // Get a resource identifier for the library $resourceID = new MgResourceIdentifier('Library://'); // Read the new content from a file $byteSource = new MgByteSource('C:\Data\Repository\Content.xml'); // Put t

RE: [mapguide-users] Invisile layer

2009-02-18 Thread Ivan Milicevic
If no then you can set up virtually impossible filter condition in Studio for that line layer. If yes then you must do some really HC programing... -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Peter Filip Sent:

RE: [mapguide-users] Regarding How to set the Initial Map View

2009-02-18 Thread ravinder.singh
Thanks Kenneth earlier I was referring MaestroAPI dll from some other location. Problem is solved now. Regards, Ravinder From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Kenneth Skovhede, GEOGRAF A/S S

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread sekko970
I'm sorry Ivan, is a copy/paste error! Ivan Milicevic wrote: > > Is it double "r" in resID copy/paste error? > > -Original Message- > From: mapguide-users-boun...@lists.osgeo.org > [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of sekko970 > Sent: Wednesday, February 18, 20

Re: [mapguide-users] Regarding How to set the Initial Map View

2009-02-18 Thread Kenneth Skovhede, GEOGRAF A/S
The "GetSpatialExtent" method is new, so you have to use the MaestroAPI.dll from thre preview binaries or grab them from the folder where you installede Maestro. The SpatialContext is likely to contain wrong information (eg, just extent of the entire coordinate system). Regards, Kenneth Skov

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread Ivan Milicevic
Is it double "r" in resID copy/paste error? -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of sekko970 Sent: Wednesday, February 18, 2009 3:20 PM To: mapguide-users@lists.osgeo.org Subject: RE: [mapguide-users] Crea

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread sekko970
Each try is failed for the following error: 'Invalid resource type'. Dim resID As New MgResourceIdentifier("Librarry://.../" & MyLayout & "." & MgResourceType.WebLayout) Dim enc As New System.Text.UTF8Encoding(False) Dim newLayoutDef As New MgByteSource(enc.GetBytes(newLayoutXML.OuterXml), enc.Ge

RE: [mapguide-users] Invisile layer

2009-02-18 Thread Peter Filip
Let's say no, but what if yes ? Ivan Milicevic wrote: > > Would you like to select it later? > > -Original Message- > From: mapguide-users-boun...@lists.osgeo.org > [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Peter Filip > Sent: Wednesday, February 18, 2009 2:34 PM >

RE: [mapguide-users] Invisile layer

2009-02-18 Thread Ivan Milicevic
Would you like to select it later? -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Peter Filip Sent: Wednesday, February 18, 2009 2:34 PM To: mapguide-users@lists.osgeo.org Subject: [mapguide-users] Invisile layer

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread Ivan Milicevic
I'm guessing that you must update repository after creating new layout. Look at http://mapguide.osgeo.org/files/mapguide/docs/2.0/d8/de1/class_mg_resour ce_service_e0294dc308ecc4708b79d493086f210b.htm -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-

[mapguide-users] Invisile layer

2009-02-18 Thread Peter Filip
Is there any possibility to set a line layer invisible ? Fully transparent. -- View this message in context: http://n2.nabble.com/Invisile-layer-tp2346865p2346865.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users

[mapguide-users] ASP.NET MG2.0.2 - SelectFeatures Filter

2009-02-18 Thread Matteo
Hi, I have a point layer with filter that i set from MapGuide Studio 2009 (the filter is "( Codec ='HR') AND direction = 'B->A' and LQ <= 2.50 and MNC=10 and valid =01 and ValidTestInfo =01") Now I must select some whit this filter "( Codec ='HR') AND direction = 'B->A' and LQ <= 2.50

Re: [mapguide-users] Get and edit coordinates of object

2009-02-18 Thread Matteo
Thank you very much Regards Matteo Kenneth Skovhede, GEOGRAF A/S wrote: > > What do you mean by "I get the object"? > If you have the object, there should be some sort of "GetCoordinates" > call. > > If you want to perform interactive edits of objects in the browser, > try to look at the Open

RE: [mapguide-users] Regarding How to set the Initial Map View

2009-02-18 Thread ravinder.singh
Hi Kenneth, I have gone thru the file you referred. I have problem in Topology.Geometries.IEnvelope env = ldef.GetSpatialExtent(); at line no 1912 GetSpatialExtent() method is not coming in in ldef object I created. And then I tried to write just the following code OSGeo.MapGuide.Maestr

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread sekko970
Sure, this is the related record in error log: <2009-02-18T12:07:11> Administrator Error: Resource was not found: Session:36fb9200--1000-8000-000bcd727323_en_7F010AFC0AFB0AFA//new.Map StackTrace: - MgResourceServiceHandler.ProcessOperation line 80 file d:\build\mapgu

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread Ivan Milicevic
Very interesting... Can you check mapguide error log? Is there any records related with this problem? -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of sekko970 Sent: Wednesday, February 18, 2009 12:41 PM To: mapgui

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread sekko970
Below you can see the new map and layout XML created from http://localhost/mapguide/mapagent/index.html before and after the saving from Maestro (is equals for both). - http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="ResourceList-1.0.0.xsd"> - Library://.../newMa

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread Ivan Milicevic
Please, before you open layout and map in Maestro go to: http://localhost/mapguide/mapagent/index.html -> go to Resource-->GetResourceContent--> and type correct resource ID on right side. See is there any strange things in output XML file. Compare it after saving it in Maestro. -Original Mess

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread sekko970
This is my problem: I have created programmatically a map (and its layout) using MG .Net web API. After creation, the new map and layout are visible in MG Maestro, and using the 'Show in browser" button are correctly shown in browser. The problem happens when I load the map directly from brows

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread Ivan Milicevic
Can you write pseudo code of your task? What do you want to do? I need little more information about your problem. -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of sekko970 Sent: Wednesday, February 18, 2009 11:42

Re: [mapguide-users] Problems with ODBC to .csv

2009-02-18 Thread Micho Gar
Hi, I managed to connect through ODBC, but I do not see the items on the map, to create the layer said: An exception occurred in FDO component. Table does not exist for class' Default: puntosGPS_csv ', you know that you can be? Thank you all. 2009/2/17 Dave Wilson > I think you will find t

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread sekko970
Hi Ivan, below, you can see my code to create the new map: Dim resID As New MgResourceIdentifier(Library://.../maps/MyMap.MapDefinition) Dim enc As New System.Text.UTF8Encoding(False) Dim newMapDef As New MgByteSource(enc.GetBytes(XMLMapTemplate.OuterXml), enc.GetByteCount(XMLMapTemplate.Outer

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread Ivan Milicevic
Can you provide us code sample? -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of sekko970 Sent: Wednesday, February 18, 2009 10:38 AM To: mapguide-users@lists.osgeo.org Subject: RE: [mapguide-users] Create programm

Re: [mapguide-users] Regarding How to set the Initial Map View

2009-02-18 Thread Kenneth Skovhede, GEOGRAF A/S
Please have a look at the Maestro code: http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Maestro/ResourceEditors/MapEditor.cs#L1895 It shows how to read the extent of data, as well as how to set it. Regards, Kenneth Skovhede, GEOGRAF A/S ravinder.si...@birlasoft.com skrev: Hi,

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread sekko970
Hi Ivan, thanks for your suggestion, but my problem is not to refresh the viewer to show the map just created, but is the correct creation of new map and layout. I think to have found the origin of my problem, but I don't understand the error: Argument is null. Exception occurred in method MgWe

RE: [mapguide-users] Properties Value

2009-02-18 Thread Ivan Milicevic
Hello, You can directly connect to the SDF file via Map 3D. Just find it in repository folder under data files. -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of staniz Sent: Wednesday, February 18, 2009 4:40 AM To

RE: [mapguide-users] Create programmatically a map

2009-02-18 Thread Ivan Milicevic
Hello, You can change href of mapFrame. Here is sample code. var mapa = "cijevi"; //defines map name var stringMape = "Library%3a%2f%2fPROJEKTI%2fSUPRANET%2fMAPE%2f" + mapa; var hrefMapa = "http://172.21.10.3/mapguide/mapviewernet/mapframe.aspx?MAPDEFINITION="; + stringMape + ".MapDefinition&TYPE

RE: [mapguide-users] Regarding How to set the Initial Map View

2009-02-18 Thread ravinder.singh
Hi, Although it solved out my problem of setting the initial map View at Design time in maestro. Now I have written the code to set the layer of map dynamically by using maestro api, the map is showing correct layer in viewer. Now I want to set the Initial Map View (Lower Left and Upper Right

Re: [mapguide-users] Create programmatically a map

2009-02-18 Thread sekko970
Hi Kenneth, I need again your help about my problem. I think the problem is that after new map run-time creation in library repository, I cannot use its map definition to create its web layout. How can I assign the new map to the layout? Thanks again, Fabio