[mapguide-users] Layer's selection Problem
Hi, iam using mapguide opensource 2.0 (with .net 2.0 +IIS 5.1) I have created a package using Oracle OSGEO FDO provider for Oracle and Mapguide Maestro. but while seeing the map byShow in browser the layers are does not selecting on map and the properties is not displaying even after i checked the option Features on layer are selectable in the map resource. Is anything i did wrong? Can u plz tell me the solution? Thanks and Regards, Padmini. -- View this message in context: http://n2.nabble.com/Layer%27s-selection-Problem-tp2352146p2352146.html 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] asp.net example of loading a webmapservice layer
Thanks Kenneth, thanks Dave for your Hints. Here is my effort. In line 139 I get an error, cause I don't know what to pass as header-parameter in objMGResourceService.SetResource(). In PHP it is null, in asp.net nothing does not work (MgDbXMLException). I tried to load the given temp.layerDefinition.xml. Do you know any examples on loading ogc stuff like catalogservices, wms, layers ... ? http://n2.nabble.com/file/n2352287/ogc_services.aspx.vb ogc_services.aspx.vb http://n2.nabble.com/file/n2352287/temp.FeatureSource.xml temp.FeatureSource.xml http://n2.nabble.com/file/n2352287/temp.LayerDefinition.xml temp.LayerDefinition.xml Looking forward to a solution, stoff -- View this message in context: http://n2.nabble.com/asp.net-example-of-loading-a-webmapservice-layer-tp2328300p2352287.html 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] Properties Value
Ivan, thank for your time and effort trying to solve my problem. So far I couldn't change the property type. I follow your instructions and also give full access to the sdf file, and copy the internal Sdf file to another folder, but still I couldn't change from decimal to Int32. The following error come when I apply change to the schema. The screennshot error : http://n2.nabble.com/file/n2352387/error1.jpg Ivan Milicevic wrote: Staniz, Here is instructions: 1. Go to http://code.google.com/p/fdotoolbox/downloads/list and download last version of thisexcellent piece of software made by Jackie. 2. run it and in project explorer: new-connect to sdf 3. Pick your file 4. The connectionshould be added in object explorer 5. Right clockon it and chose edit schema 6. Pick your population class and on right side of program (schema designer) change datatype of class Here is screenshot. -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of staniz Sent: Thursday, February 19, 2009 6:50 AM To: mapguide-users@lists.osgeo.org Subject: Re: [mapguide-users] Properties Value 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 Properties displayed in the viewer check box. when I select the polygon in the browser, then in the Properties frame appears Name Value 1. Population 454.00 (with 6 additional zeros), Actually the value for population is 454. How to fix and remove this additional 6 zeros? thank for help. staniz -- View this message in context: http://n2.nabble.com/Properties-Value-tp2341900p2351399.html 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 mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- View this message in context: http://n2.nabble.com/Properties-Value-tp2341900p2352387.html 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] Properties Value
Eh, It's look like that we found bug in FDO tools :( Try with this one: http://www.sl-king.com/Fdo2Fdo/download/download.html You cold create empty SDF file and define schema with new parameters the execute copying from one SDF to another. That worked for me (converting int to string). -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of staniz Sent: Thursday, February 19, 2009 12:04 PM To: mapguide-users@lists.osgeo.org Subject: RE: [mapguide-users] Properties Value Ivan, thank for your time and effort trying to solve my problem. So far I couldn't change the property type. I follow your instructions and also give full access to the sdf file, and copy the internal Sdf file to another folder, but still I couldn't change from decimal to Int32. The following error come when I apply change to the schema. The screennshot error : http://n2.nabble.com/file/n2352387/error1.jpg Ivan Milicevic wrote: Staniz, Here is instructions: 1. Go to http://code.google.com/p/fdotoolbox/downloads/list and download last version of thisexcellent piece of software made by Jackie. 2. run it and in project explorer: new-connect to sdf 3. Pick your file 4. The connectionshould be added in object explorer 5. Right clockon it and chose edit schema 6. Pick your population class and on right side of program (schema designer) change datatype of class Here is screenshot. -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of staniz Sent: Thursday, February 19, 2009 6:50 AM To: mapguide-users@lists.osgeo.org Subject: Re: [mapguide-users] Properties Value 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 Properties displayed in the viewer check box. when I select the polygon in the browser, then in the Properties frame appears Name Value 1. Population 454.00 (with 6 additional zeros), Actually the value for population is 454. How to fix and remove this additional 6 zeros? thank for help. staniz -- View this message in context: http://n2.nabble.com/Properties-Value-tp2341900p2351399.html 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 mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- View this message in context: http://n2.nabble.com/Properties-Value-tp2341900p2352387.html 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 mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Regarding Selection/Highlight Features on Layer Created at Run Time
Hi, I have created a layer at run time by using maestro API, my problem is that I have to select/highlight the multiple features on the map depending upon the search condition of user. I am using MGOS, c#, asp.net Thanks Regards, Ravinder * This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail at (administra...@birlasoft.com) and permanently delete this message and any attachments. Thank you. *___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] asp.net example of loading a webmapservice layer
Not sure what goes wrong, but Nothing or null is the right value. The MgDbXml exception should write an entry in the log file, stating what the value is. Regards, Kenneth Skovhede, GEOGRAF A/S stoff skrev: Thanks Kenneth, thanks Dave for your Hints. Here is my effort. In line 139 I get an error, cause I don't know what to pass as header-parameter in objMGResourceService.SetResource(). In PHP it is null, in asp.net nothing does not work (MgDbXMLException). I tried to load the given temp.layerDefinition.xml. Do you know any examples on loading ogc stuff like catalogservices, wms, layers ... ? http://n2.nabble.com/file/n2352287/ogc_services.aspx.vb ogc_services.aspx.vb http://n2.nabble.com/file/n2352287/temp.FeatureSource.xml temp.FeatureSource.xml http://n2.nabble.com/file/n2352287/temp.LayerDefinition.xml temp.LayerDefinition.xml Looking forward to a solution, stoff ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
RE: [mapguide-users] window open
In VB: Dim geom As MgGeometry Dim query As New MgFeatureQueryOptions() query.SetSpatialFilter(Geometry, geom, MgFeatureSpatialOperations.Intersects) Dim fr as MgFeatureReader = FeatService.SelectFeatures(LayerResId, Default:Temp, query) Note that geom is a mggeometry object used to query the layer. It could be a point, polygon, etc. LayerResId refers to the MgResourceIdentifier for a specified layer Default:Temp is the layer's schema name. In your case, you will probably want to create a MgPolygon from the point the user clicked. Then you will use the layer containing the points you want to display info about to get your LayerResId and default schema. -Mark -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI Sent: Wednesday, February 18, 2009 11:32 PM To: mapguide-users@lists.osgeo.org Subject: Re: [mapguide-users] window open 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: Option 1: You have a widget which inherits Fusion.Tool.Canvas. Use the mousedown even to get the coordinates clicked Then use var p = this.getMap().getEventPosition(e); to get the event position var gp = this.getMap().pixToGeo(p.x, p.y); to get the N/E at that position Then send your northing and easting to a PHP page and use it to generate a spatial filter (you may want to create a mgPolygon from your N/E as your spatialfilter in order to make sure you cover the point) Return the selected point, and send it to another page to create your pop up window populated with the relevant information. Option 2: Use the URL feature in studio to show a link. Use expressions to pass the points information into the link, and have the link directed to a custom page which will populate itself with the relevant data. Seeing as you are new to MapGuide, I would highly recommend option 2, as it requires very little coding and is very easy and user friendly. I have attached a photo of what the URL maptip looks like in my map. In the picture, the user hovers there mouse over a parcel and the maptip pops up with a link to the parcel's page on the county's website. All I have to do is pass the parcel number in the link, which is all done by studio. http://n2.nabble.com/file/n2315851/Untitled.jpg -Mark DYUTI wrote: hi..all... to open a new window while clicking on the points displayed on the map where i've to write the coding...In which file i've to make changes..what change i've to make...plss help me... thanksregards dyuti -- View this message in context: http://n2.nabble.com/window-open-tp2295629p2351717.html 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 mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Integration with Google Maps
When I want to simplyfing a layer I use ArcMap, however it doesn't simplify KML files. I guess that first you should simplyfing the layer with some software GIS desktop and then generate the kmz file. I know that arcMap has tools for generalizing layers, but likely some open source GIS desktop like gvsig or mapwindow could has it. Regards, Stefan Dalakov wrote: 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 my machine, so try optimizing the source data. MGOS serves not the whole file but a viewport so you will not have this problem if you use MGOS. I have not ran into a function of software I use, which allows processing(simplifying) of an already created KML. Stefan Dalakov Jackie Ng wrote: 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 seen online a post that says you can simplify it with Manifold GIS, but the program is not free. Thanks. _ ¿Eres un cotilla? Disfruta de todas las novedades en MSN Corazón http://entretenimiento.es.msn.com/corazon/ ___ 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 - Rodolfo Moreno CivilEng -- View this message in context: http://n2.nabble.com/Integration-with-Google-Maps-tp2349001p2353767.html 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] MySQL connection timing out
I'm having this same issue running MapGuide Server (Version 2.0.2.3011). It looks as though this issue has been resolved (for future a future release ?). I'm new to this community so I don't know how this works, but there is a service ticket for what looks like the same issue... http://trac.osgeo.org/mapguide/ticket/825 What does this mean for me? Do I have to wait for the next release or is there a fix out there somewhere? -Mark George McLean wrote: I left my development server last night thinking things were in pretty good shape but this morning when querying a map no features stored in MySQL and rendered using FDO were displayed. I see in Mapguide's error log that starting at 4:12AM the connection was lost to MySQL. Restarting theMySQL service did not fix the problem but restarting MG did. I have never seen this with MG 1.2 that I am aware of. I see there are settings in MySQL that can extend the connection timeout but I am not sure if this is the best solution. Has anyone else seen this issue and found a solution? I am not sure I completely understand what is happening here. Does MG make a leave a connection open to MySQL? Why would I get a query attempt every hour as shown in the log below? My first attempt to render a map occurred at 08:51:21 as show below but the connection was apparently broken by then? Thanks again, George McLean -- View this message in context: http://n2.nabble.com/MySQL-connection-timing-out-tp1816785p2353948.html 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] Fusion 2.0 domObj
I have a widget which I'm trying to port to the 2.0 beta and in the past I used this.domObj.appendChild() to add an input box to the widget, but now that code breaks saying that the domObj is null. I noticed in the EditableScale widget that an if (this.domObj) statement is used to see if the domObj is valid. My question is: Do I need to wait for a certain event to happen before creating this widget? Right now my code never adds the input box, but the EditableScale code does. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
RE: [mapguide-users] Integration with Google Maps
It's definitely not ideal though; for best results complex geometries need to be generalized at source, and the coordinate precision reduced to 6 or 7 decimal places. This can make a huge difference in perceived performance. The former can be done using the built-in functionality, but to control the coordinate precision you need to write your own services using the APIs. Jason -Original Message- From: Jackie Ng Sent: February-18-09 9:00 PM To: mapguide-users@lists.osgeo.org Subject: Re: [mapguide-users] Integration with Google Maps MapGuide can serve compressed kml (kmz), which is many orders of magnitude smaller in size. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Fusion 2.0 domObj
Ok, I'll try to highlight the major things for upgrading widgets ... Things that have changed in Widget sub-classes: * remove inheritance from Fusion.Tool.ButtonBase and add uiClass: Jx.Button * remove inheritance from Fusion.Tool.MenuBase and add uiClass: Jx.Menu * add setUiObject method for widgets that need to add stuff to a menu (see ViewOptions) * change initialize to initializeWidget * add isExclusive: true for widgets that are 'modal' on the map * change execute method to activate The key change that you need to understand, Mark, is the one about setUiObject. Due to an architectural change in how widgets are constructed, widgets typically do not have a domObj any more. What they do have is a uiObj which is some representation of the widget in the user interface. For reasons that escape me right now, the uiObj is not available when the widget is created so I added a setUiObject method to handle the association of a uiObj with a widget. The particular uiObj that is created for any given widget is controlled by its uiClass member (which is null by default). When a new widget is created, if it has a uiClass set then the framework creates a new instance of the uiClass and gives it to the widget via the setUiObject. If no uiClass is specified then element from the dom with the id that causes the widget to be created is passed (i.e. a reference to a div). The base Widget class provides a default implementation of setUiObject that does the grunt work of making buttons, menus etc work properly, especially if the widget is considered modal on the map. For widgets that are not using a uiClass (which would be your case), you will need to add a setUiObject method to your widget to handle inserting your ui into what was previously the domObj. I believe the code in initializeWidget that tests if domObj is valid is never used now and it is probably there by mistake. You should be able to copy the setUiObject method from EditableScale into your widget and replace the appendChild calls to do the appropriate thing. Hope this helps Paul On 19-Feb-09, at 11:55 AM, Mark Pendergraft wrote: I have a widget which I’m trying to port to the 2.0 beta and in the past I used “this.domObj.appendChild()” to add an input box to the widget, but now that code breaks saying that the domObj is null. I noticed in the EditableScale widget that an if (this.domObj) statement is used to see if the domObj is valid. My question is: Do I need to wait for a certain event to happen before creating this widget? Right now my code never adds the input box, but the EditableScale code does. ___ 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] Fusion 2.0 domObj
I had caught on about some of the other changes, but that if (this.domObj) statement in EditableScale.js threw me for a loop! Yes, the input is appended to the toolbar now. Thanks a bunch. -Mark -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Paul Spencer Sent: Thursday, February 19, 2009 10:10 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Fusion 2.0 domObj Ok, I'll try to highlight the major things for upgrading widgets ... Things that have changed in Widget sub-classes: * remove inheritance from Fusion.Tool.ButtonBase and add uiClass: Jx.Button * remove inheritance from Fusion.Tool.MenuBase and add uiClass: Jx.Menu * add setUiObject method for widgets that need to add stuff to a menu (see ViewOptions) * change initialize to initializeWidget * add isExclusive: true for widgets that are 'modal' on the map * change execute method to activate The key change that you need to understand, Mark, is the one about setUiObject. Due to an architectural change in how widgets are constructed, widgets typically do not have a domObj any more. What they do have is a uiObj which is some representation of the widget in the user interface. For reasons that escape me right now, the uiObj is not available when the widget is created so I added a setUiObject method to handle the association of a uiObj with a widget. The particular uiObj that is created for any given widget is controlled by its uiClass member (which is null by default). When a new widget is created, if it has a uiClass set then the framework creates a new instance of the uiClass and gives it to the widget via the setUiObject. If no uiClass is specified then element from the dom with the id that causes the widget to be created is passed (i.e. a reference to a div). The base Widget class provides a default implementation of setUiObject that does the grunt work of making buttons, menus etc work properly, especially if the widget is considered modal on the map. For widgets that are not using a uiClass (which would be your case), you will need to add a setUiObject method to your widget to handle inserting your ui into what was previously the domObj. I believe the code in initializeWidget that tests if domObj is valid is never used now and it is probably there by mistake. You should be able to copy the setUiObject method from EditableScale into your widget and replace the appendChild calls to do the appropriate thing. Hope this helps Paul On 19-Feb-09, at 11:55 AM, Mark Pendergraft wrote: I have a widget which I'm trying to port to the 2.0 beta and in the past I used this.domObj.appendChild() to add an input box to the widget, but now that code breaks saying that the domObj is null. I noticed in the EditableScale widget that an if (this.domObj) statement is used to see if the domObj is valid. My question is: Do I need to wait for a certain event to happen before creating this widget? Right now my code never adds the input box, but the EditableScale code does. ___ 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] asp.net example of loading a webmapservice layer
1. Follow this link http://www.webrade.com/blogs/darrin/2008/05/16/CreatingNETObjectsForMapguideXMLSchemaDefinitionsXSDUsingLINQ.aspx this will give you intellisence support for all MGOS schemas. 2. I am adding layer to the map this way: /// summary /// Add new layer to MG repository and to the map /// /summary /// Layer name /// Layer legend label /// Layer group name /// Layer group legend label /// Layer (of type point) attributes to populate with /// SQL table (or View) column list public void AddPointLayerDef2Map( String layerName , String layerLegendLabel , String groupName , String groupLegendLabel , LayerPointAttributes attributes , DataTable dbColumns) { // Get or set the resourceid of the map to load MgResourceIdentifier resourceMap = new MgResourceIdentifier(this.Attributes.MgMapName); // Define a new resourseLayer MgResourceIdentifier resourseLayer = new MgResourceIdentifier(this.Attributes.MgLayerName(layerName, groupName)); // Create our connection to the resource service MgResourceService resourceService = (MgResourceService)this.MgConn.CreateService(MgServiceType.ResourceService); // Get new Layer XML String xmlLayer = Spatial.Helper.GetLayerXml(attributes, dbColumns); // Save it // TODO: AS: I think we have to use UpdateResource in case layer already exists on the map. // Confirm and update logic resourceService.SetResource(resourseLayer, new MgByteReader(xmlLayer, MgMimeType.Xml), null); // TODO: Check if there is map available and if not: // 1. Create map // 2. Create layer // Get updated map XML String xmlMap = Spatial.Helper.GetMapXml( resourceService , resourceMap , resourseLayer , layerName , layerLegendLabel , groupName , groupLegendLabel); // Save it resourceService.SetResource(resourceMap, new MgByteReader(xmlMap, MgMimeType.Xml), null); } Two classes participating in: http://n2.nabble.com/file/n2355204/Helper.cs Helper.cs http://n2.nabble.com/file/n2355204/MgController.cs MgController.cs Let me know if that is what you looking for. Regards stoff wrote: Hi, the devGuide gives an example of adding layers to a map in php. Has anybody an comparable example in asp.net? I want to load an ogc-wms into the map by loading an existing layer.definition.xml to a resource and add the resource to the map. The xml-file can by generated for example by the mapguide studio ... Thanks a lot, stoff -- View this message in context: http://n2.nabble.com/asp.net-example-of-loading-a-webmapservice-layer-tp2328300p2355204.html 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] Layer's selection Problem
I have exactly the same behaviour for SQL 2008. I do not know if this is applicable for Oracle, but for SQL 1. You have to have Primary Key (clustered) on the table you want to show on the layer 2. PK has to be int 3. You have to create spatial index on the spatial column 4. As soon as you will try to add JOINS to your database view (if you trying to show layer off View) - you will lose selection functionality. I am fighting with this one for week already. Hope that will help padmini godavarthi wrote: Hi, iam using mapguide opensource 2.0 (with .net 2.0 +IIS 5.1) I have created a package using Oracle OSGEO FDO provider for Oracle and Mapguide Maestro. but while seeing the map byShow in browser the layers are does not selecting on map and the properties is not displaying even after i checked the option Features on layer are selectable in the map resource. Is anything i did wrong? Can u plz tell me the solution? Thanks and Regards, Padmini. -- View this message in context: http://n2.nabble.com/Layer%27s-selection-Problem-tp2352146p2355267.html 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] Properties Value
I don't think FDO will actually allow you to change a property's data type if there is pre-existing data in it. - Jackie staniz wrote: Ivan, thank for your time and effort trying to solve my problem. So far I couldn't change the property type. I follow your instructions and also give full access to the sdf file, and copy the internal Sdf file to another folder, but still I couldn't change from decimal to Int32. The following error come when I apply change to the schema. The screennshot error : http://n2.nabble.com/file/n2352387/error1.jpg Ivan Milicevic wrote: Staniz, Here is instructions: 1. Go to http://code.google.com/p/fdotoolbox/downloads/list and download last version of thisexcellent piece of software made by Jackie. 2. run it and in project explorer: new-connect to sdf 3. Pick your file 4. The connectionshould be added in object explorer 5. Right clockon it and chose edit schema 6. Pick your population class and on right side of program (schema designer) change datatype of class Here is screenshot. -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of staniz Sent: Thursday, February 19, 2009 6:50 AM To: mapguide-users@lists.osgeo.org Subject: Re: [mapguide-users] Properties Value 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 Properties displayed in the viewer check box. when I select the polygon in the browser, then in the Properties frame appears Name Value 1. Population 454.00 (with 6 additional zeros), Actually the value for population is 454. How to fix and remove this additional 6 zeros? thank for help. staniz -- View this message in context: http://n2.nabble.com/Properties-Value-tp2341900p2351399.html 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 mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- View this message in context: http://n2.nabble.com/Properties-Value-tp2341900p2357080.html 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] Regarding How to set the Initial Map View
Hi Kenneth All, Now my problem is that I have to select/highlight the multiple features on the run time map/layer depending upon the search condition of user. Please help. Thanks Regards, Ravinder From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of ravinder.si...@birlasoft.com Sent: Wednesday, February 18, 2009 8:11 PM To: mapguide-users@lists.osgeo.org Subject: RE: [mapguide-users] Regarding How to set the Initial Map View 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 Sent: Wednesday, February 18, 2009 7:53 PM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Regarding How to set the Initial Map View 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 Skovhede, GEOGRAF A/S ravinder.si...@birlasoft.com skrev: 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.MaestroAPI.LayerDefinition ldef = conn.GetLayerDefinition(mylayer.ResourceId); //Topology.Geometries.IEnvelope env = ldef OSGeo.MapGuide.MaestroAPI.FdoSpatialContextList lst = conn.GetSpatialContextInfo(ldef.Item.ResourceId, false); mapDef.Extents.MinX = System.Convert.ToDouble(lst.SpatialContext[0].Extent.LowerLeftCoordinate .X); mapDef.Extents.MinY = System.Convert.ToDouble(lst.SpatialContext[0].Extent.LowerLeftCoordinate .Y); mapDef.Extents.MaxX = System.Convert.ToDouble(lst.SpatialContext[0].Extent.UpperRightCoordinat e.X); mapDef.Extents.MaxY = System.Convert.ToDouble(lst.SpatialContext[0].Extent.UpperRightCoordinat e.Y); Which gives me the incorrect coordinates, I verify it with maestro, it is different from that one showing in maestro, in effect the viewer also is not able to show the map. Thanks Ravinder From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Kenneth Skovhede, GEOGRAF A/S Sent: Wednesday, February 18, 2009 3:35 PM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Regarding How to set the Initial Map View Please have a look at the Maestro code: http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Maestro/Resou rceEditors/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, 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 (XY Coordinates)) at run time by fetching the extents of the layer. Please assist... Thanks Ravinder From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of ravinder.si...@birlasoft.com Sent: Tuesday, February 17, 2009 4:19 PM To: mapguide-users@lists.osgeo.org Subject: RE: [mapguide-users] Regarding How to set the Initial Map View Hi Kenneth, Yes it solved out my problem. Thanks Regards, Ravi From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Kenneth Skovhede, GEOGRAF A/S Sent: Tuesday, February 17, 2009 1:38 PM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Regarding How to set the Initial Map View There was a bug in Maestro that swapped some x/y coordinates, try using the newest build (r3260). Regards, Kenneth Skovhede, GEOGRAF A/S ravinder.si...@birlasoft.com skrev: Hi All, How to set the Initial Map View (Lower Left and Upper Right (XY Coordinates)) in MapGuide Maestro. If I click on Set View to Current Layers Extent (In Maestro) Run the layout then map does not appears in the viewer , seems that map is there on the viewer but at different position which is not visible at startup, Because when I try to pan the map multiple times left or right up or down it appears. I am using MGOS 2.0, .Net Please assist... Thanks, Ravi
RE: [mapguide-users] window open
hi thank u very much mark.. But i've still doubts in this .shall i use $geometryFactory = new MgGeometryFactory(); $mgPolygon = $geometryFactory-Create mgPolygon($gp.x,$gp.y); to create mg polygons from the N/E coordinates. Instead of geom u have used in vb coding shall i use this $mgPolygon.Then for getting LayerResourceID Schema shall i use coding or can i directly give that values.. Thanks and regards dyuti Mark Pendergraft wrote: In VB: Dim geom As MgGeometry Dim query As New MgFeatureQueryOptions() query.SetSpatialFilter(Geometry, geom, MgFeatureSpatialOperations.Intersects) Dim fr as MgFeatureReader = FeatService.SelectFeatures(LayerResId, Default:Temp, query) Note that geom is a mggeometry object used to query the layer. It could be a point, polygon, etc. LayerResId refers to the MgResourceIdentifier for a specified layer Default:Temp is the layer's schema name. In your case, you will probably want to create a MgPolygon from the point the user clicked. Then you will use the layer containing the points you want to display info about to get your LayerResId and default schema. -Mark -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI Sent: Wednesday, February 18, 2009 11:32 PM To: mapguide-users@lists.osgeo.org Subject: Re: [mapguide-users] window open 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: Option 1: You have a widget which inherits Fusion.Tool.Canvas. Use the mousedown even to get the coordinates clicked Then use var p = this.getMap().getEventPosition(e); to get the event position var gp = this.getMap().pixToGeo(p.x, p.y); to get the N/E at that position Then send your northing and easting to a PHP page and use it to generate a spatial filter (you may want to create a mgPolygon from your N/E as your spatialfilter in order to make sure you cover the point) Return the selected point, and send it to another page to create your pop up window populated with the relevant information. Option 2: Use the URL feature in studio to show a link. Use expressions to pass the points information into the link, and have the link directed to a custom page which will populate itself with the relevant data. Seeing as you are new to MapGuide, I would highly recommend option 2, as it requires very little coding and is very easy and user friendly. I have attached a photo of what the URL maptip looks like in my map. In the picture, the user hovers there mouse over a parcel and the maptip pops up with a link to the parcel's page on the county's website. All I have to do is pass the parcel number in the link, which is all done by studio. http://n2.nabble.com/file/n2315851/Untitled.jpg -Mark DYUTI wrote: hi..all... to open a new window while clicking on the points displayed on the map where i've to write the coding...In which file i've to make changes..what change i've to make...plss help me... thanksregards dyuti -- View this message in context: http://n2.nabble.com/window-open-tp2295629p2351717.html 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 mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- View this message in context: http://n2.nabble.com/window-open-tp2295629p2357432.html 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