Re: [mapguide-users] RenderMap: MgOutOfMemoryException

2020-08-27 Thread Benoit Begin
I can definitely confirm that rendering large map images via the API is definitely memory intensive on the Mapguide site. Then when you get the image out into .NET, you might even go into deeper problems with the way the Large Object Heap collection works and so on. You can end up with pretty

Re: [mapguide-users] Mapguide 3.1.2 Hangs

2020-03-02 Thread Benoit Begin
Did you update your binaries for Mapguide when deploying against 3.1.2? AIMS 2017's dlls are for Mapguide 3.1.1.4601, which isn't the same version. Sometimes I've seen some issues when using the wrong version of the Mapguide API dlls. So make sure the content of your BIN folder has the dlls from

Re: [mapguide-users] Mapguide 3.1.2 Hangs

2020-02-25 Thread Benoit Begin
Might be worth looking into making sure you actually call Dispose on the MgService you create. Also depending on what else you're doing, I'm guessing you might have some MgByteReader and the likes that might not get closed and disposed. Mapguide also isn't "hung" when the pink map shows up,

Re: [mapguide-users] MapGuide Open Source 4.0 Preview 1 available

2020-02-12 Thread Benoit Begin
I understand Mapguide might be useful for some low-end deployment that still run on 32-bit hardware, but is that common enough to warrant making it a much harder time on the already hard working devs of Mapguide? I wonder the feasability of having a kind of hardware/os survey of folks

Re: [mapguide-users] Memory Leak in Java

2019-12-18 Thread Benoit Begin
Hi, I'm no Java expert, but I feel it could be a similar issue that you may face with .NET and Large Heap Objects. With the size of the byte array you are creating, 1024x1024, you might be overruning the size of the level 1 generation for the Garbage Collector and end up putting your data in a

Re: [mapguide-users] Coordinate transformation from CSRS to LL84

2019-11-24 Thread Benoit Begin
This actually doesn't work properly due to the fact that the source projection requires specific grid shifts for the transformation that aren't provided by the Mentor coordinate system library. There is an example of how to do it inside of Autodesk Civil 3D here:

Re: [mapguide-users] CORS Error with IE (11) and Edge Only

2019-10-23 Thread Benoit Begin
A little bit ago, I remember OpenStreetMap started automatically redirecting from http to https. Like if you navigate to http://b.tile.openstreetmap.org/19/262144/262143.png you will notice you get sent off to https automatically. I know this caused issues with Safari and actually returned "pink

Re: [mapguide-users] Fusion Error - Chrome - Unable to preventDefault inside passive event

2019-05-03 Thread Benoit Begin
This also occurs with OpenLayers v2 out of the box. It's a Chrome specific thing that appears mostly common with mouse-wheel events and it's tied to them improving touch functionalities. There doesn't seem to be a clean way of working around the issue at first glance. It doesn't halt script

[mapguide-users] MapAgent error tracking

2019-04-30 Thread Benoit Begin
Hi, I was wondering if there are any logging tools I might be missing specifically for when the MapAgent (in IIS) starts misbehaving. We call it the dreaded pink map of death. Basically it stops returning images and returns http status of 559 out of the blue. Only a restart of the application

Re: [mapguide-users] Number of Active Sessions

2019-04-17 Thread Benoit Begin
Hi, If you use Maestro, which I am assuming you do, in the Tools menu you have a "Server Status" tool which does show an Active Connections property. The totals are, as you said, since the last server restart. So that can still give you some live information about what is going on. In your

Re: [mapguide-users] Wrong parameter count for mgmap::open()

2019-03-08 Thread Benoit Begin
Hi, The issue is specifically for the new MgMap() line. The constructor for MgMap was changed and the previous one was deprecated. You need to pass the MgSiteConnection object when calling up the new MgMap(). So essentially you need new MgMap($siteConnection); Hope this helps. -- Sent from:

Re: [mapguide-users] MGOS 3.1.1 - SQL Spatial Layers - Cannot select point layers by click on it or see the tooltip

2018-09-19 Thread Benoit Begin
Hi Jose, The one thing I can think of is if the point layer stores data in geography columns versus geometry. That is one of the reason I have had issues with Mapguide on SQL Server. Basically the directionality of the selection matters and it has to be counter-clockwise. When the selection is

Re: [mapguide-users] Incorrect numbers displayed when using Selection Panel mapguide 3.0

2018-05-03 Thread Benoit Begin
Hi Gorgon, I believe FDO in general has some quirks with floating point precision. This might be related to an issue I reported here: https://trac.osgeo.org/fdo/ticket/929 I remember having similar issues back in my C++ days. Going from a floating type to a string type would have quirky decimal

Re: [mapguide-users] MapGuide (actually FDO) 64-bit Linux blockers

2018-02-26 Thread Benoit Begin
While OGR is a neat provider, we did experience certain issues with it that makes me feel that for some data sources it might not be the best solution. We would basically get unreliable results when doing queries against it, which isn't really good when users are trying to run queries on their

Re: [mapguide-users] ECW in MapGuide 3.1

2018-02-26 Thread Benoit Begin
Looks like you got it working better, but I will confirm that we do point to \OSGeo\MapGuide\Server\Fdo\gdalplugins for the GDAL_DRIVER_PATH. I do recall some weirdness happening when the alpha band was used in the past. I'm going from memory, but I could be wrong. An ECW had 4 color bands, so

Re: [mapguide-users] ECW in MapGuide 3.1

2018-02-23 Thread Benoit Begin
I'm kind of concerned about this. Not because it doesn't work in 3.1.0, but because in all of our deployments thus far we have had no issues getting ECW to work on Mapguide 3.1.0. Would this be a Linux only issue or something else? I looked at what we install and it's the content of the

Re: [mapguide-users] Accepting applications to join the MapGuide PSC

2018-01-26 Thread Benoit Begin
Hi Jackie, Thanks for posting that link and giving extra details about what the work would entail. I couldn't find any information about how to go about proposing a candidature for the PSC. It's something that I would be interested in, considering Mapguide has been part of my professional life

Re: [mapguide-users] 30 seconds delay after creating +/-100 CreateRuntimeMap calls

2017-03-01 Thread Benoit Begin
I do believe you are leaking 1 MgByteReader per call. Here is the definition of the function call: public virtual *MgByteReader* CreateRuntimeMap(MgResourceIdentifier mapDefinition, string sessionId, int requestedFeatures, int iconsPerScaleRange); It returns a MgByteReader. I strongly recommend

[mapguide-users] SelectFeatures vs SelectAggregate on SDF FeatureSource

2010-11-01 Thread Benoit Begin
Hi, So I'm not sure if this issue is also present on Mapguide 2.2, as I'm deploying an application using Mapguide 2011 Update 1. Still, I'm stupid amounts of baffled by this issue. Nothing works right using the SDF provider. Any queries without a geometry field made with SelectFeatures will not

Re: [mapguide-users] MapGuide vs Google maps

2009-10-22 Thread Benoit Begin
This is a bit like comparing apples and oranges. The two are very different kind of technologies. Google Maps basically renders maps using pre-generated tiles. It has some good API for overlaying KML data, but that data will be rendered client-side by the user's browser so any excessive amounts

RE: [mapguide-users] 2.1 Beta (Fusion) Problems

2009-06-26 Thread Benoit Begin
The Firefox issue is fairly straightforward to fix, except for my lack of understanding of the actual cause of the issue. In ApplicationDefinition.js, the method getAppDef(xhr) needs to be changed to be like this: getAppDef: function(xhr){ if (xhr typeof(xhr) == object

[mapguide-users] MgSelection::AddFeatures locks FeatureSource

2009-06-22 Thread Benoit Begin
I was not able to extensively test this, but it seems as if when MgSelection::AddFeatures is called, whatever FeatureSource was used for the MgFeatureReader passed to the function will be locked and un-editable from the various APIs, or from the Studio. This occurs using Mapguide 2.1 Beta 1,