Re: [mapguide-users] Mapguide and Maestro
See responses inline. Regards. Kenneth Skovhede, GEOGRAF A/S Paulo Veríssimo skrev: Hi Here is my short experience with Mapguide Open Souce and Maestro. I found some problems and some solutions. Perhaps you found the same problems and perhaps some of my solutions may be helpful to you and I hope some of your's may help me. I think Its all about coordinate systems. Software versions: Autodesk Map 3D 2006 Oracle 11g Mapguide Open Source 2.0.2 Maestro 1.0.9.23854 SL-King FDO Oracle Provider 0.8.7 Problem 1: When creating a layer in Maestro pointing to Oracle I can preview the geometry but when I insert that layer in a map, I can't see anything. I already tried several coodinate systems but no one works. The Oracle SRID is 82176. Adding layers from sdf files with coordinate system XY, thay work just fine CoordinateSystemLOCAL_CS[Non-Earth (Meter),LOCAL_DATUM[Local Datum,0],UNIT[Meter, 1],AXIS[X,EAST],AXIS[Y,NORTH]]/CoordinateSystem. Solution 1: In Maestro I edited the map xml and deleted the coordinate system, leaving only the xml tags like this: CoordinateSystem/CoordinateSystem I have no idea why this happens. Please note that MGOS and Map3D uses different coordinate system libraries. This will change for MGOS 2.1. Otherwise, try starting a new thread with SL-King Oracle CoordinateSystem in the title to get the attention of the right people. Problem 2: Can't select any feature from Oracle connections on the map. I can only select features from sdf files. May be it has something to do with previous problem. Solution 2: not found yet. Make sure that the data tables in Oracle have unique primary keys assigned. When previewing, there should be a little star next to the primary key column name. You can only select features that are marked as selectable in the map, and have a primary key assigned. Problem 3: Creating a raster layer in Maestro, it doen't recognize the boundaries of the files. I tried tiff/tfw, jpg/jgw, and ecw/tab files but always got the extents -1000,1000. Solution 3: With gdalinfo I produced a list of the correct coordinates and then I created a config file and uploaded it in Maestro. This works very well but I got problem 4 The Gdal provider does not always tell you there was an error, but return those extents instead. There may be files missing, or an access problem to the folder. Also, if the folder contains non-raster files, this might happen. Problem 4: Can't apply solution 3 for a second layer because I get a error message from Maestro saying that the resource config already exists in the server. Solution 4: not found yet. Yes, you need to delete the previous file before uploading. That is a bug in Maestro, feel free to report it: http://trac.osgeo.org/mapguide/wiki/maestro An alternative is to upload the file with a different name, and change the ConfigurationDocument / tag in the FeatureSource Xml to use the new file. /K ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] Unable to select polygon?!?
Hello, I have strange problem :) -2 polygon features in SDF file (left and right) -I can not select left feature -I can select right feature In Map 3D 2010 everything looks ok. In FDO Tools, SDF looks just fine. The difference between those features is that left one is created from web code and right one is created from Map 3D. Any idea? The link below is link to sdf file: http://www.supranet.hr/downloads/sdf.zip and down there is code that I used to create polygon: ...main function.. { //adding coord to MgCoordinateCollection coords.Add(geometryFactory.CreateCoordinateXY(x - 50, y + 50)); coords.Add(geometryFactory.CreateCoordinateXY(x + 50, y + 50)); coords.Add(geometryFactory.CreateCoordinateXY(x + 50, y - 50)); coords.Add(geometryFactory.CreateCoordinateXY(x - 50, y - 50)); //creating polygon MgPolygon polyObjekt = createPolygon(); byteReader = agfReaderWriter.Write(polyObjekt); //defining properties in MgPropertyCollection fillProperties(id, napomena, naziv, oznaka, 1, byteReader); //inserting in SDF insertOnMap(); } public MgPolygon createPolygon() { MgLinearRing mgRing = geometryFactory.CreateLinearRing(coords); MgLinearRingCollection mgRingCollection = new MgLinearRingCollection(); mgRingCollection.Add(mgRing); MgPolygon mgPoly = geometryFactory.CreatePolygon(mgRing, null); return mgPoly; } public void fillProperties(Int32 ID, string napomena, string naziv, string oznaka, Int32 vrstaObjekta, MgByteReader bReader) { properties.Clear(); properties.Add(new MgInt32Property(ID, ID)); properties.Add(new MgStringProperty(NAPOMENA, napomena)); properties.Add(new MgStringProperty(NAZIV, naziv)); properties.Add(new MgStringProperty(OZNAKA, oznaka)); properties.Add(new MgInt32Property(VRSTAOBJEKTA, vrstaObjekta)); properties.Add(new MgGeometryProperty(Geom, bReader)); } public void insertOnMap() { MgSiteConnection siteConnection = null; MgUserInformation userInfo = new MgUserInformation(mgSessionId); siteConnection = new MgSiteConnection(); siteConnection.Open(userInfo); MgResourceService resourceService = siteConnection.CreateService(MgServiceType.ResourceService) as MgResourceService; MgFeatureService featureService = siteConnection.CreateService(MgServiceType.FeatureService) as MgFeatureService; MgResourceIdentifier resId = new MgResourceIdentifier(Library://PROJEKTI/ZLZ/PODACI/OBJEKTI.FeatureSource); MgFeatureCommandCollection commands = new MgFeatureCommandCollection(); string layerClassName = OBJEKTI; MgInsertFeatures mgInsert = new MgInsertFeatures(layerClassName, properties); commands.Add(mgInsert); featureService.UpdateFeatures(resId, commands, false); } Ivan Miličević voditelj odjela razvoja SUPRA NET d.o.o. Majstorska 5, 1 Zagreb CROATIA Mobile: +385 (0)91 434-3940 Office: +385 (0)1 434-3940 Fax: +385 (0)1 434-3999 Email: ivan.milice...@supranet.hr mailto:ivan.milice...@supranet.hr URL: www.supranet.hr http://www.supranet.hr/ ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] Unable to select polygon?!?
Ivan, When I view the Polygons in Autocad Map - there is a an issue with the left polygon: It is not 'closed' properly. When you select the right polygon it is entirely highlighted. When you select the left polygon, the left boundary segement does not highlight (since it is not there). You may have to add the starting coordinate to close it: coords.Add(geometryFactory.CreateCoordinateXY(x - 50, y + 50)); coords.Add(geometryFactory.CreateCoordinateXY(x + 50, y + 50)); coords.Add(geometryFactory.CreateCoordinateXY(x + 50, y - 50)); coords.Add(geometryFactory.CreateCoordinateXY(x - 50, y - 50)); coords.Add(geometryFactory.CreateCoordinateXY(x - 50, y + 50)); Cheers, 2009/3/31 Ivan Milicevic ivan.milice...@supranet.hr Hello, I have strange problem :) -2 polygon features in SDF file (left and right) -I can not select left feature -I can select right feature In Map 3D 2010 everything looks ok. In FDO Tools, SDF looks just fine. The difference between those features is that left one is created from web code and right one is created from Map 3D. Any idea? The link below is link to sdf file: http://www.supranet.hr/downloads/sdf.zip and down there is code that I used to create polygon: ...main function.. { //adding coord to MgCoordinateCollection coords.Add(geometryFactory.CreateCoordinateXY(x - 50, y + 50)); coords.Add(geometryFactory.CreateCoordinateXY(x + 50, y + 50)); coords.Add(geometryFactory.CreateCoordinateXY(x + 50, y - 50)); coords.Add(geometryFactory.CreateCoordinateXY(x - 50, y - 50)); //creating polygon MgPolygon polyObjekt = createPolygon(); byteReader = agfReaderWriter.Write(polyObjekt); //defining properties in MgPropertyCollection fillProperties(id, napomena, naziv, oznaka, 1, byteReader); //inserting in SDF insertOnMap(); } public MgPolygon createPolygon() { MgLinearRing mgRing = geometryFactory.CreateLinearRing(coords); MgLinearRingCollection mgRingCollection = new MgLinearRingCollection(); mgRingCollection.Add(mgRing); MgPolygon mgPoly = geometryFactory.CreatePolygon(mgRing, null); return mgPoly; } public void fillProperties(Int32 ID, string napomena, string naziv, string oznaka, Int32 vrstaObjekta, MgByteReader bReader) { properties.Clear(); properties.Add(new MgInt32Property(ID, ID)); properties.Add(new MgStringProperty(NAPOMENA, napomena)); properties.Add(new MgStringProperty(NAZIV, naziv)); properties.Add(new MgStringProperty(OZNAKA, oznaka)); properties.Add(new MgInt32Property(VRSTAOBJEKTA, vrstaObjekta)); properties.Add(new MgGeometryProperty(Geom, bReader)); } public void insertOnMap() { MgSiteConnection siteConnection = null; MgUserInformation userInfo = new MgUserInformation(mgSessionId); siteConnection = new MgSiteConnection(); siteConnection.Open(userInfo); MgResourceService resourceService = siteConnection.CreateService(MgServiceType.ResourceService) as MgResourceService; MgFeatureService featureService = siteConnection.CreateService(MgServiceType.FeatureService) as MgFeatureService; MgResourceIdentifier resId = new MgResourceIdentifier(Library://PROJEKTI/ZLZ/PODACI/OBJEKTI.FeatureSource); MgFeatureCommandCollection commands = new MgFeatureCommandCollection(); string layerClassName = OBJEKTI; MgInsertFeatures mgInsert = new MgInsertFeatures(layerClassName, properties); commands.Add(mgInsert); featureService.UpdateFeatures(resId, commands, false); } *Ivan Miličević* *voditelj odjela razvoja* *SUPRA NET d.o.o. **Majstorska 5, 1 Zagreb CROATIA Mobile: +385 (0)91 434-3940 Office: +385 (0)1 434-3940 Fax: +385 (0)1 434-3999 Email: ivan.milice...@supranet.hr* *URL: www.supranet.hr* ___ 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] FDO Gdal raster problem
I just wanted to follow-up on this. Since implementing this patch last Thursday, my public MapGuide service has been running without any lockups. Previously, I would have to automatically restart the service every couple of hours. So, it appears that stability with rasters have been greatly improved. I have also been following the pertinent thread on the internals list and just want to say that the improved performance and stability far outweighs the potential negative aspects of the brute-force approach in the underlying code. I agree that the code should be as dialed-in as possible, but for now, this patch has been a fantastic improvement. Andy -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jason Birch Sent: Thursday, March 26, 2009 11:38 PM To: MapGuide Users Mail List Subject: RE: [mapguide-users] FDO Gdal raster problem I'm afraid that this isn't fixed in 2.1 yet either. Haris is working on trying to figure this stuff out for one of his customers, and I'm working closely with him, as I'm seeing the problem too. Between this and the problem of TCP connections becoming exhausted, I'm a bit stuck. If anyone is interested in trying out some .dlls that improve the stability of rasters in 2.0.2 considerably, download the following, make backups of the versions in Server/bin, and then copy them in place (after stopping the server). http://www.jasonbirch.com/temp/mapguide_raster_patch_2.0.2.7z I'll be adding notes on the defects fixed or worked around in these files in the ticket below once Trac starts behaving. http://trac.osgeo.org/mapguide/ticket/462 Jason___ 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] Help with joining tables please
I finally got the Views of SQL to work with MapGuide. Autodesk MapGuide Studio 2009 did NOT work. It would not allow me to choose the geometry fields (GPS lat/lon). MapGuide Maestro DOES ALLOW me to choose the correct field. Using Maestro, I was able to correctly set up my view and see my data. It seems that using Fonts as Point Symbols is not yet supported, so either designing in MapGuide Studio or directly in XML is my solution. My problem has been solved! Thanks! Darren ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
RE: [mapguide-users] FDO Gdal raster problem
I would like to give some KUDOS to Jason, Haris et.al. for their work on this. I have been throwing my 55MB MrSid rasters and my 175K+ sdo_geometries layers at this guy and it has yet had not one hiccup.(save one(1) 114MB MrSid that totally trashs my IIS application pool for some reason?) This appears to be good stuff ... I read some of the discussion concerning the underlying code and IMHO: 1) Make it work 2) Make it generic 3) Make it fast ... in that order. Excellent work ... MGOS appears to be on a positive path once again. r, dennis -- View this message in context: http://n2.nabble.com/FDO-Gdal-raster-problem-tp2538452p2564226.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] png8 and mapguide 1.2
Can I configure the viewer to render the image map in png8 with mgos 1.2? Thanks. -- View this message in context: http://n2.nabble.com/png8-and-mapguide-1.2-tp2564493p2564493.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
RE: [mapguide-users] Unable to select polygon?!?
Kori, you're the man! That's it! From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Kori Maleski Sent: Tuesday, March 31, 2009 6:18 PM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Unable to select polygon?!? Ivan, When I view the Polygons in Autocad Map - there is a an issue with the left polygon: It is not 'closed' properly. When you select the right polygon it is entirely highlighted. When you select the left polygon, the left boundary segement does not highlight (since it is not there). You may have to add the starting coordinate to close it: coords.Add(geometryFactory.CreateCoordinateXY(x - 50, y + 50)); coords.Add(geometryFactory.CreateCoordinateXY(x + 50, y + 50)); coords.Add(geometryFactory.CreateCoordinateXY(x + 50, y - 50)); coords.Add(geometryFactory.CreateCoordinateXY(x - 50, y - 50)); coords.Add(geometryFactory.CreateCoordinateXY(x - 50, y + 50)); Cheers, 2009/3/31 Ivan Milicevic ivan.milice...@supranet.hr Hello, I have strange problem :) -2 polygon features in SDF file (left and right) -I can not select left feature -I can select right feature In Map 3D 2010 everything looks ok. In FDO Tools, SDF looks just fine. The difference between those features is that left one is created from web code and right one is created from Map 3D. Any idea? The link below is link to sdf file: http://www.supranet.hr/downloads/sdf.zip and down there is code that I used to create polygon: ...main function.. { //adding coord to MgCoordinateCollection coords.Add(geometryFactory.CreateCoordinateXY(x - 50, y + 50)); coords.Add(geometryFactory.CreateCoordinateXY(x + 50, y + 50)); coords.Add(geometryFactory.CreateCoordinateXY(x + 50, y - 50)); coords.Add(geometryFactory.CreateCoordinateXY(x - 50, y - 50)); //creating polygon MgPolygon polyObjekt = createPolygon(); byteReader = agfReaderWriter.Write(polyObjekt); //defining properties in MgPropertyCollection fillProperties(id, napomena, naziv, oznaka, 1, byteReader); //inserting in SDF insertOnMap(); } public MgPolygon createPolygon() { MgLinearRing mgRing = geometryFactory.CreateLinearRing(coords); MgLinearRingCollection mgRingCollection = new MgLinearRingCollection(); mgRingCollection.Add(mgRing); MgPolygon mgPoly = geometryFactory.CreatePolygon(mgRing, null); return mgPoly; } public void fillProperties(Int32 ID, string napomena, string naziv, string oznaka, Int32 vrstaObjekta, MgByteReader bReader) { properties.Clear(); properties.Add(new MgInt32Property(ID, ID)); properties.Add(new MgStringProperty(NAPOMENA, napomena)); properties.Add(new MgStringProperty(NAZIV, naziv)); properties.Add(new MgStringProperty(OZNAKA, oznaka)); properties.Add(new MgInt32Property(VRSTAOBJEKTA, vrstaObjekta)); properties.Add(new MgGeometryProperty(Geom, bReader)); } public void insertOnMap() { MgSiteConnection siteConnection = null; MgUserInformation userInfo = new MgUserInformation(mgSessionId); siteConnection = new MgSiteConnection(); siteConnection.Open(userInfo); MgResourceService resourceService = siteConnection.CreateService(MgServiceType.ResourceService) as MgResourceService; MgFeatureService featureService = siteConnection.CreateService(MgServiceType.FeatureService) as MgFeatureService; MgResourceIdentifier resId = new MgResourceIdentifier(Library://PROJEKTI/ZLZ/PODACI/OBJEKTI.FeatureSource); MgFeatureCommandCollection commands = new MgFeatureCommandCollection(); string layerClassName = OBJEKTI; MgInsertFeatures mgInsert = new MgInsertFeatures(layerClassName, properties); commands.Add(mgInsert); featureService.UpdateFeatures(resId, commands, false); } Ivan Miličević voditelj odjela razvoja SUPRA NET d.o.o. Majstorska 5, 1 Zagreb CROATIA Mobile: +385 (0)91 434-3940 Office: +385 (0)1 434-3940 Fax: +385 (0)1 434-3999 Email: ivan.milice...@supranet.hr URL: www.supranet.hr http://www.supranet.hr/ ___ 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] Help with joining tables please
Thanks for the update Darren. I'm going to be looking into this issue once I get some data into my local SQL Server 2008 instance. Fonts as point symbols should work. There are 2 options. 1) Create a Symbol Library and add the fonts to it. 2) From the Point layer reference the font directly. This may have an issue if the font you are trying to use doesn't exist on the server, but it does in Studio. There may also be an issue on Vista as the default font style for the layer may not exist in the Vista font libraries. Dave -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Darren Karasiuk Sent: Tuesday, March 31, 2009 10:52 AM To: 'MapGuide Users Mail List' Subject: RE: [mapguide-users] Help with joining tables please I finally got the Views of SQL to work with MapGuide. Autodesk MapGuide Studio 2009 did NOT work. It would not allow me to choose the geometry fields (GPS lat/lon). MapGuide Maestro DOES ALLOW me to choose the correct field. Using Maestro, I was able to correctly set up my view and see my data. It seems that using Fonts as Point Symbols is not yet supported, so either designing in MapGuide Studio or directly in XML is my solution. My problem has been solved! Thanks! Darren ___ 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] FDO Gdal raster problem
I am also satisfied with results, we have implemented this fixes to our customer site and now raster works. This was very angry customer (which anger made me sit and look into MG raster), who is now pleased :) Haris -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Andy Morsell Sent: Tuesday, March 31, 2009 6:26 PM To: 'MapGuide Users Mail List' Subject: RE: [mapguide-users] FDO Gdal raster problem I just wanted to follow-up on this. Since implementing this patch last Thursday, my public MapGuide service has been running without any lockups. Previously, I would have to automatically restart the service every couple of hours. So, it appears that stability with rasters have been greatly improved. I have also been following the pertinent thread on the internals list and just want to say that the improved performance and stability far outweighs the potential negative aspects of the brute-force approach in the underlying code. I agree that the code should be as dialed-in as possible, but for now, this patch has been a fantastic improvement. Andy -Original Message- From: mapguide-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jason Birch Sent: Thursday, March 26, 2009 11:38 PM To: MapGuide Users Mail List Subject: RE: [mapguide-users] FDO Gdal raster problem I'm afraid that this isn't fixed in 2.1 yet either. Haris is working on trying to figure this stuff out for one of his customers, and I'm working closely with him, as I'm seeing the problem too. Between this and the problem of TCP connections becoming exhausted, I'm a bit stuck. If anyone is interested in trying out some .dlls that improve the stability of rasters in 2.0.2 considerably, download the following, make backups of the versions in Server/bin, and then copy them in place (after stopping the server). http://www.jasonbirch.com/temp/mapguide_raster_patch_2.0.2.7z I'll be adding notes on the defects fixed or worked around in these files in the ticket below once Trac starts behaving. http://trac.osgeo.org/mapguide/ticket/462 Jason___ 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] Multiple selected features code example
I have had a look at the fusion layouts, Some of the dragable divs are somewhat wierd looking (have a gap either side of the overview / don't display) on my work pc however seem to work fine on my personal pc, but I was running low on time and needed a result? I am finding working with the standard layout to be quicker and it helps in getting to know how mapguide functions. the selection tool shown in this post selects on different layers, I think after selection it would be good to give the ability to further filter your results. Just thought I would put it out there see if anyone is able to get it to run on theres and give feedback / chop and change it ? -- View this message in context: http://n2.nabble.com/Multiple-selected-features-code-example-tp2561042p2565515.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