[mapguide-users] Zooming to a defined point
Hi everybody, I need to zoom on a defined point of known coordinates, when the page loads. I saw that it exists the ZoomToView() function... is it possible to pass to the ajaxviewer a parameter for zooming on a defined point (like ZoomToView) ? I'm calling the ajaxviewer with this script: location.replace("../../mapviewerjava/ajaxviewer.jsp?SESSION=<%= sessionId %>&WEBLAYOUT=<%= webLayout %>"); I hope you can help me Cheers Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Adding a temporary Layer in MapGuide
I solved the problem creating a static layer using MapGuide Studio, which feature source reads data from a temporary MySql table. Everytime I need to "filter" these data, before using the layer I modify/update data on the temporary table... Now I'd like to show a tooltip when the cursor is on the displayed point. The tooltip works when I move the cursor on POLYGONS, but it is not working on POINTS. How can I do? Thank you again Cheers Carmelo - Original Message - From: "Kenneth Skovhede, GEOGRAF A/S" To: "MapGuide Users Mail List" Sent: Thursday, January 22, 2009 11:14 AM Subject: Re: [mapguide-users] Adding a temporary Layer in MapGuide It would be the same basic approach, but you need to run through the records like: recordset = query_database(sql_filter) while(not recordset.eof) { AddFeatureToCollection() } Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: The buffer example doesn't read data from database, isn't it? I need to read data from a MySql database and, after executing a SQL query, display them on the map. How can I do that? Is there any example code about that? Thank you very much again Cheers Carmelo - Original Message - From: "Kenneth Skovhede, GEOGRAF A/S" To: "MapGuide Users Mail List" Sent: Wednesday, January 21, 2009 11:24 AM Subject: Re: [mapguide-users] Adding a temporary Layer in MapGuide Yes, just insert points instead of the buffer feature. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you for your reply Kenneth. Trying examples on DevGuideSamples I discovered how to work with the Task Pane... Now I need to draw dynamically on the map points of known x,y coordinates, after clicking on the appropriate Task item. I hope this can be done with the buffer script you suggested me. Isn't it? Cheers Carmelo - Original Message - From: "Kenneth Skovhede, GEOGRAF A/S" To: "MapGuide Users Mail List" Sent: Wednesday, January 21, 2009 9:04 AM Subject: Re: [mapguide-users] Adding a temporary Layer in MapGuide I have not used the AJAX viewer enough to know how to do this with tasks. The values can be read from the viewer through some property functions: http://mapguide.osgeo.org/files/mapguide/docs/2.0/viewerapi.html#mapframe_getsessionid http://mapguide.osgeo.org/files/mapguide/docs/2.0/viewerapi.html#mapframe_getmapname With those, you can manually pass them to the request, if you use the "InvokeScript" method, but there may be an easier way. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you for your help! I'm seeing that the code you posted is very similar to the buffer code, however I'm really new to MapGuide, so I hope you can help me understanding how to make it work. I created a Layout, using MapGuide Studio, on which I added a new custom command for the Task panel, named "Route tracing". Therefore I created the route_tracing.jsp file, on which I'm trying to use your code (translating it from PHP to JSP) or the buffer.jsp code (which is already in JSP). On both your code and buffer.jsp there is this code: mapName = GetParameter(request, "MAPNAME"); sessionId = GetParameter(request, "SESSION"); - The question is: how can I pass the MAPNAME and SESSION values to the web page? The final result should be a web page, which opens when its Action Task item is clicked, on which I can select and digit some options. After clicking a button the page should get these values, and display the map with the calculated additional layer on it. I hope you can help me about that Cheers Carmelo - Original Message - From: "Arnaud De Groof" To: "MapGuide Users Mail List" Sent: Monday, January 12, 2009 4:18 PM Subject: RE: [mapguide-users] Adding a temporary Layer in MapGuide The first code : Open($userInfo); $resourceService = $siteConnection->CreateService(MgServiceType::ResourceService); // Read the MapDefinition into an XML DOM document object. $md = " Library://XXX/$mapName.MapDefinition "; // TODO Constant! $mdResourceId = new MgResourceIdentifier($md); $mdReader = $resourceService->GetResourceContent($mdResourceId); $mdXml = $mdReader->ToString(); $mdDomDoc = DOMDocument::loadXML($mdXml); // Add a new MapLayer $targetNode = $mdDomDoc->getElementsByTagName("MapLayer")->item(0); $newNode = $targetNode->parentNode->insertBefore(new DOMElement("MapLayer"), $targetNode); $newNode->appendChild($mdDomDoc->createElement("Name", $layerName1)); $newNode->appendChild($mdDomDoc->createElement("ResourceId", $rlLayerResourceId)); $newNode->appendChild($mdDomDoc->createElement("Selectable", "false")); $newNode->appendChild($mdDomDo
Re: [mapguide-users] Adding a temporary Layer in MapGuide
The buffer example doesn't read data from database, isn't it? I need to read data from a MySql database and, after executing a SQL query, display them on the map. How can I do that? Is there any example code about that? Thank you very much again Cheers Carmelo - Original Message - From: "Kenneth Skovhede, GEOGRAF A/S" To: "MapGuide Users Mail List" Sent: Wednesday, January 21, 2009 11:24 AM Subject: Re: [mapguide-users] Adding a temporary Layer in MapGuide Yes, just insert points instead of the buffer feature. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you for your reply Kenneth. Trying examples on DevGuideSamples I discovered how to work with the Task Pane... Now I need to draw dynamically on the map points of known x,y coordinates, after clicking on the appropriate Task item. I hope this can be done with the buffer script you suggested me. Isn't it? Cheers Carmelo - Original Message - From: "Kenneth Skovhede, GEOGRAF A/S" To: "MapGuide Users Mail List" Sent: Wednesday, January 21, 2009 9:04 AM Subject: Re: [mapguide-users] Adding a temporary Layer in MapGuide I have not used the AJAX viewer enough to know how to do this with tasks. The values can be read from the viewer through some property functions: http://mapguide.osgeo.org/files/mapguide/docs/2.0/viewerapi.html#mapframe_getsessionid http://mapguide.osgeo.org/files/mapguide/docs/2.0/viewerapi.html#mapframe_getmapname With those, you can manually pass them to the request, if you use the "InvokeScript" method, but there may be an easier way. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you for your help! I'm seeing that the code you posted is very similar to the buffer code, however I'm really new to MapGuide, so I hope you can help me understanding how to make it work. I created a Layout, using MapGuide Studio, on which I added a new custom command for the Task panel, named "Route tracing". Therefore I created the route_tracing.jsp file, on which I'm trying to use your code (translating it from PHP to JSP) or the buffer.jsp code (which is already in JSP). On both your code and buffer.jsp there is this code: mapName = GetParameter(request, "MAPNAME"); sessionId = GetParameter(request, "SESSION"); - The question is: how can I pass the MAPNAME and SESSION values to the web page? The final result should be a web page, which opens when its Action Task item is clicked, on which I can select and digit some options. After clicking a button the page should get these values, and display the map with the calculated additional layer on it. I hope you can help me about that Cheers Carmelo - Original Message - From: "Arnaud De Groof" To: "MapGuide Users Mail List" Sent: Monday, January 12, 2009 4:18 PM Subject: RE: [mapguide-users] Adding a temporary Layer in MapGuide The first code : Open($userInfo); $resourceService = $siteConnection->CreateService(MgServiceType::ResourceService); // Read the MapDefinition into an XML DOM document object. $md = " Library://XXX/$mapName.MapDefinition "; // TODO Constant! $mdResourceId = new MgResourceIdentifier($md); $mdReader = $resourceService->GetResourceContent($mdResourceId); $mdXml = $mdReader->ToString(); $mdDomDoc = DOMDocument::loadXML($mdXml); // Add a new MapLayer $targetNode = $mdDomDoc->getElementsByTagName("MapLayer")->item(0); $newNode = $targetNode->parentNode->insertBefore(new DOMElement("MapLayer"), $targetNode); $newNode->appendChild($mdDomDoc->createElement("Name", $layerName1)); $newNode->appendChild($mdDomDoc->createElement("ResourceId", $rlLayerResourceId)); $newNode->appendChild($mdDomDoc->createElement("Selectable", "false")); $newNode->appendChild($mdDomDoc->createElement("ShowInLegend", "false")); $newNode->appendChild($mdDomDoc->createElement("LegendLabel")); $newNode->appendChild($mdDomDoc->createElement("ExpandInLegend", "false")); $newNode->appendChild($mdDomDoc->createElement("Visible", "true")); $newNode->appendChild($mdDomDoc->createElement("Group")); // Save the updated MapDefinition $updatedXml = $mdDomDoc->saveXML(); $byteSource = new MgByteSource($updatedXml, strlen($updatedXml)); // Create the temporary MapDefinition $sessionMapName = $mdResourceId->GetName(); $sessionMapDefinition = "Session:$sessionId//$sessionMapName.MapDefinition"; $sessionResourceId = new MgResourceIdentifier($sessionMapDefinition); // Write the updated MapDefinition $resourceService->SetResource($sessionResourceId, $byteSource->GetReader(), null); //Test the updated Ma
Re: [mapguide-users] Adding a temporary Layer in MapGuide
As I said on my last post, I successfully linked the buffer code to the Task Panel item. But there is a problem, when the buffer code is executed I get this runtime error: Buffer Error An unclassified exception occurred. Exception occurred in method new_MgSelection__SWIG_1 at line 649 in file .\MgApi_wrap.cpp I followed these steps to link the buffer code to the Task Panel: - In DevGuideSamples\JAVASAMPLES\HELLO_MAP there are TASK_PANE.JSP and DISPLAY_SPATIAL_REFERENCE.JSP. TASK_PANE.JSP is linked to the Task Panel, and it calls DISPLAY_SPATIAL_REFERENCE.JSP - In mapviewerjava there is buffer.jsp - I copied the buffer.jsp code into the DISPLAY_SPATIAL_REFERENCE.JSP file How can I solve that problem? You said to insert points instead of the buffer feature. How? Points (or a line in a similar task) have coordinates stored on a MySql database... - Original Message - From: "Kenneth Skovhede, GEOGRAF A/S" To: "MapGuide Users Mail List" Sent: Wednesday, January 21, 2009 11:24 AM Subject: Re: [mapguide-users] Adding a temporary Layer in MapGuide Yes, just insert points instead of the buffer feature. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you for your reply Kenneth. Trying examples on DevGuideSamples I discovered how to work with the Task Pane... Now I need to draw dynamically on the map points of known x,y coordinates, after clicking on the appropriate Task item. I hope this can be done with the buffer script you suggested me. Isn't it? Cheers Carmelo - Original Message - From: "Kenneth Skovhede, GEOGRAF A/S" To: "MapGuide Users Mail List" Sent: Wednesday, January 21, 2009 9:04 AM Subject: Re: [mapguide-users] Adding a temporary Layer in MapGuide I have not used the AJAX viewer enough to know how to do this with tasks. The values can be read from the viewer through some property functions: http://mapguide.osgeo.org/files/mapguide/docs/2.0/viewerapi.html#mapframe_getsessionid http://mapguide.osgeo.org/files/mapguide/docs/2.0/viewerapi.html#mapframe_getmapname With those, you can manually pass them to the request, if you use the "InvokeScript" method, but there may be an easier way. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you for your help! I'm seeing that the code you posted is very similar to the buffer code, however I'm really new to MapGuide, so I hope you can help me understanding how to make it work. I created a Layout, using MapGuide Studio, on which I added a new custom command for the Task panel, named "Route tracing". Therefore I created the route_tracing.jsp file, on which I'm trying to use your code (translating it from PHP to JSP) or the buffer.jsp code (which is already in JSP). On both your code and buffer.jsp there is this code: mapName = GetParameter(request, "MAPNAME"); sessionId = GetParameter(request, "SESSION"); - The question is: how can I pass the MAPNAME and SESSION values to the web page? The final result should be a web page, which opens when its Action Task item is clicked, on which I can select and digit some options. After clicking a button the page should get these values, and display the map with the calculated additional layer on it. I hope you can help me about that Cheers Carmelo - Original Message - From: "Arnaud De Groof" To: "MapGuide Users Mail List" Sent: Monday, January 12, 2009 4:18 PM Subject: RE: [mapguide-users] Adding a temporary Layer in MapGuide The first code : Open($userInfo); $resourceService = $siteConnection->CreateService(MgServiceType::ResourceService); // Read the MapDefinition into an XML DOM document object. $md = " Library://XXX/$mapName.MapDefinition "; // TODO Constant! $mdResourceId = new MgResourceIdentifier($md); $mdReader = $resourceService->GetResourceContent($mdResourceId); $mdXml = $mdReader->ToString(); $mdDomDoc = DOMDocument::loadXML($mdXml); // Add a new MapLayer $targetNode = $mdDomDoc->getElementsByTagName("MapLayer")->item(0); $newNode = $targetNode->parentNode->insertBefore(new DOMElement("MapLayer"), $targetNode); $newNode->appendChild($mdDomDoc->createElement("Name", $layerName1)); $newNode->appendChild($mdDomDoc->createElement("ResourceId", $rlLayerResourceId)); $newNode->appendChild($mdDomDoc->createElement("Selectable", "false")); $newNode->appendChild($mdDomDoc->createElement("ShowInLegend", "false")); $newNode->appendChild($mdDomDoc->createElement("LegendLabel")); $newNode->appendChild($mdDomDoc->createElement("ExpandInLegend", "false")); $newNode->appendChild($mdDomDoc->createElement("Visible", "true")); $newNo
Re: [mapguide-users] Adding a temporary Layer in MapGuide
Thank you for your reply Kenneth. Trying examples on DevGuideSamples I discovered how to work with the Task Pane... Now I need to draw dynamically on the map points of known x,y coordinates, after clicking on the appropriate Task item. I hope this can be done with the buffer script you suggested me. Isn't it? Cheers Carmelo - Original Message - From: "Kenneth Skovhede, GEOGRAF A/S" To: "MapGuide Users Mail List" Sent: Wednesday, January 21, 2009 9:04 AM Subject: Re: [mapguide-users] Adding a temporary Layer in MapGuide I have not used the AJAX viewer enough to know how to do this with tasks. The values can be read from the viewer through some property functions: http://mapguide.osgeo.org/files/mapguide/docs/2.0/viewerapi.html#mapframe_getsessionid http://mapguide.osgeo.org/files/mapguide/docs/2.0/viewerapi.html#mapframe_getmapname With those, you can manually pass them to the request, if you use the "InvokeScript" method, but there may be an easier way. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you for your help! I'm seeing that the code you posted is very similar to the buffer code, however I'm really new to MapGuide, so I hope you can help me understanding how to make it work. I created a Layout, using MapGuide Studio, on which I added a new custom command for the Task panel, named "Route tracing". Therefore I created the route_tracing.jsp file, on which I'm trying to use your code (translating it from PHP to JSP) or the buffer.jsp code (which is already in JSP). On both your code and buffer.jsp there is this code: mapName = GetParameter(request, "MAPNAME"); sessionId = GetParameter(request, "SESSION"); - The question is: how can I pass the MAPNAME and SESSION values to the web page? The final result should be a web page, which opens when its Action Task item is clicked, on which I can select and digit some options. After clicking a button the page should get these values, and display the map with the calculated additional layer on it. I hope you can help me about that Cheers Carmelo - Original Message - From: "Arnaud De Groof" To: "MapGuide Users Mail List" Sent: Monday, January 12, 2009 4:18 PM Subject: RE: [mapguide-users] Adding a temporary Layer in MapGuide The first code : Open($userInfo); $resourceService = $siteConnection->CreateService(MgServiceType::ResourceService); // Read the MapDefinition into an XML DOM document object. $md = " Library://XXX/$mapName.MapDefinition "; // TODO Constant! $mdResourceId = new MgResourceIdentifier($md); $mdReader = $resourceService->GetResourceContent($mdResourceId); $mdXml = $mdReader->ToString(); $mdDomDoc = DOMDocument::loadXML($mdXml); // Add a new MapLayer $targetNode = $mdDomDoc->getElementsByTagName("MapLayer")->item(0); $newNode = $targetNode->parentNode->insertBefore(new DOMElement("MapLayer"), $targetNode); $newNode->appendChild($mdDomDoc->createElement("Name", $layerName1)); $newNode->appendChild($mdDomDoc->createElement("ResourceId", $rlLayerResourceId)); $newNode->appendChild($mdDomDoc->createElement("Selectable", "false")); $newNode->appendChild($mdDomDoc->createElement("ShowInLegend", "false")); $newNode->appendChild($mdDomDoc->createElement("LegendLabel")); $newNode->appendChild($mdDomDoc->createElement("ExpandInLegend", "false")); $newNode->appendChild($mdDomDoc->createElement("Visible", "true")); $newNode->appendChild($mdDomDoc->createElement("Group")); // Save the updated MapDefinition $updatedXml = $mdDomDoc->saveXML(); $byteSource = new MgByteSource($updatedXml, strlen($updatedXml)); // Create the temporary MapDefinition $sessionMapName = $mdResourceId->GetName(); $sessionMapDefinition = "Session:$sessionId//$sessionMapName.MapDefinition"; $sessionResourceId = new MgResourceIdentifier($sessionMapDefinition); // Write the updated MapDefinition $resourceService->SetResource($sessionResourceId, $byteSource->GetReader(), null); //Test the updated MapDefinition $md1 = "Session:$sessionId//X.MapDefinition"; $mdResourceId2 = new MgResourceIdentifier($md1); $mdReader2 = $resourceService->GetResourceContent($mdResourceId2); $mdXml2 = $mdReader2->ToString(); $mdDomDoc2 = DOMDocument::loadXML($mdXml2); // Read the WebLayout into an XML DOM document object. $wl = "Library://XXX/XXX.WebLayout"; // TODO Constant! $wlResourceId = new MgResourceIdentifier($wl); $wlReader = $resourceService->GetResourceContent($wlResourceId); $wlXml = $wlReader->ToString(); $wlDomDoc = DOMDocument::loadXML($wlXml); // Now, update the MapDefinition. $
Re: [mapguide-users] Adding a temporary Layer in MapGuide
Thank you for your help! I'm seeing that the code you posted is very similar to the buffer code, however I'm really new to MapGuide, so I hope you can help me understanding how to make it work. I created a Layout, using MapGuide Studio, on which I added a new custom command for the Task panel, named "Route tracing". Therefore I created the route_tracing.jsp file, on which I'm trying to use your code (translating it from PHP to JSP) or the buffer.jsp code (which is already in JSP). On both your code and buffer.jsp there is this code: mapName = GetParameter(request, "MAPNAME"); sessionId = GetParameter(request, "SESSION"); - The question is: how can I pass the MAPNAME and SESSION values to the web page? The final result should be a web page, which opens when its Action Task item is clicked, on which I can select and digit some options. After clicking a button the page should get these values, and display the map with the calculated additional layer on it. I hope you can help me about that Cheers Carmelo - Original Message - From: "Arnaud De Groof" To: "MapGuide Users Mail List" Sent: Monday, January 12, 2009 4:18 PM Subject: RE: [mapguide-users] Adding a temporary Layer in MapGuide The first code : Open($userInfo); $resourceService = $siteConnection->CreateService(MgServiceType::ResourceService); // Read the MapDefinition into an XML DOM document object. $md = " Library://XXX/$mapName.MapDefinition "; // TODO Constant! $mdResourceId = new MgResourceIdentifier($md); $mdReader = $resourceService->GetResourceContent($mdResourceId); $mdXml = $mdReader->ToString(); $mdDomDoc = DOMDocument::loadXML($mdXml); // Add a new MapLayer $targetNode = $mdDomDoc->getElementsByTagName("MapLayer")->item(0); $newNode = $targetNode->parentNode->insertBefore(new DOMElement("MapLayer"), $targetNode); $newNode->appendChild($mdDomDoc->createElement("Name", $layerName1)); $newNode->appendChild($mdDomDoc->createElement("ResourceId", $rlLayerResourceId)); $newNode->appendChild($mdDomDoc->createElement("Selectable", "false")); $newNode->appendChild($mdDomDoc->createElement("ShowInLegend", "false")); $newNode->appendChild($mdDomDoc->createElement("LegendLabel")); $newNode->appendChild($mdDomDoc->createElement("ExpandInLegend", "false")); $newNode->appendChild($mdDomDoc->createElement("Visible", "true")); $newNode->appendChild($mdDomDoc->createElement("Group")); // Save the updated MapDefinition $updatedXml = $mdDomDoc->saveXML(); $byteSource = new MgByteSource($updatedXml, strlen($updatedXml)); // Create the temporary MapDefinition $sessionMapName = $mdResourceId->GetName(); $sessionMapDefinition = "Session:$sessionId//$sessionMapName.MapDefinition"; $sessionResourceId = new MgResourceIdentifier($sessionMapDefinition); // Write the updated MapDefinition $resourceService->SetResource($sessionResourceId, $byteSource->GetReader(), null); //Test the updated MapDefinition $md1 = "Session:$sessionId//X.MapDefinition"; $mdResourceId2 = new MgResourceIdentifier($md1); $mdReader2 = $resourceService->GetResourceContent($mdResourceId2); $mdXml2 = $mdReader2->ToString(); $mdDomDoc2 = DOMDocument::loadXML($mdXml2); // Read the WebLayout into an XML DOM document object. $wl = "Library://XXX/XXX.WebLayout"; // TODO Constant! $wlResourceId = new MgResourceIdentifier($wl); $wlReader = $resourceService->GetResourceContent($wlResourceId); $wlXml = $wlReader->ToString(); $wlDomDoc = DOMDocument::loadXML($wlXml); // Now, update the MapDefinition. $mapdef = $wlDomDoc->getElementsByTagName("ResourceId")->item(0); $mapdef->nodeValue = "$md1"; // Prepare the updated XML to be written out to the session. $wlupdatedXml = $wlDomDoc->saveXML(); $wlbyteSource = new MgByteSource($wlupdatedXml, strlen($wlupdatedXml)); // Create a temporary WebLayout $wlsessionMapName = $wlResourceId->GetName(); $wlsessionWebLayout = "Session:$sessionId//$wlsessionMapName.WebLayout"; $wlsessionResourceId = new MgResourceIdentifier($wlsessionWebLayout); // Write the updated WebLayout to the session. $resourceService->SetResource($wlsessionResourceId, $wlbyteSource->GetReader(), null); // Redirect to the Ajax viewer. $redirectTo = "mapguide/mapviewerajax/?SESSION=$sessionId&WEBLAYOUT=$wlsessionWebLayou t"; $host = $_SERVER["HTTP_HOST"]; $url = "http://$host/$redirectTo";; //Test $f = 'test.txt'; $handle = fopen($f,"w"); fwrite($handle, "test1:<".$mdXml.">\r\ntest 2 :<".$updatedXml.">\r\ntest 3 :<".$wlXml.">\r\ntest 4 :<".$wlupdatedXml.">\r\ntest 5 :<".$url.">"); fclose($handle); // Redirect! header("Location: $url"); exit; ?> ___ E-MAIL DISCLAIMER The present message may contain confidential and/or legally privileged information. If you are not the intended addressee and in case of a transmission error, please notify the sender immediately and destroy this E-mail. Disclosur
Re: [mapguide-users] Adding a temporary Layer in MapGuide
Hi Kenneth, how would you fix that code? Please let me know how. But is it everything I need for the steps you talked me about? Thank you very much in advance Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Friday, January 09, 2009 9:52 AM Subject: Re: [mapguide-users] Adding a temporary Layer in MapGuide Please be aware that the code below attempts to create the layer before the viewer starts up. As I read the question, the map is already loaded, but should have the layer added. Most of the steps are the same, until this line and down: $md = "Library://Test/X.MapDefinition"; You should instead get a reference to the runtime map, and then call layers.add() with an MgLayer object. Regards, Kenneth Skovhede, GEOGRAF A/S ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Adding a temporary Layer in MapGuide
Hi everybody! I hope you can help me about this problem I'm having since several days: 1) having x,y coordinates of a point, resulting from a sql query, how can I display it at runtime on the map? 2) having x,y coordinates of a sequence of points, resulting from a sql query, how can I display them at runtime on the map? I really hope you can help me with that Thank you very much in advance Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Re: How to dynamically draw lines from MySql queryes
Is there any example code about drawing a line connecting points of known coordinates? Anybody can help me about that? Thank you very much in advance - Original Message - From: Carmelo Saffioti To: mapguide-users@lists.osgeo.org Sent: Monday, December 22, 2008 2:08 PM Subject: How to dynamically draw lines from MySql queryes Hi everybody, I've got a sequence of GPS lat/lon positions on a MySql db table. I need to draw a line which connects them. Is there any example code about doing that? For drawing polygons with MapGuide, reading data from a MySql table, I saw that I need to create a POLYGON attribute on the DB with vertices points coordinates.Do I need to create similarly a LINE attribute on the DB? If yes, how can I dynamically execute MySql queryes for doing that, so that MapGuide can draw a line starting from a sequence of GPS coordinates? I hope you can help me, thank you in advance Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] How to dynamically draw lines from MySql queryes
Hi everybody, I've got a sequence of GPS lat/lon positions on a MySql db table. I need to draw a line which connects them. Is there any example code about doing that? For drawing polygons with MapGuide, reading data from a MySql table, I saw that I need to create a POLYGON attribute on the DB with vertices points coordinates.Do I need to create similarly a LINE attribute on the DB? If yes, how can I dynamically execute MySql queryes for doing that, so that MapGuide can draw a line starting from a sequence of GPS coordinates? I hope you can help me, thank you in advance Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] How to add a new Menu command
Hi everybody, I'd like to add a new Menu command to my web application. How can I do? How can I add a "new" Task item? I was able only to use present items Thank you for your help___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Possible bug with FDO Provider for MySql
I tried the r3481 version too, but the problem still remains... - Original Message - From: Carmelo Saffioti To: MapGuide Users Mail List Sent: Friday, November 28, 2008 11:23 AM Subject: Re: [mapguide-users] Possible bug with FDO Provider for MySql I'm using the 1.0.9 version. I wasn't able to find the newer version. Where can I find it? Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Friday, November 28, 2008 10:49 AM Subject: Re: [mapguide-users] Possible bug with FDO Provider for MySql It looks like a bug in Maestro. Feel free to create a ticket for the problem. If you can create something that allows me to reproduce the problem locally, I will try to fix it. Are you using 1.0.9 or the newer r3481? There was a bugfix for database featuresources that is not in 1.0.9. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Hi everybody! I'm using MapGuide Maestro for creating a data connection to a MySql db. When I add a new Dataconnection with "OSGeo FDO Provider for MySql" everything is ok, in fact if I click on "Test connection" I get: Provider reported no errors... I assigned database, server, port, username and password, but there's nothing about tables... The problem is when, after creating a new layer, I try to choose as feature resource the MySql Dataconnection before created. I get the following error message: "failed to read schema from data source" If I use MapGuide Studio for doing the same things, everything works fine! So, is there anything wrong in what I'm doing or is there any bug in Maestro?? Thank you very much in advance Carmelo -- ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Possible bug with FDO Provider for MySql
I'm using the 1.0.9 version. I wasn't able to find the newer version. Where can I find it? Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Friday, November 28, 2008 10:49 AM Subject: Re: [mapguide-users] Possible bug with FDO Provider for MySql It looks like a bug in Maestro. Feel free to create a ticket for the problem. If you can create something that allows me to reproduce the problem locally, I will try to fix it. Are you using 1.0.9 or the newer r3481? There was a bugfix for database featuresources that is not in 1.0.9. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Hi everybody! I'm using MapGuide Maestro for creating a data connection to a MySql db. When I add a new Dataconnection with "OSGeo FDO Provider for MySql" everything is ok, in fact if I click on "Test connection" I get: Provider reported no errors... I assigned database, server, port, username and password, but there's nothing about tables... The problem is when, after creating a new layer, I try to choose as feature resource the MySql Dataconnection before created. I get the following error message: "failed to read schema from data source" If I use MapGuide Studio for doing the same things, everything works fine! So, is there anything wrong in what I'm doing or is there any bug in Maestro?? Thank you very much in advance Carmelo ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Possible bug with FDO Provider for MySql
Hi everybody! I'm using MapGuide Maestro for creating a data connection to a MySql db. When I add a new Dataconnection with "OSGeo FDO Provider for MySql" everything is ok, in fact if I click on "Test connection" I get: Provider reported no errors... I assigned database, server, port, username and password, but there's nothing about tables... The problem is when, after creating a new layer, I try to choose as feature resource the MySql Dataconnection before created. I get the following error message: "failed to read schema from data source" If I use MapGuide Studio for doing the same things, everything works fine! So, is there anything wrong in what I'm doing or is there any bug in Maestro?? Thank you very much in advance Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Tracing lines
Hi everybody, having a sequence of GPS points, how can I draw a line for connecting them on the map? I hope anybody can help me, it's from a very long time I'm searching about how can I do that Thank you very much in advance___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Creating Streets and info
Is there any way for drawing a map starting from objects coordinates data on a DB? I'm thinking about creating a layer reading from a MySql db... what do you think about? - Original Message - From: Carmelo Saffioti To: MapGuide Users Mail List Sent: Tuesday, November 25, 2008 11:07 AM Subject: Re: [mapguide-users] Creating Streets and info My coordinate system is relative and local, it is metric and its origin is a (0,0) point on the planimetry. If the map is generated by these metric data points on the DB, how would you suggest to handle a sequence of GPS vehicles positions, which must be displayed on the map ? Have I transform GPS positions to local system coordinates (or the map coordinates to GPS)?? Or is there any other way? For drawing the map I have 2 ways: 1) using the DWG planimetry file (which now is geo-referenced) 2) reading objects data on a DB table, on which I have local coordinates of objects centers, and drawing the map according to these data The method (1) is what I'm using now, but it has some limitations: - it's not possible to create the map programmatically, the map is created on Autocad, which DWG file is imported into MapGuide. Therefore every map changes must be done manually on Autocad - it's not simple to attach additional fields values to Autocad objects Which way would you suggest? Carmelo - Original Message - From: Dave Wilson To: MapGuide Users Mail List Sent: Monday, November 24, 2008 10:32 PM Subject: RE: [mapguide-users] Creating Streets and info You can use X/Y data in any coordinate system, not just Lon/Lat in an ODBC Connection. Dave From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Skovhede, GEOGRAF A/S Sent: Monday, November 24, 2008 1:48 PM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Creating Streets and info If you select the correct projection for both the data sources, and the map, MapGuide should fix it correctly for you. If you have X/Y data (lat/lon) in MySql, you can use the ODBC provider to map the data into points. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you Kenneth, now it works :-) Another question: I've got objects coordinates and data on a MySql DB. Is it possible to use it to draw a layer with these objects? Object coordinates are local relative coordinates. Vehicles positions on my DB are lat/lon GPS coordinates. Have you got any suggestions about dealing with these different coordinates? Thank you very much again Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Monday, November 24, 2008 3:29 PM Subject: Re: [mapguide-users] Creating Streets and info I see the problem now. You must include ALL the files, not just the SHP file. After that you must select the shp file to be the "main" item (the star button in Maestro). I can send you a package where I have done this if you like. The problem is that Maestro only displays "*.shp" in the file type, and you must select "All files" before you can add those other files. Feel free to add a feature request for the problem: http://trac.osgeo.org/mapguide/newticket Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: I tried using the exported SHP file with MapGuide Maestro. Using the ajaxviewer example SDF files I see many attributes, but using my exported SHP files I see only the FeatId field. If from Autocad Map I export data to SDF format I've got the same problem... If from Autocad Map I connect to the SHP data file I can see its attributes values on the data table. How come MapGuide Maestro doesn't display them? The SHP file is attached with this message, please help me - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Monday, November 24, 2008 1:56 PM Subject: Re: [mapguide-users] Creating Streets and info I am no expert on SHP data, but with most data, the attributes are included. If you use SHP data in MapGuide the attributes should be IN the SHP (or is it dbx, etc) file. >From then on you can see the columns everywhere, and use the attributes as label or other stuff. If you select the columns to view on the layer, they will show up, just like the parcel data. If you use Arc, the attributes are also attached to the topology, so the export should be able to extract that as well. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffi
[mapguide-users] Re: Drawing layer reading coordinates from DB
Any idea about how to draw rectangles knowing their center coordinates or corners coordinates? Cheers Carmelo - Original Message - From: Carmelo Saffioti To: MapGuide Users Mail List Sent: Tuesday, November 25, 2008 1:19 PM Subject: Drawing layer reading coordinates from DB Hi everybody, I've got a MySql DB on which there are objects coordinates. For example I've got coordinates of slots centers, where a slot is a rectangle. For other rectangles I've got the coordinates of each of the 4 corners. Is it possible to draw a rectangle reading its center coordinates? And is it possible knowing its corners coordinates? Cheers Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Re: MySql Dataconnection problem
How can I fix the "failed to read schema from data source" error ? When I add a new Dataconnection with "OSGeo FDO Provider for MySql" everything is ok, in fact if I click on "Test connection" I get: Provider reported no errors... I assigned database, server, port, username and password, but there's nothing about tables... What can I do? Thank you very much in advance Carmelo ----- Original Message - From: Carmelo Saffioti To: MapGuide Users Mail List Sent: Tuesday, November 25, 2008 1:08 PM Subject: MySql Dataconnection problem Hi everybody, I'm trying with MapGuide Maestro to add a new layer which feature source is MySql. When I add a new Dataconnection with "OSGeo FDO Provider for MySql" everything is ok, in fact if I click on "Test connection" I get: Provider reported no errors. The problem is when, after creating a new layer, I try to choose as feature resource the MySql Dataconnection before created. I get the following error message: failed to read schema from data source Is there anything wrong? I assigned database, server, port, username and password, but there's nothing about tables... Cheers Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Drawing layer reading coordinates from DB
Hi everybody, I've got a MySql DB on which there are objects coordinates. For example I've got coordinates of slots centers, where a slot is a rectangle. For other rectangles I've got the coordinates of each of the 4 corners. Is it possible to draw a rectangle reading its center coordinates? And is it possible knowing its corners coordinates? Cheers Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] MySql Dataconnection problem
Hi everybody, I'm trying with MapGuide Maestro to add a new layer which feature source is MySql. When I add a new Dataconnection with "OSGeo FDO Provider for MySql" everything is ok, in fact if I click on "Test connection" I get: Provider reported no errors. The problem is when, after creating a new layer, I try to choose as feature resource the MySql Dataconnection before created. I get the following error message: failed to read schema from data source Is there anything wrong? I assigned database, server, port, username and password, but there's nothing about tables... Cheers Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Creating Streets and info
My coordinate system is relative and local, it is metric and its origin is a (0,0) point on the planimetry. If the map is generated by these metric data points on the DB, how would you suggest to handle a sequence of GPS vehicles positions, which must be displayed on the map ? Have I transform GPS positions to local system coordinates (or the map coordinates to GPS)?? Or is there any other way? For drawing the map I have 2 ways: 1) using the DWG planimetry file (which now is geo-referenced) 2) reading objects data on a DB table, on which I have local coordinates of objects centers, and drawing the map according to these data The method (1) is what I'm using now, but it has some limitations: - it's not possible to create the map programmatically, the map is created on Autocad, which DWG file is imported into MapGuide. Therefore every map changes must be done manually on Autocad - it's not simple to attach additional fields values to Autocad objects Which way would you suggest? Carmelo - Original Message - From: Dave Wilson To: MapGuide Users Mail List Sent: Monday, November 24, 2008 10:32 PM Subject: RE: [mapguide-users] Creating Streets and info You can use X/Y data in any coordinate system, not just Lon/Lat in an ODBC Connection. Dave From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Skovhede, GEOGRAF A/S Sent: Monday, November 24, 2008 1:48 PM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Creating Streets and info If you select the correct projection for both the data sources, and the map, MapGuide should fix it correctly for you. If you have X/Y data (lat/lon) in MySql, you can use the ODBC provider to map the data into points. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you Kenneth, now it works :-) Another question: I've got objects coordinates and data on a MySql DB. Is it possible to use it to draw a layer with these objects? Object coordinates are local relative coordinates. Vehicles positions on my DB are lat/lon GPS coordinates. Have you got any suggestions about dealing with these different coordinates? Thank you very much again Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Monday, November 24, 2008 3:29 PM Subject: Re: [mapguide-users] Creating Streets and info I see the problem now. You must include ALL the files, not just the SHP file. After that you must select the shp file to be the "main" item (the star button in Maestro). I can send you a package where I have done this if you like. The problem is that Maestro only displays "*.shp" in the file type, and you must select "All files" before you can add those other files. Feel free to add a feature request for the problem: http://trac.osgeo.org/mapguide/newticket Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: I tried using the exported SHP file with MapGuide Maestro. Using the ajaxviewer example SDF files I see many attributes, but using my exported SHP files I see only the FeatId field. If from Autocad Map I export data to SDF format I've got the same problem... If from Autocad Map I connect to the SHP data file I can see its attributes values on the data table. How come MapGuide Maestro doesn't display them? The SHP file is attached with this message, please help me - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Monday, November 24, 2008 1:56 PM Subject: Re: [mapguide-users] Creating Streets and info I am no expert on SHP data, but with most data, the attributes are included. If you use SHP data in MapGuide the attributes should be IN the SHP (or is it dbx, etc) file. >From then on you can see the columns everywhere, and use the attributes as label or other stuff. If you select the columns to view on the layer, they will show up, just like the parcel data. If you use Arc, the attributes are also attached to the topology, so the export should be able to extract that as well. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you for your help.I've found how to create object data. The problem is that I've got manyobjects (about 10.000), then I need an automatic method to attach data toobjects. Some people told me to follow these steps:1) create a topology2) export a SHP file with topology data3) use topology ID to make a JOIN between topology data and data I need toattach4) import in Autocad Map the SHP file5) label objects, using the Style tool6) create a link template7) generate links to "Enclos
Re: [mapguide-users] Creating Streets and info
My local reference system is metric, and its origin is a (0,0) point on the planimetry. Then, do you mean to set a metric system for both data sources and the map? The question is this: Data sources have metric data on a local reference system. Then the map is generated by this system. I have a sequence of GPS vehicles positions too, which must be displayed on the map. Have I transform GPS positions to local system coordinates (or the map coordinates to GPS)?? Or is there any other way? Thank you again Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Monday, November 24, 2008 9:47 PM Subject: Re: [mapguide-users] Creating Streets and info If you select the correct projection for both the data sources, and the map, MapGuide should fix it correctly for you. If you have X/Y data (lat/lon) in MySql, you can use the ODBC provider to map the data into points. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you Kenneth, now it works :-) Another question: I've got objects coordinates and data on a MySql DB. Is it possible to use it to draw a layer with these objects? Object coordinates are local relative coordinates. Vehicles positions on my DB are lat/lon GPS coordinates. Have you got any suggestions about dealing with these different coordinates? Thank you very much again Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Monday, November 24, 2008 3:29 PM Subject: Re: [mapguide-users] Creating Streets and info I see the problem now. You must include ALL the files, not just the SHP file. After that you must select the shp file to be the "main" item (the star button in Maestro). I can send you a package where I have done this if you like. The problem is that Maestro only displays "*.shp" in the file type, and you must select "All files" before you can add those other files. Feel free to add a feature request for the problem: http://trac.osgeo.org/mapguide/newticket Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: I tried using the exported SHP file with MapGuide Maestro. Using the ajaxviewer example SDF files I see many attributes, but using my exported SHP files I see only the FeatId field. If from Autocad Map I export data to SDF format I've got the same problem... If from Autocad Map I connect to the SHP data file I can see its attributes values on the data table. How come MapGuide Maestro doesn't display them? The SHP file is attached with this message, please help me - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Monday, November 24, 2008 1:56 PM Subject: Re: [mapguide-users] Creating Streets and info I am no expert on SHP data, but with most data, the attributes are included. If you use SHP data in MapGuide the attributes should be IN the SHP (or is it dbx, etc) file. >From then on you can see the columns everywhere, and use the attributes as label or other stuff. If you select the columns to view on the layer, they will show up, just like the parcel data. If you use Arc, the attributes are also attached to the topology, so the export should be able to extract that as well. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you for your help. I've found how to create object data. The problem is that I've got many objects (about 10.000), then I need an automatic method to attach data to objects. Some people told me to follow these steps: 1) create a topology 2) export a SHP file with topology data 3) use topology ID to make a JOIN between topology data and data I need to attach 4) import in Autocad Map the SHP file 5) label objects, using the Style tool 6) create a link template 7) generate links to "Enclosed Text" On Autocad Map guide I saw that it is possible to automatically link objects to data on a DB table. But it requires labels. Using labels created as I said here doesn't work... Other people told me to attach objects data using a GIS software, but did not say which software and how :-( I hope anybody here can help me, because it's taking a really long time for this purpose... I need to develop something similar to the ajaxviewer example, on which you can view info about Parcels. Hoping in your help Cheers Carmelo - Original Message - From: "Berdel, Brian" <[EMAIL PROTECTED]> To: "MapGuide Users Mail List" Sent: Tuesday, November 18, 2008 2:45 PM Subject: RE: [mapguide-users] Creating Streets and info In autocad m
Re: [mapguide-users] Creating Streets and info
Thank you Kenneth, now it works :-) Another question: I've got objects coordinates and data on a MySql DB. Is it possible to use it to draw a layer with these objects? Object coordinates are local relative coordinates. Vehicles positions on my DB are lat/lon GPS coordinates. Have you got any suggestions about dealing with these different coordinates? Thank you very much again Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Monday, November 24, 2008 3:29 PM Subject: Re: [mapguide-users] Creating Streets and info I see the problem now. You must include ALL the files, not just the SHP file. After that you must select the shp file to be the "main" item (the star button in Maestro). I can send you a package where I have done this if you like. The problem is that Maestro only displays "*.shp" in the file type, and you must select "All files" before you can add those other files. Feel free to add a feature request for the problem: http://trac.osgeo.org/mapguide/newticket Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: I tried using the exported SHP file with MapGuide Maestro. Using the ajaxviewer example SDF files I see many attributes, but using my exported SHP files I see only the FeatId field. If from Autocad Map I export data to SDF format I've got the same problem... If from Autocad Map I connect to the SHP data file I can see its attributes values on the data table. How come MapGuide Maestro doesn't display them? The SHP file is attached with this message, please help me - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Monday, November 24, 2008 1:56 PM Subject: Re: [mapguide-users] Creating Streets and info I am no expert on SHP data, but with most data, the attributes are included. If you use SHP data in MapGuide the attributes should be IN the SHP (or is it dbx, etc) file. >From then on you can see the columns everywhere, and use the attributes as label or other stuff. If you select the columns to view on the layer, they will show up, just like the parcel data. If you use Arc, the attributes are also attached to the topology, so the export should be able to extract that as well. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Thank you for your help. I've found how to create object data. The problem is that I've got many objects (about 10.000), then I need an automatic method to attach data to objects. Some people told me to follow these steps: 1) create a topology 2) export a SHP file with topology data 3) use topology ID to make a JOIN between topology data and data I need to attach 4) import in Autocad Map the SHP file 5) label objects, using the Style tool 6) create a link template 7) generate links to "Enclosed Text" On Autocad Map guide I saw that it is possible to automatically link objects to data on a DB table. But it requires labels. Using labels created as I said here doesn't work... Other people told me to attach objects data using a GIS software, but did not say which software and how :-( I hope anybody here can help me, because it's taking a really long time for this purpose... I need to develop something similar to the ajaxviewer example, on which you can view info about Parcels. Hoping in your help Cheers Carmelo - Original Message - From: "Berdel, Brian" <[EMAIL PROTECTED]> To: "MapGuide Users Mail List" Sent: Tuesday, November 18, 2008 2:45 PM Subject: RE: [mapguide-users] Creating Streets and info In autocad map you have to create the object data and attach it to the features. Check the help for creating object data. It is pretty straight forward once you know what you are doing. -----Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carmelo Saffioti Sent: Tuesday, November 18, 2008 8:49 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Creating Streets and info Thanks Zac. You said that the street layer tooltip is based on attributes chosen from the feature source. Looking with Maestro at the viewer example I see what you mean. Then now I need to create a feature source with attributes. The feature source I'm using is a SHP file exported from my DWG planimetry with Autocad Map. Importing it into MapGuide I can see that it has only 1 attribute: FeatId. I saw that the viewer example uses a layer called "Parcels", which has many attributes. I need something similar, because on my planimetry I have many adiacents blocks, and for each of them I need to show a tooltip with detail informations (for example: Row number, Block number, Area code). Have I create this blocks, with their detail informations,
Re: [mapguide-users] Creating Streets and info
Thank you for your help. I've found how to create object data. The problem is that I've got many objects (about 10.000), then I need an automatic method to attach data to objects. Some people told me to follow these steps: 1) create a topology 2) export a SHP file with topology data 3) use topology ID to make a JOIN between topology data and data I need to attach 4) import in Autocad Map the SHP file 5) label objects, using the Style tool 6) create a link template 7) generate links to "Enclosed Text" On Autocad Map guide I saw that it is possible to automatically link objects to data on a DB table. But it requires labels. Using labels created as I said here doesn't work... Other people told me to attach objects data using a GIS software, but did not say which software and how :-( I hope anybody here can help me, because it's taking a really long time for this purpose... I need to develop something similar to the ajaxviewer example, on which you can view info about Parcels. Hoping in your help Cheers Carmelo - Original Message - From: "Berdel, Brian" <[EMAIL PROTECTED]> To: "MapGuide Users Mail List" Sent: Tuesday, November 18, 2008 2:45 PM Subject: RE: [mapguide-users] Creating Streets and info In autocad map you have to create the object data and attach it to the features. Check the help for creating object data. It is pretty straight forward once you know what you are doing. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carmelo Saffioti Sent: Tuesday, November 18, 2008 8:49 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Creating Streets and info Thanks Zac. You said that the street layer tooltip is based on attributes chosen from the feature source. Looking with Maestro at the viewer example I see what you mean. Then now I need to create a feature source with attributes. The feature source I'm using is a SHP file exported from my DWG planimetry with Autocad Map. Importing it into MapGuide I can see that it has only 1 attribute: FeatId. I saw that the viewer example uses a layer called "Parcels", which has many attributes. I need something similar, because on my planimetry I have many adiacents blocks, and for each of them I need to show a tooltip with detail informations (for example: Row number, Block number, Area code). Have I create this blocks, with their detail informations, on Autocad Map? I tried importing the Parcel SDF file features source into Autocad Map, and I see that each block is a poliline. But I don't see any attribute, I don't know how to... - Original Message - From: "Zac Spitzer" <[EMAIL PROTECTED]> To: "MapGuide Users Mail List" Sent: Tuesday, November 18, 2008 12:29 PM Subject: Re: [mapguide-users] Creating Streets and info > have a look at how the example you looked at is configured > > the street layer will expose a tooltip based on the attributes chosen > from the feature source in the tooltip expression > > z > > On Tue, Nov 18, 2008 at 10:29 PM, Carmelo Saffioti <[EMAIL PROTECTED]> wrote: > > Thank you for your answer. > > I'm using Maestro. Ok, I see that the tooltip is definable on the layer with > > Maestro. > > So, to have a tooltip for each street should I have a layer for each street? > > > > - Original Message - > > From: "Zac Spitzer" <[EMAIL PROTECTED]> > > To: "MapGuide Users Mail List" > > Sent: Tuesday, November 18, 2008 12:15 PM > > Subject: Re: [mapguide-users] Creating Streets and info > > > > > >> what tools are you using? studio, maestro? > >> > >> they are called tooltips and they are defined per layer > >> > >> On Tue, Nov 18, 2008 at 10:12 PM, Carmelo Saffioti <[EMAIL PROTECTED]> > > wrote: > >> > Hi everybody, > >> > Seeing the MapGuide viewer example I saw that when the mouse cursor is > > over > >> > a street it displays a message with informations about the street. I'd > > like > >> > to make something similar. I need to create streets and infos too. How > > can I > >> > do? > >> > I hope you can help me starting > >> > > >> > > >> > Cheers > >> > Carmelo > >> > ___ > >> > mapguide-users mailing list > >> > mapguide-users@lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapguide-users > >> > > >> > > >> > >> > >> > >> -- > >> Zac Spitzer - > >> http://zacster.blogspot.com >
Re: [mapguide-users] Creating Streets and info
Ok, I saw how to create objects data. But I cannot assign data to object totally manually, because I have about 10.000 objects... it's absurd. Is there any other way? On my planimetry I've got about 10.000 rectangles. I'd like to show a tooltip when the mouse is over each of them... I hope you can help me Cheers Carmelo - Original Message - From: "Berdel, Brian" <[EMAIL PROTECTED]> To: "MapGuide Users Mail List" Sent: Tuesday, November 18, 2008 2:45 PM Subject: RE: [mapguide-users] Creating Streets and info In autocad map you have to create the object data and attach it to the features. Check the help for creating object data. It is pretty straight forward once you know what you are doing. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carmelo Saffioti Sent: Tuesday, November 18, 2008 8:49 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Creating Streets and info Thanks Zac. You said that the street layer tooltip is based on attributes chosen from the feature source. Looking with Maestro at the viewer example I see what you mean. Then now I need to create a feature source with attributes. The feature source I'm using is a SHP file exported from my DWG planimetry with Autocad Map. Importing it into MapGuide I can see that it has only 1 attribute: FeatId. I saw that the viewer example uses a layer called "Parcels", which has many attributes. I need something similar, because on my planimetry I have many adiacents blocks, and for each of them I need to show a tooltip with detail informations (for example: Row number, Block number, Area code). Have I create this blocks, with their detail informations, on Autocad Map? I tried importing the Parcel SDF file features source into Autocad Map, and I see that each block is a poliline. But I don't see any attribute, I don't know how to... - Original Message - From: "Zac Spitzer" <[EMAIL PROTECTED]> To: "MapGuide Users Mail List" Sent: Tuesday, November 18, 2008 12:29 PM Subject: Re: [mapguide-users] Creating Streets and info > have a look at how the example you looked at is configured > > the street layer will expose a tooltip based on the attributes chosen > from the feature source in the tooltip expression > > z > > On Tue, Nov 18, 2008 at 10:29 PM, Carmelo Saffioti <[EMAIL PROTECTED]> wrote: > > Thank you for your answer. > > I'm using Maestro. Ok, I see that the tooltip is definable on the layer with > > Maestro. > > So, to have a tooltip for each street should I have a layer for each street? > > > > - Original Message - > > From: "Zac Spitzer" <[EMAIL PROTECTED]> > > To: "MapGuide Users Mail List" > > Sent: Tuesday, November 18, 2008 12:15 PM > > Subject: Re: [mapguide-users] Creating Streets and info > > > > > >> what tools are you using? studio, maestro? > >> > >> they are called tooltips and they are defined per layer > >> > >> On Tue, Nov 18, 2008 at 10:12 PM, Carmelo Saffioti <[EMAIL PROTECTED]> > > wrote: > >> > Hi everybody, > >> > Seeing the MapGuide viewer example I saw that when the mouse cursor is > > over > >> > a street it displays a message with informations about the street. I'd > > like > >> > to make something similar. I need to create streets and infos too. How > > can I > >> > do? > >> > I hope you can help me starting > >> > > >> > > >> > Cheers > >> > Carmelo > >> > ___ > >> > mapguide-users mailing list > >> > mapguide-users@lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapguide-users > >> > > >> > > >> > >> > >> > >> -- > >> Zac Spitzer - > >> http://zacster.blogspot.com > >> http://ennoble.dreamhosters.com/mapguide-central/ > >> +61 405 847 168 > >> ___ > >> mapguide-users mailing list > >> mapguide-users@lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > > ___ > > mapguide-users mailing list > > mapguide-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > > > > -- > Zac Spitzer - > http://zacster.blogspot.com > http://ennoble.dreamhosters.com/mapguide-central/ > +61 405 847 168 > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Creating Streets and info
Thanks Zac. You said that the street layer tooltip is based on attributes chosen from the feature source. Looking with Maestro at the viewer example I see what you mean. Then now I need to create a feature source with attributes. The feature source I'm using is a SHP file exported from my DWG planimetry with Autocad Map. Importing it into MapGuide I can see that it has only 1 attribute: FeatId. I saw that the viewer example uses a layer called "Parcels", which has many attributes. I need something similar, because on my planimetry I have many adiacents blocks, and for each of them I need to show a tooltip with detail informations (for example: Row number, Block number, Area code). Have I create this blocks, with their detail informations, on Autocad Map? I tried importing the Parcel SDF file features source into Autocad Map, and I see that each block is a poliline. But I don't see any attribute, I don't know how to... - Original Message - From: "Zac Spitzer" <[EMAIL PROTECTED]> To: "MapGuide Users Mail List" Sent: Tuesday, November 18, 2008 12:29 PM Subject: Re: [mapguide-users] Creating Streets and info > have a look at how the example you looked at is configured > > the street layer will expose a tooltip based on the attributes chosen > from the feature source in the tooltip expression > > z > > On Tue, Nov 18, 2008 at 10:29 PM, Carmelo Saffioti <[EMAIL PROTECTED]> wrote: > > Thank you for your answer. > > I'm using Maestro. Ok, I see that the tooltip is definable on the layer with > > Maestro. > > So, to have a tooltip for each street should I have a layer for each street? > > > > - Original Message - > > From: "Zac Spitzer" <[EMAIL PROTECTED]> > > To: "MapGuide Users Mail List" > > Sent: Tuesday, November 18, 2008 12:15 PM > > Subject: Re: [mapguide-users] Creating Streets and info > > > > > >> what tools are you using? studio, maestro? > >> > >> they are called tooltips and they are defined per layer > >> > >> On Tue, Nov 18, 2008 at 10:12 PM, Carmelo Saffioti <[EMAIL PROTECTED]> > > wrote: > >> > Hi everybody, > >> > Seeing the MapGuide viewer example I saw that when the mouse cursor is > > over > >> > a street it displays a message with informations about the street. I'd > > like > >> > to make something similar. I need to create streets and infos too. How > > can I > >> > do? > >> > I hope you can help me starting > >> > > >> > > >> > Cheers > >> > Carmelo > >> > ___ > >> > mapguide-users mailing list > >> > mapguide-users@lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapguide-users > >> > > >> > > >> > >> > >> > >> -- > >> Zac Spitzer - > >> http://zacster.blogspot.com > >> http://ennoble.dreamhosters.com/mapguide-central/ > >> +61 405 847 168 > >> ___ > >> mapguide-users mailing list > >> mapguide-users@lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > > ___ > > mapguide-users mailing list > > mapguide-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > > > > -- > Zac Spitzer - > http://zacster.blogspot.com > http://ennoble.dreamhosters.com/mapguide-central/ > +61 405 847 168 > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Creating Streets and info
Thank you for your answer. I'm using Maestro. Ok, I see that the tooltip is definable on the layer with Maestro. So, to have a tooltip for each street should I have a layer for each street? - Original Message - From: "Zac Spitzer" <[EMAIL PROTECTED]> To: "MapGuide Users Mail List" Sent: Tuesday, November 18, 2008 12:15 PM Subject: Re: [mapguide-users] Creating Streets and info > what tools are you using? studio, maestro? > > they are called tooltips and they are defined per layer > > On Tue, Nov 18, 2008 at 10:12 PM, Carmelo Saffioti <[EMAIL PROTECTED]> wrote: > > Hi everybody, > > Seeing the MapGuide viewer example I saw that when the mouse cursor is over > > a street it displays a message with informations about the street. I'd like > > to make something similar. I need to create streets and infos too. How can I > > do? > > I hope you can help me starting > > > > > > Cheers > > Carmelo > > ___ > > mapguide-users mailing list > > mapguide-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > > > > > > -- > Zac Spitzer - > http://zacster.blogspot.com > http://ennoble.dreamhosters.com/mapguide-central/ > +61 405 847 168 > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Displaying points of given GPS coordinates
Thank you Kenneth, they're cool examples. But the source is not available, I can only view the result... - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Tuesday, November 18, 2008 12:00 PM Subject: Re: [mapguide-users] Displaying points of given GPS coordinates If you wish to display points on a map from a database, it is easier to just create an ODBC data source, set up column mappings for x/y, and then use that as base for the layer. As for creating dynamic stuff, take a look at the "Generic Tasks" example: https://mapguide.osgeo.org/livegallery.html http://data.mapguide.com/mapguide/gt/index.php It shows how to create an SDF datasource and the FeatureSource and LayerDefinition, and how to attach it to the map. You can use that knowledge to produce custom temporary lines. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: I created the WEB-INF/lib directory on the App-specific directory, then I copied the json.jar file to the MyApp/WEB-INF/lib directory. Now it works without compiling errors :-) Regarding samples about dynamic creation of points of interest, are you talking about the viewersample (ajaxviewersample.jsp) ? Is it good for displaying points on the map with given GPS coordinates? I need also to trace routes lines which connect a sequence of GPS positions. Is it possible? Cheers Carmelo - Original Message - From: "Mauricio Villablanca" <[EMAIL PROTECTED]> To: Sent: Saturday, November 15, 2008 8:20 AM Subject: Re: [mapguide-users] Displaying points of given GPS coordinates Look at the samples. One of them shows how to dynamically create points of interests. Carmelo Saffioti wrote: Hi everybody, I successfully imported into MapGuide my planimetry exported as SHP and as SDF. I need to display on the map some GPS points which have a lat/lon coordinate. The map coordinate system is LL84 (WGS84), therefore the coordinate system should be the same for these GPS points and for the map. How can I do to display points with given coordinates on the map? Is there any example or tutorial or other? Thank you in advance Cheers Carmelo ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- View this message in context: http://www.nabble.com/Displaying-points-of-given-GPS-coordinates-tp20479019p20513108.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Creating Streets and info
Hi everybody, Seeing the MapGuide viewer example I saw that when the mouse cursor is over a street it displays a message with informations about the street. I'd like to make something similar. I need to create streets and infos too. How can I do? I hope you can help me starting Cheers Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Displaying points of given GPS coordinates
I created the WEB-INF/lib directory on the App-specific directory, then I copied the json.jar file to the MyApp/WEB-INF/lib directory. Now it works without compiling errors :-) Regarding samples about dynamic creation of points of interest, are you talking about the viewersample (ajaxviewersample.jsp) ? Is it good for displaying points on the map with given GPS coordinates? I need also to trace routes lines which connect a sequence of GPS positions. Is it possible? Cheers Carmelo - Original Message - From: "Mauricio Villablanca" <[EMAIL PROTECTED]> To: Sent: Saturday, November 15, 2008 8:20 AM Subject: Re: [mapguide-users] Displaying points of given GPS coordinates > > Look at the samples. One of them shows how to dynamically create points of > interests. > > > > Carmelo Saffioti wrote: > > > > Hi everybody, > > I successfully imported into MapGuide my planimetry exported as SHP and as > > SDF. I need to display on the map some GPS points which have a lat/lon > > coordinate. The map coordinate system is LL84 (WGS84), therefore the > > coordinate system should be the same for these GPS points and for the map. > > How can I do to display points with given coordinates on the map? Is there > > any example or tutorial or other? > > > > > > Thank you in advance > > Cheers > > Carmelo > > ___ > > mapguide-users mailing list > > mapguide-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > > > > -- > View this message in context: http://www.nabble.com/Displaying-points-of-given-GPS-coordinates-tp20479019p20513108.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Displaying points of given GPS coordinates
Are you talking about the javaviewersample ? I tried using the "Query" Tasks item on the right side popup. Is it possible to use it for dynamically display points og given GPS coordinates? I get this compiler error when I try to use the Query Task item: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 50 in the jsp file: /javaviewersample/query/classes/query.jsp JSONArray cannot be resolved to a type 47: 48: public String getNumOp() 49: { 50: JSONArray jsonArray = new JSONArray(); 51: for(int i=0;i<6;i++) 52: { 53: jsonArray.put(numOperators[i]); Even if I followed the instructions on how setting up it, I get that error. It seems that the json.jar is not found... isn't it? But I followeed this instruction: Copy json.jar from C:\Program Files\Autodesk\MapGuideEnterprise\WebServerExtensions\www\javaviewersample to C:\Program Files\Autodesk\MapGuideEnterprise\WebServerExtensions\www\WEB-INF\lib Please help me Cheers Carmelo - Original Message - From: "Mauricio Villablanca" <[EMAIL PROTECTED]> To: Sent: Saturday, November 15, 2008 8:20 AM Subject: Re: [mapguide-users] Displaying points of given GPS coordinates > > Look at the samples. One of them shows how to dynamically create points of > interests. > > > > Carmelo Saffioti wrote: > > > > Hi everybody, > > I successfully imported into MapGuide my planimetry exported as SHP and as > > SDF. I need to display on the map some GPS points which have a lat/lon > > coordinate. The map coordinate system is LL84 (WGS84), therefore the > > coordinate system should be the same for these GPS points and for the map. > > How can I do to display points with given coordinates on the map? Is there > > any example or tutorial or other? > > > > > > Thank you in advance > > Cheers > > Carmelo > > ___ > > mapguide-users mailing list > > mapguide-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > > > > -- > View this message in context: http://www.nabble.com/Displaying-points-of-given-GPS-coordinates-tp20479019p20513108.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > > ___ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Compiliing error in ajaxviewersample.jsp example
Hi everybody, I'm trying the ajaxviewersample.jsp example and I get this error when I click on the Query task: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 50 in the jsp file: /javaviewersample/query/classes/query.jsp JSONArray cannot be resolved to a type 47: 48: public String getNumOp() 49: { 50: JSONArray jsonArray = new JSONArray(); 51: for(int i=0;i<6;i++) 52: { 53: jsonArray.put(numOperators[i]); How come? How can I do to fix it? I hope it's possible to use it, because I'd like to learn about MapGuide API's from this example... Hoping in your help Cheers Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Displaying points of given GPS coordinates
Hi everybody, I successfully imported into MapGuide my planimetry exported as SHP and as SDF. I need to display on the map some GPS points which have a lat/lon coordinate. The map coordinate system is LL84 (WGS84), therefore the coordinate system should be the same for these GPS points and for the map. How can I do to display points with given coordinates on the map? Is there any example or tutorial or other? Thank you in advance Cheers Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Importing map on MapGuide
Yes, it seems a coordinate system problem. In fact, if on the source DWG file I set the LL84 coordinate system, the map is displayed. The purpose of this work is to trace: 1) the current vehicle position with a point on the map 2) for a specified vehicle and time, trace the route followed by the vehicle For this purpose, what's in your opinion the best way for storing the map and vehicles position? Now I'm storing the map on a SDF (or SHP) file, and vehicles GPS positions into a MySql db. Please help me to get started Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Wednesday, November 12, 2008 10:36 AM Subject: Re: [mapguide-users] Importing map on MapGuide If you have GPS data, your points are most likely degrees, which means you should choose something like a WGS84 or Lat/Lon coordinate system. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: < You need to open your data in another program, and verify that the extents are correct. What program could I use? < If your layer has "minscale = 0" and "maxscale = 100", you can't see it in the map even if it is initially marked as visible. Minumum=infinite, Maximum=infinite If I change to Minimum=1 Maximum=100 the Layer preview is blank If I change to Minimum=1 Maximum=1 the Layer preview is blank If I change to Minimum=1 Maximum=10 the Layer preview is ok, it displays my map, but the Map preview is still blank < In the question "Is the layer visible in the map", I meant: Is the "layer is visibile" checked? It was checked, but unchecking it the Map was still blank < Could you check the server log for any errors: C:\Program Files\MapGuideOpenSource2.0\Server\Logs\error.log There are only errors in the past, not at present time < Could you try to assign a projection on the map? If you have no idea what the projection is, try "XY-M". I tried. Assigning "Arbitrary X-Y Coordinates (Meter) (XY-M)" the Map is displayed. So, is it a Coordinate system problem? I need to work with GPS coordinates, because I need to trace vehicles movements... how can I do? - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Wednesday, November 12, 2008 9:45 AM Subject: Re: [mapguide-users] Importing map on MapGuide OK, since your data shows, your layer and featuresource are likely correct. The "Set view to current layers extent" does not work for all data: http://trac.osgeo.org/mapguide/ticket/609 You need to open your data in another program, and verify that the extents are correct. If your layer has "minscale = 0" and "maxscale = 100", you can't see it in the map even if it is initially marked as visible. Could you check the server log for any errors: C:\Program Files\MapGuideOpenSource2.0\Server\Logs\error.log Could you try to assign a projection on the map? If you have no idea what the projection is, try "XY-M". In the question "Is the layer visible in the map", I meant: Is the "layer is visibile" checked? Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: < What happens if you preview the FeatureSource ? The Layer preview shows me my map successfully < On the map you must enter the extent of the data, is the entered data correct? I don't know. To set it up I clicked on button "Set view to current layers extent". How can I do? < Is the layer visible at the current scale? How can I know that? The Layer previews, as I said, shows me my map successfully < Is the layer visible in the map? The Map preview shows me a blank map. On the left I have got a panel named Layers on which I can see the name of my layer, with a checkbox near it. - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Tuesday, November 11, 2008 12:24 PM Subject: Re: [mapguide-users] Importing map on MapGuide Yes, that sounds correct. What happens if you preview the FeatureSource ? On the map you must enter the extent of the data, is the entered data correct? Is the layer visible at the current scale? Is the layer visible in the map? Does the server log reveal any information? Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Some people told me to use the SDF format... I tried, using MapGuide Maestro, to import the exported SDF file. The connection test gives me: "Provider reported no errors"
Re: [mapguide-users] Importing map on MapGuide
< You need to open your data in another program, and verify that the extents are correct. What program could I use? < If your layer has "minscale = 0" and "maxscale = 100", you can't see it in the map even if it is initially marked as visible. Minumum=infinite, Maximum=infinite If I change to Minimum=1 Maximum=100 the Layer preview is blank If I change to Minimum=1 Maximum=1 the Layer preview is blank If I change to Minimum=1 Maximum=10 the Layer preview is ok, it displays my map, but the Map preview is still blank < In the question "Is the layer visible in the map", I meant: Is the "layer is visibile" checked? It was checked, but unchecking it the Map was still blank < Could you check the server log for any errors: C:\Program Files\MapGuideOpenSource2.0\Server\Logs\error.log There are only errors in the past, not at present time < Could you try to assign a projection on the map? If you have no idea what the projection is, try "XY-M". I tried. Assigning "Arbitrary X-Y Coordinates (Meter) (XY-M)" the Map is displayed. So, is it a Coordinate system problem? I need to work with GPS coordinates, because I need to trace vehicles movements... how can I do? - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Wednesday, November 12, 2008 9:45 AM Subject: Re: [mapguide-users] Importing map on MapGuide OK, since your data shows, your layer and featuresource are likely correct. The "Set view to current layers extent" does not work for all data: http://trac.osgeo.org/mapguide/ticket/609 You need to open your data in another program, and verify that the extents are correct. If your layer has "minscale = 0" and "maxscale = 100", you can't see it in the map even if it is initially marked as visible. Could you check the server log for any errors: C:\Program Files\MapGuideOpenSource2.0\Server\Logs\error.log Could you try to assign a projection on the map? If you have no idea what the projection is, try "XY-M". In the question "Is the layer visible in the map", I meant: Is the "layer is visibile" checked? Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: < What happens if you preview the FeatureSource ? The Layer preview shows me my map successfully < On the map you must enter the extent of the data, is the entered data correct? I don't know. To set it up I clicked on button "Set view to current layers extent". How can I do? < Is the layer visible at the current scale? How can I know that? The Layer previews, as I said, shows me my map successfully < Is the layer visible in the map? The Map preview shows me a blank map. On the left I have got a panel named Layers on which I can see the name of my layer, with a checkbox near it. - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Tuesday, November 11, 2008 12:24 PM Subject: Re: [mapguide-users] Importing map on MapGuide Yes, that sounds correct. What happens if you preview the FeatureSource ? On the map you must enter the extent of the data, is the entered data correct? Is the layer visible at the current scale? Is the layer visible in the map? Does the server log reveal any information? Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Some people told me to use the SDF format... I tried, using MapGuide Maestro, to import the exported SDF file. The connection test gives me: "Provider reported no errors". After that, I used the imported file to create a new Layer. Then, I created a Map, setting up Resource on Layer properties equal to the created layer. Finally, I created a Layout, setting up Map resource equal to the created map. Is it correct? The browser displays a blank map... I hope you can help me Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Tuesday, November 11, 2008 10:25 AM Subject: Re: [mapguide-users] Importing map on MapGuide If you use SHP, it should be straightforward. The Maestro user guide is incomplete, but should get you started: http://trac.osgeo.org/mapguide/wiki/maestro/UserGuide I would recommend installing the Sheboygan sample to see how that works. http://mapguide.osgeo.org/download/releases/2.0.x-samples Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Hi everybody, I've got a DWG planimetry file from which I'd like create a digital map, managed by the MapGuide map s
Re: [mapguide-users] Importing map on MapGuide
< What happens if you preview the FeatureSource ? The Layer preview shows me my map successfully < On the map you must enter the extent of the data, is the entered data correct? I don't know. To set it up I clicked on button "Set view to current layers extent". How can I do? < Is the layer visible at the current scale? How can I know that? The Layer previews, as I said, shows me my map successfully < Is the layer visible in the map? The Map preview shows me a blank map. On the left I have got a panel named Layers on which I can see the name of my layer, with a checkbox near it. - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Tuesday, November 11, 2008 12:24 PM Subject: Re: [mapguide-users] Importing map on MapGuide Yes, that sounds correct. What happens if you preview the FeatureSource ? On the map you must enter the extent of the data, is the entered data correct? Is the layer visible at the current scale? Is the layer visible in the map? Does the server log reveal any information? Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Some people told me to use the SDF format... I tried, using MapGuide Maestro, to import the exported SDF file. The connection test gives me: "Provider reported no errors". After that, I used the imported file to create a new Layer. Then, I created a Map, setting up Resource on Layer properties equal to the created layer. Finally, I created a Layout, setting up Map resource equal to the created map. Is it correct? The browser displays a blank map... I hope you can help me Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Tuesday, November 11, 2008 10:25 AM Subject: Re: [mapguide-users] Importing map on MapGuide If you use SHP, it should be straightforward. The Maestro user guide is incomplete, but should get you started: http://trac.osgeo.org/mapguide/wiki/maestro/UserGuide I would recommend installing the Sheboygan sample to see how that works. http://mapguide.osgeo.org/download/releases/2.0.x-samples Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Hi everybody, I've got a DWG planimetry file from which I'd like create a digital map, managed by the MapGuide map server. I've converted the DWG file into different formats (dwf, dxf, sdf, shp), for importing it in the simplier way. How can I do to import and display it on MapGuide? Which steps should I follow? I tried with MapGuide Maestro, but the application I created seems to do not work properly, because the browser stays on loading... I hope you can help me Cheers Carmelo ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Importing map on MapGuide
Some people told me to use the SDF format... I tried, using MapGuide Maestro, to import the exported SDF file. The connection test gives me: "Provider reported no errors". After that, I used the imported file to create a new Layer. Then, I created a Map, setting up Resource on Layer properties equal to the created layer. Finally, I created a Layout, setting up Map resource equal to the created map. Is it correct? The browser displays a blank map... I hope you can help me Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Tuesday, November 11, 2008 10:25 AM Subject: Re: [mapguide-users] Importing map on MapGuide If you use SHP, it should be straightforward. The Maestro user guide is incomplete, but should get you started: http://trac.osgeo.org/mapguide/wiki/maestro/UserGuide I would recommend installing the Sheboygan sample to see how that works. http://mapguide.osgeo.org/download/releases/2.0.x-samples Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Hi everybody, I've got a DWG planimetry file from which I'd like create a digital map, managed by the MapGuide map server. I've converted the DWG file into different formats (dwf, dxf, sdf, shp), for importing it in the simplier way. How can I do to import and display it on MapGuide? Which steps should I follow? I tried with MapGuide Maestro, but the application I created seems to do not work properly, because the browser stays on loading... I hope you can help me Cheers Carmelo ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Importing map on MapGuide
Hi everybody, I've got a DWG planimetry file from which I'd like create a digital map, managed by the MapGuide map server. I've converted the DWG file into different formats (dwf, dxf, sdf, shp), for importing it in the simplier way. How can I do to import and display it on MapGuide? Which steps should I follow? I tried with MapGuide Maestro, but the application I created seems to do not work properly, because the browser stays on loading... I hope you can help me Cheers Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Tracking vehicles, Displaying positions
I don't have Autocad Map, but I'm planning to get the trial version to do this job faster... For exporting shape files do I need Autocad Map? Do MapGuide import shape files? Some people told me that it can import DXF files... - Original Message - From: Berdel, Brian To: MapGuide Users Mail List Sent: Friday, November 07, 2008 3:20 PM Subject: RE: [mapguide-users] Tracking vehicles, Displaying positions Do you have Autocad map or land desktop? If so you can export to shape files. Brian From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carmelo Saffioti Sent: Friday, November 07, 2008 4:22 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Tracking vehicles, Displaying positions Hi Kenneth, thank you for your suggestion. I stored NMEA data with separate columns for lat/lon... Regarding DWG import, I'd like open source solutions, do you know anything about? DWG is proprietary, but if I export to DXF is there any open source solution to import it into MapGuide? Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Thursday, November 06, 2008 9:17 AM Subject: Re: [mapguide-users] Tracking vehicles, Displaying positions Hi Carmelo. If you pre-process your NMEA data and extract lat/lon values into columns, you can use the ODBC provider and make points of the columns. I would suggest some kind of service that regularly does this on the MySql server. Since DWG is a proprietary format, you can't do it with open source tools. Autodesk MapGuide Studio can import a DWG for you, and it is fairly inexpensive. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Hi everybody, I need to develop a system for tracking and displaying vehicles positions. I'm storing NMEA gps sentences into a MySql DB. Now I'd like to display these positions on a map. How can I do? I'm new to this, can you give me any suggestion? I have to create the map too, because this zone is not mapped. Is it possible to create a map from a DWG cad file? I hope you can help me Cheers Carmelo ___mapguide-users mailing [EMAIL PROTECTED]://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Tracking vehicles, Displaying positions
Hi Kenneth, thank you for your suggestion. I stored NMEA data with separate columns for lat/lon... Regarding DWG import, I'd like open source solutions, do you know anything about? DWG is proprietary, but if I export to DXF is there any open source solution to import it into MapGuide? Cheers Carmelo - Original Message - From: Kenneth Skovhede, GEOGRAF A/S To: MapGuide Users Mail List Sent: Thursday, November 06, 2008 9:17 AM Subject: Re: [mapguide-users] Tracking vehicles, Displaying positions Hi Carmelo. If you pre-process your NMEA data and extract lat/lon values into columns, you can use the ODBC provider and make points of the columns. I would suggest some kind of service that regularly does this on the MySql server. Since DWG is a proprietary format, you can't do it with open source tools. Autodesk MapGuide Studio can import a DWG for you, and it is fairly inexpensive. Regards, Kenneth Skovhede, GEOGRAF A/S Carmelo Saffioti skrev: Hi everybody, I need to develop a system for tracking and displaying vehicles positions. I'm storing NMEA gps sentences into a MySql DB. Now I'd like to display these positions on a map. How can I do? I'm new to this, can you give me any suggestion? I have to create the map too, because this zone is not mapped. Is it possible to create a map from a DWG cad file? I hope you can help me Cheers Carmelo ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users -- ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Importing DWG
H everybody, I have a planimetry DWG cad file of an unmapped zone. Is there any way to import or use it within MapGuide? Thank you Carmelo___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Tracking vehicles, Displaying positions
Hi everybody, I need to develop a system for tracking and displaying vehicles positions. I'm storing NMEA gps sentences into a MySql DB. Now I'd like to display these positions on a map. How can I do? I'm new to this, can you give me any suggestion? I have to create the map too, because this zone is not mapped. Is it possible to create a map from a DWG cad file? I hope you can help me Cheers Carmelo ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users