Re: [mapguide-users] MapGuide Selection and UniqueID Determination
To be able to select items the layer must be selectable (set in the MapDefinition). Secondly, the FeatureSource must have at least one identity column. If not, all features on the layer are selected. Regards, Kenneth Skovhede, GEOGRAF A/S Crispin @ 1Spatial skrev: Hi, Can someone explain how the magic of MapGuide selection works... Of particular interest to me is a particular ArcSDE dataset that appears fine in MapGuide but (despite correct settings in Studio) has a class of points which when mapped as a layer do not 'select' in the map. Using a seperate direct FDO connection I can see the class has no columns/proprttydefinitions that are IsAutogenerated() - is this a requirement for a layer to be selectable or is there another criteria? Tooltips appear OK. Crispin ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Memory and filter issues continued.
I believe that I vae solved my memory and filter issues and it appears quite simple On 2 computers where I had previously installed MG Enterprise 2008 trial, uninstalled and then installed the os version I had the problems. On a 3rd where I have only installed the os version I have had no problems. Does this seem credible or possible?? ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] MapGuide Selection and UniqueID Determination
Thanks Kenneth, That helps if we have the definition of an identity column. ie how does FDO determine this? I assume (hope) it is not just having a FDO IsAutogenerated() value as obviously a database could have a unique column that is key but not from a sequence. SHP and SDF generically get a FeatId autogenerated through the provider but this is not the case for foreign database schemas. Kenneth, GEOGRAF A/S wrote: To be able to select items the layer must be selectable (set in the MapDefinition). Secondly, the FeatureSource must have at least one identity column. If not, all features on the layer are selected. Regards, Kenneth Skovhede, GEOGRAF A/S Crispin @ 1Spatial skrev: Hi, Can someone explain how the magic of MapGuide selection works... Of particular interest to me is a particular ArcSDE dataset that appears fine in MapGuide but (despite correct settings in Studio) has a class of points which when mapped as a layer do not 'select' in the map. Using a seperate direct FDO connection I can see the class has no columns/proprttydefinitions that are IsAutogenerated() - is this a requirement for a layer to be selectable or is there another criteria? Tooltips appear OK. Crispin ___ 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/MapGuide-Selection-and-UniqueID-Determination-tp17106209p17122431.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] MapGuide Selection and UniqueID Determination
I am not sure. For Oracle it seems to find the Primary Key, and use that. The same goes for MySQL and Access. I don't know about ArcSDE. Regards, Kenneth Skovhede, GEOGRAF A/S Crispin @ 1Spatial skrev: Thanks Kenneth, That helps if we have the definition of an identity column. ie how does FDO determine this? I assume (hope) it is not just having a FDO IsAutogenerated() value as obviously a database could have a unique column that is key but not from a sequence. SHP and SDF generically get a FeatId autogenerated through the provider but this is not the case for foreign database schemas. Kenneth, GEOGRAF A/S wrote: To be able to select items the layer must be selectable (set in the MapDefinition). Secondly, the FeatureSource must have at least one identity column. If not, all features on the layer are selected. Regards, Kenneth Skovhede, GEOGRAF A/S Crispin @ 1Spatial skrev: Hi, Can someone explain how the magic of MapGuide selection works... Of particular interest to me is a particular ArcSDE dataset that appears fine in MapGuide but (despite correct settings in Studio) has a class of points which when mapped as a layer do not 'select' in the map. Using a seperate direct FDO connection I can see the class has no columns/proprttydefinitions that are IsAutogenerated() - is this a requirement for a layer to be selectable or is there another criteria? Tooltips appear OK. Crispin ___ 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] Memory and filter issues continued.
On Thu, May 8, 2008 at 6:11 PM, Robert Kovacs [EMAIL PROTECTED] wrote: I believe that I vae solved my memory and filter issues and it appears quite simple On 2 computers where I had previously installed MG Enterprise 2008 trial, uninstalled and then installed the os version I had the problems. On a 3rd where I have only installed the os version I have had no problems. Does this seem credible or possible?? got a clean vmware image to test your theory? ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- Zac Spitzer - http://zacster.blogspot.com (My Blog) +61 405 847 168 ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Memory and filter issues continued.
Unfortunately my dev setup is steam driven. I will install this weekend a vmware and image to test this out. 2008/5/8 Zac Spitzer [EMAIL PROTECTED]: On Thu, May 8, 2008 at 6:11 PM, Robert Kovacs [EMAIL PROTECTED] wrote: I believe that I vae solved my memory and filter issues and it appears quite simple On 2 computers where I had previously installed MG Enterprise 2008 trial, uninstalled and then installed the os version I had the problems. On a 3rd where I have only installed the os version I have had no problems. Does this seem credible or possible?? got a clean vmware image to test your theory? ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- Zac Spitzer - http://zacster.blogspot.com (My Blog) +61 405 847 168 ___ 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] Fusion query()ing from any zoom level
I'm trying to use the javascript query function. Take this fictional example, executed from inside the task pane: Var options = {}; Options.layers = 'roads_layer'; Options.filter = 'road_width 5'; Parent.Fusion.getWidgetById('Map').query(options); This works nicely when the roads_layer is actually visible, but not when the map is zoomed out far enough. What I finally want to achieve is: User clicks on an asp.net generated list of objects - query and select - zoom extents to selection. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
RE: [mapguide-users] MapGuide Selection and UniqueID Determination
I have a quick question about selection as well...If I have the selection XML can I just call the Javascript Function setSelection, or do I have to do the code in the code behind for it to work? Basically I have tried itand it does display that a selection has been made in the panel and the status bar, but the map is not updated, even after a refresh... -Thanks Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth, GEOGRAF A/S Sent: Thursday, May 08, 2008 2:56 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] MapGuide Selection and UniqueID Determination To be able to select items the layer must be selectable (set in the MapDefinition). Secondly, the FeatureSource must have at least one identity column. If not, all features on the layer are selected. Regards, Kenneth Skovhede, GEOGRAF A/S Crispin @ 1Spatial skrev: Hi, Can someone explain how the magic of MapGuide selection works... Of particular interest to me is a particular ArcSDE dataset that appears fine in MapGuide but (despite correct settings in Studio) has a class of points which when mapped as a layer do not 'select' in the map. Using a seperate direct FDO connection I can see the class has no columns/proprttydefinitions that are IsAutogenerated() - is this a requirement for a layer to be selectable or is there another criteria? Tooltips appear OK. Crispin ___ 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] MapGuide Selection and UniqueID Determination
It should be enough to call SetSelectionXml. Regards, Kenneth Skovhede, GEOGRAF A/S Berdel, Brian skrev: I have a quick question about selection as well...If I have the selection XML can I just call the Javascript Function setSelection, or do I have to do the code in the code behind for it to work? Basically I have tried itand it does display that a selection has been made in the panel and the status bar, but the map is not updated, even after a refresh... -Thanks Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth, GEOGRAF A/S Sent: Thursday, May 08, 2008 2:56 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] MapGuide Selection and UniqueID Determination To be able to select items the layer must be selectable (set in the MapDefinition). Secondly, the FeatureSource must have at least one identity column. If not, all features on the layer are selected. Regards, Kenneth Skovhede, GEOGRAF A/S Crispin @ 1Spatial skrev: Hi, Can someone explain how the magic of MapGuide selection works... Of particular interest to me is a particular ArcSDE dataset that appears fine in MapGuide but (despite correct settings in Studio) has a class of points which when mapped as a layer do not 'select' in the map. Using a seperate direct FDO connection I can see the class has no columns/proprttydefinitions that are IsAutogenerated() - is this a requirement for a layer to be selectable or is there another criteria? Tooltips appear OK. Crispin ___ 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] MGOS2 Debian Etch i386
Andy Morsell wrote: Can you run any of the operations on the mapagent test page? http://localhost:8008/mapguide/mapagent/index.html yes, I can configure the server, manage packages and so on If not, you may be having this problem: http://trac.osgeo.org/mapguide/ticket/477 you're right; those lines were commented #LoadModule mgmapagent_module modules/mod_mgmapagent.so #AddHandler mgmapagent_handler fcgi uncommented and restarted apache complains: *** glibc detected *** corrupted double-linked list: 0xb7e3c4f8 *** Aborted // Simone Andy Morsell, P.E. Spatial Integrators, Inc. http://www.SpatialGIS.com ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Programmatically set Map Properties and display information
Can anyone explain the best way to display the properties or information that refers to the currently selected item in the viewer programmatically? Thanks, Nick Aizen ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Printing Shortcomings Especially Legend Rendering
The quality of print output has been talked about before. I'm investigating what options there are to improve this. Perhaps the main issue is the legend output. With both the AJAX and DWF viewer, the legend is rendered with layers set to not display in the legend included, and Group headings included even if these are don't include any visible layers. Besides looking rather messy, this behaviour also means that a complex map with many layers/groups soon overflows the legend area. The API only sems to have one method dealing with the legend, RenderMapLegend, and this seems to be the call that produces the behaviour already described. There doesn't seem to be any methods that allow greater control. I'd be interested to hear from others on how they may have overcome these problems. Keith -- View this message in context: http://www.nabble.com/Printing-Shortcomings-Especially-Legend-Rendering-tp17127680p17127680.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] Adding a new Coord Sys
I'm trying to add a new coordinate system to MGOS 1.2 (or 2.0, haven't been able to do it in either one). I tried to do every logical operations I could think of. First I go in C:\Program Files\MapGuideOpenSource\Server\nad and open the EPSG file in Wordpad. I add the following 2 lines at the very end: # Google Maps 900913 +proj=tmerc +lat_0=0 +lon_0=36 +k=0.999600 +x_0=50 +y_0=1000 +ellps=WGS84 +datum=WGS84 +units=m +no_defs Second, I go in C:\Program Files\MapGuideOpenSource\Server\data and open epsg.wkt in Wordpad. I add the following line at the very end as well: 900913,PROJCS[Google Maps,GEOGCS[unnamed ellipse,DATUM[unknown,SPHEROID[unnamed,6378137,0]],PRIMEM[Greenwich,0],UNIT[degree,0.0174532925199433]],PROJECTION[Mercator_2SP],PARAMETER[standard_parallel_1,0],PARAMETER[central_meridian,0],PARAMETER[false_easting,0],PARAMETER[false_northing,0],UNIT[Meter,1],EXTENSION[PROJ4,+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m [EMAIL PROTECTED] +wktext +no_defs]] After doing that I restart the service, then I go in the MapAgent test page (mapguide/mapagent/index.html) and I attempt to see if this new code is available through the Coordinate System calls. If I try to do the ConvertEpsgCodeToWkt with the code 900913, I get an error message: The coordinate system conversion failed. Failed to convert EPSG code 900913 to WKT. EPSG PCS/GCS code 900913 not found in EPSG support files. Is this a valid EPSG coordinate system? If I try to list all of the EPSG coordinate systems using EnumerateCoordinateSystems, the code I added is not listed. I'm certain that the WKT is valid, as I tested it using the IsValid command and it returns true. I'm also sure it's not a problem with the PROJ4 definition, as I have tried to use an existing, working coordinate system and just make my 900913 system be that definition, and it didn't work. So simply put, is it even doable to add a coordinate system to MGOS? -- View this message in context: http://www.nabble.com/Adding-a-new-Coord-Sys-tp17129098p17129098.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] Printing Shortcomings Especially Legend Rendering
I have taken the long way, and implemented a decent legend generator in C#. Unfortunately I cannot give it away, as it belongs yo my employer. It works by imitating the legend control in the basic viewer, and fetches each of the little preview items. It does scale checking and more for the layers. Once all have been retrieved, it builds a single png with a sane layout (ea. no empty groups etc). It would be nice if there was such a method in MapGuide, especially if it was also possible to display legend items for features that were actually visible in the map. ea.: if the Lakes layer is on, but I have zoomed in on a building with no lake in sight, it should not display Lakes in the legend. As for general printing, I have also taken the long way and created a full upscaling function that can upscale a map's components to fit a larger resolution. I use this for generating high quality PDF files. As before, it belongs to my employer. Again, it would be nice if this was avalible in MapGuide (both upscaling, as well as PDF generation). Regards, Kenneth Skovhede, GEOGRAF A/S Keith Campbell skrev: The quality of print output has been talked about before. I'm investigating what options there are to improve this. Perhaps the main issue is the legend output. With both the AJAX and DWF viewer, the legend is rendered with layers set to not display in the legend included, and Group headings included even if these are don't include any visible layers. Besides looking rather messy, this behaviour also means that a complex map with many layers/groups soon overflows the legend area. The API only sems to have one method dealing with the legend, RenderMapLegend, and this seems to be the call that produces the behaviour already described. There doesn't seem to be any methods that allow greater control. I'd be interested to hear from others on how they may have overcome these problems. Keith ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
RE: [mapguide-users] Adding a new Coord Sys
You are 1/2 way to having this setup. :) The changes you have done below have updated the server to understand the coordinate system you have added, but you still need to update the web tier. Make the exact same changes to the same files in the C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions\www folder. This is not obvious from the web tier test pages that you are using as the coordinate system APIs only hit the web tier API and don't actually round trip to the server. After updating both locations with your changes I ran the test and it works as expected. Coordinate System API: ConvertEpsgCodeToWkt EPSG Code: 900913 OGC WKT: PROJCS[Google Maps,GEOGCS[unnamed ellipse,DATUM[unknown,SPHEROID[unnamed,6378137,0]],PRIMEM[Greenwich,0],UNIT[degree,0.0174532925199433]],PROJECTION[Mercator_2SP],PARAMETER[standard_parallel_1,0],PARAMETER[central_meridian,0],PARAMETER[false_easting,0],PARAMETER[false_northing,0],UNIT[Meter,1],EXTENSION[PROJ4,+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 ++units=m [EMAIL PROTECTED] +wktext +no_defs]] Status: Pass Thanks, Bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of BenoitBegin Sent: Thursday, May 08, 2008 10:48 AM To: mapguide-users@lists.osgeo.org Subject: [mapguide-users] Adding a new Coord Sys I'm trying to add a new coordinate system to MGOS 1.2 (or 2.0, haven't been able to do it in either one). I tried to do every logical operations I could think of. First I go in C:\Program Files\MapGuideOpenSource\Server\nad and open the EPSG file in Wordpad. I add the following 2 lines at the very end: # Google Maps 900913 +proj=tmerc +lat_0=0 +lon_0=36 +k=0.999600 +x_0=50 +y_0=1000 +ellps=WGS84 +datum=WGS84 +units=m +no_defs Second, I go in C:\Program Files\MapGuideOpenSource\Server\data and open epsg.wkt in Wordpad. I add the following line at the very end as well: 900913,PROJCS[Google Maps,GEOGCS[unnamed ellipse,DATUM[unknown,SPHEROID[unnamed,6378137,0]],PRIMEM[Greenwich,0],UNIT[degree,0.0174532925199433]],PROJECTION[Mercator_2SP],PARAMETER[standard_parallel_1,0],PARAMETER[central_meridian,0],PARAMETER[false_easting,0],PARAMETER[false_northing,0],UNIT[Meter,1],EXTENSION[PROJ4,+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m [EMAIL PROTECTED] +wktext +no_defs]] After doing that I restart the service, then I go in the MapAgent test page (mapguide/mapagent/index.html) and I attempt to see if this new code is available through the Coordinate System calls. If I try to do the ConvertEpsgCodeToWkt with the code 900913, I get an error message: The coordinate system conversion failed. Failed to convert EPSG code 900913 to WKT. EPSG PCS/GCS code 900913 not found in EPSG support files. Is this a valid EPSG coordinate system? If I try to list all of the EPSG coordinate systems using EnumerateCoordinateSystems, the code I added is not listed. I'm certain that the WKT is valid, as I tested it using the IsValid command and it returns true. I'm also sure it's not a problem with the PROJ4 definition, as I have tried to use an existing, working coordinate system and just make my 900913 system be that definition, and it didn't work. So simply put, is it even doable to add a coordinate system to MGOS? -- View this message in context: http://www.nabble.com/Adding-a-new-Coord-Sys-tp17129098p17129098.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