Re: [mapguide-users] FDO toolbox help
Out of the box, joins on attributes are supported, joining on spatial predicates however is not. It is something I have in my todo list though. I don't believe MapGuide supports joins on spatial predicates either. - Jackie I finally got round to giving FDO toolbox a go. Looks very impressive with lots of options! One question I have is it possible to join feature data on geometry alone...? say I have a point feature that might sit within a polygon is it possible to use FDO toolbox to join this data together? or perhaps it would be better done within mapguide? -- View this message in context: http://n2.nabble.com/FDO-toolbox-help-tp2572209p2597427.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] No viewer access
I don't think frames are accessible if you didn't supply the name attribute for them as well. - Jackie Hello, I embedd MapGuide in my own application, like this: frameset rows=30,* frameborder=no framespacing=0 frame id=titleFrame frameborder=no marginwidth=0 marginheight=0 scrolling=no src=title.html frame id=viewerFrame frameborder=no marginwidth=0 marginheight=0 scrolling=no src=[URL TO DWF VIEWER] /frameset Later on I want call the mapFrame functions form the Viewer API: var name = fraVIEWER.mapFrame.GetMapName(); When I do this, the compiler returns an Object Error. The same application runs without any problems at a PC with Windows XP and IIS 5.1. Do I have to do special configurations on Windows Server 2003 to run this javascript functions? Thank you, Sandra -- View this message in context: http://n2.nabble.com/No-viewer-access-tp2603674p2603711.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 without Apache
Is this actually a feasible solution that is usable in a production environment? If so, I am willing to make a pure, tomcat-only configuration for the installer (but if so, this configuration won't make it for 2.1) - Jackie Hello, Yes, you can but you need to do some steps. 1. Modify www/WEB-INF/web.xml to add cgi support: servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-namedebug/param-name param-value6/param-value /init-param init-param param-namecgiPathPrefix/param-name param-value/param-value /init-param init-param param-nameexecutable/param-name param-value/param-value /init-param !--Nota: si no le paso las variables de entorno intenta descargarse el resultado de la ejecución del programa -- init-param param-namepassShellEnvironment/param-name param-valuetrue/param-value /init-param load-on-startup5/load-on-startup /servlet servlet-mapping servlet-namecgi/servlet-name url-pattern*.fcgi/url-pattern /servlet-mapping 2. rename www/mapagent.fcgi to mapagent.fcgi2 3. make a copy of maagent.exe to mapagent.fcgi 4. rename to jar servlet-api Hope this helps. Hi all, it is posible use Mapguide without Apache, only with Tomcat?. We are triying but don´t see the map, only the rest of controls. Thanks. -- # michogar # Analista Programador SIG # GNU/Linux Counter 462666 Una visión personal: http://michogar.blogspot.com El dia a dia: http://twitter.com/michogar Cuenta una leyenda que si reproduces un DVD de Windows Vista original al revés se oye a Bill Gates entonando cantos satánicos... Pero eso no es lo peor... Si lo reproduces del derecho... ¡Se instala!. It has a legend that if you play an original Windows Vista DVD backwards to hear Bill Gates Satanic chanting songs ... But that's not the worst ... If you play it right ... It installs!. ___ 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/Mapguide-without-Apache-tp2568654p2603733.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] FDO toolbox help
This is a defect with the Generic control that makes it unusable with RDBMS-based providers or any providers that have connection properties which are only available when connected. This will be fixed for the next release. The workaround in the meantime, would be to use the express connection method for [your RDBMS]. Unfortunately, SQL Server 2008 does not have an express connection method. It will for the next release. - Jackie Hi Jackie, I am trying to use this tool in order to convert shp to sql2008. I wanted to connect to sql2008 database but with no success. I have attached a screenshot with the error that I got it. I am using the 0.7.1.2118 version. could you help me with it? thanks in advance, -- View this message in context: http://n2.nabble.com/FDO-toolbox-help-tp2572209p2626692.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] FDO 3.4.0 RC 3
I don't think so. 1. FDO 3.3.1 was built with Visual C++ 2005 2. FDO 3.4.0 is built with Visual C++ 2008 3. FDO 3.4.0 has newer APIs Even if you have the required runtime libraries installed, I doubt a 2005-built MapGuide can use 2008-built FDO binaries. - Jackie Howdy, I'm re-installing mapguide and was wondering if mapguide functions with the new FDO 3.4.0 ? I remember reading somewhere it only runs with 3.3.1 ... should there be any problems with installing the newer fdo ? Is it as simple as removing the current Bin\FDO directory and replacing it's contents with the new FDO ones? making sure the providers.xml is correct ? Or is there really no need to be installing the latest up to date FDO and I should just stick to 3.3.1 then add ecw support ? Or can anyone take me through the steps of how to make sure the FDOs in use are the best for the job. Cheers. -- View this message in context: http://n2.nabble.com/FDO-3.4.0-RC-3-tp2630730p2630855.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 2.1 installer
What is your environment? (Operating System / 32 or 64-bit). Can we get more detailed (error) information? The installer has a Visual C++ 2008 Runtime installer built-in, and it will install that if it could not find said library on your machine. - Jackie Howdy, Just downloaded and installed the mapguide 2.1 beta installer(MapGuideOpenSource-2.1.0-Unofficial-c.exe), run into an error regarding Visual C++ Runtime Libraries (x86) the install proceeds as if to install Visual C++ Runtime Libraries (x86) but fails? Have I got the right version of the installer? Should I have already installed Visual C++ Runtime Libraries (x86)? I will try and install Visual C++ Runtime Libraries (x86) by itself and try the installer again. -- View this message in context: http://n2.nabble.com/Mapguide-2.1-installer-tp2630990p2631057.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 Opensource 2.1 Release date
It's not going to be released on that date. There is usually beta and RC releases before the final release, and we even haven't hit beta yet. From my point of view, it is because the new installer that Jason, Kenneth and myself wrote is not ready for prime time. Proper IIS7 support is still sorely lacking and it is what's preventing us from having a fully functional installer, which can then pave the way for the beta, RC and final release. - Jackie Hi All I am closely following the release schedule for the next version of MGOS, I will appreciate it if someone can give me clarity. On the Mapguide Opensource website under the roadmap page, it states that the next version is due on the 16th of April (in 16 hours time). But it also states that there are still 43 active tickets left, from this info it looks to me like it will not be released on the date scheduled. Can anyone please let me know if it perhaps will be released on schedule? Kind Regards, Marius -- View this message in context: http://n2.nabble.com/Mapguide-Opensource-2.1-Release-date-tp2642606p2642642.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] Opening different weblayouts in one session
How do your tabs look like in HTML terms? It could be screwing up the javascript of the second viewer. - Jackie It could be that the AJAX viewer I have two tabs in one of my application pages. I am trying to open 2 different layouts in each tab so the user can switch between tabs for the different maps. When I load the page the map in the currently selected tab loads well but the map in the second tab does not display correctly i.e the legend and tool bar is loaded but the map extents and zoom is not correct. Also this map does not respond to any toolbar actions. Is there a reason why it is doing this? Any solutions/workarounds? Thanks. -- View this message in context: http://n2.nabble.com/Opening-different-weblayouts-in-one-session-tp2643323p2644256.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] Select points problem
Have you defined a primary key for that point table? - Jackie Check that the datasource has a X, Y and Z value even if it only requires an X, Y just assign one of the X, Y columns to the Z and retry, had this problem a while ago and this seemed to fix it. Good luck I try this: MDSYS.SDO_GEOMETRY( 2001, NULL, MDSYS.SDO_POINT_TYPE(ARE_LONGITUDE, ARE_LATITUDE, ARE_LATITUDE), NULL, NULL) and this: MDSYS.SDO_GEOMETRY( 2001, NULL, MDSYS.SDO_POINT_TYPE(ARE_LONGITUDE, ARE_LATITUDE, ARE_LONGITUDE), NULL, NULL) but nothing happens -- View this message in context: http://n2.nabble.com/Select-points-problem-tp2640686p2644265.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] Select points problem
In Maestro, does this PK show up as the key column? If not have you set it? - Jackie Have you defined a primary key for that point table? - Jackie Check that the datasource has a X, Y and Z value even if it only requires an X, Y just assign one of the X, Y columns to the Z and retry, had this problem a while ago and this seemed to fix it. Good luck I try this: MDSYS.SDO_GEOMETRY( 2001, NULL, MDSYS.SDO_POINT_TYPE(ARE_LONGITUDE, ARE_LATITUDE, ARE_LATITUDE), NULL, NULL) and this: MDSYS.SDO_GEOMETRY( 2001, NULL, MDSYS.SDO_POINT_TYPE(ARE_LONGITUDE, ARE_LATITUDE, ARE_LONGITUDE), NULL, NULL) but nothing happens Yeap, the table has a PK. I'm using Oracle 9i My Table: ARE_COORDENADA is SDO_GEOMETRY type and ARE_CODARE is my PK -- View this message in context: http://n2.nabble.com/Select-points-problem-tp2640686p2651148.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] FDO toolbox help
I've made a new release of FDO Toolbox that not only fixes the Generic control for RDBMS providers, but also provides an express SQL Server 2008 spatial connection option. Cheers, - Jackie This is a defect with the Generic control that makes it unusable with RDBMS-based providers or any providers that have connection properties which are only available when connected. This will be fixed for the next release. The workaround in the meantime, would be to use the express connection method for [your RDBMS]. Unfortunately, SQL Server 2008 does not have an express connection method. It will for the next release. - Jackie Hi Jackie, I am trying to use this tool in order to convert shp to sql2008. I wanted to connect to sql2008 database but with no success. I have attached a screenshot with the error that I got it. I am using the 0.7.1.2118 version. could you help me with it? thanks in advance, -- View this message in context: http://n2.nabble.com/FDO-toolbox-help-tp2572209p2651987.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] FDO Provider for Postgis ERROR
Go to the mapagent interface: http://yourmapguideserver:port/mapguide/mapagent/index.html Click Feature under Services API Click GetSchemas Enter the resource id of the feature source and click Submit If you get xml content, then click DescribeSchema and enter the same resource id and enter the name of the schema that was returned by GetSchemas, and click Submit If you get xml content here, then there must be a problem somewhere with Maestro because the mapagent (that Maestro is talking to) is reporting everything as working fine. If you didn't get any xml content with GetSchemas or DescribeSchema then something is wrong on the PostGIS provider side. - Jackie nasp wrote: Hi, I successfully installe PostGre 8.3.4 with Postgis 1.3.5 on windows Vista. I also have Mapguide 2.0.2. I created a new data connection with Mapguide Maestro that refers to a postgis database. The database has 1 table with 1 colum of type geometry. When I do Test Connection with Maestro, I get The povider reported non errors Then I created a layer based on that connection and I got the message: Failed to get schema from datasource.[..] The remote server returned an error: (559) MgConnectionFailedException.: Cannot Establish a connection.ExecuteDescribeSchema. If I try to connect to database via OGR Provider-Postgis and It works fine. Could someone help me, please? Thank you in advance. Naspi -- View this message in context: http://n2.nabble.com/FDO-Provider-for-Postgis-ERROR-tp2674319p2674365.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] FDO Provider for Postgis ERROR
What does the XML for the feature source look like? (Edit the resource as xml in Maestro, or use GetResourceContent in the mapagent) - Jackie nasp wrote: Thank you very much for your answer. That is what I got from Mapagent: Library://POSTGIS/postgisDB.FeatureSource 2 Administrator 2009-04-17T08:25:15Z 2009-04-17T08:25:15Z true Everyone r,w So, Mapagent returned no XML. Probably the problem is the Postgis provider, but how can I solve it? When I test DataConnection with Maestro, I got Provider reported no errors but in the error log (when I try to create a layer on that data connection) I find Error: Cannot establish connection.. Why? Naspi This is what I have in mapguide error log: - Error: Cannot establish connection. StackTrace: - MgFeatureServiceHandler.ProcessOperation line 83 file d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\FeatureServiceHandler.cpp - MgOpDescribeSchemaAsXml.Execute line 105 file d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\OpDescribeSchemaAsXml.cpp - MgServerDescribeSchema.DescribeSchemaAsXml line 607 file d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\ServerDescribeSchema.cpp - MgServerDescribeSchema.DescribeSchema line 564 file d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\ServerDescribeSchema.cpp - MgServerDescribeSchema.ExecuteDescribeSchema line 176 file d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\ServerDescribeSchema.cpp - MgServerDescribeSchema::ExecuteDescribeSchema() line 173 file d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\ServerDescribeSchema.cpp Cannot establish connection. Jackie Ng wrote: Go to the mapagent interface: http://yourmapguideserver:port/mapguide/mapagent/index.html Click Feature under Services API Click GetSchemas Enter the resource id of the feature source and click Submit If you get xml content, then click DescribeSchema and enter the same resource id and enter the name of the schema that was returned by GetSchemas, and click Submit If you get xml content here, then there must be a problem somewhere with Maestro because the mapagent (that Maestro is talking to) is reporting everything as working fine. If you didn't get any xml content with GetSchemas or DescribeSchema then something is wrong on the PostGIS provider side. - Jackie nasp wrote: Hi, I successfully installe PostGre 8.3.4 with Postgis 1.3.5 on windows Vista. I also have Mapguide 2.0.2. I created a new data connection with Mapguide Maestro that refers to a postgis database. The database has 1 table with 1 colum of type geometry. When I do Test Connection with Maestro, I get The povider reported non errors Then I created a layer based on that connection and I got the message: Failed to get schema from datasource.[..] The remote server returned an error: (559) MgConnectionFailedException.: Cannot Establish a connection.ExecuteDescribeSchema. If I try to connect to database via OGR Provider-Postgis and It works fine. Could someone help me, please? Thank you in advance. Naspi -- View this message in context: http://n2.nabble.com/FDO-Provider-for-Postgis-ERROR-tp2674319p2675475.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] Query on Mapguide
You don't have to go that far anymore, if you're using the current version (2.0.2) changing one of the templates is enough. http://www.jasonbirch.com/nodes/2008/12/02/213/changing-selection-colour-in-mapguide-ajax-viewer/ - Jackie Ivan Milicevic wrote: Selection color is hard coded, so you need to change it in source code and recompile Mg server (nota an easy task at all). From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of tejaswi asmath Sent: Friday, April 24, 2009 7:12 AM To: mapguide-users@lists.osgeo.org Subject: [mapguide-users] Query on Mapguide hi guys, Can some one give me the details of how to install Mapguide on windows vista. also is it possible to change the color of the selection from blue to any other color. thanks in advance, A. Tejaswi http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/ signatureline@middle? ___ 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/Query-on-Mapguide-tp2689766p2689859.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] Store point geom: ODBC or Native
There's probably some conversion overhead involved with ODBC points, that you won't have with native storage. Unless you need to have your SQL Server 2008 database interop with other systems (that can't understand SQL Server 2008 spatial data types), you should go native where possible. Also using MSSQL spatial provider exposes the full set of geometry types, not just points. - Jackie zolinko wrote: Hi there, Can you tell me, how I should store point type geometry in an MSSQL server 2008 context? Which method is preferred: ODBC or MapGuide point type geometry? I use Mapguide 2010 Enterprise, so it has native support for MSSQL Spatial. Has anyone some experience in the theme? Thanks, Zoli... -- View this message in context: http://n2.nabble.com/Store-point-geom%3A-ODBC-or-Native-tp2691070p2691194.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] select the location on map
I see an extra brace (the very first one) in the javascript block that could be messing everything up. - Jackie SusanDaniel wrote: hi all In order to display a form in the task pane i've the following code in ../mapviewerphp/window.php body script language=javascript { function getsession() { sessionId=parent.parent.mapframe.GetSessionId(); } function getmapname() { mapname=parent.parent.mapframe.GetMapName(); } /script form action=selectlocation.php method=get Enter PanId input type=text name=PanId/brbr input type=hiddenname=SESSION value=javascript:getsession()/ input type=hiddenname=MAPNAME value=javascript:getmapname()/ input type=submit value=Submit / /form *and in the selectlocation .php i am having * /head ?php $ID= $_GET['PanId']; ?.br / body class=AppFrame onLoad=OnPageLoad() h1 class=AppHeadingSelect features/h1 ?php include '../common/common.php'; $args = ($_SERVER['REQUEST_METHOD'] == POST)? $_POST: $_GET; $sessionId = $args['SESSION']; $mapName = $args['MAPNAME']; try { // Initialize the Web Extensions and connect to the Server using // the Web Extensions session identifier stored in PHP session state. MgInitializeWebTier ($webconfigFilePath); $userInfo = new MgUserInformation($sessionId); $siteConnection = new MgSiteConnection(); $siteConnection-Open($userInfo); $map = new MgMap($siteConnection); $map-Open($mapName); // Get the geometry for the boundaries of District 1 $districtQuery = new MgFeatureQueryOptions(); $districtQuery-SetFilter(pan_id==$ID); $layer = $map-GetLayers()-GetItem('Panchayat'); $featureReader = $layer-SelectFeatures($districtQuery); $featureReader-ReadNext(); $districtGeometryData = $featureReader- GetGeometry('Data'); // Convert the AGF binary data to MgGeometry. $agfReaderWriter = new MgAgfReaderWriter(); $districtGeometry = $agfReaderWriter-Read($districtGeometryData); // Create a filter to select the desired features. Combine // a basic filter and a spatial filter. $queryOptions = new MgFeatureQueryOptions(); $queryOptions-SetSpatialFilter('SHPGEOM', $districtGeometry, MgFeatureSpatialOperations::Inside); // Get the features from the feature source, // turn it into a selection, then save the selection as XML. $layer = $map-GetLayers()-GetItem(0); $featureReader = $layer-SelectFeatures($queryOptions); $layer = $map-GetLayers()-GetItem(0); $selection = new MgSelection($map); $selection-AddFeatures($layer, $featureReader, 0); $selectionXml = $selection-ToXml(); } catch (MgException $e) { echo $e-GetMessage(); echo $e-GetDetails(); } ? /body script language=javascript function OnPageLoad() { selectionXml = '?php echo $selectionXml; ?'; parent.parent.SetSelectionXML(selectionXml); } /script /body /html *This code..But when i enter the panId in the form this error is occuring * Invalid argument(s): [1] = javascript:getsession() The session ID is invalid because the session separator character was not found.Invalid argument(s): [1] = javascript:getsession() The session ID is invalid because the session separator character was not found. Exception occurred in method MgUserInformation.SetMgSessionId at line 183 in file d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\common\mapguidecommon\System/UserInformation.cpp Any mistake in my coding? Help me plss regards susan On Wed, Apr 22, 2009 at 9:01 PM, Dave Wilson dave.wil...@autodesk.comwrote: Did you check out the samples in the downloads area of Osgeo? http://mapguide.osgeo.org/download/releases/2.0.x-samples Dave *From:* mapguide-users-boun...@lists.osgeo.org [mailto: mapguide-users-boun...@lists.osgeo.org] *On Behalf Of *Ivan Milicevic *Sent:* Wednesday, April 22, 2009 1:52 AM *To:* MapGuide Users Mail List *Subject:* RE: [mapguide-users] select the location on map You can get it from some of them. Please, read descritption. *From:* mapguide-users-boun...@lists.osgeo.org [mailto: mapguide-users-boun...@lists.osgeo.org] *On Behalf Of *susan Daniel *Sent:* Wednesday, April 22, 2009 9:46 AM *To:* MapGuide Users Mail List *Subject:* Re: [mapguide-users] select the location on map Thank u Can i get the source code of any of these sample applications? If so from where? regards susan On Wed, Apr 22, 2009 at 1:00 PM, Ivan Milicevic ivan.milice...@supranet.hr wrote: http://mapguide.osgeo.org/livegallery.html *From:* mapguide-users-boun...@lists.osgeo.org [mailto: mapguide-users-boun...@lists.osgeo.org] *On Behalf Of *susan Daniel *Sent:* Wednesday,
Re: [mapguide-users] SetFilter IN
What if you single-quoted the values in the IN filter list? - Jackie KOBAH wrote: Hello, I hope users might have undergone this basic query filter in past. districtQuery.SetFilter(Autogenerated_SDF_ID = + district); I just want to alter this filter to include multiple option by using IN query filter. districtQuery.SetFilter(Autogenerated_SDF_ID IN (district1, district2, district2) ); I am getting result for the first variable only not the others. Is my syntax right? Regards, KOBAH -- View this message in context: http://n2.nabble.com/SetFilter-IN-tp2718929p2722930.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] SetFilter IN
Another question I should've asked: Are district1, distrct2 the actual values you are after or are they variable names? - Jackie KOBAH wrote: Hello, I hope users might have undergone this basic query filter in past. districtQuery.SetFilter(Autogenerated_SDF_ID = + district); I just want to alter this filter to include multiple option by using IN query filter. districtQuery.SetFilter(Autogenerated_SDF_ID IN (district1, district2, district2) ); I am getting result for the first variable only not the others. Is my syntax right? Regards, KOBAH -- View this message in context: http://n2.nabble.com/SetFilter-IN-tp2718929p2723451.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] New Enterprise Mapguide Samples unable to download.
IANAL, but is this legal under Google's terms of usage? I remember this legal minefield with regards to the usage of Google Maps data. - Jackie Jonathan W wrote: i recently saw that the Enterprise Mapguide site has been updated with brand new samples!! http://enterprise.mapguide.com/landing/index.php when I click on the link to download the sample applications it runs to 14% then tells me the server needs to reset. I have tried it multiple times on multiple machines but to no luck. Anyone have any success? -- View this message in context: http://n2.nabble.com/New-Enterprise-Mapguide-Samples-unable-to-download.-tp2693832p2729745.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] Trying to create an ajax search thingo
Perhaps you may have used the wrong MgSelection constructor? The API docs says that MgSelection() is a dummy constructor. - Jackie Jamo wrote: I'm trying to populate an Ajax TabContainer with a tab for each search. I'm getting an error for line 94: The map definition is invalid. foreach (MgLayer cLayer in cadFeatures.GetLayers()) Is it best to store the information needed for each search in a MgSelection or would it be better to extract information needed to a DataTable? I'm trying to make it as flexible as possible. hopefully adding some other search type other than just DropDownList. At the moment this runs seperate to mapguide and does not interact with the map itself (just for testing at the moment). - Default.aspx -- %@ Page Language=C# AutoEventWireup=true CodeFile=Default.aspx.cs Inherits=Searchtool_Default % %@ Register Assembly=AjaxControlToolkit Namespace=AjaxControlToolkit TagPrefix=cc1 % %@ Register Assembly=System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 Namespace=System.Web.UI TagPrefix=asp % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head runat=server titleUntitled Page/title /head body form id=form1 runat=server asp:ScriptManager ID=ScriptManager1 runat=server /asp:ScriptManager div cc1:TabContainer ID=SearchContainer runat=server ActiveTabIndex=0 cc1:TabPanel runat=server HeaderText=TabPanel1 ID=TabPanel1 Visible=False /cc1:TabPanel /cc1:TabContainer /div /form /body /html --- Default.aspx.cs --- using System; using System.Collections.Specialized; using System.Text; using System.Globalization; using OSGeo.MapGuide; using System.Web; using System.Data; using System.Collections; using System.Web.UI.WebControls; using System.Web.UI; public partial class Searchtool_Default : System.Web.UI.Page { //define all selections for searches here internal static MgSelection cadFeatures; internal static MgSelectionBase geoFeatures; //get selection ready for searching on protected MgSelection createSelectionMaster(String[] Layers) { MapGuideApi.MgInitializeWebTier(Request.ServerVariables[APPL_PHYSICAL_PATH] + ../webconfig.ini); MgUserInformation userInfo = new MgUserInformation(Anonymous, ); MgSite site = new MgSite(); //connect to site site.Open(userInfo); String sessionId = site.CreateSession(); MgSiteConnection siteConnection = new MgSiteConnection(); //open site connection siteConnection.Open(userInfo); MgResourceService ResourceService = siteConnection.CreateService(MgServiceType.ResourceService) as MgResourceService; MgFeatureService FeatureService = siteConnection.CreateService(MgServiceType.FeatureService) as MgFeatureService; MgResourceIdentifier mgResourceID = new MgResourceIdentifier(Library://Production/PortBris/Maps/PortBris.MapDefinition); MgMap map = new MgMap(); map.Create(ResourceService, mgResourceID, PortBris); MgSelection thisSel = new MgSelection(); foreach (String layer in Layers) { MgLayer cLayer = map.GetLayers().GetItem(layer) as MgLayer; string layerClassName = cLayer.GetFeatureClassName(); string selectionString = thisSel.GenerateFilter(cLayer, layerClassName); string layerFeatureId = cLayer.GetFeatureSourceId(); MgResourceIdentifier layerFeatureResource = new MgResourceIdentifier(layerFeatureId); MgFeatureQueryOptions queryOptions = new MgFeatureQueryOptions(); queryOptions.SetFilter(selectionString); MgFeatureReader cFeatReader = FeatureService.SelectFeatures(layerFeatureResource, layerClassName, queryOptions); thisSel.AddFeatures(cLayer as MgLayerBase, cFeatReader, -1); } return thisSel; } //return an array protected String[] StringArray(String CommaSeperatedLayers) { return CommaSeperatedLayers.Split(,.ToCharArray()); } //add a DDL search type to the TabContainer //ToDo: add list search capabilities and filtering protected DropDownList addSearchDDL(Control controlToAddTo, String searchDDLId, String labelText) { Label cLabel = new Label(); cLabel.Text = labelText; controlToAddTo.Controls.Add(cLabel); DropDownList cDDL = new DropDownList(); cDDL.ID = searchDDLId; controlToAddTo.Controls.Add(cDDL); return cDDL; } //add a new Tab to the Ajax TabContainer //each tab is a different search type protected AjaxControlToolkit.TabPanel AddTab(AjaxControlToolkit.TabContainer TabCont, String TabID, String Header) { AjaxControlToolkit.TabPanel newTab = new AjaxControlToolkit.TabPanel(); newTab.ID = TabID; newTab.HeaderText = Header; TabCont.Tabs.Add(newTab);
Re: [mapguide-users] Trying to create an ajax search thingo
Also, you may need to double check that you're correctly using the MgMap API as a result of http://trac.osgeo.org/mapguide/wiki/MapGuideRfc9 - Jackie Jamo wrote: Cheers Jackie I've fixed it up changed the MgSelection to MgSelectionBase where needed. Also changed the MgSelection thisSel = new MgSelection() to MgSelectionBase thisSel = new MgSelectionBase(map); which i think has fixed up the issue Another issue thats got me stunned is this doesn't work.. foreach (MgLayerBase cLayer in cadFeatures.GetLayers()) { Response.Write(cLayer.GetClassDefinition().GetProperties().Count); } However at the same point in code this does? string layerClassName = cLayer.GetFeatureClassName(); string selectionString = cadFeatures.GenerateFilter(cLayer, layerClassName); string layerFeatureId = cLayer.GetFeatureSourceId(); MgResourceIdentifier layerFeatureResource = new MgResourceIdentifier(layerFeatureId); MgFeatureQueryOptions queryOptions = new MgFeatureQueryOptions(); queryOptions.SetFilter(selectionString); MgFeatureReader featureReader = FeatureService.SelectFeatures(layerFeatureResource, layerClassName, queryOptions); Response.Write(featureReader.GetClassDefinition().GetProperties().Count); I'm not too sure on why or how but I'm not too fussed unless this extra creation of a MgSelection Set will cause twice as much waiting Jackie Ng wrote: Perhaps you may have used the wrong MgSelection constructor? The API docs says that MgSelection() is a dummy constructor. - Jackie -- View this message in context: http://n2.nabble.com/Trying-to-create-an-ajax-search-thingo-tp2729762p2730027.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] SetFilter IN
If they are variables, then your line of code should really be: districtQuery.SetFilter(Autogenerated_SDF_ID IN ( + district1 + , + district2 + , + district3 + )); OR a cleaner version: districtQuery.SetFilter(string.Format(Autogenerated_SDF_ID IN ({0}, {1}, {2}), district1, district2, district3)); - Jackie KOBAH wrote: Jackie, I even hardcoded the variables. districtQuery.SetFilter(Autogenerated_SDF_ID IN (3,1) ); Single quote will not work here as it is integer and not string and it will give errors. I tried similar stuff on SHPGEOM as well with no success. KOBAH Jackie Ng wrote: Another question I should've asked: Are district1, distrct2 the actual values you are after or are they variable names? - Jackie KOBAH wrote: Hello, I hope users might have undergone this basic query filter in past. districtQuery.SetFilter(Autogenerated_SDF_ID = + district); I just want to alter this filter to include multiple option by using IN query filter. districtQuery.SetFilter(Autogenerated_SDF_ID IN (district1, district2, district2) ); I am getting result for the first variable only not the others. Is my syntax right? Regards, KOBAH -- View this message in context: http://n2.nabble.com/SetFilter-IN-tp2718929p2730123.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] Trying to create an ajax search thingo
That would be the Layer Definition. You would have to get the resource id of the layer definition from the MgLayer and get the resource content, looking for the PropertyMapping elements (I believe). - Jackie Jamo wrote: I can remember seeing somewhere something taht returns all the mapped feature properties from the layer, however I can seem to remember what it was attached to FeatureReader? LayerDefinitoin? MgSelection? -- View this message in context: http://n2.nabble.com/Trying-to-create-an-ajax-search-thingo-tp2729762p2731956.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] SDE Data
How big are these nvarchar fields? There were known problems with large nvarchar fields? http://trac.osgeo.org/fdo/ticket/471 - Jackie Daniel, Scott wrote: I have created a layer from an SDE data source. However, Studio is not displaying any fields that are nvarchar field type. Is there a work-around or is this a known issue? Scott D. Daniel, GISP Senior GIS Analyst Ruekert * Mielke W233 N2080 Ridgeview Parkway Waukesha, WI 53188 (262) 542-5733 (262) 542-5631 Fax mailto:sdan...@ruekert-mielke.com http://www.ruekert-mielke.com ___ 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/SDE-Data-tp2737087p2738196.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] Can you group features?
You have to use a MultiXXX geometry type. (MultiPoint, MultiLineString, etc) To make these types in AutoCAD Map (2009 onwards AFAIK), right click your FDO layer in your Display Manager, and choose New Feature from Geometry, then you can select all your disconnected (AutoCAD) lines, and they should be created as a single logical Multi feature (if the FDO layer's geometry storage permits it). Then if you select any one of the lines, the whole group should be selected, MapGuide should exhibit the same behaviour. Hope that helps. - Jackie JamesDudden wrote: Hi, This question is related to MapGuide as I am using MGOS but the answer may be unrelated so any help or advice would be appreciated. What I want to do in basic terms is group separate features on my map so they can be selected as one entity i.e. 2 lines that are unconnected but when clicked on both will be highlighted. I have tried this in AutoCAD LT and a colleague tried this is in AutoCAD Map 3D (though I am not really familiar with either product so may have missed something) and the result has been inconsistent - when I tried grouping 2 lines it worked some of the time but not always and when I tried grouping more than 2 lines it didn't work, basically the lines disappeared. I spoke to an Autocad/MapGuide Reseller and they said it shouldn't work if it did it is probably a bug. Has anybody been able to group features so they can be selected as one entity? Regards JD -- View this message in context: http://n2.nabble.com/Can-you-group-features--tp2741344p2746332.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] freeBSD install
Fusion runs on top of MapGuide, which uses FDO. So yes you need to compile both. You're probably the first one to try compiling on BSD. So you're probably on your own here. Do let us know if you have success :-) - Jackie Marco Battistella wrote: Hi, I am attempting to create a install of fusion/mapguide/fdo in a FreeBSD environment. I am encountering a number of issues and i hope someone here can help. First, i'm not quite clear of the different requirements etc... I was provided the fusion files created some time ago by a third party. Reading the installation requirements for these files i understand that the following should be available: - webserver (apache 2.2.x) - not a problem - php - not a problem - mapguide (which i guess requires java sdk in order to be built) - fdo (required by mapguide) I have downloaded the linux install for fdo but i run into a whole series of errors, i'm not going to get into it, just yet. My first question is: am i understanding it correctly? Do i need to install/compile mapguide and fdo in order to have a functional fusion install? My second question: has anyone built these under FreeBSD before? And if so, what's the trick? :-) Thank you for any reply. Marco ___ 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/freeBSD-install-tp2748563p2748749.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] Creating a temporary feature source that is not an SDF file
If you understand that feature sources are just xml documents that describe a FDO connection to a particular data store, then CreateFeatureSource()/MgCreateSdfParams is just a convenience method that does the following: 1) Create the SDF file, with the specified schema 2) Create an XML feature source document for this created SDF 3) Sets the resource content (feature source) based on the given resource id 4) Uploads the created SDF file as the resource data for the given resource id What is so special about MgCreateSdfParams is that it can create the SDF data store for you (the 1st part). For anything other than SDF, this data store creation ability is not exposed and you will need to have the data on hand already or use the FDO API to create the data store. However you can achieve the same effect (parts 2, 3 and 4) using SetResource() and SetResourceData() methods of MgResourceService. I think in your case, what you want to do is to copy the raster feature source to your session repository, and modify its configuration document. No CreateFeatureSource() call is required. Hope that helps. - Jackie adnanc wrote: Hello all, I am currently serving georeferenced tiffs with the GDAL provider, using a config file for indexing them. A requirement I have is to enable a user to select an area of interest and be able to programmatically generate the config file of tiffs for that particular area. I have been able to complete this functionality using the gdal api. The next step is to create a session based layer for displaying these tiffs, however this also needs a session based feature source. I have created a session based feature source but it is an SDF feature source. Doing the following will add the config file to the feature source, but it will not display any tiffs. resourceService.SetResourceData(resID, ConfigurationDocument, Stream, byteReader); The MgFeatureSourceParams class only has one concrete class MgCreateSdfParams. Has any one had a similar requirement or know of a workround for the above problem. Thanks for your time, Adnan -- View this message in context: http://n2.nabble.com/Creating-a-temporary-feature-source-that-is-not-an-SDF-file-tp2828125p2843672.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] migrating resources from 2009 server to 2010
The simplest way to migrate data is to use the mapguide site administrator to create a data package (mgp), this can also serve as your 2009 backup that you can roll back if things go wrong. Copy this package to your 2010 installation (MapGuideEnterprise2010\Server\Packages). Run its site administrator and load your created package. - Jackie ndow wrote: Hi there I have data (resources) stored in a mapguide 2009 server that I need to copy and move to the 2010 version. I'm a new user of MapGuide and can't make the mistake of deleting or altering the data in the move. I've really only gone through the getting started tutorials and don't know which components to use or how to get it done. ANy info would be appreciated. Thank you Nelson -- View this message in context: http://n2.nabble.com/migrating-resources-from-2009-server-to-2010-tp2866043p2866137.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] King.Oracle and King.Informix for FDO 3.4
Hi Haris, Will we see a 3.4 port of the KML provider anytime soon? - Jackie Haris Kurtagic wrote: Hi, I have build latest King.Oracle and King.Informix FDO providers for FDO 3.4. You can download them from http://www.sl-king.com/fdooracle/download/download.html and http://www.sl-king.com/FdoInformix/download/download.html Haris ___ 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/King.Oracle-and-King.Informix-for-FDO-3.4-tp2867610p2867663.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] .NET viewer sample: query tool
Are you using the latest release of MapGuide? Also, do your maps/layers/feature sources have defined coordinate systems? - Jackie nasp wrote: Hi, I downloaded .NET sample application. Everything works fine but not the query tool. In query\classes\query.aspx, Execute() procedure, I got an error (MgUnclassifiedException) at this line centerPoint = (MgPoint) centerPoint.Transform(csTransform); Can someone help me, please? Regards, Naspi -- View this message in context: http://n2.nabble.com/.NET-viewer-sample%3A-query-tool-tp2868356p2868505.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] .NET viewer sample: query tool
If you look at the server error logs, do they reveal any more information at the time of failure? - Jackie nasp wrote: Thank you for your answer. Mapguide version is 2.0.2 with FDO 3.4 The map has EPSG=3003 Any ideas? Jackie Ng wrote: Are you using the latest release of MapGuide? Also, do your maps/layers/feature sources have defined coordinate systems? - Jackie nasp wrote: Hi, I downloaded .NET sample application. Everything works fine but not the query tool. In query\classes\query.aspx, Execute() procedure, I got an error (MgUnclassifiedException) at this line centerPoint = (MgPoint) centerPoint.Transform(csTransform); Can someone help me, please? Regards, Naspi -- View this message in context: http://n2.nabble.com/.NET-viewer-sample%3A-query-tool-tp2868356p2868607.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] Gdal and php
Are you talking about the GDAL provider or using the GDAL library directly in PHP? If you are talking about the provider, GDAL is encapsulated in the form of a FDO provider and that is further encapsulated as MapGuide's Feature Service API. MapGuide has no direct knowledge about GDAL. If you want to use GDAL in this way, you have to use MapGuide's Feature Service API. - Jackie djutopie wrote: Hi, I need to know the basics of the library. Must I specify an include path in php in order to use it? I can't perform any function from the Gdal library. How does MapGuide rules the libraries? Any help will be appreciated. -- View this message in context: http://n2.nabble.com/Gdal-and-php-tp2869685p2879015.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 2.1 Fusion 2 - Measure tool
Fusion has a MapGuide 2.1 specific branch, the beta may have stuff that has not made it into this branch? Speaking of the Measure Tool, have they addressed this problem yet? http://trac.osgeo.org/mapguide/ticket/325 (and closely related: http://trac.osgeo.org/mapguide/ticket/333) These tickets are quite trivial, fixing it would improve usability greatly. - Jackie Berdel, Brian wrote: The measure tool in fusion is very erratic since the update to 2. It works pretty well in the beta download but not in the version in the 2.1 installer or the svn version. I have tried replacing the widget from the beta and tried different versions of open layers but have not had success. Basically, in the 2.1 installer version it works pretty well, but it takes 4 clicks to end the segment. Also the escape key no longer works to clear it.I was testing in IE7 Brian ___ 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/Mapguide-2.1-Fusion-2---Measure-tool-tp2883421p2883546.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] Modifying SymbolDefinition programmatically
I don't know much about Symbol Definitions, but all resources in mapguide (including Symbol Definitions) are XML data. So you could use the Resource Service APIs to get the resource content, edit the xml content (with your XML access library/api of choice) and save back the changes. This can be done with any resource. - Jackie psciga wrote: Hello, can you tell me please, how to modify the symbol definition with php? Following background: In AutoCAD I have several hundred blocks. The import into MGOS 2 via MG Studio 2009 works fine. The once problem is, that the parameter for ROTATION have a DefaultValue = 0. This default value I want to replace with a field name winkel from the MySQL database. It is easy to do this by hand for some symbols, but with for 657 symbol definitions I become crazy ;-) . How can I replace this default value using php? Thanks in advance. Regards - Peter -- View this message in context: http://n2.nabble.com/Modifying-SymbolDefinition-programmatically-tp2879871p2883580.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] WebServerExtensions Installation
The installer is doing the following: 1) Installing to C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions - If Apache, configures httpd.conf based on your installer preferences. - If IIS, creates the virtual directories and sets up the script mappings (php, aspx, jsp, fcgi) based on your installer preferences. - If manual config, nothing else is done (I believe) What you could do is install the web server extensions into a test machine. Then grab all the files under WebServerExtensions, upload it to your remote host and manually install and configure from there. - Jackie S.Dalakov wrote: Hi all, I want to (try to) install MGOS2.02 (WebServerExtensions) on a commercial hosting, so my question is : Is it possible to configure WebServerExtensions manually - no provider will let me run an executable ? What in fact is the installer doing (except to copy files) ? Thank you in advance Stefan Dalakov -- View this message in context: http://n2.nabble.com/WebServerExtensions-Installation-tp2883554p2883636.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] .NET viewer sample: query tool
If you are using MapGuide Studio, the feature source editor allows you to specify a coordinate system for your point geometry tables. I don't know if Maestro has exposed this same capability. - Jackie nasp wrote: The problem is for layer with FDO Provider: OSGeo.ODBC and it's ok for SDF layers. OSGeo.ODBC data connection has no spatial context information (SDF layer connection has it!). Do you know how can I provide spatial context information for ODBC geometry? Regards, Naspi Jackie Ng wrote: If you look at the server error logs, do they reveal any more information at the time of failure? - Jackie nasp wrote: Thank you for your answer. Mapguide version is 2.0.2 with FDO 3.4 The map has EPSG=3003 Any ideas? Jackie Ng wrote: Are you using the latest release of MapGuide? Also, do your maps/layers/feature sources have defined coordinate systems? - Jackie nasp wrote: Hi, I downloaded .NET sample application. Everything works fine but not the query tool. In query\classes\query.aspx, Execute() procedure, I got an error (MgUnclassifiedException) at this line centerPoint = (MgPoint) centerPoint.Transform(csTransform); Can someone help me, please? Regards, Naspi -- View this message in context: http://n2.nabble.com/.NET-viewer-sample%3A-query-tool-tp2868356p2883850.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] is it true?: ODBC data source should be in Lat/Lon coordinates
No :-) It just needs to have a coordinate system defined or mapguide won't know how to interpret the points. - Jackie nasp wrote: Please, I hope someone can answer my question and I hope the answer is NO. Is it true: ODBC data source should be in Lat/Lon coordinates? Thank you very much for your help. Naspi -- View this message in context: http://n2.nabble.com/is-it-true-%3A-ODBC-data-source-should-be-in-Lat-Lon-coordinates-tp2889266p2889755.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] Assistance showing spatial data in selection pane
You have to specify in the layer definition what properties of the feature source it's using will be displayed when selected. - Jackie shepwaydistrictcouncil wrote: Hi Over the last week we've managed to go from MGOS newbies to having a fairly good demonstration server and php/fusion served interactive map. We have today managed to sort the odbc connection to our sql2000 databases and have our planning application spatial data showing as one of our layers on our map. These can be selected great and the points when selected turn into selected squares so we know it's getting there. In the selection pane it now shows Planning Applications in the drop down box but underneath it just 2 empty columns, attribute and value. How do I assign data to this view, preferably with links i can pull from the database to the returned values. Is it when setting up the layer? Thanks Neil -- View this message in context: http://n2.nabble.com/Assistance-showing-spatial-data-in-selection-pane-tp2948668p2949590.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] Trying to add another class definition to a SDF
MapGuide does not expose FDO's IApplySchema command. You will have to use the FDO API directly if you want to modify existing schemas. - Jackie Jamo wrote: I've been trying this code to add another class definition to a SDF, it only adds a new classDefinition when the users SDF already exists is this possible, everything seems to run through fine but no new class.. if (ResourceService.ResourceExists(dataSourceId) == false) { //create Feature Source MgClassDefinition myClassDef = new MgClassDefinition(); myClassDef.SetName(layerName); myClassDef.SetDescription(layerDesc); //TODO : make SHPGEOM a Variable... myClassDef.SetDefaultGeometryPropertyName(GEOM); //Set KEY Property MgDataPropertyDefinition prop = new MgDataPropertyDefinition(FeatId); prop.SetDataType(MgPropertyType.Int32); prop.SetAutoGeneration(true); prop.SetReadOnly(true); myClassDef.GetIdentityProperties().Add(prop); myClassDef.GetProperties().Add(prop); //Set geometry property MgGeometricPropertyDefinition geomProp = new MgGeometricPropertyDefinition(GEOM); geomProp.SetGeometryTypes(MgFeatureGeometricType.Curve); myClassDef.GetProperties().Add(geomProp); //Create the schema MgFeatureSchema schema = new MgFeatureSchema(Default, Default Feature Schema); schema.GetClasses().Add(myClassDef); MgCreateSdfParams sdfParams = new MgCreateSdfParams(MGA-56 (GDA94 / MGA zone 56), map.GetMapSRS(), schema); FeatureService.CreateFeatureSource(dataSourceId, sdfParams); } else { //create Feature Source MgClassDefinition myClassDef = new MgClassDefinition(); myClassDef.SetName(layerName); myClassDef.SetDescription(layerDesc); //TODO : make SHPGEOM a Variable... myClassDef.SetDefaultGeometryPropertyName(GEOM); //Set KEY Property MgDataPropertyDefinition prop = new MgDataPropertyDefinition(FeatId); prop.SetDataType(MgPropertyType.Int32); prop.SetAutoGeneration(true); prop.SetReadOnly(true); myClassDef.GetIdentityProperties().Add(prop); myClassDef.GetProperties().Add(prop); //Set geometry property MgGeometricPropertyDefinition geomProp = new MgGeometricPropertyDefinition(GEOM); geomProp.SetGeometryTypes(MgFeatureGeometricType.Curve); myClassDef.GetProperties().Add(geomProp); FeatureService.DescribeSchema(dataSourceId, Default)[0].GetClasses().Add(myClassDef); } -- View this message in context: http://n2.nabble.com/Trying-to-add-another-class-definition-to-a-SDF-tp2950536p2950667.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] Trouble Adding Existing Layers Programmatically
The duplicate object is most likely caused by the line: map.GetLayers().Add(listLayer) If there is a possibility of this code path being executed more than once, you should check for the existence of the layer (by name) before adding it to the map. - Jackie Jamo wrote: Anyone able to tell me why this would not be working? I'm trying to add a layer that already exists in the repositry... it errors with duplicate object ? though it is not in the map as of yet. or is it because this is attempting to create a new layer in the repositry ? MgLayer listLayer = new MgLayer(LibLayer, ResourceService); ? I'm attempting to add the layers programatically when a user selects them, however it could be just as good to add the layer to the map definition, which of these would you prefer? MapGuideApi.MgInitializeWebTier(Request.ServerVariables[APPL_PHYSICAL_PATH] + ../webconfig.ini); MgUserInformation userInfo = new MgUserInformation(sessionID); MgSite site = new MgSite(); //connect to site site.Open(userInfo); MgSiteConnection siteConnection = new MgSiteConnection(); //open site connection siteConnection.Open(userInfo); MgResourceService ResourceService = siteConnection.CreateService(MgServiceType.ResourceService) as MgResourceService; MgFeatureService FeatureService = siteConnection.CreateService(MgServiceType.FeatureService) as MgFeatureService; MgMap map = new MgMap(siteConnection); map.Open(mapName); MgResourceIdentifier LibLayer = new MgResourceIdentifier(Library://Markup/ + mapName + / + LayersDDL.SelectedItem.Text + .LayerDefinition); MgLayer listLayer = new MgLayer(LibLayer, ResourceService); map.GetLayers().Add(listLayer); map.Save(ResourceService); -- View this message in context: http://n2.nabble.com/Trouble-Adding-Existing-Layers-Programmatically-tp1807961p2968260.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] Maestro Issues
1) I get this problem too. I have folders that contain dots and Maestro will just choke when it encounters one. 2) I do believe that this has been addressed: http://trac.osgeo.org/mapguide/ticket/811 - Jackie Dave Wilson wrote: When trying to use the 1.0.9 build of Maestro I have encountered 2 problems: 1) Maestro bails when the repository has foreign characters in any of the object (folder) names 2) Maestro seemingly can't handle large repository trees (although the error I encountered may be related to item 1 as I may have had foreign folder names and objects) ** Exception Text ** System.Exception: Failed to find node with name Épületek és kerítések terept., while looking for: Library://MAV_GIS/Data/Objektumok/Épületek és kerítések terept./Épület tartozékok pontszerű/ at OSGeo.MapGuide.Maestro.FormMain.FindParent(String resourceID) at OSGeo.MapGuide.Maestro.FormMain.RebuildDocumentTree() at OSGeo.MapGuide.Maestro.FormMain.FormMain_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message m) at System.Windows.Forms.Control.WndProc(Message m) at System.Windows.Forms.ScrollableControl.WndProc(Message m) at System.Windows.Forms.ContainerControl.WndProc(Message m) at System.Windows.Forms.Form.WmShowWindow(Message m) at System.Windows.Forms.Form.WndProc(Message m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Problem 1 was not an issue using the current preview build on the same repository that generated the above error. I still encountered Problem 2 on one server with a large repository with a large number of folders and resources using the current preview build. I think the error was basically the xml was too large. I'd have to try and regenerate it for more details. Regards, Dave Dave Wilson AEC IM CRT, Calgary Autodesk Canada Inc Ph: 403.538.3069 Fax: 403.264.1442 ___ 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/Maestro-Issues-tp2972081p2972170.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] Tooltip on MapGuide Web API
Which constructor for MgMap did you use and which overload of Create()/Open()/Save() did you use? - Jackie gatopardo wrote: I've tried to open the map with MgMap.Create() and with MgMap.Open() I've tried to call Save(), but doesnt' work. It could be a bug? Or I am doing something wrong? Chris Claydon wrote: I *think* that when you call RenderMap, it will set the width and height for the in-memory map object. Try calling Save() on the map to save the values back to the session repository before making the calls to GetDisplayWidth/GetDisplayHeight. Chris. -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of gatopardo Sent: Tuesday, May 26, 2009 7:05 AM To: mapguide-users@lists.osgeo.org Subject: RE: [mapguide-users] Tooltip on MapGuide Web API I've tried QueryFeatures on MgRenderingService, but it throws an exception. I've been looking the MgRenderingService source code, and the exception is because the map has the height, width and scale equal to 0. I don't know how can I set this values on Web Api. Because the map doesn't have setDisplayWidth or setDisplayHeight methods, only have GetDisplayWidth and GetDisplayHeight. Both returns 0. First of all I have rendered map images, but the map object doesn't save the render height and width. So I think the real problem is how to make that the MgMap Object remembers the last render height and width parameters, or how to set them. Chris Claydon wrote: I'm pretty sure that QUERYMAPFEATURES ends up calling the QueryFeatures method on the MgRenderingService. You'll need to create a geometry object that corresponds to the point you're clicking on. It is best to make it a small square rather than a single point, in order for the spatial filter to pick up the underlying feature. And it should use coordinates in the same coordinate system as the map (not image pixel cords). Chris. From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Kenneth Skovhede, GEOGRAF A/S Sent: Monday, May 25, 2009 7:35 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Tooltip on MapGuide Web API The operation is called QUERYMAPFEATURES, but I can't seem to find it as a function from the Web API. You can see it in use if you look in the file: C:\program files\MapGuideOpenSource2.0\WebServerExtensions\www\viewerfiles\ajaxmappane.templ line 2555. You may also want to read this thread: http://lists.osgeo.org/pipermail/mapguide-users/2007-January/004818.html Regards, Kenneth Skovhede, GEOGRAF A/S gatopardo skrev: Nobody can help me? gatopardo wrote: How could I get the Tooltip on a point using MapGuide Web API? Example: I have generated an image using MgRenderingService.RenderMap, and after that I want to get the tooltip on a point of this image, using the coordinates on image pixels or converting them to lat-lon. But I haven't found any method that makes this. ___ 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/Tooltip-on-MapGuide-Web-API-tp2732016p2974565.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/Tooltip-on-MapGuide-Web-API-tp2732016p2979390.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] Tooltip on MapGuide Web API
If you use the MgMap(MgSiteConnection) constructor, you should (must?) use these overloads: Create(MgResourceIdentifier, string) Open(string) Save() See the gory details here: http://trac.osgeo.org/mapguide/wiki/MapGuideRfc9 - Jackie gatopardo wrote: USING OPEN METHOD mapGuideMap = new MgMap(this.mapGuideSiteCnn); mapGuideMap.Open(this.MapGuideResourceService,mapResourceIdentifier); //render map byteReader = mapGuideRenderingService.RenderMap(mapGuideMap, selection, mgEnvelope, width, height, new MgColor(backColor), PNG, true); mapGuideMap.Save(mapGuideResourceService); //this doesn't throw any exception, but GetDisplayHeight/GetDisplayWidth returns 0 //If i use this other overload mapGuideMap.Save(mapGuideResourceService,new MgResourceIdentifier(resourceId)); //this throws An exception occurred in the XML parser exception USING CREATE METHOD mapGuideMap = new MgMap(this.mapGuideSiteCnn); mapGuideMap.Create(mapGuideResourceService, mapResourceIdentifier, testMap); //render map byteReader = mapGuideRenderingService.RenderMap(mapGuideMap, selection, mgEnvelope, width, height, new MgColor(backColor), PNG, true); mapGuideMap.Save(mapGuideResourceService); //this throws Null reference exception //If i use this other overload mapGuideMap.Save(mapGuideResourceService,new MgResourceIdentifier(resourceId)); //this throws An exception occurred in the XML parser exception Jackie Ng wrote: Which constructor for MgMap did you use and which overload of Create()/Open()/Save() did you use? - Jackie gatopardo wrote: I've tried to open the map with MgMap.Create() and with MgMap.Open() I've tried to call Save(), but doesnt' work. It could be a bug? Or I am doing something wrong? Chris Claydon wrote: I *think* that when you call RenderMap, it will set the width and height for the in-memory map object. Try calling Save() on the map to save the values back to the session repository before making the calls to GetDisplayWidth/GetDisplayHeight. Chris. -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of gatopardo Sent: Tuesday, May 26, 2009 7:05 AM To: mapguide-users@lists.osgeo.org Subject: RE: [mapguide-users] Tooltip on MapGuide Web API I've tried QueryFeatures on MgRenderingService, but it throws an exception. I've been looking the MgRenderingService source code, and the exception is because the map has the height, width and scale equal to 0. I don't know how can I set this values on Web Api. Because the map doesn't have setDisplayWidth or setDisplayHeight methods, only have GetDisplayWidth and GetDisplayHeight. Both returns 0. First of all I have rendered map images, but the map object doesn't save the render height and width. So I think the real problem is how to make that the MgMap Object remembers the last render height and width parameters, or how to set them. Chris Claydon wrote: I'm pretty sure that QUERYMAPFEATURES ends up calling the QueryFeatures method on the MgRenderingService. You'll need to create a geometry object that corresponds to the point you're clicking on. It is best to make it a small square rather than a single point, in order for the spatial filter to pick up the underlying feature. And it should use coordinates in the same coordinate system as the map (not image pixel cords). Chris. From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Kenneth Skovhede, GEOGRAF A/S Sent: Monday, May 25, 2009 7:35 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Tooltip on MapGuide Web API The operation is called QUERYMAPFEATURES, but I can't seem to find it as a function from the Web API. You can see it in use if you look in the file: C:\program files\MapGuideOpenSource2.0\WebServerExtensions\www\viewerfiles\ajaxmappane.templ line 2555. You may also want to read this thread: http://lists.osgeo.org/pipermail/mapguide-users/2007-January/004818.html Regards, Kenneth Skovhede, GEOGRAF A/S gatopardo skrev: Nobody can help me? gatopardo wrote: How could I get the Tooltip on a point using MapGuide Web API? Example: I have generated an image using MgRenderingService.RenderMap, and after that I want to get the tooltip on a point of this image, using the coordinates on image pixels or converting them to lat-lon. But I haven't found any method that makes this. ___ 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/Tooltip-on-MapGuide-Web-API-tp2732016p2974565.html Sent from the MapGuide Users mailing list archive at Nabble.com
Re: [mapguide-users] 2.1 installation problem
If you search msdn for this GetModuleHandleEx function, it will indicate that the minimum supported client is *Windows XP*, so this API was first introduced in Windows XP. In short, Windows 2000 is not supported. - Jackie Andrew DeMerchant wrote: I did a search in httpd.conf, but didn't see any %MG occurrences. The logs had a few php errors in them, but more interestingly, when I went to restart the Apache server, it crashed (httd.exe crashed - with lots of errors like The procedure entry point GetModuleHandleExW could not be located in the dynamic link library kernel32.dll. Here's my error.log: [Mon Jun 01 16:44:32 2009] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations [Mon Jun 01 16:44:32 2009] [notice] Server built: Jan 9 2007 23:17:20 [Mon Jun 01 16:44:32 2009] [notice] Parent: Created child process 1428 [Mon Jun 01 16:44:32 2009] [notice] Disabled use of AcceptEx() WinSock2 API PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\OSGeo\\MapGuide\\Web\\Php\\ext\\php_MapGuideApiEnvConfig.dll' - The specified procedure could not be found.\r\n in Unknown on line 0 [Mon Jun 01 16:44:34 2009] [notice] Child 1428: Child process is running [Mon Jun 01 16:44:34 2009] [notice] Child 1428: Acquired the start mutex. [Mon Jun 01 16:44:34 2009] [notice] Child 1428: Starting 50 worker threads. [Mon Jun 01 16:44:34 2009] [notice] Child 1428: Listening on port 8008. Andrew On 6/1/2009 4:32 PM, Jason Birch wrote: Andew, Don't have a 2.1 installation handy, so locations may be a bit fuzzy... Could you please check your Apache installation to see if the mapping worked properly. The configuration should be in: c:\program files\osgeo\mapguide\web\Apache2\conf\httpd.conf Have a look at it and see if there are any remaining %MG_ placeholders in there. I'd be surprised if this was the case though; typically I think this causes the Apache service to fail to start, so you wouldn't get the HTTP errors at all. Next have a look in the web server logs. I think they are in: c:\program files\osgeo\mapguide\web\Apache2\logs and see if there's anything out of the ordinary in the access or error logs. Also, make sure that there are no leftovers from the 2.0 install, such as an invalid PHP location in the PATH or in the registry under HKLM\Software\PHP\5.2.5 (or something like that) Jason *From:* Andrew DeMerchant *Sent:* Monday, June 01, 2009 11:11 AM *To:* MapGuide Users Mail List *Subject:* [mapguide-users] 2.1 installation problem I'm trying to install the 2.1 beta on a Windows 2000 virtual machine - I had had 2.0 on there with no problems (with IIS)...I uninstalled 2.0 completely, then installed 2.1 with Apache - but when I try to access anything (MapAgent test pages, MapGuide site admin) I get a 403 (access forbidden). I don't know Apache - any suggestions? I'm sure it's simplebut I could find anything online that was applicable. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- *Andrew DeMerchant* *Computer Technologist* ph.1-877-2GEMTEC x.163 fax 506-453-9470 /GEMTEC Limited http://www.gemtec.ca /191 Doak Road Fredericton, NB, Canada E3C 2E6 ___ 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/How-to-Save-Redline-Object-on-a-new-Layer-tp2992274p3009575.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] Zoom selection problem in MGOS 2.1
Do you have the PostGIS provider with logging enabled? It may be able to shed more information in its logs - Jackie ary_s wrote: ary_s wrote: Hii all, I was wondering if i'm the only one who face the error about executeMapAction(10)? My IE 7 gave me debug window after invoke that function. My firefox 3, even worst gave me debug window if I choose zoom selection from context menu.. After the error, mgserver crash and need to be restarted Many thank.. I would like to add that this problem occur on postgis fdo provider only. So i think this is fdo problem -- View this message in context: http://n2.nabble.com/Zoom-selection-problem-in-MGOS-2.1-tp3005644p3009607.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] 2.1 installation problem
Not quite, from your observations it seems the main offender is the php_MapGuideApiEnvConfig.dll Looking at the source-code, you'll see the GetModuleHandleEx() API I mentioned being used. http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Web/src/PhpMapGuideApiEnvConfig/PhpMapGuideApiEnvConfig.cpp Now the purpose of the php_MapGuideApiEnvConfig.dll is to resolve multiple different versions of php installed on the same system. If the only version of PHP you're using is the one that comes with MapGuide, then you can remove the reference to php_MapGuideApiEnvConfig.dll in the php.ini and see if MapGuide is operational. If so, then we just need to see if a Windows 2000 equivalent API exists (GetModuleHandle???) that does the same thing. - Jackie Andrew DeMerchant wrote: So suddenly with MapGuide 2.1, we've lost Win2k support?? Well that seriously sucks, if it's true. That means I'm stuck with 2.0 and on a dead end street for the unforeseeable future. Is that correct? Andrew James Card wrote: Aha! That explains why I was getting the same symptoms last week. Perhaps we could persuade someone to add a note to the downloads page at http://mapguide.osgeo.org/download/releases/2.1.0. ___ 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/How-to-Save-Redline-Object-on-a-new-Layer-tp2992274p3010274.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] 2.1 installation problem
Ok I've just done a clean install on a Windows 2000 VM with a trunk build installer (roughly the same as the 2.1 beta) using Apache/PHP and I have a functioning server and web extensions. I also got the same problems with php_MapGuideApiEnvConfig.dll in my error logs. So there must be some other factor at play here. Have you tried running both the MapGuide Server and/or Apache interactively? Please note that I also installed the Windows 2000 Update Rollup package as well. I don't know if this makes a difference. - Jackie Jackie Ng wrote: Not quite, from your observations it seems the main offender is the php_MapGuideApiEnvConfig.dll Looking at the source-code, you'll see the GetModuleHandleEx() API I mentioned being used. http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Web/src/PhpMapGuideApiEnvConfig/PhpMapGuideApiEnvConfig.cpp Now the purpose of the php_MapGuideApiEnvConfig.dll is to resolve multiple different versions of php installed on the same system. If the only version of PHP you're using is the one that comes with MapGuide, then you can remove the reference to php_MapGuideApiEnvConfig.dll in the php.ini and see if MapGuide is operational. If so, then we just need to see if a Windows 2000 equivalent API exists (GetModuleHandle???) that does the same thing. - Jackie Andrew DeMerchant wrote: So suddenly with MapGuide 2.1, we've lost Win2k support?? Well that seriously sucks, if it's true. That means I'm stuck with 2.0 and on a dead end street for the unforeseeable future. Is that correct? Andrew James Card wrote: Aha! That explains why I was getting the same symptoms last week. Perhaps we could persuade someone to add a note to the downloads page at http://mapguide.osgeo.org/download/releases/2.1.0. ___ 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/How-to-Save-Redline-Object-on-a-new-Layer-tp2992274p3011919.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] Calculated Geometry Properties possible?
Hi All, Is it possible to have a feature source with an extended feature class containing calculated properties (with these expressions): - X ( [The geometry property] ) - Y ( [The geometry property] ) Be used as a feature source for a point layer? - Jackie -- View this message in context: http://n2.nabble.com/Calculated-Geometry-Properties-possible--tp3015959p3015959.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] Re: FDO Toolbox 0.7.8 (now x64 compatible, hopefully)
Download link for those who don't know: http://fdotoolbox.googlecode.com - Jackie 2009/6/10 Jackie Ng jumpinjac...@gmail.com Hi All, I have posted a new release of FDO Toolbox (0.7.8) which should now finally work on x64 platforms. I have tested this in Windows XP x64 and it works. If you have a 64-bit windows box, give this release a spin and let me know how it goes. Nothing has changed functionality-wise. This is functionally identical to the 0.7.7 release. - Jackie -- Blog: http://themapguyde.blogspot.com LinkedIn: http://www.linkedin.com/in/jackieng Twitter: http://twitter.com/jumpinjackie A SQL query walks into a bar and sees two tables. He walks up to them and says 'Can I join you?' -- Blog: http://themapguyde.blogspot.com LinkedIn: http://www.linkedin.com/in/jackieng Twitter: http://twitter.com/jumpinjackie A SQL query walks into a bar and sees two tables. He walks up to them and says 'Can I join you?' ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] FDO Toolbox 0.7.8 (now x64 compatible, hopefully)
Hi All, I have posted a new release of FDO Toolbox (0.7.8) which should now finally work on x64 platforms. I have tested this in Windows XP x64 and it works. If you have a 64-bit windows box, give this release a spin and let me know how it goes. Nothing has changed functionality-wise. This is functionally identical to the 0.7.7 release. - Jackie -- Blog: http://themapguyde.blogspot.com LinkedIn: http://www.linkedin.com/in/jackieng Twitter: http://twitter.com/jumpinjackie A SQL query walks into a bar and sees two tables. He walks up to them and says 'Can I join you?' ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] 2.1 installation problem
This is a known issue that has been shelved for the next release. http://trac.osgeo.org/mapguide/ticket/889 - Jackie Andrew DeMerchant wrote: Maybe they should be disabled in the FDO right form the installer - right now, you get errors as soon as you try to edit a layer. It's not exactly user-friendly, right now... Commenting those out solved the problem, by the way. Thanks! Andrew On 6/11/2009 10:46 AM, Zac Spitzer wrote: yeah, but you need the oracle client for oracle to work, same goes for postgres, ie libpq.dll On Thu, Jun 11, 2009 at 10:25 PM, Andrew DeMerchantandrew.demerch...@gemtec.ca wrote: Wouldn't a default install have installed all of the fdo's? Shouldn't they all work out of the box? Andrew On 6/10/2009 11:35 PM, Zac Spitzer wrote: try commenting out the fdo providers your not using from providers.xml On Thu, Jun 11, 2009 at 5:57 AM, Andrew DeMerchantandrew.demerch...@gemtec.ca wrote: Oh - and OCI.dll is also missing, apparently... Andrew On 6/10/2009 4:55 PM, Andrew DeMerchant wrote: Ok - totally fresh install on Windows 2000 server...the one thing I did do was install 2.0 using IIS and then removing it and installing 2.1 on Apache. This was to replicate my existing conditions. I get an error saying that mgserver.exe is unable to locate LIBPQ.dll. I did a search on the HD and couldn't find it anywhere. This is coming up when I try to edit a data source that was created and working in 2.0. From what I've seen so far, it seems to run faster - but until I get a 100% working install, I'm stuck with 2.0...any help? Andrew On 6/2/2009 11:01 AM, Andrew DeMerchant wrote: Removing that line in php.ini did nothing for me - same error.the dr.watson log in my event log lists the following (from when httpd crashes): The application, , generated an application error The error occurred on 06/02/2009 @ 10:38:27.130 The exception generated was c005 at address 77FCD989 (RtlZeroHeap) I don't know apache, so interactive mode isn't something that I know how to do (though I'll gladly try it with instructions). Also, this w2k installation is totally up to date with WindowsUpdate. Andrew On 6/2/2009 10:07 AM, Jackie Ng wrote: Ok I've just done a clean install on a Windows 2000 VM with a trunk build installer (roughly the same as the 2.1 beta) using Apache/PHP and I have a functioning server and web extensions. I also got the same problems with php_MapGuideApiEnvConfig.dll in my error logs. So there must be some other factor at play here. Have you tried running both the MapGuide Server and/or Apache interactively? Please note that I also installed the Windows 2000 Update Rollup package as well. I don't know if this makes a difference. - Jackie Jackie Ng wrote: Not quite, from your observations it seems the main offender is the php_MapGuideApiEnvConfig.dll Looking at the source-code, you'll see the GetModuleHandleEx() API I mentioned being used. http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Web/src/PhpMapGuideApiEnvConfig/PhpMapGuideApiEnvConfig.cpp Now the purpose of the php_MapGuideApiEnvConfig.dll is to resolve multiple different versions of php installed on the same system. If the only version of PHP you're using is the one that comes with MapGuide, then you can remove the reference to php_MapGuideApiEnvConfig.dll in the php.ini and see if MapGuide is operational. If so, then we just need to see if a Windows 2000 equivalent API exists (GetModuleHandle???) that does the same thing. - Jackie Andrew DeMerchant wrote: So suddenly with MapGuide 2.1, we've lost Win2k support?? Well that seriously sucks, if it's true. That means I'm stuck with 2.0 and on a dead end street for the unforeseeable future. Is that correct? Andrew James Card wrote: Aha! That explains why I was getting the same symptoms last week. Perhaps we could persuade someone to add a note to the downloads page athttp://mapguide.osgeo.org/download/releases/2.1.0. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- Andrew DeMerchant Computer Technologist ph.1-877-2GEMTEC x.163 fax 506-453-9470 GEMTEC Limited 191 Doak Road Fredericton, NB, Canada E3C 2E6 ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- Andrew DeMerchant Computer Technologist ph.1-877-2GEMTEC x.163 fax 506-453-9470 GEMTEC Limited 191 Doak Road Fredericton, NB, Canada E3C 2E6 ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- Andrew DeMerchant Computer Technologist ph
Re: [mapguide-users] FDO Toolbox - MapView
1. Was your SDF produced by AutoCAD Map 2010? Map 2010 makes SDFs containing 3-dimensional geometries, that the map preview can't handle. 2. There should be an Add button below the computed properties. This will bring up the expression editor where you can enter the required expression. - Jackie Nimrod Cnaan wrote: Hi Jackie Grate tool, we are using it on a daily basis. I have couple of problems: 1. can't see sdf preview in the Map View tab 2. how do I add a new functionality to the computed properties tab - String function Expression to create a reverse string column Date: Fri, 17 Apr 2009 10:33:11 -0700 From: jumpinjac...@gmail.com To: mapguide-users@lists.osgeo.org Subject: Re: [mapguide-users] FDO toolbox help I've made a new release of FDO Toolbox that not only fixes the Generic control for RDBMS providers, but also provides an express SQL Server 2008 spatial connection option. Cheers, - Jackie This is a defect with the Generic control that makes it unusable with RDBMS-based providers or any providers that have connection properties which are only available when connected. This will be fixed for the next release. The workaround in the meantime, would be to use the express connection method for [your RDBMS]. Unfortunately, SQL Server 2008 does not have an express connection method. It will for the next release. - Jackie Hi Jackie, I am trying to use this tool in order to convert shp to sql2008. I wanted to connect to sql2008 database but with no success. I have attached a screenshot with the error that I got it. I am using the 0.7.1.2118 version. could you help me with it? thanks in advance, -- View this message in context: http://n2.nabble.com/FDO-toolbox-help-tp2572209p2651987.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 _ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx ___ 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/FDO-toolbox-help-tp2572209p3077622.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] develping whit mapguid's api
FYI, I do not believe this (important) document is currently in the beta installer. - Jackie Martin Morrison wrote: The devguide.pdf is usually located in your webserverextensions\help directory. This will get you started... Martin From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of dada dede Sent: Tuesday, June 23, 2009 3:41 PM To: mapguide-users@lists.osgeo.org Subject: [mapguide-users] develping whit mapguid's api hi evry body first excuse my bad English i hop i can explain my problem to you i am new in the mapguid world i create my first map and generate mgp package i won't to load this map in my web page + add some option i know i can do it with API but i don't know where or how to start please if any one have some documentation about this subject or any thing can help me send them to me thanks a lot Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous !http://www.microsoft.com/windows/windowslive/default.aspx ___ 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/develping-whit-mapguid%27s-api-tp3144605p3147082.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 Open Sourc 2.0.2 how can use Mentor?
Are you sure you weren't using the mapguide enterprise mapagent? - Jackie Gyufi wrote: Hi. I installed MapGuide Open Source 2.0.2 to a server, where already installed Autocad Map 3D 2009, Topobase Web 2009 (MapGuide Enterprise and Studio in it), MapGuide 6.5 and Raster Design 2009. I was surprised, when I used the GetBaseLibrary function in mapagent of the Open Source 2.0, it wrote out this: Mentor Coordinate System Library But! When I installing MapGuide Open Source 2.0.2 to an another computer, where installed just Topobase (Client and Administrator) 2009, and I using the GetBaseLibrary function in mapagent of the Open Source 2.0, it write out this: PROJ4 Coordinate System Library MapGuide Open Source 2.0.2 using PROJ4, I know, but then how can use Mentor automatically when I install to a Server, where another MapGuide versions on it? I went through out the whole registry. I searched for MapGuide, cs-map, mentor, proj4, proj_lib, gdal_data entries, but when I found something, it was the same in both windows registry. Can anybody help me in this problem? Gyufi -- View this message in context: http://n2.nabble.com/MapGuide-Open-Sourc-2.0.2-how-can-use-Mentor--tp3154353p3154575.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] problems with maestro r3911 in fdo's
Maestro isn't directly using FDO. All it is doing behind the scenes, is relaying these requests to the MapGuide Server, which does all the heavy lifting. Just for a test, use the raw mapagent interface, and test the GetSchemas and GetSpatialContext methods. Do they report the same problems? - Jackie T.kiran kumar reddy wrote: hi to everyone, Presently i am useing the r3911 version of the maestro for the sake of the map tiles (map tiling working well with this) but previously i used maestro 1.0.9 with this i created some packages and data connections with oracle providers, now when i update maestro r3911 data (schemas and tables)in oracle is not shown it gives no spatial contex found and no schemas found in data base when i save the data connection with oracle provider.. is there any special fdo providers for the maestro r3911 presently i am useing the kingoracleprovider.dll of version 0.8.9.0 is there any problem with this or problem with maestro r3911 version this package is working good in masertro 1.0.9 with the same dll version. if any body knows the solution please help me. thanks in advance. http://n2.nabble.com/file/n3158999/error.jpeg -- View this message in context: http://n2.nabble.com/problems-with-maestro-r3911-in-fdo%27s-tp3158999p3159230.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] problems with maestro r3911 in fdo's
Providers are named Company.Provider.X.Y And are versioned x.y.z.0 Basically, change name to: OSGeo.KingOracle.3.2 And change all other versions to: 3.2.2.0 - Jackie sathishpsk9 wrote: Hi jackie Nag I formatte my pc and installed 1.Mapguide 2.01 2.maestro r3911 Mapguide by default come with oracle provider ... so i place Kingoracle dlls version 3.2.2 in my .../server/bin/fdo folder ... i even updated provider.xml with my king oracleprovider... i.e add following tag FeatureProvider NameOSGeo.KingOracle.3.2.2/Name DisplayNameOSGeo FDO Provider for Oracle/DisplayName DescriptionRead/write access to spatial and attribute data in an Oracle Spatial./Description IsManagedFalse/IsManaged Version3.2.2/Version FeatureDataObjectsVersion3.2.2/FeatureDataObjectsVersion LibraryPathC:\Program Files\MapGuideOpenSource\Server\Bin\FDO\KingOracleProvider.dll/LibraryPath /FeatureProvider even i reccive following error in maestro The remote server returned an error: (559) MgFdoException.: An exception occurred in FDO component. Unable to load the FDO Provider: The specified procedure could not be found. Exception occurred in method MgFdoConnectionManager.Open at line 262 in file d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\common\manager\FdoConnectionManager.cpp can please help me . thanks regards satish kumar -- View this message in context: http://n2.nabble.com/problems-with-maestro-r3911-in-fdo%27s-tp3158999p3160060.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] problems with maestro r3911 in fdo's
Use a FDO 3.3 version of that provider. - Jackie sathishpsk9 wrote: Hi Jackie Nag thank you.I changed provider.xml as per your instructions . but of no use .. can you please tell should change some other files also thanks satish -- View this message in context: http://n2.nabble.com/problems-with-maestro-r3911-in-fdo%27s-tp3158999p3160232.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] 2.1 Beta (Fusion) Problems
Poor choice of 3 letter acronym :-) What I should've said is AJAX viewer is pretty much feature complete given its design constraints (The WebLayout xml schema) - Jackie Martin Morrison wrote: I wouldn't say Ajax is EOL...it still has a purpose. Get Fusion as fast and as solid as Ajax and then you can start to think about retiring Ajax. Martin From: mapguide-users-boun...@lists.osgeo.org [mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jackie Ng [jumpinjac...@gmail.com] Sent: Monday, June 29, 2009 8:50 PM To: mapguide-users@lists.osgeo.org Subject: Re: [mapguide-users] 2.1 Beta (Fusion) Problems Agreed 100% Since Fusion is the way to do things now and the AJAX viewer is essentially EOL, it is imperative that we have a good out of the box user story with Fusion. I personally have not had a clean experience with previous mapguide releases, I always needed to patch the fusion installation straight after installation because of some glaring bug that slipped through the cracks. - Jackie Rock Beans wrote: If MapGuide is released with yet another failed attempt at Fusion layouts, I feel this would be the end of the road for normal everyday users for a long time. I agree make sure the viewers that are advertised as included are working before the release so everyone is 100% happy. On Fri, Jun 26, 2009 at 12:55 PM, Andy Morsellamors...@spatialgis.com wrote: Hi all, I installed MGOS 2.1 Beta yesterday and here are several Fusion problems that I’m seeing: · Firefox is still prompting for user authentication even when SESSION is passed as a URL parameter. It works ok in IE. This has been mentioned in other threads here. · The Secondary and Main toolbars do not appear in all MapGuide templates. It looks like they may be covered by other divs. I see this in both FF and IE. · Tooltip hyperlinks do not appear as clickable hyperlinks anymore. The text of the hyperlink appears though. Both FF and IE. · Several tooltip problems that I have logged in Trac have not been fixed. Some of these I even included the code fixes for! These include: http://trac.osgeo.org/fusion/ticket/232 http://trac.osgeo.org/fusion/ticket/236 http://trac.osgeo.org/fusion/ticket/237 I will be voting -1 on releasing MGOS 2.1 until the above Fusion problems are fixed and a newer release of Fusion is included. I realize that most of these problems are with Fusion, but as far as I am concerned Fusion and MGOS are intertwined in terms of functionality. I will add the new items to the Fusion Trac in the next day or so. My next step is to look at my ECW’s and MrSID’s with 2.1 since others have reported problems with that. Andy Morsell, P.E. Spatial Integrators, Inc. 47° 46' N 116° 49' W www.SpatialGIS.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/2.1-Beta-%28Fusion%29-Problems-tp3163004p3178330.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/2.1-Beta-%28Fusion%29-Problems-tp3163004p3178470.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] Geometric join without spatial support
MapGuide does not support feature joins on geometric components. - Jackie dorshemer wrote: Hello, I'm trying to perform a geometric join between two tables without using any spatial DB support. I have an oracle table representing points on a map with X and Y fields, and a polygon SHP layer imported into MG. I would like to connect all the point from the first table with the polygons they are contained in, without Oracle Spatial support or writing new code. Is it even possible? -- View this message in context: http://n2.nabble.com/Geometric-join-without-spatial-support-tp3208010p3210886.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] Feature Vertices
Given a MgFeatureReader that contains your feature(s): - Call its GetGeometry() method to get a byte reader - Convert this byte reader to a MgGeometry object by using a MgAgfReaderWriter object. - Call GetGeometryType() on the MgGeometry to determine what type of geometry it actually is. - Depending on the type, cast the MgGeometry to that given type (if not using PHP) and consult the relevant APIs for that derived geometry type. Basically you want to take note of any class methods that return MgPoint, MgCoordinate or MgCoordinateIterator objects. Hope that helps. - Jackie Tom Lazo wrote: Hi all!, Anyone knows how could i get the coordinates of the vertices of a feature, Is there any function that do that?. Thanks. Stygy / Tom -- View this message in context: http://n2.nabble.com/Feature-Vertices-tp3205810p3211474.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] Generalize the data by percentage. How does it work?
You are pretty much correct, the load procedure will reduce the vertex count by the specified percentage. How it does the generalization I have no idea. Though I believe that number is the percentage you want to reduce, not the total percentage you are after. So if you had 5 points along the line, 20% generalization would remove 1 point on that line. - Jackie Jonathan W wrote: I have several very large polyline shapefiles that I wish to put into my Mapguide site. I would like a faster preformance for my site by generalizing these files (reducing file sizes). Could someone please direct me to the help file or tell me what the Generalize the data by this percentage in the load procedure actually does. Does it remove vertices? Would 20% remove 4 out of 5 points along the line? Thank you Jonathan -- View this message in context: http://n2.nabble.com/Generalize-the-data-by-percentage.--How-does-it-work--tp3182874p3211490.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] Feature Vertices
If GetGeometryType() return MgGeometryType.Polygon, then yes you can safely cast it to a MgPolygon. - Jackie Tom Lazo wrote: Hi Jackie, Just one question, is the geometry cast just and (MgPolygon) geometry?, srry about my ignorance. n.n' . I think i should use the geometry's Boundary function. But i dunno how, i've looked everywhere without luck. Plz help. Thanks Tom / Stygy Jackie Ng wrote: Given a MgFeatureReader that contains your feature(s): - Call its GetGeometry() method to get a byte reader - Convert this byte reader to a MgGeometry object by using a MgAgfReaderWriter object. - Call GetGeometryType() on the MgGeometry to determine what type of geometry it actually is. - Depending on the type, cast the MgGeometry to that given type (if not using PHP) and consult the relevant APIs for that derived geometry type. Basically you want to take note of any class methods that return MgPoint, MgCoordinate or MgCoordinateIterator objects. Hope that helps. - Jackie Tom Lazo wrote: Hi all!, Anyone knows how could i get the coordinates of the vertices of a feature, Is there any function that do that?. Thanks. Stygy / Tom -- View this message in context: http://n2.nabble.com/Feature-Vertices-tp3205810p3221973.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] Geometric join without spatial support
In terms of creating a layer definition based on an extended feature class that is a feature join on geometric properties, that is not possible. But doing it at runtime join using spatial query operators, it is possible. - Jackie Jamo wrote: Can't a spatial operator on the MgFilter be used? it would require coding if it hasn't been done already ... or is it specific to each FDO ? -- View this message in context: http://n2.nabble.com/Geometric-join-without-spatial-support-tp3208010p3222902.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 crashes
This looks really useful. Would you be willing to contribute the source code for this tool to the mapguide-contrib project? http://code.google.com/p/mapguide-contrib - Jackie Jsm wrote: I know this isn't a real solution, but it helps alot on my client's site. Just to share : http://trac.osgeo.org/mapguide/wiki/MGStatus http://trac.osgeo.org/mapguide/wiki/MGStatus -- View this message in context: http://n2.nabble.com/MapGuide-crashes-tp3202025p3235956.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] Transparency on IE6 for Selection
Hi Dave, I think it's this one: http://trac.osgeo.org/fusion/changeset/1810 - Jackie Dave Wilson wrote: It appears with the introduction of the RENDERDYNAMICOVERLAY for selection we aren't calling the alpha transparency check on the image being generated. I can't find in the code how this is done to suggest a fix. As a result selection on a fusion layout in IE6 doesn't have a transparent background. Can someone point me in the direction of where the fix is needed? Thanks, Dave [cid:image001.jpg@01CA047B.E4436130] Dave Wilson, AEC IM CRT QA Analyst Autodesk Canada, Inc. 21st Floor 645 7th Ave SW Calgary, AB T2P 4G8 Direct 403-538-3069 Fax 403-264-1442 ___ 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/Transparency-on-IE6-for-Selection-tp3258474p3259771.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] MgServerAdmin class documentation?
MgServerAdmin is a public, but not supported API. Here's the header for MgServerAdmin, with all the methods. Anything under EXTERNAL_API is callable: http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Common/MapGuideCommon/Services/ServerAdmin.h - Jackie manafi wrote: I have recently come across an old script from Jason Birch for automating package make and load procedures, and they make use of an MgServerAdmin() class. I have been searching for any mention of this class in current or previous documentation and found nothing, as well as searching Nabble, and I came across only 2 threads. Is there any sort of documentation out there for what this class is capable of doing? I have only seen MakePackage(...) and LoadPackage(...) functions. Any information would be helpful, thanks. -- View this message in context: http://n2.nabble.com/MgServerAdmin-class-documentation--tp3258933p3260216.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 OSE API or Mapguide Maestro API ?
Maestro API is definitely more flexible. It can wrapper both the official API and the mapagent. Also it has a bunch of classes generated from the XML schemas so that you don't have to work with raw XML. - Jackie euskalmap wrote: Hi , 1 - what method to use to modify dynamiclly mapdefinitiion in a layout and filter in layer ? Mapguide OSE DLL (MapGuideDotNetApi.dll and MapGuideUnmanagedApi.dll) or Maestro API (OSGeo.MapGuide.MaestroAPI.dll) ? 2 - what is better to modify dynamiclly mapdefinitiion in a layout and filter in layer ? using raw xml format or runtimemap maestro api? thanks -- View this message in context: http://n2.nabble.com/Mapguide-OSE-API-or-Mapguide-Maestro-API---tp3262964p3263083.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] MapGuide dev tools of choice?
Hi All, I was wondering what editors / tools you use (pref. free or open source) for MapGuide Application Development? In particular, what tools do you use for PHP / Java APIs? For me .net is easy (Visual Studio / Web Developer Express), but for the other languages I have to resort to (notepad + trial and error) because I simply do not know of a better/productive way to do MG app development in these languages. - Jackie -- View this message in context: http://n2.nabble.com/MapGuide-dev-tools-of-choice--tp3306851p3306851.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] Problems iwith swig in build_oem ubuntu 8.04
That should be a part of the headers installed with the FDO sdk. Given the FDO sdk is installed at %FDO% Then it's trying to look for %FDO%\Inc\SDF\IScrollableFeatureReader.h - Jackie Takashige wrote: Hi Zac and everyone, Thanks to the mailing list archives, OEM was built successfully. Typing the following commands before running buil_oem.sh was not enough for me. CC=gcc-4.1 export CC CXX=g++-4.1 export CXX In addition to this, I a few lines in Oem/SWIGEx/Makefile and BuildTools/WebTools/IMake/Makefile as below. CC = gcc-4.1 CXX = g++-4.1 LINK = g++-4.1# Only in IMake/Makefile Then, buil_oem.sh succeeded. But now, make fails (It's really painful!). It says GwsFeatureQueryResults.cpp:27:42: error: SDF/IScrollableFeatureReader.h: No such file or directory Could somebody tell me where the SDF/IScrollableFeatureReader.h should be and how to place it? Thanks. Takashige -- View this message in context: http://n2.nabble.com/Problems-iwith-swig-in-build_oem-ubuntu-8.04-tp1817291p3347616.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] Layer selectability in MGOS 2.1 beta
Hi All, This is a poll for all the users using the current MGOS 2.1 beta. You may have noticed in your maps that there is now a new arrow pointer icon beside each layer in the legend, that indicates whether that layer is selectable or not. What we would like to know is whether this pointer icon properly conveys the message to the user that this layer is selectable/not-selectable *AND* that the user can toggle its selectability. Is there a better way of presenting this? - Jackie -- View this message in context: http://n2.nabble.com/Layer-selectability-in-MGOS-2.1-beta-tp3360169p3360169.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] Unable load PostGisProvider on Ubuntu 8.04
The PostGIS provider on Windows requires libpq.dll (The PostgreSQL library) either in the same directory as the provider dlls or in a directory specified in the PATH environment variable. I would imagine the same scenario in Linux. Do you have the directory containing libpq.so in PATH or LD_LIBRARY_PATH? - Jackie Takashige wrote: Hi Zac, Thank you for replying. a quick google provided found that answer Oh, I'm sorry. I didn't notice that. But in my providers.xml, there is no Oracle parts. Thank you. Takashige -- View this message in context: http://n2.nabble.com/Unable-load-PostGisProvider-on-Ubuntu-8.04-tp3376565p3376746.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] view feature from .mdb in mapguide studio
MapGuide can only recognise points in .mdb files. This is intentional. - Jackie adrian_kent wrote: hi list, i'm begginer in using mapguide opensource. i have problem when upload *.mdb file. polygon layer changes become point in the mapguide studio. how to solve it? i'm very thankfull for help me best regards ardian -- View this message in context: http://n2.nabble.com/view-feature-from-.mdb-in-mapguide-studio-tp3385456p3388497.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] King Oracle provider use in MapGuide Studio 2009
If you can't use numbers with Concat() then use ToString() to convert it to a string eg. Concat('Value: ', ToString(MYNUMBERPROPERTY)) The expression editor in MapGuide Studio is probably interrogating the capabilities of the current provider to determine what expression functions are available to construct the current expression. If geometric functions aren't there, then it probably means the provider in question doesn't support them. Easy way to find out is to use the mapagent interface, and invoke GetCapabilities on the King Oracle provider. The xml response contains a list of supported expression functions. - Jackie florent wrote: Hi all, I try to use concat function in MapGuide but i got a error message. Is it possible to use Concat function with number data type? In the same way, i don't understand why geometric functions aren't available. Is there any plan to include these features in feature release? Regards, Florent GIRAUD Geomap Services -- View this message in context: http://n2.nabble.com/King-Oracle-provider-use-in-MapGuide-Studio-2009-tp3385234p3389052.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 data connection error
You need to either copy libmysql.dll into MapGuide's FDO directory or make sure that dll exists in a directory that is part of your PATH environment variable. - Jackie chrismvn wrote: i want to display data from a mysql databse in my browser using mapguide and maestro. i am trying to create a dataconnection to a mysql database but i have the error below. i am a beginner in mapguide. should i reinstall mapguide ? The remote server returned an error: (559) MgFdoException.: An exception occurred in FDO component. The runtime was not found (module LIBMYSQL.dll). Please verify your mysql client component installation. Exception occurred in method MgFdoConnectionManager.Open at line 858 in file d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\common\manager\FdoConnectionManager.cpp -- View this message in context: http://n2.nabble.com/mysql-data-connection-error-tp3404937p3405198.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] Next beta release date?
Based on past discussions, it seems the main roadblock to a 2.1 release now is a stable release of Fusion that just works. I haven't been quite up to date on Fusion development. - Jackie Andrew DeMerchant wrote: Any idea when the next beta for v2.1 will be released? The current one has too many problems for my needs, but it seems as though most of the major ones (for me) have been fixed and will be working in the next releaseI'm wondering if anyone has any idea of when that might be? Thanks! Andrew -- *Andrew DeMerchant* *Computer Technologist* ph.1-877-2GEMTEC x.163 fax 506-453-9470 /GEMTEC Limited http://www.gemtec.ca /191 Doak Road Fredericton, NB, Canada E3C 2E6 This e-mail message (including attachments, if any) is confidential and may be privileged. Any unauthorized distribution or disclosure is prohibited. Disclosure to anyone other than the intended recipient does not constitute waiver of privilege. If you have received this e-mail in error, please notify us and delete it and any attachments from your computer system and records. -- Ce courriel (y compris les pièces jointes) est confidentiel et peut être privilégié. La distribution ou la divulgation non autorisée de ce courriel est interdite. Sa divulgation à toute personne autre que son destinataire ne constitue pas une renonciation de privilège. Si vous avez reçu ce courriel par erreur, veuillez nous aviser et éliminer ce courriel, ainsi que les pièces jointes, de votre système informatique et de vos dossiers. ___ 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/Next-beta-release-date--tp3417143p3422444.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] change selection color
You shouldn't have to go that far. Changing templates requires at the most: a web server restart, and at the least: a refresh of the web browser. - Jackie northtron wrote: You always need to stop/restart the MapGuide Service when you change a template file to see the results. saloua wrote: hi ! i've read the documentation you gove me and tried to apply it for changing selection color : format of my ajaxmappane.templ (or function wich concerning me) is i've tried to modify it by adding: .Math.random()+ BEHAVIOR=7SELECTIONCOLOR=FF5300FF; As documentation says, and when i try after to get my map on ajaxviewer it's not loaded the ajax viewer is loaded but page not contains my map i've changed version too (as documentation you sent me) VERSION=1.0.0 to VERSION=2.0.0 but it doesn't give good result, if you can explain me why?? thanks in advance -- View this message in context: http://n2.nabble.com/change-selection-color-tp3041849p3423580.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] Change order of fields displayed in properties pane?
The properties are sorted before being displayed in the properties pane. You could try commenting out or removing the following line of code to see how things go. http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Web/src/viewerfiles/ajaxmappane.templ#L2837 - Jackie Jo Cook wrote: Dear All, Is it possible to specify the order in which fields are displayed in the properties pane? Currently it seems to display them in alphabetical order, rather than the order in which they appear in the data source. The only way I can think of getting round it at the moment is to number all of the properties, which will look a bit strange... Thanks Jo -- View this message in context: http://n2.nabble.com/Change-order-of-fields-displayed-in-properties-pane--tp3438480p3447722.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] Selection opacity
At the function RequestSelectionImage() in ajaxmappane.templ it makes a call to GETDYNAMICMAPOVERLAYIMAGE passing in the selection color. That selection color is an ARGB (RGBA?) hex value. You should be able to control the selection opacity by tweaking the alpha component of that hex value. - Jackie Jamo wrote: Is it possible to change the selection opacity? I don't mind doing this globally at the moment. I've tried changing this to 01 .01 but it is no good? perhaps I'm changing it in the wrong area? ajaxmappane.templ #shapeFeedback { filter:alpha(opacity=50); /* Internet Explorer */ -moz-opacity:0.50; /* Mozilla 1.6 and below */ opacity: 0.50; /* newer Mozilla and CSS-3 */ } -- View this message in context: http://n2.nabble.com/Selection-opacity-tp3564831p3571114.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] deactivate mousewheel for mapframe
You could try replacing the function in that handles mouse scrolling with a do nothing function. eg. kartenframe.OnMouseWheel = function() {}; - Jackie Bernd Kamjunke wrote: Hello Everybody! Does anybody know how to deactivate the mousewheel? I had no luck trying the unbind method of the mapframe or the document object of the mapframe. This didn't worked too: window.removeEventListener('DOMMouseScroll', kartenframe.OnMouseWheel, true); Thanks for every answer Bernd -- View this message in context: http://n2.nabble.com/deactivate-mousewheel-for-mapframe-tp3683889p3684095.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] Failed to read schema from data source: MySQL
The problem here could be the MySQL version. MapGuide 2.0.x uses FDO 3.3.x and the MySQL FDO provider there is only known to work for MySQL 5.0.x series. If possible, try using the latest 5.0 release instead. - Jackie Raghu.indigo wrote: I created a data connection through the provider MySQL in Mapguide Maestro , tested the connection and I have no problem but when i trying to create a layer, I get the following error: Failed to read schema from data source. The operation gave the error message: Error in the remote server: (559) MgConnectionFailedException.: Can not establish connection. Please let me know how to resolve this problem I am using Windows xp with sp2 Mapguide 2.0 with Apache MySQL 5.1 -- View this message in context: http://n2.nabble.com/Failed-to-read-schema-from-data-source-MySQL-tp3734889p3735022.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] Create Featuresource
FDO is the way to go. As Kenneth already mentioned, this approach won't be portable unless you want to dive into the native C++ API. The Managed FDO API is only available for Windows. To do this, you will have to do the following: FDO side: 1. Create a FDO connection to the desired provider 2. Create and execute an ICreateDataStore command 3. Build your FDO feature schema (similar to MapGuide) 4. Create and execute an IApplySchema command, with the schema you built. Then it's over to the MapGuide side: 1. Create a new feature source xml document with the same connection settings 2. Save this into your site repository using MgResourceService. The MapGuide 2.2 APIs will eventually remove the need to use FDO directly for some providers (the non-RDBMS ones) - Jackie Gunter Becker wrote: Hi, I want to create a new featuresource (shp, sdf or SQL Server 2008 Spatial) from my webapplication (c# .NET). I got it working for a sdf FeatureSource with the MapGuideAPI. But I'm wondering if it is possible for SHP or SQL Server Spatial at all. What are the steps to create an shape-file in the repository or as an external file and what are the steps to create a spatial database table. Is there an easy way to do this with the MaestroAPI. Or do I have to use the FdoAPI ? Thanks, Gunter -- View this message in context: http://n2.nabble.com/Create-Featuresource-tp3735230p3735563.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] Create Featuresource
These dlls are from the FDO SDK? Make sure that *all* the dlls (and providers.xml) from your FDO SDK are in the output directory - Jackie Gunter Becker wrote: Thank you Jackie, I've put all the managed and unmanaged dll's from the windows binaries in the bin folder of my WebApplication and tried to follow your steps but I got an error message : File or assembly file:///C:\Users\gunter.becker\Documents\Visual Studio 2008\Projects\CSOGIS\bin\ExpressionEngine.dll or one of its dependencies, was not found. The module was expected to contain an assembly manifest. Do you know if I miss something? Gunter Jackie Ng wrote: FDO is the way to go. As Kenneth already mentioned, this approach won't be portable unless you want to dive into the native C++ API. The Managed FDO API is only available for Windows. To do this, you will have to do the following: FDO side: 1. Create a FDO connection to the desired provider 2. Create and execute an ICreateDataStore command 3. Build your FDO feature schema (similar to MapGuide) 4. Create and execute an IApplySchema command, with the schema you built. Then it's over to the MapGuide side: 1. Create a new feature source xml document with the same connection settings 2. Save this into your site repository using MgResourceService. The MapGuide 2.2 APIs will eventually remove the need to use FDO directly for some providers (the non-RDBMS ones) - Jackie Gunter Becker wrote: Hi, I want to create a new featuresource (shp, sdf or SQL Server 2008 Spatial) from my webapplication (c# .NET). I got it working for a sdf FeatureSource with the MapGuideAPI. But I'm wondering if it is possible for SHP or SQL Server Spatial at all. What are the steps to create an shape-file in the repository or as an external file and what are the steps to create a spatial database table. Is there an easy way to do this with the MaestroAPI. Or do I have to use the FdoAPI ? Thanks, Gunter -- View this message in context: http://n2.nabble.com/Create-Featuresource-tp3735230p3736449.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] Create Featuresource
Do you have the Visual C++ 2008 runtime library installed? If so, I wonder then if it is because you are using this in an ASP.net environment and that is somehow messing with the paths? - Jackie Gunter Becker wrote: OK, I tried it with the SDK files and know I got the error message: The specified module could not be found Any ideas? Gunter Gunter Becker wrote: No, these files are from FDO API and Common Binaries under Windows Binaries. Does it make a difference? I'll download the SDK files an give this a try! Gunter Jackie Ng wrote: These dlls are from the FDO SDK? Make sure that *all* the dlls (and providers.xml) from your FDO SDK are in the output directory - Jackie Gunter Becker wrote: Thank you Jackie, I've put all the managed and unmanaged dll's from the windows binaries in the bin folder of my WebApplication and tried to follow your steps but I got an error message : File or assembly file:///C:\Users\gunter.becker\Documents\Visual Studio 2008\Projects\CSOGIS\bin\ExpressionEngine.dll or one of its dependencies, was not found. The module was expected to contain an assembly manifest. Do you know if I miss something? Gunter Jackie Ng wrote: FDO is the way to go. As Kenneth already mentioned, this approach won't be portable unless you want to dive into the native C++ API. The Managed FDO API is only available for Windows. To do this, you will have to do the following: FDO side: 1. Create a FDO connection to the desired provider 2. Create and execute an ICreateDataStore command 3. Build your FDO feature schema (similar to MapGuide) 4. Create and execute an IApplySchema command, with the schema you built. Then it's over to the MapGuide side: 1. Create a new feature source xml document with the same connection settings 2. Save this into your site repository using MgResourceService. The MapGuide 2.2 APIs will eventually remove the need to use FDO directly for some providers (the non-RDBMS ones) - Jackie Gunter Becker wrote: Hi, I want to create a new featuresource (shp, sdf or SQL Server 2008 Spatial) from my webapplication (c# .NET). I got it working for a sdf FeatureSource with the MapGuideAPI. But I'm wondering if it is possible for SHP or SQL Server Spatial at all. What are the steps to create an shape-file in the repository or as an external file and what are the steps to create a spatial database table. Is there an easy way to do this with the MaestroAPI. Or do I have to use the FdoAPI ? Thanks, Gunter -- View this message in context: http://n2.nabble.com/Create-Featuresource-tp3735230p3736680.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] Create Featuresource
FDO needs the VC++ runtime library. The OSGeo.FDO.*.dll files are .net wrappers around the native libraries which use the VC++ runtime. Do not uninstall it. The fact that you have it working in a windows application means that you have the runtime library installed. It also means that there is definitely something to do with it being a web application, that's causing FDO to fail. What that is, I do know at the moment. - Jackie Gunter Becker wrote: Using the SDK File in a WindowsApplication works for me! But I would like to manage the creation of a feature source in the WebApplication. I think I have the C++ runtime library installed but I don't know exactly. How can I determine that I have Visual C++ 2008 runtime library installed? I don't need it becaus I#m not a C++ programmer! So do you think uninstalling the runtime library could solve my problem? Gunter Jackie Ng wrote: Do you have the Visual C++ 2008 runtime library installed? If so, I wonder then if it is because you are using this in an ASP.net environment and that is somehow messing with the paths? - Jackie Gunter Becker wrote: OK, I tried it with the SDK files and know I got the error message: The specified module could not be found Any ideas? Gunter Gunter Becker wrote: No, these files are from FDO API and Common Binaries under Windows Binaries. Does it make a difference? I'll download the SDK files an give this a try! Gunter Jackie Ng wrote: These dlls are from the FDO SDK? Make sure that *all* the dlls (and providers.xml) from your FDO SDK are in the output directory - Jackie Gunter Becker wrote: Thank you Jackie, I've put all the managed and unmanaged dll's from the windows binaries in the bin folder of my WebApplication and tried to follow your steps but I got an error message : File or assembly file:///C:\Users\gunter.becker\Documents\Visual Studio 2008\Projects\CSOGIS\bin\ExpressionEngine.dll or one of its dependencies, was not found. The module was expected to contain an assembly manifest. Do you know if I miss something? Gunter Jackie Ng wrote: FDO is the way to go. As Kenneth already mentioned, this approach won't be portable unless you want to dive into the native C++ API. The Managed FDO API is only available for Windows. To do this, you will have to do the following: FDO side: 1. Create a FDO connection to the desired provider 2. Create and execute an ICreateDataStore command 3. Build your FDO feature schema (similar to MapGuide) 4. Create and execute an IApplySchema command, with the schema you built. Then it's over to the MapGuide side: 1. Create a new feature source xml document with the same connection settings 2. Save this into your site repository using MgResourceService. The MapGuide 2.2 APIs will eventually remove the need to use FDO directly for some providers (the non-RDBMS ones) - Jackie Gunter Becker wrote: Hi, I want to create a new featuresource (shp, sdf or SQL Server 2008 Spatial) from my webapplication (c# .NET). I got it working for a sdf FeatureSource with the MapGuideAPI. But I'm wondering if it is possible for SHP or SQL Server Spatial at all. What are the steps to create an shape-file in the repository or as an external file and what are the steps to create a spatial database table. Is there an easy way to do this with the MaestroAPI. Or do I have to use the FdoAPI ? Thanks, Gunter -- View this message in context: http://n2.nabble.com/Create-Featuresource-tp3735230p3736837.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] Need Highlighting Sample
Autodesk replaced DETE with RealDWG in Studio 2009 thus explaining the different behaviour. - Jackie Andy Morsell wrote: Quote Gordon: Although you can load DWG files, you cannot get OBJECT DATA, BLOCK ATTRIBUTES or LINK TEMPLATES. You used to be able to with Autodesk MapGuide Studio 2008 and below by defining feature classes in Map. As part of the feature class, you could assign the object data or data link attributes and then Studio would let you import the entire feature class. But, Autodesk did away with the capability in Studio 2009 for whatever reason so now people are stuck doing this outside of MapGuide. I do the same thing as your last description: export from Map to SDF with the object data or link template data then load on to the MapGuide server and connect to the folder via an alias. For performance reasons, I do this in lieu of exporting with only the key and using a database join in MapGuide. Andy Morsell, P.E. Spatial Integrators, Inc. 47° 46' N 116° 49' W www.SpatialGIS.com -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of GordonL Sent: Thursday, October 01, 2009 12:12 PM To: mapguide-users@lists.osgeo.org Subject: Re: [mapguide-users] Need Highlighting Sample Hi Matt, the one item I want to mention here is the Load Procedure for DWG. Although you can load DWG files, you cannot get OBJECT DATA, BLOCK ATTRIBUTES or LINK TEMPLATES. This is a huge chasm between DWG and FDO and its has been a hole in AutoCAD Map to MapGuide since the early days of FDO. The only way accross is an EXPORT to SDF (or other FDO data store) so MapGuide can see it. I would recommend using FME from Safe software to facilite the DWG with OBJECT DATA to SDF. You can't do it directly with MapGuide OS, MapGuide Enterprise, or Map 3D (or any other Autodesk product) directly - only via EXPORT to FDO. Also, if you are using Map 3D to view FDO data stores (i.e. MySQL, SDF, Oracle, etc) you cannot quickly convert the data into linework with Object Data. Best way to use MapGuide - export your DWG into SDF (keeping the Object Data) and then load the SDF using a Load Procedure or Alias a folder on the server. regards gordon ps. Once you have data that has a Key that you really want (not Handle - blech!), you can find a lot of examples on http://data.mapguide.com/mapguide/devguide/index.php check out the working with feature data for samples with the selection ... mwilson wrote: Hello, I am using MapGuide Enterprise 2010nbsp;and am in need of a simplified example for how to highlight items on a map.nbsp; I used MapGuide Studio 2010 to import data from a dwg drawing.nbsp; The drawing contains a 2d rendering of a building floor.nbsp; I am trying to figure out how to hilight various rooms (or polylines)nbsp;within the floor.nbsp; Can someone please point me in the direction of an example that might show me how to highlight polylines within a map.nbsp; Also is it possible to highlight ojbects based on their entity handle or is this info lost when importing from dwg.nbsp; nbsp; Fyi, I am using the AJAX viewer and coding in .net. nbsp; Many thanks in advance, Matt ___ 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/Need-Highlighting-Sample-tp3751164p3751366.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/Need-Highlighting-Sample-tp3751164p3752881.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] Fusion Error (Object Doesn't Supported)
Are you using the compressed or non-compressed version? Do you get the same result when you switch? - Jackie ary_s wrote: Hii group, I'm having with fusion 1.0/2.0 with MGOS 2.1. FusionSF keep on saying object doesn't supported when i tried to view it on my browser. I would like to know if anybody manage to use fusion with MGOS 2.1? What version is suitable for it? thanks, -- View this message in context: http://n2.nabble.com/Fusion-Error-Object-Doesn-t-Supported-tp3753421p3753515.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] Passing username and password into url with fusion
The simplest method is to make a server-side wrapper, where you generate the MapGuide session id. Then redirect to the index.html passing an additional parameter: Session=your generated session id - Jackie Fraser Burgess wrote: Is there a trick to passing username and password into a URL with Fusion: A URL such as http://mywebsite.com/mapguide2010/fusion/templates/mapguide/TMOslate/ind ex.html?ApplicationDefinition=Library%3a%2f%2fTMO%2fLayouts%2fTMO%20Map. ApplicationDefinitionLOCALE=enUSERNAME=AnonymousPASSWORD= still brings up the log in prompt Fraser ___ 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/Passing-username-and-password-into-url-with-fusion-tp3860654p3861781.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] Does MG support doing object snap?
Take a look at OpenLayers, it can do object snapping (example: http://openlayers.org/dev/examples/snapping.html) and can consume MapGuide layers. - Jackie achectl wrote: I would like to know does the mapguide or mapguide enterprise can be supporting doing object snap? This is some kind like AutoCAD functionality, but it doing in browser. I really appreciate if someone can give me advice!!! :confused: -- View this message in context: http://n2.nabble.com/Does-MG-support-doing-object-snap-tp3909803p3909826.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] Add geometry to SHP
What does your ReleaseReader() look like? If it's from the samples, it's supposed to close any open MgFeatureReaders that may exist in the result returned from MgFeatureService.UpdateFeatures() - Jackie sekko970 wrote: I tryng to add a point to an existing SHP data connection in ASP.Net application, using MG API. Dim dataSource as String = Library://.../MySHP.FeatureSource Dim dataSourceId As New MgResourceIdentifier(dataSource) Dim MyProps As New MgPropertyCollection() Dim agfRW As New MgAgfReaderWriter() Dim geomFactory As New MgGeometryFactory Dim myPoint As MgPoint = geomFactory.CreatePoint(geomFactory.CreateCoordinateXY(X, Y)) 'ID Dim IDProp As New MgInt32Property(FeatID, IDValue) MyProps.Add(IDProp) 'MyProp Dim MyProp As New MgDoubleProperty(MyProp, MyPropValue) MyProps.Add(MyProp) 'Geometry Dim geomReader As MgByteReader = agfRW.Write(myPoint) Dim geometryProp As New MgGeometryProperty(Geometry, geomReader) MyProps.Add(geometryProp) Dim propCollection As New MgBatchPropertyCollection() propCollection.Add(MyProps) Dim commands As New MgFeatureCommandCollection() commands.Add(New MgInsertFeatures(MyFeatureName, propCollection)) Dim res As MgPropertyCollection = featureSrvc.UpdateFeatures(dataSourceId, commands, False) ReleaseReader(res, commands) In ReleaseReader, I have the following error: Unable to cast object of type 'OSGeo.MapGuide.MgStringProperty' to type 'OSGeo.MapGuide.MgFeatureProperty'. In fact, res has only one property of type MgStringProperty: but why? Have you any idea where is the error? Thanks, Fabio -- View this message in context: http://n2.nabble.com/Add-geometry-to-SHP-tp3953583p3955574.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] My FDO Toolbox presentation from FOSS4G online
Hi All, For those of you who could not attend FOSS4G 2009, my presentation on FDO Toolbox is now online. http://themapguyde.blogspot.com/2009/11/my-foss4g-presentation-recorded-and.html Many thanks to the folks from FOSSLC for recording this (and many other presentations) at the event. - Jackie -- Blog: http://themapguyde.blogspot.com LinkedIn: http://www.linkedin.com/in/jackieng Twitter: http://twitter.com/jumpinjackie Why const correctness is good: void foo(const int DEFCON) { if (DEFCON = 1) // FLAGGED AS COMPILER BUG! WORLD SAVED! { fire_missiles(); } } ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] How to get selected area information in mapguide
PHP does not support enums, so all the mapguide constants like MgServiceType, MgResourceType, etc are stored and defined in the constants.php file in your mapviewerphp directory. Have you included this file? - Jackie nekad wrote: Hey guys.. I'm newbie in GIS world I'm using Mapguide and mapguide maestro 1.0.9 What i want is, when user click a selected area, then they can right click and choose the link i provided, let say ViewData when user click ViewData, then it will show a popup window which display relevant information of selected area... But, my problem is, I don't know how to get the information.. I have coded by following the sample, $args = ($_SERVER['REQUEST_METHOD'] == 'POST') ? $_POST : $_GET; $sessionId = $args['SESSION']; echo $sessionId.br; $mapName = $args['MAPNAME']; echo $mapName.br; try { // Initialize the Web Extensions and connect to the Server using // the Web Extensions session identifier stored in PHP session state. MgInitializeWebTier ($webconfigFilePath); $userInfo = new MgUserInformation($sessionId); //$userInfo = new MgUserInformation(Administrator, admin); echo USER; $siteConnection = new MgSiteConnection();echo CON; $siteConnection-Open($userInfo);echo open; $resourceService = $siteConnection-CreateService(MgServiceType::ResourceService); echo resource; when i run it, popwindow will display echo till CON, but resource will not shown... what is the problem? somebody can help me the simple way to do my needs? thx -- View this message in context: http://n2.nabble.com/How-to-get-selected-area-information-in-mapguide-tp3990797p3997044.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] How to get selected area information in mapguide
Are you sure there is selection xml in $_POST['SELECTION'] ? - Jackie nekad wrote: i have included constants.php and there is no problem with MgServiceType anymore... but, now i got the problem in finding the information of selected area... when i run this code $selection = new MgSelection($map, $_POST['SELECTION']); $layers = $selection-GetLayers(); it returns nothing, seems like i don't select any area on the map? can you help me? Jackie Ng wrote: PHP does not support enums, so all the mapguide constants like MgServiceType, MgResourceType, etc are stored and defined in the constants.php file in your mapviewerphp directory. Have you included this file? - Jackie nekad wrote: Hey guys.. I'm newbie in GIS world I'm using Mapguide and mapguide maestro 1.0.9 What i want is, when user click a selected area, then they can right click and choose the link i provided, let say ViewData when user click ViewData, then it will show a popup window which display relevant information of selected area... But, my problem is, I don't know how to get the information.. I have coded by following the sample, $args = ($_SERVER['REQUEST_METHOD'] == 'POST') ? $_POST : $_GET; $sessionId = $args['SESSION']; echo $sessionId.br; $mapName = $args['MAPNAME']; echo $mapName.br; try { // Initialize the Web Extensions and connect to the Server using // the Web Extensions session identifier stored in PHP session state. MgInitializeWebTier ($webconfigFilePath); $userInfo = new MgUserInformation($sessionId); //$userInfo = new MgUserInformation(Administrator, admin); echo USER; $siteConnection = new MgSiteConnection();echo CON; $siteConnection-Open($userInfo);echo open; $resourceService = $siteConnection-CreateService(MgServiceType::ResourceService); echo resource; when i run it, popwindow will display echo till CON, but resource will not shown... what is the problem? somebody can help me the simple way to do my needs? thx -- View this message in context: http://n2.nabble.com/How-to-get-selected-area-information-in-mapguide-tp3990797p3997270.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] Can you help with connection properties for OSGeo.SQLServerSpatial?
Service is the named SQL Server instance DataStore is the name of the database - Jackie JamesDudden wrote: Hi, Can anybody help with the connection properties for OSGeo.SQLServerSpatial? What do I need to put in the following fields: Service Datastore Any help is welcomed Regards JD -- View this message in context: http://n2.nabble.com/Can-you-help-with-connection-properties-for-OSGeo-SQLServerSpatial-tp3998955p3999172.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] SelectFeatures and string ID fields
Have you tried those filters with the same SDF file in FDO Toolbox? Filters in FDO are identical to filters in MapGuide. So you can use FDO Toolbox to test whether your filters produce the expected number of results. - Jackie Warren Medernach-2 wrote: Are there known problems using a string field as the key field in an SDF file? I'm trying to zoom to a filtered object, and it seems to work on an SDF with a default integer FeatId key field, but fails when I try it on an SDF with a string key field. The FeatureReader is always empty when I try to get Scenario #1 Works with an SDF with FeatId integer key queryOptions.SetFilter(FeatId = 410); MgResourceIdentifier featureResId = new MgResourceIdentifier(layer.GetFeatureSourceId()); MgFeatureReader featureReader = featureService.SelectFeatures(featureResId, layer.GetFeatureClassName(), queryOptions); Scenario #2 Fails with an SDF with a string key queryOptions.SetFilter(ParcelID = '0102000'); MgResourceIdentifier featureResId = new MgResourceIdentifier(layer.GetFeatureSourceId()); MgFeatureReader featureReader = featureService.SelectFeatures(featureResId, layer.GetFeatureClassName(), queryOptions); Any ideas greatly appreciated Warren M ___ 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/SelectFeatures-and-string-ID-fields-tp4068397p4137142.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] Problem About load task pane before Map
What's probably happening is that your task pane code is interacting with the map before it has been fully initialized. What you need to do, is to listen for map initialization in the map frame. This code sample shows how to do this: http://trac.osgeo.org/mapguide/wiki/CodeSamples/JavaScript/AJAXViewerEventHooking The difference here is that your code is executing from the task pane, so you have to go parent.parent.mapFrame instead of what's in the code sample. - Jackie Synchro wrote: Hi,Plz can you tell me who resolve this problem: the task pane is loaded before Map (in the task pane i have some functions based on the Map) that why I have error in task Pane. But if I refraich My task Pane after loading Map it work fine. _ Un avatar à votre image ? Créez votre mini-moi ! http://www.ilovemessenger.fr/minimize-me/ ___ 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/Problem-About-load-task-pane-before-Map-tp4133530p4137378.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] Google Earth Imagery in MapGuide
To consume KML/satellite imagery from Google Earth, you must use the Google Earth client, so the answer is no. Fusion will have better out-of-the-box commercial map support (Google, Bing, Yahoo) in the next MGOS release (2.2). Right now it's a bit of a hack. - Jackie Amy Steiger wrote: Both OS MapGuide and MG Enteprise can output to Google Earth but is there a way to have Google Earth imagery as WMS or API within the MapGuide viewer? There is a demo viewerhttp://enterprise.mapguide.com/landing/index.php for MGE that has a Google Maps API, however we have had no luck in putting this in our own map. Amy Steiger GIS Analyst Cardno Forbes Rigby Pty Ltd Email: amy.stei...@cardno.com.aumailto:amy.norc...@cardno.com.au Web: www.cardno.com.auhttp://www.cardno.com.au/ ___ 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/Google-Earth-Imagery-in-MapGuide-tp4103330p4137408.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] cannot read coordinate system from mysql database
Does your mysql database have a series of f_ database tables? I believe the MySQL FDO provider requires these tables to exist, as these tables store required FDO metadata needed by the provider. These tables would exist if the MySQL data store was created via FDO. If these tables don't exist the provider may not have the correct information regarding things like coordinate systems, feature classes, etc. - Jackie thundercat wrote: I'm using ogr2ogr FW Toolkit to load and store spatial data (of ESRI type) into mysql. However when read the spatial data from mapguide studio, it cannot recognize the coordinate system of that spatial data which is WGS 84 and recognize it as unknown. Therefore i overide it , and set the coordinate system as WGS 84. However, when previewing the map, it display an incorrect coordinate system. anyone can solve this ?. thanks -- View this message in context: http://n2.nabble.com/cannot-read-coordinate-system-from-mysql-database-tp4036395p4137438.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] Changing the status bar unit spelling
Hi Jo, All localisable UI text strings should be originating from the localized\en file - Jackie Jo Cook wrote: Dear All, Is it possible to change the spelling of METER in the ajax viewer status bar to the british Metre(s)? I have looked in the template files but can't seem to find where it's defined- only where to change it to Miles. This is with Mapguide Open Source 2.1. Thanks Jo -- View this message in context: http://n2.nabble.com/Changing-the-status-bar-unit-spelling-tp4163318p4163477.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] Changing the status bar unit spelling
I was just following the trail of source code and it originates all the way back to the coordinate system of the map. At mapframe.php line 97: if($srs != ) { $csFactory = new MgCoordinateSystemFactory(); $cs = $csFactory-Create($srs); $metersPerUnit = $cs-ConvertCoordinateSystemUnitsToMeters(1.0); $unitsType = $cs-GetUnits(); } else { $metersPerUnit = 1.0; $unitsType = GetLocalizedString(DISTANCEMETERS, $locale); } $cs is an instance of MgCoordinateSystem $unitsType is the value that gets written to the ajaxmappanel.templ template and what the status bar uses to write the current position. The localized value DISTANCEMETERS defaults to Meters in localized\en. Since your one is in upper case it must have come from the coordinate system definition. So the culprit would seem to be the coordinate system of your map. - Jackie Jo Cook wrote: Hi Jackie, That allows me to change the strings in the viewer options in the task bar, but not the bottom status bar, as far as I can see- unless I'm missing something obvious! Thanks Jo Jackie Ng wrote: Hi Jo, All localisable UI text strings should be originating from the localized\en file - Jackie Jo Cook wrote: Dear All, Is it possible to change the spelling of METER in the ajax viewer status bar to the british Metre(s)? I have looked in the template files but can't seem to find where it's defined- only where to change it to Miles. This is with Mapguide Open Source 2.1. Thanks Jo -- View this message in context: http://n2.nabble.com/Changing-the-status-bar-unit-spelling-tp4163318p4163728.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] MgLayer.SelectFeatures ..... am I missing something here?
I think that filter is for stylization/rendering purposes only. Someone can correct me if need be. - Jackie Jamo wrote: I'm sure I've been here before but here goes it again. I'm attempting to select a subset of data from a layer . MgFeatureReader myFeats = srchLayer.SelectFeatures(Opts); I've connected the map using MgMap map = new MgMap(siteConnection); map.Open(mapName); Now the problem is , I thought the layers filter would have been used prior to filling the feature reader ? It seem to select all features from the feature source. I have a single feature source that is split out to many layers, by putting layer filters on. Can someone tell me what I'm doing wrong here, or am I mad to think that the .SelectFeatures on the layer should actually select features on the layer only ? -- View this message in context: http://n2.nabble.com/MgLayer-SelectFeatures-am-I-missing-something-here-tp4174001p4174252.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