[mapguide-users] Moving to MGOS from AIMS

2018-01-10 Thread Bruno Scott
Hi all,
There is another part of AIMS that is going to disappear : The ex-Topobase
features.
Very powerful stuff developed with a strong DotNet API.
The modules developed with this api is available to AutoDesk Map and AIMS.
We are gone to missed that one.
And i don't see any replacement :-(

Bruno




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Support Sqlserver 2016 inPASS mode

2017-09-18 Thread Bruno Scott
Actually it's azure.
Does it matter?

Thanks



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Support Sqlserver 2016 inPASS mode

2017-09-18 Thread Bruno Scott
Hi all,
I'm trying to connect to a Sqlserver 2016 in PASS ( platform as service) and
Mapguide (more likely fdo) as some problem getting access to the master
schema.
As someone already tried this ?
Bruno Scott



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] decimal separator problem

2015-07-29 Thread Bruno Scott
Hi Jacky and Hi Jérôme,
I've seen this, i think...

2 things to try

A)
 try plaing with the regional setting on the server side.

B) add this before your code
  string strCulture = Thread.CurrentThread.CurrentCulture.Name;
  Thread.CurrentThread.CurrentCulture = new CultureInfo(en-US, false); 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/decimal-separator-problem-tp5217353p5217497.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] WMTS service

2014-06-10 Thread Bruno Scott
Hi Jackie
Correct me if i'm wrong, but with what you did with the Mapguide Rest and
XYZ tiling
we should be close to a wmts service ?

Bruno Scott



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/WMTS-service-tp5144113p5144944.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] Consuming MG tiled maps as XYZ tiled maps (for OpenLayers/Leaflet/etc)

2014-05-22 Thread Bruno Scott
Hi Jackie

Great job,
I was fighting with leaflet and mapguide ...
Your approach greatly simplify the work

Bruno Scott



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Consuming-MG-tiled-maps-as-XYZ-tiled-maps-for-OpenLayers-Leaflet-etc-tp5134024p5141889.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] Consuming MG tiled maps as XYZ tiled maps (for OpenLayers/Leaflet/etc)

2014-04-15 Thread Bruno Scott
Hi Jackie

Maybe by reverse engineering what's done with openLayers

  var currentRes = this.map.getResolution();
  var colidx =
Math.floor((bounds.left-this.maxExtent.left)/currentRes);
  colidx = Math.round(colidx/this.tileSize.w);
  var rowidx =
Math.floor((this.maxExtent.top-bounds.top)/currentRes);
  rowidx = Math.round(rowidx/this.tileSize.h);

url = this.getFullRequestString(
   {
   tilecol: colidx,
   tilerow: rowidx,
   scaleindex: this.resolutions.length - this.map.zoom -
1
});



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Consuming-MG-tiled-maps-as-XYZ-tiled-maps-for-OpenLayers-Leaflet-etc-tp5134024p5135065.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] Consuming MG tiled maps as XYZ tiled maps (for OpenLayers/Leaflet/etc)

2014-04-15 Thread Bruno Scott
Hi Jackie
 i got this from openlayers code

var scale = resolution * OpenLayers.INCHES_PER_UNIT[units] *
OpenLayers.DOTS_PER_INCH;

OpenLayers.INCHES_PER_UNIT = { 
'inches': 1.0,
'ft': 12.0,
'mi': 63360.0,
'm': 39.3701,
'km': 39370.1,
'dd': 4374754,
'yd': 36
};

OpenLayers.DOTS_PER_INCH = 72;

or the reverse

resolution = 1 / (normScale * OpenLayers.INCHES_PER_UNIT[units]
* OpenLayers.DOTS_PER_INCH);  



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Consuming-MG-tiled-maps-as-XYZ-tiled-maps-for-OpenLayers-Leaflet-etc-tp5134024p5135071.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] Fwd: [OSGeo-Discuss] Why does OSGeo FDO Provider for SQL Server Spatial try to access the wrong database?

2013-09-26 Thread Bruno Scott
There is some HomeMade builds that you could try out.
There are 3 tickets fixed in these build:  766
http://trac.osgeo.org/fdo/ticket/766  , 876
http://trac.osgeo.org/fdo/ticket/876  , 875
http://trac.osgeo.org/fdo/ticket/875  

You can download here

fdo 3.8 x64
http://www.geomapgis.com/web/geomap-group/fdo/SqlServerSpatial/3.8/x64/SQLServerSpatialProvider.zip
  
fdo 3.8 win32
http://www.geomapgis.com/web/geomap-group/fdo/SqlServerSpatial/3.8/win32/SQLServerSpatialProvider.zip
  
fdo 3.7 x64
http://www.geomapgis.com/web/geomap-group/fdo/SqlServerSpatial/3.7/x64/SQLServerSpatialProvider.zip
  
fdo 3.7 win32
http://www.geomapgis.com/web/geomap-group/fdo/SqlServerSpatial/3.7/win32/SQLServerSpatialProvider.zip
  

Bruno



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Fwd-OSGeo-Discuss-Why-does-OSGeo-FDO-Provider-for-SQL-Server-Spatial-try-to-access-the-wrong-databas-tp5078593p5080148.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] MGOS 2.5 Item xxxxx is already in the named collection.

2013-09-25 Thread Bruno Scott
I think i've seen something like this before.
I was with SQLServer when 2 schema has the same table name.

Bruno



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MGOS-2-5-Item-x-is-already-in-the-named-collection-tp5079775p5079784.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] MGOS 2.5 Item xxxxx is already in the named collection.

2013-09-25 Thread Bruno Scott
There has been a strong refactoring of this provider since MG 2.2
Fdo/Mapguide caches all tables structure into memory.
So the problem may come from any other accessible tables/views

Bruno



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MGOS-2-5-Item-x-is-already-in-the-named-collection-tp5079775p5079790.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] MGOS 2.5 Item xxxxx is already in the named collection.

2013-09-25 Thread Bruno Scott
You need to stop/start mapguide everytime you change something in the schema
structure to force Mapguide to clear its cache



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MGOS-2-5-Item-x-is-already-in-the-named-collection-tp5079775p5079793.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] Fwd: [OSGeo-Discuss] Why does OSGeo FDO Provider for SQL Server Spatial try to access the wrong database?

2013-09-24 Thread Bruno Scott
Hi Gordon,
I've just created a new ticket with patch attached that may fixed that
issue.
The patch is trunk based but can be applied on the 3.7 and 3.8 branche
without any problem.

http://trac.osgeo.org/fdo/ticket/876 http://trac.osgeo.org/fdo/ticket/876  

Bruno



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Fwd-OSGeo-Discuss-Why-does-OSGeo-FDO-Provider-for-SQL-Server-Spatial-try-to-access-the-wrong-databas-tp5078593p5079445.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] Show invisible layers in Legend

2012-10-15 Thread Bruno Scott
Another Ajax Viewer enhancement
*Show invisible layers in Legend* ticket 2146
http://trac.osgeo.org/mapguide/ticket/2146  

Actually the legend show only layers that are visible. 
For some users ( mostly users that have ESRI experience) are confused
because they do not know what layers are available in the maps. 
The idea would be to be able to show all layers in the legend, changing the
font/color of the layers that are not visible at the current scale. 
This would not change the actual legend, Users will have to select the
options in the context menu to activate it.

*Actual Legend*
http://osgeo-org.1560.n6.nabble.com/file/n5008757/Actual_Legend.png 


*Context menu to activate the feature*
http://osgeo-org.1560.n6.nabble.com/file/n5008757/Show_invisible_layers_Menu.png
 


*The new legend with all layers*
http://osgeo-org.1560.n6.nabble.com/file/n5008757/Legend_with_all_layres.png 


*Context menu to return to the standard legend*
http://osgeo-org.1560.n6.nabble.com/file/n5008757/Hide_invisible_layers_menu.png
 

Feedback are wellcome
Bruno Scott
Geomap



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Show-invisible-layers-in-Legend-tp5008757.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] patch for Ticket #743 / png8 transparency

2012-09-24 Thread Bruno Scott
It is possible to add some fixed palette color in this.
But i really would like to see how it reacts on a big tiled map full of
colors.
The mapserver quantization looks pretty good. It is possible that we dont
need it.

Bruno



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/patch-for-Ticket-743-png8-transparency-tp5003596p5003938.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Google Earth past 6.0

2012-09-21 Thread Bruno Scott
What version of Mapguide are you using?

There is a fix in the 2.4 RC1/RC2 that fixes this problem.


Bruno



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Google-Earth-past-6-0-tp5003340p5003438.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] patch for Ticket #743 / png8 transparency

2012-09-21 Thread Bruno Scott

Take a look at this
http://trac.osgeo.org/mapguide/ticket/743#comment:15
http://trac.osgeo.org/mapguide/ticket/743#comment:15  

The patch only affect png8 output. As the actual png8 output has really a
poor quality it's quite safe to apply this patch on the 2.4 branche.

Test image before patch
http://osgeo-org.1560.n6.nabble.com/file/n5003596/trans_mapguide_png8.png 


Test image with patch
http://osgeo-org.1560.n6.nabble.com/file/n5003596/new2_mapguide_png8.png 

It would be great if someone could test this patch with any type of maps

Bruno Scott
Geomap



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/patch-for-Ticket-743-png8-transparency-tp5003596.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] Patch : Ajaxviewer Legend wordwrap

2011-06-01 Thread Bruno Scott
Hi all,
I've just submitted a little patch
http://trac.osgeo.org/mapguide/ticket/1709
http://trac.osgeo.org/mapguide/ticket/1709 

Here's some screen shot

Actual legend
http://osgeo-org.1803224.n2.nabble.com/file/n6425780/legend1.jpg 

Actual legend smaller
http://osgeo-org.1803224.n2.nabble.com/file/n6425780/legend2.jpg 

Same legend with patch
http://osgeo-org.1803224.n2.nabble.com/file/n6425780/Legend3.jpg 

I really think we should include that pach in the next release
What do you think?

Bruno Scott

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Patch-Ajaxviewer-Legend-wordwrap-tp6425780p6425780.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Patch : Ajaxviewer Legend wordwrap

2011-06-01 Thread Bruno Scott
Hi Zac
I've just added the diff version of the patch to the ticket

Bruno

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Patch-Ajaxviewer-Legend-wordwrap-tp6425780p6425907.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] Patch GetBaseGroups with visOnly true return non visible baseGroups

2011-06-01 Thread Bruno Scott
GetBaseGroups? returns all visible baseGroups even if they are not visible at
a specific scale.
This ends up with extra query that slow down display

To fix it we need to pass the scale to this function

You can find ticket and patch here
http://trac.osgeo.org/mapguide/ticket/1710
http://trac.osgeo.org/mapguide/ticket/1710 

Bruno Scott

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Patch-GetBaseGroups-with-visOnly-true-return-non-visible-baseGroups-tp6426967p6426967.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Mapguide OpenSource 2.2 backward compatibility problem

2010-06-04 Thread Bruno Scott

Hi All
We have a quite big MGOS application deployed on hundreds of different
clients
Most of them use MGOS 2.1 or MGE 2010 SP1
Some of them still use MGOS 2.0/1.2 or MGE 2010 / 2009
They will migrate to MGOS 2.2 or MGE 2011 but this process takes time so our
application
have to live in a multi version MGOS/MGE.

Now comes the problem with MGOS 2.2/MGE 2011
We use extensively the MgException::GetMessage() fonction
this function does not exist anymore because it is replaced by
GetExceptionMessage.
If we would only support MGOS 2.2/MGE 2011 it would be an easy fix.
Search and replace... (260 occurances in 79 files)
But our code would not work in older MG anymore
the error comes at compile time, so pretty hard to catch
We are thinking of centralizing this call in a new internal function
  string MgGetExceptionMessage(MgException mgEx,string locale)
  {
//if MGOS 2.2 or MGE 2011
return mgEx.GetExceptionMessage(locale);
//else
//return mgEx.GetMessage();  
}
so this would simplify the code switching from 2.2/2011 to 2.1/2010
We would need to detect the MG version in our application setup
then switch this call from GetMessage to GetExceptionMessage

What would be the safest way (for an setup program) to detect the MG
version?
Thanks for your answer.
Bruno


by the way, it would have been a lot easier for us if would have kept the
GetMessage function
for backward compatibility





-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Mapguide-OpenSource-2-2-backward-compatibility-problem-tp5138292p5138292.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] MGOS 1.2.0 Filter On Joined Field

2009-11-23 Thread Bruno Scott

I've just tried a filter on 2 joined tables
  primary SDF Secondary Oracle
  primary SDF Secondary Access
Both failed, does not show any record as soon as a set a filter on a
secondary table field.
I've tested against mapguide 2.1 Beta and Mapguide Enterprise 2010

Maybe we should reopen ticket 292
http://trac.osgeo.org/mapguide/ticket/292


Bruno
-- 
View this message in context: 
http://n2.nabble.com/MGOS-1-2-0-Filter-On-Joined-Field-tp1812320p4051510.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] Strange behavior with Load Balancing

2009-07-21 Thread Bruno Scott

I have setup a 3 server architecture for testing LoadBalancing with Mapguide
Server 1 : IIS + WebServerExtention
Server 2 : Mapguide server a
Server 3 : Mapguide server b

I have 20 concurent users driven by a grinder script that does this series
of instructions over and over
  Load the viewer + wait 2 seconds
  Loop 20 times
Zoom in + wait 2 seconds
Select + wait 2 seconds
Unselect + wait 2 seconds
Pan 3 times + wait 2 seconds
Zoom out + wait 2 seconds
A complete cycle takes about 3 minutes

Here what i got after the first run ( request seems to be evenly balanced )
http://n2.nabble.com/file/n3294688/20users_2MGE_1IIS_stable.jpg 

After the second run ( mg server a gets much more request )
http://n2.nabble.com/file/n3294688/20users_2MGE_1IIS_20_40.jpg 

After the third run  ( mg server a gets almost all request )
http://n2.nabble.com/file/n3294688/20users_2MGE_1IIS_40_60.jpg 

As far as i know the load balancing is suppose to be quite simple :
  Each session is assigned to a server
  And subsequent request using that session is send to that same server
  
  The first Create Session should go to server A
  The second to server B
  The third to server A
  and so on

Do somebody has experienced the load balancing?
Could it be too much sessions created in to short period of time?

Bruno Scott


-- 
View this message in context: 
http://n2.nabble.com/Strange-behavior-with-Load-Balancing-tp3294688p3294688.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] Here's some stress testing on Mapguide

2009-07-09 Thread Bruno Scott

I have good news
After fixing some memomry leaks in the MgWebLayout web api
and after fixing some of the Resource not found exception in my sheboygan
map i got this graphic

http://n2.nabble.com/file/n3231758/Image2.gif 

Far better than my previous one

http://n2.nabble.com/file/n3182666/Image1.gif 

There is still some memory leaks in the mapguide server as well as in the
web API,
they will need to be fixed, but we have a much more stable mapguide server.

The bad news is that sheboygan is no more the proper test platform to use to
stress Mapguide so it will be much more complicated for other to reproduce.

Bruno


-- 
View this message in context: 
http://n2.nabble.com/Here%27s-some-stress-testing-on-Mapguide-tp3182666p3231758.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] Here's some stress testing on Mapguide

2009-07-03 Thread Bruno Scott

I have found one memory leaks, but it was my fault
in MapFrame.aspx i was testing if the session://.../sheboygan.Mapdefinition
was existing
try
{
  MgByteReader tmpReader =
resourceSrvc.GetResourceContent(mapStateId);
}
catch(MgException mge)
{
  mapStateIdExist = false;
}
In my test case the session map resource was never created before so it went
to the catch wihtout disposing anything, this was causing a memory leaks on
the w3w service. I was using this because the MgMap.Exist function was not
working in release 2.02. Maybe it is working now, i will check later.
So wihout this little line of code we got these results with 20 concurent
users looping on these 3 test
   http://.../mapagent/mapagent.fcgi?OPERATION=CREATESESSION...
   http://.../mapviewernet/mapframe.aspx?MAPDEFINITION=Library://...
   http://.../mapagent/mapagent.fcgi?OPERATION=GETDYNAMICMAPOVERLAYIMAGE;...

http://n2.nabble.com/file/n3200253/Image1.gif 

we see that Mapguide memory is stable after 5 minutes and the w3w service is
quite stable.
With this test we can't conclude on any memory leaks

Now back to the the full test, with loading ajax viewer,select, zoom, pan
Same server, same sheboygan map and still 20 users

http://n2.nabble.com/file/n3200253/Image2.gif 

Here it is quite clear that we still have a pretty big memory leaks on both
Mapguide and IIS
My own dotnet error on the mapframe.aspx gives me a place to look for.
I don't see lots of Dispose in the aspx ajaxviewer pages.
I know that DotNet have a garbage collector that suppose to get ride of
these memory problems
It does seems to work fine ( to be polite... )

Still investigating
Bruno
-- 
View this message in context: 
http://n2.nabble.com/Here%27s-some-stress-testing-on-Mapguide-tp3182666p3200253.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] Here's some stress testing on Mapguide

2009-07-02 Thread Bruno Scott

I'm gone a try a more realistic test

  1) Create a session 
  2) Load the viewer + Sleep 2 sec 
  3) Loop 20 times
Zoom + Sleep 2 sec 
Select one feature ( polygon based ) + Sleep 2 sec 
Clear selection + Sleep 2 sec 
Pan 3 times + Sleep 2 sec 
Zoom out

A complete run for a single user take about 10 minutes, it's closer to a
real usage.
So there will be significantly less session created.
I will publish the result later on.
My intuition tell me that the user sessions are not well released and to
much sessions make MG unstable.
I have also a MG 2.1 debug version already compiled, i will check if i see
something.

Bruno
-- 
View this message in context: 
http://n2.nabble.com/Here%27s-some-stress-testing-on-Mapguide-tp3182666p3194319.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] Here's some stress testing on Mapguide

2009-07-02 Thread Bruno Scott

Another interesting test
20 concurent user runnning this over and over

http://goudurix/mapguide2010/mapagent/mapagent.fcgi?OPERATION=CREATESESSION...
http://goudurix/mapguide2010/mapviewernet/mapframe.aspx?MAPDEFINITION=Library://Samples...
I choose mapFrame because it forces MgMap to save itself to user session

http://n2.nabble.com/file/n3195936/Image1.gif 

We can see that memory grows very fast in the 4 first minutes and stabilize
a bit after.
But still it keeps leaking.
But what is more interesting this time it's the mgServer that really leaks
The IIS(w3w) service looses 5 meg in 20 Minutes
While MG almost 10.
-- 
View this message in context: 
http://n2.nabble.com/Here%27s-some-stress-testing-on-Mapguide-tp3182666p3195936.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] Here's some stress testing on Mapguide

2009-07-01 Thread Bruno Scott

Here's the script and instructions

Download Instructions
http://www.geomapgis.com/web/geomap-group/GrinderMgTest/Instructions.doc
Instructions.doc 

Download Mapguide grinder scripts
http://www.geomapgis.com/web/geomap-group/GrinderMgTest/GrinderMgTest.zip
GrinderMgTest.zip 

Bruno
-- 
View this message in context: 
http://n2.nabble.com/Here%27s-some-stress-testing-on-Mapguide-tp3182666p3187809.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] Here's some stress testing on Mapguide

2009-06-30 Thread Bruno Scott

I've made some stress testing on Mapguide Enterprise 2010
(I will try the same test on MGOS 2.1)
I have a Dual core server 3.17 GHz with 4 gig of RAM
Running windows 2003 SP2 and IIS

I got a grinder script ( from Autodesk) that i have modifyed a little.
Test has been done using the ajaxviewer php and aspx
I've set grinder to simulate 20 concurent user repeating the same operations
This is the listof operation been repeating over and over by the 20 users
  1) Create a session + Sleep 2 sec
  2) Load the viewer + Sleep 2 sec
  3) Zoom + Sleep 2 sec
  4) Select one feature ( polygon based ) + Sleep 2 sec
  5) Clear selection + Sleep 2 sec
  6) Pan 3 times + Sleep 2 sec
  7) Zoom out  + sleep 2 sec

I have put some counter on the mapguide services and the iis(w3w) services
mg net  w3w net mg php  w3w php
1 min   64000k  58600k  64000k  45800k
2 min   72000k  63700k  64400k  51500k
3 min   68500k  67700k  69000k  65300k
4 min   71700k  71500k  71500k  68900k
5 min   72500k  76000k  73300k  72800k
6 min   77000k  77555k  77000k  76200k
7 min   82000k  81500k  8k  8k

http://n2.nabble.com/file/n3182666/Image1.gif 

Mapguide stopeed working after 35 minutes
there were still enough memory to run
mg was at 99000k
w3w was at 30k

So analysing these numbers some question rises,
a) Why would iis loose 4 meg of ram every minutes?
b) Mapguide is still consuming 2 meg / minutes but i think will end by
reusing some of this ram, further test will try to demonstrate that.
c) What is the real cause of the crash? Is there too much session created in
a short period of time?

Bruno Scott 
still investigating :)




-- 
View this message in context: 
http://n2.nabble.com/Here%27s-some-stress-testing-on-Mapguide-tp3182666p3182666.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] Here's some stress testing on Mapguide

2009-06-30 Thread Bruno Scott

I have not run the test on the 2.1 yet, i will try it right away.
I will publish my result

Bruno
-- 
View this message in context: 
http://n2.nabble.com/Here%27s-some-stress-testing-on-Mapguide-tp3182666p3182771.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] Here's some stress testing on Mapguide

2009-06-30 Thread Bruno Scott

OK i got some numbers for MGOS 2.1
I did not run the test on the same server i run it on my computer.
I run the same test but only using 10 concurent users ( my pc does not like
20 users ...)
result:
  w3w loose 1.6 meg / minute
  mg   loose 0,7 meg / minute

It's near the half, but it is normal as i only run 10 users instead of 20.

I can give you my grinder script if you want to try it on your machine.
Pretty simple to install, and i use Sheboygan as dataset.

Bruno
-- 
View this message in context: 
http://n2.nabble.com/Here%27s-some-stress-testing-on-Mapguide-tp3182666p3183392.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] Idea for making MgCooker faster

2009-06-03 Thread Bruno Scott

Motivation:
We are using tiling, with the little patch we made for httptiling
Displaying is incredely fast, and it is using the client browser cache.
The real problem now is to pre generate all tiles.
For scale 1000 there is 3425920 256x256 tiles
With the previous MgCooker(3706) we had a average of 3 tile / sec so 13 days
for processing a single scale
With MgCooker(3911) using 2 simultaneous process is almost twice as fast so
we are aroud 7 days
We have 15 scales to process 
We have to refresh the tiles every 30 days.
Full processing is still more than 30 days.

Here an idea, why not try to make Mapguide generate bigger tiles and split
them in a post process
Here is some interesting bench we made using the old 3706 mgcooker (single
process)

1024x1024 Tiles:
32h for 214120 tiles 
1.85 tiles(1024)/sec ~=  29.6 tiles(256)/sec 
 
2048x2048 Tiles:
18h30 for 54180 tiles
0.81 tiles(2048) /sec ~= 52 tiles(256) /sec 
 
3072x3072 Tiles:
14h50 for 24192 tuiles
0.45 tiles(3072) /sec ~= 65 tiles(256) /sec 

I've made a little aspx program using GD to bench tile splitting
  Splitting a 1024x1024 tile : 0.218 sec
   0.0136 sec per 256x256 tile

  Splitting a 2048 x2048  tile : 0.691 sec
   0.0108 sec per 256x256 tile

  Splitting a 3072x3072  tile : 1.804 sec
   0.0125 sec per 256x256 tile
  So it's around 4 days of post process, i'm trying to make it faster

Bruno






-- 
View this message in context: 
http://n2.nabble.com/Idea-for-making-MgCooker-faster-tp3017103p3017103.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] Oracle FDO and View

2009-05-29 Thread Bruno Scott

This is the SQL syntax to add a primary key on an Oracle View

alter view viewname add constraint constraintname primary key
(columnlist) disable novalidate;

Once the view has a primary key, selection becomes available.

Bruno
-- 
View this message in context: 
http://n2.nabble.com/Oracle-FDO-and-View-tp1811392p2992905.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] Connect to PostGis3.2 data

2009-05-29 Thread Bruno Scott

This is my generic connection on windows
  username : postgres
  Password : root
  Service : mydatab...@mymachine:5432
  Datastore : public

If you have a logged provider, you should see some interesting query
The first one will scans all avalable table/views 

SELECT n.nspname AS schemaname,c.relname AS tablename 
FROM pg_class c, pg_namespace n 
WHERE c.relnamespace = n.oid AND 
  c.relkind IN ('r','v') AND 
 (c.relname NOT LIKE 'pg_%') AND 
 (c.relname NOT LIKE 'spatial_ref_sys%') AND 
 (c.relname NOT LIKE 'sql_%') AND 
 (c.relname NOT LIKE 'geom%') AND 
 n.nspname = 'public' 
ORDER BY c.relname

You should try to run it on your machine (replace public by your own schema)

The second one is runned for each table/view
SELECT a.attnum AS ordinal_position, a.attname AS column_name,t.typname AS
data_type, a.attlen AS character_maximum_length,a.atttypmod AS modifier,
a.attnotnull AS notnull,a.atthasdef AS hasdefault, d.adsrc AS
defaultVal,a.attnum = ANY (i.indkey) AS isprimarykey, i.indkey AS primKey,
i.indisprimary AS indisprimary 
FROM pg_attribute a LEFT OUTER JOIN pg_attrdef d ON a.attrelid = d.adrelid, 
 pg_type t, 
 pg_namespace n, 
 pg_class c LEFT OUTER JOIN pg_index i ON i.indrelid = c.oid 
WHERE a.attnum  0 AND a.attrelid = c.oid AND 
  a.atttypid = t.oid AND 
  c.relnamespace = n.oid AND 
  t.typname !~ '^geom' AND 
  i.indisprimary = 't' AND 
  c.relname = 'mytable' AND 
  n.nspname = 'public' 
ORDER BY a.attnum;


Try this and tell me what it returns

Bruno




-- 
View this message in context: 
http://n2.nabble.com/Connect-to-PostGis3.2-data-tp2980072p2994528.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] MapGuide Open Source 2.1 beta -- Installer Problem

2009-05-27 Thread Bruno Scott

Is the release2.0 sheboygan.mgp package compatible with the 2.1.
Ajax viewer seems to work OK but i have a lot of problem using fusion
  Javascript error
  empty toolbar
-- 
View this message in context: 
http://n2.nabble.com/MapGuide-Open-Source-2.1-beta-released-tp2972885p2980988.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] Connect to PostGis3.2 data

2009-05-27 Thread Bruno Scott

I use the PostGIS provider extenxively but on windows platform,
My linux knowledge are poor,
This is what i have added to the pg_hba to allow everyone.

hostall all 0.0.0.0/0   trust

Bruno
-- 
View this message in context: 
http://n2.nabble.com/Connect-to-PostGis3.2-data-tp2980072p2981752.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] Why MgMap::Create is so slow

2009-04-28 Thread Bruno Scott

I have a quite big MapDefinition with about 200 layers.
When a use the MgMap API Create it takes about 20 seconds
But if i use the GetResourceContent it almost instantly.

I wonder why this function is so slow.

The only thing i'm trying to do is to read this MapDefinition to retreive
information about a layer
  his resource Id
  his group hierarchy
  and his display order.

Bruno
-- 
View this message in context: 
http://n2.nabble.com/Why-MgMap%3A%3ACreate-is-so-slow-tp2734318p2734318.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Store point geom: ODBC or Native

2009-04-24 Thread Bruno Scott

From my experience , displaying Point Geometry is way faster than displaying
ODBC/X,Y.

Bruno
-- 
View this message in context: 
http://n2.nabble.com/Store-point-geom%3A-ODBC-or-Native-tp2691070p2691239.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] FDO Provider for Postgis ERROR

2009-04-22 Thread Bruno Scott

I'm on the PostGIS provider code actually, fixing defects, and i found one
that is maybe related.
If you have a table with column of type timestamp with time zone
The provider craches and can't describe the schema.

Bruno
-- 
View this message in context: 
http://n2.nabble.com/FDO-Provider-for-Postgis-ERROR-tp2674319p2675595.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] FDO Provider for Postgis ERROR

2009-04-22 Thread Bruno Scott

Yes my test platform is on windows

I don't see your Datastore tag!
  
This is my connection
ProviderOSGeo.PostGIS/Provider
  Parameter
NameUsername/Name
Valuepostgres/Value
  /Parameter
  Parameter
NamePassword/Name
Valueroot/Value
  /Parameter
  Parameter
NameService/Name
Valueunitt...@beaufix:5432/Value
  /Parameter
  Parameter
NameDataStore/Name
Valuepublic/Value
  /Parameter

-- 
View this message in context: 
http://n2.nabble.com/FDO-Provider-for-Postgis-ERROR-tp2674319p2675789.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] Little patch to make ajaxviewer as fast as google.maps

2009-04-15 Thread Bruno Scott

The was a little mistake in the php version. the webconfig.ini useHttpTile flag 
was never initialized :(
The is the fixed one

Patch_HttpTile_MG202.zip 
-- 
View this message in context: 
http://n2.nabble.com/Little-patch-to-make-ajaxviewer-as-fast-as-google.maps-tp2580480p2637319.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] Little patch to make ajaxviewer as fast as google.maps

2009-04-15 Thread Bruno Scott

I have created a ticket  and included the php/.net patch

http://trac.osgeo.org/mapguide/ticket/964 

Bruno


-- 
View this message in context: 
http://n2.nabble.com/Little-patch-to-make-ajaxviewer-as-fast-as-google.maps-tp2580480p2637368.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] Little patch to make ajaxviewer as fast as google.maps

2009-04-06 Thread Bruno Scott

Instead of the patch there is the updated files. Easier to test :)  These files 
are for Mapguide OpenSource 2.02.
First step  backup these files before
  www
webcongfig.ini
  www/mapviewernet
common.aspx
mapframe.aspx
  www/mapviewerphp
common.php
mapframe.php
  www/viewerfiles
ajaxmappane.templ

second step  Copy the files in the zip file
  
Patch_HttpTile_MG202.zip 


How to use it
1) You need a weblayout with base group. you can try with the Sheboygan_tile 
but it is much more impressive when you try it with huge rasters.

2) You need to pre generate all tiles, you can do it with the Maestro Preview ( 
it could take hours...)

3) Create un virtual directory on 
MapGuideOpenSource2.0\Server\Repositories\TileCache

4) open the webconfig.ini file, set the useHttpTile to 1 and update the 
TileServerUrls to your newly created virtual directory.
UseHttpTile=1
FirstGroupImageFormat = PNG
TileServerUrls=http://myServer/mgTiles

Try it ...

You can try some optimisations
a)  Set some expiry date on your webserver. As your webserver only serves image 
file you can set the expiry date to 1 year. So even if you close your browser, 
the tiles still reside on your browser cache, making display incredebly fast 
when you reopen it.

b) You can copy your tiles directory to another server, This will remove a lot 
of pressure on your Mapguide server. The Mapguide server will only serves the 
other dynamic layers.

c) If your Tile server is still to slow, you could copy the tiles on as many 
server as you wish.
TileServerUrls=http://myServer1/mgTiles;yttp://myServer2/mgTiles...

d) Some raster image are big when they are in png format. You can decide to use 
jpg format. If your tiles are smaller, the first download process will be 
faster. This is only valid for the first base group, all other base group must 
be png ( for transparency)

e) Even if you have only one server, you can set 4 alias to your webserver. A 
browser can load up to 4 image at the time ( default values for IE and 
firefox). With this trick your browser will load tiles faster, if you have a 
good bandwidth



-- 
View this message in context: 
http://n2.nabble.com/Little-patch-to-make-ajaxviewer-as-fast-as-google.maps-tp2580480p2591715.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] Little patch to make ajaxviewer as fast as google.maps

2009-04-06 Thread Bruno Scott



Hi Bruno,

I'm testing for mapguide enterprise 2009 SP1 and works fine doing the 
modifications manually. What happens if I have more than one Base group in my 
map?

Thanks.



You can have as many Base group as you wish. The only limitation is the tile 
image types. you can have jpg for the first one, all the others must be png.

Bruno
-- 
View this message in context: 
http://n2.nabble.com/Little-patch-to-make-ajaxviewer-as-fast-as-google.maps-tp2580480p2592669.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] Little patch to make ajaxviewer as fast as google.maps

2009-04-06 Thread Bruno Scott



Does work this patch for mgos 1.2?
Thanks.


To make it running in MGOS 1.2 you would have to modify your 1.2 files manually.
It not verry difficult, I have enclose all modification between
//HttpTile patch
Modification...
//End HttpTile patch

So just search with your favorite text editor the string HttpTile and do a 
cut and paste in the 1.2 files.
Don't forget to make backup of the files before :)

Bruno

-- 
View this message in context: 
http://n2.nabble.com/Little-patch-to-make-ajaxviewer-as-fast-as-google.maps-tp2580480p2592235.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] Little patch to make ajaxviewer as fast as google.maps

2009-04-06 Thread Bruno Scott


why would it end up loading the same tile more than once?
the host is selected randomly once the tile url has been constructed
for cases where load matters, an even randomised spread is far more desirable
z


This is the code in mapguide where it is called

function RequestTile(col, row, tilex, tiley)
{
for(var k=0; k  baseGroups.length; k++)
{
if(visBaseGroups.getItem(baseGroups[k]) == null)
continue;
cellSpec = k + : + col + : + row;
cell = document.getElementById(cellSpec);
if(cell == null)
{
if((cell = FindCell(k, cellSpec)) == null)
return 0;
}
if(cell.loaded == 1)
return 0;
cell.loaded = 1;
if(useHttpTile == 1)
{
  url = GetHttpTileUrl(tilex, tiley, sci, baseGroups[k],k==0);
}
else
{
  url = webAgent + ?OPERATION=GETTILEIMAGEVERSION=1.2.0...
}

tag = 'img id=' + (imgId) + ' width=' + TILECX + ' height=' + TILECY 
+ ' ...
imgId ++;
cell.innerHTML = tag;
}
return 1;
}

In debug mode i have noticed that the test 
  if(cell.loaded == 1)
failed sometimes even if i've already been over that cell.
this meens that the url for the tile will be recalculated, in that case a 
random may return a different url

I guess with openlayers that situation would never happend, but with mapguide 
it does.
I didn't lookup too much why the cell.loaded is lost, it could be a mapguide 
bug or a normal , behavior i don't know.

Bruno
-- 
View this message in context: 
http://n2.nabble.com/Little-patch-to-make-ajaxviewer-as-fast-as-google.maps-tp2580480p2593275.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] Little patch to make ajaxviewer as fast as google.maps

2009-04-03 Thread Bruno Scott

The idea is not from me, i took piece of code from OpenLayers / mapguide.js.

The idea is to pre generate all tiles ( with the new Maestro preview)
and Create a virtual directory on 
MapGuideOpenSource2.0\Server\Repositories\TileCache

I have added 3 new parameters on the webConfig.ini
[HttpTileServiceProperties]
UseHttpTile=1- Use direct access to tiles instead mapagent.fcgi ,0 = false 
and 1 = true
FirstGroupImageFormat = PNG- Image format for the first base group (could 
be JPG) all others must be png 
TileServerUrls=http://mg1/tiles;http://mg2/tiles   -List of all urls that 
will serves http tile

You can define many TileServerUrls, you just have to copy your TileCache 
directory on another web server

When UseHttpTile is set, all the tiles are directly served by the web server ( 
bypassing complely mapguide)
The resulting display speed is incredible, as fast as a webserver can be.
This also remove a lot of pressure on the mapguide server and then can be 
scaled up

Most of the code reside on the ajaxmappane.templ
The code inside the Net and php part is only there to read the extra 
webconfig.ini params.
I didn't make the java version yet, but it is very straight forward to do.

I'm ready to create a ticket and post the patch.
Do you think it's to late for the 2.1 build?
It is not really new stuff, it is possible to do the same with Openlayers...

Bruno Scott

useHttpTile.patch 
-- 
View this message in context: 
http://n2.nabble.com/Little-patch-to-make-ajaxviewer-as-fast-as-google.maps-tp2580480p2580480.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] Defect : Confusion between layer.visible and layer.isDisplayed

2009-03-05 Thread Bruno Scott

Using fiddler i found something interresting in two mapguide ajax functions
  QueryFeatureInfo (when selecting a feature )
and
  RequestHyperLinkData (when mouse over a feature)

These 2 functions calls GetVisSelLayers or GetVisLayers 
then GetLayers(onlyVisible, onlySelectable)
the DoGetLayers

This function returns the list of all either visible and/or selectable
layers
this is the code
function DoGetLayers(nodes, layers, onlyVisible, onlySelectable)
{
for(var i=0; i  nodes.length; i++)
{
var node = nodes[i];
if(node.type == 0)
{
if(onlyVisible  !node.visible)
continue;
if(node.children != null  node.children.length  0)
DoGetLayers(node.children, layers, onlyVisible,
onlySelectable);
}
else if(node.type == 1)
{
if(onlyVisible  !node.visible)
continue;
if(onlySelectable  !node.selectable)
continue;
layers.push(new Layer(node.legend, node.name, node.objectId));
}
}
}
It should be
function DoGetLayers(nodes, layers, onlyVisible, onlySelectable)
{
for(var i=0; i  nodes.length; i++)
{
var node = nodes[i];
if(node.type == 0)
{
if(onlyVisible  !node.isDisplayed)
continue;
if(node.children != null  node.children.length  0)
DoGetLayers(node.children, layers, onlyVisible,
onlySelectable);
}
else if(node.type == 1)
{
if(onlyVisible  !node.isDisplayed)
continue;
if(onlySelectable  !node.selectable)
continue;
layers.push(new Layer(node.legend, node.name, node.objectId));
}
}
}

This little defect does not make a big difference on a map like Sheboygan
But mine is Oracle based and has more than 300 layers.
Most of them are eventually visible at a given (low)scale but not displayed
at all.
When i select a feature or i mouse over it, it query the mapguide server
with hundreds of not displayed layers. You bet, things get very slow.

I've made some search on the ajax viewer code and found that this function
is only called by
  QueryFeatureInfo
  RequestHyperLinkData
  selectwithin

Do you aggree that i fill a ticket and a diff patch?

Bruno Scott


-- 
View this message in context: 
http://n2.nabble.com/Defect-%3A-Confusion-between-layer.visible-and-layer.isDisplayed-tp2430031p2430031.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] Automatic custom javascript loading in AjaxViewer

2009-01-14 Thread Bruno Scott

I propose a new enhencement to the AjaxViewer, the ability to the ajaxviewer
to automatically include javascript files at load time

In mainframe.aspx
...
//Scans the customjs directory for custom client javascript files
String clientJSInclude = ;
String strExt = *.js;
String strPath = Request.PhysicalApplicationPath + ..\\customjs;
try
{
  String[] files = Directory.GetFiles(strPath, strExt,
SearchOption.TopDirectoryOnly);
  foreach(String file in files)
  {
clientJSInclude += \nscript language=\javascript\
src=\../customjs/ + System.IO.Path.GetFileName(file) + \/script;
  }
}
catch(Exception e){}

//load the HTML template and format it
//
String template = MgLocalizer.Localize(LoadTemplate(Request,
../viewerfiles/mainframe.templ), locale, GetClientOS(Request));
String[] args = {
webLayout.GetTitle(),
clientJSInclude,
...

In mainframe.templ
Just add un new %s after the existing script ...


The advantages of this new features

  1) no need to have aspx,php (post enabled) files in any frames
  2) it much more easy to add specific user function ( UI based ) without
having the huge task pane displayed
  3) possible to create div on the fly to create sexy ExtJS type UI
  4) very easy to use mapguide Invoke Script command, it just the matter
of typing the javascript function.
  5) very easy for developpers to maintain, just copy the js files in the
www\customjs directory

Of course i can create a ticket for this, and Diff Patches for php and
DotNet

Bruno Scott


-- 
View this message in context: 
http://n2.nabble.com/Automatic-custom-javascript-loading-in-AjaxViewer-tp2156302p2156302.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Mapguide Localization

2008-12-22 Thread Bruno Scott

What would be the official way for localizing Mapguide OpenSource in French?
I know it's easy to copy the Localized/en file to a Localized/fr file and
translate it.
But Autodesk has already do that job, can i use this file for one of my
client that didn't bought MapGuide Enterprise?
If yes, could the mapguide community include that file in the mapguide
Opensource setup?

Bruno Scott
-- 
View this message in context: 
http://www.nabble.com/Mapguide-Localization-tp21130023p21130023.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: Re[mapguide-users] quest for change in the ajax viewer - legend with selectability

2008-12-17 Thread Bruno Scott

There  is the ticket
http://trac.osgeo.org/mapguide/ticket/800

-- 
View this message in context: 
http://www.nabble.com/Request-for-change-in-the-ajax-viewer---legend-with-selectability-tp20837203p21049364.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Bruno Scott



zspitzer wrote:
 
 are you using username  password or passing in a session id in the url?
 

Hi Zac
Actually my own page got the username and password in the url
In this page 
  i create the session, 
  sets the centerx,centery and scale of the weblayout
  Initialize the selection
Then i open the mapviewerajax url with the sessionid i've created

Bruno
-- 
View this message in context: 
http://www.nabble.com/Problem-opening-a-webLayout-with-predefined-selection-tp21035935p21055367.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Bruno Scott

Hi kenneth

What do you meen by Reload button?

The actual behavior is
When a user Hit the F5 key ( or refresh the browser ), everything is lost,
the selection, the current zoom...
and
When a user use the Refresh Map Action, the zoom, the selection , the layers
on/off are kept in the same state

With my proposed patch, it works the same.
Is there something i missed?

Bruno
-- 
View this message in context: 
http://www.nabble.com/Problem-opening-a-webLayout-with-predefined-selection-tp21035935p21051557.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Bruno Scott


Kenneth Skovhede, GEOGRAF A/S wrote:
 
 If you get a new sessionid, that means that the CreateSession is being 
 called.
 Then the check for existing items will look in the new session, which is 
 always empty?
 

The CreateSession is allways called with or without my patch
The check for existing items is always empty excepts if i call the
mapviewerajax with an existing session.

Bruno


-- 
View this message in context: 
http://www.nabble.com/Problem-opening-a-webLayout-with-predefined-selection-tp21035935p21055607.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] quest for change the status bar to reflect the layer selected

2008-12-17 Thread Bruno Scott

Actually, the status bar in the ajax viewer only shows the amount of features
selected.
It would be great if it showed the name of the selected layer also.
If there is many features selected on different layers, the behavior stays
the same as actually.

The modification is trivial
In the mainframe.templ
instead of having
if(hasStatusbar == 1)
 sbFrame.SetFeatureSelectedMsg(FormatMessage((selCount  1?
__#FEATURESSELECTED#__: __#FEATURESELECTED#__), new Array(selCount,
unused)));

we would have this
if(hasStatusbar == 1)
{
var selLayers = GetMapFrame().GetSelectedLayers();
if(selLayers.length == 1)
{
  sbFrame.SetFeatureSelectedMsg(FormatMessage(__#LAYERSELECTED#__,
new Array(selCount, selLayers[0].legend)));
}
else
{
  sbFrame.SetFeatureSelectedMsg(FormatMessage((selCount  1?
__#FEATURESSELECTED#__: __#FEATURESELECTED#__), new Array(selCount,
unused)));
}
}

i will create a ticket for this one
-- 
View this message in context: 
http://www.nabble.com/Request-for-change-the-status-bar-to-reflect-the-layer-selected-tp21051252p21051252.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Problem opening a webLayout with predefined selection

2008-12-17 Thread Bruno Scott

By pressing F5, the sessionid get renewed
I tested it in IE and firefox
-- 
View this message in context: 
http://www.nabble.com/Problem-opening-a-webLayout-with-predefined-selection-tp21035935p21052889.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: Re[mapguide-users] quest for change in the ajax viewer - legend with selectability

2008-12-05 Thread Bruno Scott

I just forgot a little thing, When a layer is set as not selectable in the
MapDefinition, a user should not be able to set it selectable.
I've upgraded the sample with this features
http://www.nabble.com/file/p20855606/Patch_Mapguide_202_2009sp1.zip
Patch_Mapguide_202_2009sp1.zip 

Tested on Mapguide Enterprise 2009SP1 and Mapguide OpenSource 2.02

Bruno
-- 
View this message in context: 
http://www.nabble.com/Request-for-change-in-the-ajax-viewer---legend-with-selectability-tp20837203p20855606.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] Geomap GIS Publishing

2008-12-04 Thread Bruno Scott

The Geomap GIS Publishing wizard was designed to work with Previous Mapguide
6 family.
It can't work with Mapguide OpenSource / Enterprise as it is really not the
same product.

Bruno Scott
-- 
View this message in context: 
http://www.nabble.com/Geomap-GIS-Publishing-tp20804421p20837262.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] Patch to change the active tool Cursor in ajax viewer

2008-12-02 Thread Bruno Scott

Here is a small patch to make the map cursor reflect the active toolbar
action.
function UpdateMapActionCursor(action)
{
  var strCursor = auto;
  switch(action)
  {
case 1: /*pan*/strCursor = url('../stdicons/icon_pan.cur'),
pointer;break;
case 9: /*Zoom window*/strCursor =
url('../stdicons/icon_zoomrect.cur'), pointer;break;
case 7: /*Zoom plus*/  strCursor =
url('../stdicons/icon_zoomin.cur'), pointer;break;
case 8: /*Zoom minus*/ strCursor =
url('../stdicons/icon_zoomout.cur'), pointer;break;
  }
  document.getElementById(tbMap).style.cursor = strCursor;
}

function ExecuteMapAction(action)
{
if(!mapInit)
return;
CancelDigitization();
UpdateMapActionCursor(action);
switch(action)
{
...
 it has been tested on IE7,FF3.04 and Chrome


It would be great if this piece of code was in the Mapguide core.
It's possible for a custom applications to override the ExecuteMapAction,
but i think this is usefull for all Mapguide users. And as the
ExecuteMapAction function is not an official API, it could change in future
release, and this make it difficult to maintain.

If you want to test it in Mapguide 2.02 , i've included in attachement the
complete ajaxmappane.templ and the cursor file itself. Don't forget to make
a backup of the existing templ file...
Just replace the existing www/viewerfiles/ajaxmappane.templ and copy the
cursor file in the www/stdicons directory.

http://www.nabble.com/file/p20789750/MapguideCursor.zip MapguideCursor.zip 
-- 
View this message in context: 
http://www.nabble.com/Patch-to-change-the-active-tool-Cursor-in-ajax-viewer-tp20789750p20789750.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Problem in the GenerateFilter() method of the MgSelection class

2008-11-25 Thread Bruno Scott

In your sample application, i've replace your URLEncode function ( witch is
using the escape function)
by encodeURIComponent and now your program runs properly without any errors
:)

Bruno
-- 
View this message in context: 
http://www.nabble.com/Problem-in-the-GenerateFilter%28%29-method-of-the-MgSelection-class-tp14132755p20677648.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Problem in the GenerateFilter() method of the MgSelection class

2008-11-25 Thread Bruno Scott

I've have closed the ticket 354 as invalid

Bruno
-- 
View this message in context: 
http://www.nabble.com/Problem-in-the-GenerateFilter%28%29-method-of-the-MgSelection-class-tp14132755p20677720.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] GenerateFilter return always 20 ids

2008-11-25 Thread Bruno Scott

The MgSelection::GenerateFilter returns always 20 IDs.
Is there a way to increase this ?
I've found an option in the serverconfig.ini file

SelectionFilterSize

Witch is set to 20 by default.

Changing this value has no effet on the GenerateFilter fonction...

Bruno

-- 
View this message in context: 
http://www.nabble.com/GenerateFilter-return-always-20-ids-tp20678292p20678292.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Problem in the GenerateFilter() method of the MgSelection class

2008-11-24 Thread Bruno Scott

I found the problem.
There is no error in the GenerateFilter command.
The error come while posting xml data from the client js to the server aspx
command.

Here and example of what's going on with FeatID = 250.

1) we get the XmlSelection from the Client API
FeatureSet
  Layer id=2c8890dc--1000-8000-000c29aacf8c
Class id=Schema1:uf_poly
  ID+g==/ID
/Class
  /Layer
/FeatureSet

2) we post this xml string to the server aspx, on the server we now have
this string
FeatureSet
  Layer id=2c8890dc--1000-8000-000c29aacf8c
Class id=Schema1:uf_poly
  ID g==/ID
/Class
  /Layer
/FeatureSet

3) as we are creating a new MgSelection with this wrong value, the
GenerateFilter command can't process it properly.

Here is base64 representation of some FeatId
247 : 9w==
248 : +A==
249 : +Q==
250 : +g==
251 : +w==
252 : /A==

The little program failed with featIds 248,249,250,251, they all starts with
+

I'm pretty sure many of you who has experiences Selection/generateFilter
problem have this same behavior.

Bruno Scott


-- 
View this message in context: 
http://www.nabble.com/Problem-in-the-GenerateFilter%28%29-method-of-the-MgSelection-class-tp14132755p20676525.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] selection impossible when property pane hidden

2008-09-19 Thread Bruno Scott

I use the ajax cient on a mapguide 2.01
When the property pane is visible, i have no problem selecting features.
But when i uncheck the property pane in the layout, i can't use the mouse
click to select features.
Rectangle selection still work.
it seems that there is a y shift somewhere, but i can't find where ...

Did someone has experience the same problem?

Thanks
Bruno
-- 
View this message in context: 
http://www.nabble.com/selection-impossible-when-property-pane-hidden-tp19569649p19569649.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Problem in the GenerateFilter() method of the MgSelection class

2008-06-16 Thread Bruno Scott

I've been a little further on that problem
I have dupplicated the exacte same table ( the one in the demo attached)
On Oracle and PostGIS

So using the Autodesk.Oracle provider i don't have the bug.
After re-sequencing/Re-indexing GenerateFilter on Oracle works well

But i do have problem in PostGIS and SDF.
So it could be a provider specific bug.

Could someone direct me where to look in the code to try to find out what's
going on.
I have the PostGIS in a debug build ready to go on the debugger!

Thanks 
Bruno


 

Patrick Chevalier wrote:
 
 I built a little web application that demonstrates the bug in the
 GenerateFilter() method of the MgSelection class.
 
 The bug seems to happen on a precise pattern inside the Feature Sources
 and only on the Identity field. 
 The program demonstrate that no matter which SDF or SHP used (I only
 tested these two), the GenerateFilter() method returns a random ID instead
 of returning the correct FeatId (Identity).  You can use your SDF to test
 it too.
 
 Always the same FeatIds are wrong : 
 It starts with the ID 248 for 4 polygons, and step by 256 after that.
 248, 249, 250, 251
 504, 505, 506, 507
 760, 761, 762, 763
 ... and so on.
 
 You can download the application at this address :
  http://www.geomapgis.ca/webdownloads/MAPGUIDE_ERROR.zip
 http://www.geomapgis.ca/webdownloads/MAPGUIDE_ERROR.zip 
 
 Start by reading the ReadMe.txt file.
 
 Be sure to give access to user ASPNET to your web folder application.
 
 Thanks to anyone that may have a solution to this problem!
 

-- 
View this message in context: 
http://www.nabble.com/Problem-in-the-GenerateFilter%28%29-method-of-the-MgSelection-class-tp14132755p17860150.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Problem in the GenerateFilter() method of theMgSelection class

2008-06-12 Thread Bruno Scott

I've just made some test on version 2.0 and 2.01 and the bug is still there

I've gone further on my test

I have the same problem on a polyline layer using the PostGIS provider
I have another application using the AUtodesk.oracle provider and i have a
similar problem
but it is not the ids (248, 249, 250, 251) + the magic number (256)
but 255 + the magic number (256) s0 can't get selection on ids
255,511,767,...

I can reproduce the problem on a polyline table on the same database
neither on a x,y table using odbc provider



Patrick Chevalier wrote:
 
 Here is the ticket on the Trac instance : 
 http://trac.osgeo.org/mapguide/ticket/354
 http://trac.osgeo.org/mapguide/ticket/354 
 
 Thank you very much
 
 
 JasonBirch wrote:
 
 That's a pretty insane bug...
 
 Can you please file a ticket for this on our Trac instance here?
 
 http://trac.osgeo.org/mapguide/wiki/SubmitTicket
 
 Your problem description is quite good; please ensuee that you also
 specify version, platform, etc in the ticket.
 
 Thanks,
 Jason 
 
 -Original Message-
 From: Patrick Chevalier
 Subject: Re: [mapguide-users] Problem in the GenerateFilter() method of
 theMgSelection class
 
 I just want to mention that this problem is really blocking because 1
 out of 50 entities CANNOT be retrieved into an MgSelection.  That means
 that I cannot guarantee my clients that my applications are bug free
 because they encountered this problem and I can't give them any bug fix.
 I hope somebody will help me find a solution very soon.
 
 Patrick Chevalier wrote:
 
 I built a little web application that demonstrates the bug in the
 GenerateFilter() method of the MgSelection class.
 
 The bug seems to happen on a precise pattern inside the Feature 
 Sources and only on the Identity field.
 The program demonstrate that no matter which SDF or SHP used (I only 
 tested these two), the GenerateFilter() method returns a random ID 
 instead of returning the correct FeatId (Identity).  You can use your 
 SDF to test it too.
 
 Always the same FeatIds are wrong : 
 It starts with the ID 248 for 4 polygons, and step by 256 after that.
 248, 249, 250, 251
 504, 505, 506, 507
 760, 761, 762, 763
 ... and so on.
 
 You can download the application at this address :
  http://www.geomapgis.ca/webdownloads/MAPGUIDE_ERROR.zip
 http://www.geomapgis.ca/webdownloads/MAPGUIDE_ERROR.zip
 
 Start by reading the ReadMe.txt file.
 
 Be sure to give access to user ASPNET to your web folder application.
 
 Thanks to anyone that may have a solution to this problem!
 ___
 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/Problem-in-the-GenerateFilter%28%29-method-of-the-MgSelection-class-tp14132755p17803667.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] Using X,Y from Oracle

2007-12-10 Thread Bruno Scott

You need to use the KingFdoClass table to be able to use x,y.
With this metadata table you can also overide lots of defaults.
Like geometry type, by the way
You can find the description of this table at www.sl-king.com.
Fdo2fdo help you create and manage this table

Bruno



Kenneth, GEOGRAF A/S wrote:
 
 I have tried to produce points from an Oracle database with only x and y 
 data, no SDO geometry.
 Using King.Oracle these tables do not appear, using the Autodesk 
 provider shows these, but does not allow for mapping with X/Y.
 
 I then tried to load the Oracle as an ODBC connection.
 After waiting approximately 10 minutes after pressing save, the 
 FeatureSource is saved.
 After this, there are no tables listed in the FeatureSource.
 
 Can I fix this somehow, or is it better to convert the columns to SDO?
 
 -- 
 Regards, Kenneth, GEOGRAF A/S
 
 
 ___
 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/Using-X%2CY-from-Oracle-tp14254071s16610p14254167.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Problem in the GenerateFilter() method of the MgSelection class

2007-12-06 Thread Bruno Scott

This is very weird that nobody has ever notice that!
This bug is very blocking.
3 differents sdf and 3 different shp, all with the same problem, wow.

I'm going to try with a different provider, just to see!

IT really seems like a big bug, you know 256 is not a magic number!!!

Bruno



Patrick Chevalier wrote:
 
 I built a little web application that demonstrates the bug in the
 GenerateFilter() method of the MgSelection class.
 
 The bug seems to happen on a precise pattern inside the Feature Sources
 and only on the Identity field. 
 The program demonstrate that no matter which SDF or SHP used (I only
 tested these two), the GenerateFilter() method returns a random ID instead
 of returning the correct FeatId (Identity).  You can use your SDF to test
 it too.
 
 Always the same FeatIds are wrong : 
 It starts with the ID 248 for 4 polygons, and step by 256 after that.
 248, 249, 250, 251
 504, 505, 506, 507
 760, 761, 762, 763
 ... and so on.
 
 You can download the application at this address :
  http://www.geomapgis.ca/webdownloads/MAPGUIDE_ERROR.zip
 http://www.geomapgis.ca/webdownloads/MAPGUIDE_ERROR.zip 
 
 Start by reading the ReadMe.txt file.
 
 Be sure to give access to user ASPNET to your web folder application.
 
 Thanks to anyone that may have a solution to this problem!
 

-- 
View this message in context: 
http://www.nabble.com/Problem-in-the-GenerateFilter%28%29-method-of-the-MgSelection-class-tf4937455s16610.html#a14193896
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Mapguide 2.0 Beta1 vs 1.2 performance

2007-11-22 Thread Bruno Scott

here is my test today with GG and AGG 

mg2.0+AGG-fusion 17 sec 
mg2.0+AGG+fusion  30 sec 
mg2.0+GD-fusion 10 sec 
mg2.0+GD+fusion20 sec 

GD seems faster than AGG 

A little precision, i have a huge screen resolution 1900x1200 
I did my test full screen 

I have also noticed something, the image generated by fusion is a lot larger
than the one without fusion. 
We see it when we pan, the image is about 20% bigger than what we see on the
screen. 
20% bigger in 4 direction make the image about twice big. 
And with a resolution of 1900x1200 this could explain the gap in performance
with or without fusion. 


Bruno


Bruce Dechant wrote:
 
 The performance difference can be attributed to the fact that this is a
 Beta version being compared to a Release version.
 
 Some things to consider:
 - 1.2 used the GD renderer, whereas, 2.0 is using the new AGG renderer
 (looks much better)
 - there are several places in the code that have not been optimized yet
 (algorithms, memory usage, thread usage, etc...)
 - Fusion is a brand new feature of the 2.0 release and has not been
 optimized either
 - this is a Beta and doesn't necessarily reflect the final release code.
 :)
 
 Thanks,
 Bruce
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Paul Spencer
 Sent: November 21, 2007 10:04 AM
 To: MapGuide Users Mail List
 Subject: Re: [mapguide-users] Mapguide 2.0 Beta1 vs 1.2 performance
 
 It uses the mapdefinition that is set in the application definition,
 if its a tiled map then it should be tiled in the client, otherwise it
 should be a regular old map draw.
 
 Has anyone else got feedback on this?  I saw fusion running on a
 laptop yesterday, not tiled, full screen, and it was milliseconds
 (500ms) to pan/zoom (didn't look at select).
 
 Paul
 
 On 21-Nov-07, at 3:22 AM, Zac Spitzer wrote:
 
 sounds like fusion ain't hitting the tile cache???

 On Nov 21, 2007 6:44 PM, Bruno Scott [EMAIL PROTECTED] wrote:

 I have 2 identical vm-ware with windows 2003 running on the same
 machine
 I start one of the vm-ware, I do the testing, I stop it and then
 start the
 other to do the other bench Bench is done on the sheboygan sample
 at 1:5000
 scale

MG 2.0 with fusion  Mg 2.0 without
 fusion   Mg 1.2

 pan 29 sec  12 sec  2 sec

 select  28 sec  12 sec  2 sec


 I know it's only a beta but why is that slow?

 Bruno Scott

 --
 View this message in context:
 http://www.nabble.com/Mapguide-2.0-Beta1-vs-1.2-performance-tf4848550s16610.html#a13872479
 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




 --
 Zac Spitzer
 http://zacster.blogspot.com/
 +61 405 847 168 (aussie moible)
 ___
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Mapguide-2.0-Beta1-vs-1.2-performance-tf4848550s16610.html#a13897170
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] OGR+PostGIS : Update and insert

2007-11-22 Thread Bruno Scott

Oops,
Sorry i think FDO is a better place for this message.

Sorry
Bruno



Bruno Scott wrote:
 
 Has anyone successfully use the OGR provider for PostGIS for update and
 insert?
 
 I use it successfully for displaying data using Map 3D 2008
 But when i try to modify something i have an error telling me that the
 provider does not support updates.
 
 When i query the ogr provider capabilities it returns :
 
   SupportsTransactionstrue/SupportsTransactions
   SupportedCommands
 NameApplySchema/Name 
 NameDescribeSchema/Name 
 NameSelect/Name 
 NameInsert/Name 
 NameUpdate/Name 
 NameDelete/Name 
 NameSQLCommand/Name 
 NameGetSpatialContexts/Name
   /SupportedCommands
 
 Is it a bug in Map? in fdo? in the OGR provider?
 
 Thanks
 Bruno
 

-- 
View this message in context: 
http://www.nabble.com/OGR%2BPostGIS-%3A-Update-and-insert-tf4856533s16610.html#a13897177
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Mapguide 2.0 Beta1 vs 1.2 performance

2007-11-20 Thread Bruno Scott

I have 2 identical vm-ware with windows 2003 running on the same machine 
I start one of the vm-ware, I do the testing, I stop it and then start the
other to do the other bench Bench is done on the sheboygan sample at 1:5000
scale

MG 2.0 with fusion  Mg 2.0 without fusion   Mg 1.2

pan 29 sec  12 sec  2 sec

select  28 sec  12 sec  2 sec


I know it’s only a beta but why is that slow?

Bruno Scott

-- 
View this message in context: 
http://www.nabble.com/Mapguide-2.0-Beta1-vs-1.2-performance-tf4848550s16610.html#a13872479
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] Security on layers or featureSource

2007-11-07 Thread Bruno Scott

Actually when we set a no access permission on a layer definition for a given
user
and we open the map referencing this layer (using the same user ) we got
this message :

Permission denied to resource:
Library://Samples/Sheboygan/Layers/Districts.LayerDefinition
Permission denied to resource:
Library://Samples/Sheboygan/Layers/Districts.LayerDefinition Exception
occured in method MgResourceHeaderManager.CheckPermission at line 2497 in
file
c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\server\src\services\resource\ResourceHeaderManager.cpp
 

I know that is the intended behavior
But it would be great if the mapgudie server remove the layers with no
access on the fly.
This would gives Administrator a very high level of flexibility on
controling the security.

Just by setting security permissions on some layers or featureSource we
could control
what a specific user can see in any map

Bruno
-- 
View this message in context: 
http://www.nabble.com/Security-on-layers-or-featureSource-tf4763554s16610.html#a13623918
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] How to use count or max expression in fdo provider for sdf

2007-10-01 Thread Bruno Scott


The GetExpressionCapabilities for sdf provider tells me that it supports

Concat
SpatialExtents
Ceil
Floor
Lower
Upper
Sum
Count
Min
Avg
Max

But i can't make it to works

MgFeatureService featureService =
(MgFeatureService)site.CreateService(MgServiceType.FeatureService);
MgResourceIdentifier resId = new
MgResourceIdentifier(Library://Samples/Sheboygan/Data/Parcels.FeatureSource);
MgFeatureQueryOptions queryOptions = new MgFeatureQueryOptions();

//this one returns : Invalid property name: Count()
//queryOptions.AddFeatureProperty(Count());
 
//this one returns : The function 'Count' is not supported by this
provider
queryOptions.AddComputedProperty(Count, Count());

MgFeatureReader dataReader = featureService.SelectFeatures(resId,
SHP_Schema:Parcels, queryOptions);
-- 
View this message in context: 
http://www.nabble.com/How-to-use-count-or-max-expression-in-fdo-provider-for-sdf-tf4548772s16610.html#a12980584
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] Version 2.0 and printing question

2007-09-11 Thread Bruno Scott

Hy all
Is there some plan for improving the printing functionnality in release 2.0
of mapguide?

I was thinking of more flexibility in the printLayout xml format
and maybe a print to pdf in addition to the print dwf/raster?
what about a printlayout editor?

Thanks
Bruno Scott
-- 
View this message in context: 
http://www.nabble.com/Version-2.0-and-printing-question-tf4421501s16610.html#a12611463
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] Vista and Mapguide Server

2007-07-27 Thread Bruno Scott

I have just installed Mapguide Studio 2008 on my bran new Vista Ultimate
And it works fine.
Didn't try to install Mapguide Server
I have a vmware virtual machine that runs windows 2003 with mapguide server
on it.

With this configuration, i got everything running, it's even faster having
mapguide server on a virtual machine than on the same machine. Don't know
why?

Bruno Scott


Ivan Milicevic-3 wrote:
 
 Hello,
 
  
 
 Just for information, Vista doesn't support Mapguide Server (any  of
 version). It's problem with IIS 7.0.
 
  
 
 Also, Mapguide Studio 2008 (2007 work's perfectly) doen't work on this
 platform.
 
  
 
 I hope so that this compatibility issue will be solved in futer version od
 Mapguide Server and Studio.
 
  
 
 Ivan Miličević
 voditelj Odjela za dokumentiranje
 i projektiranje
 
  
 
 SUPRA NET d.o.o.
 Erlichova 2, 1 Zagreb
 CROATIA
 
 Mobile: +385 (0)91 2352-320
 Fax: +385 (0)1 6678-728
 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Vista-and-Mapguide-Server-tf4155782s16610.html#a11826441
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] RE: Producing High Resolution images using renderingservice

2007-06-25 Thread Bruno Scott

I've already tried to produce huge image, my goal was to produce a A0 plot at
300 dpi
and i've found the theoric limitation :
root/branches/1.2.x/MgDev/Server/src/Services/Rendering/ServerRenderingService.cpp
...
static const INT32 MAX_PIXELS = 16384*16384;
...
// sanity check - number of image pixels cannot exceed MAX_PIXELS 
 if (drawWidth * drawHeight  MAX_PIXELS) 
 throw new
MgOutOfRangeException(LMgServerRenderingService.RenderMap, __LINE__,
__WFILE__, NULL, LMgInvalidImageSizeTooBig, NULL); 


This is a quite big value enough to hold my needs.

But my server spent a long time calculating the resulting image
I was on my own computer with only myself asking to render an image
I can imagine you should setup your server with a huge amount of ram if
you want to handle many concurent sessions...


Bruno





Traian Stanev wrote:
 
 Hi,
  
 Both ways are possible. You can specify a higher dpi and also a really
 large output image size using the web APIs. I have tried both, and there
 was a bug with labels not taking into account dpi which I think I fixed
 (but my memory is fuzzy, so may be I didn't fix it). 
  
 The limitation is the size of the ouput image in memory, since it needs to
 be in RAM while rendering the map. I successfully tried a 5000x5000 image,
 but with 1x1 it failed. For an 8.5x11 image at 600 dpi, you
 would need to generate a 5100x6600 image which seems doable.
  
 You can also stitch several large image tiles into one big raster as a
 post processing step, but this would most likely show labeling artifacts
 at the edges, so I would recommend the monolithic image approach.
  
 Traian
  
  
 -Original Message- 
 From: [EMAIL PROTECTED] on behalf of Simon Hope 
 Sent: Thu 6/21/2007 8:51 PM 
 To: mapguide-users@lists.osgeo.org 
 Cc: 
 Subject: [mapguide-users] Producing High Resolution images using
 renderingservice
 
 
 
   Hi
 

 
   I’ve got a client who is very interested in developing a site using
 MapGuide Open source and they have a requirement to produce a map image
 output into a PDF but the quality of the image is important - i.e.
 suitable to print on a 600dpi printer.
 

 
   I’ve looked over the documentation and the Rendering Service seems to
 cater for map image output however it’s not clear on what quality you can
 get using this – does anyone have any experience of using the rendering
 service in this way and could answer these questions:
 

 
   Can the rendering service be used to output map images at a higher
 quality by specifying resolution?
 
   If the map image resolution cannot be set –is there any restriction on
 the size of the image exported using the rendering service (i.e. produce a
 large image (width x height) and reduce this to fit into the PDF –
 therefore increasing the quality?
 

 
   Thanks
 

 
   Simon
 
 
 ___
 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/Producing-High-Resolution-images-using-rendering-service-tf3962171s16610.html#a11282299
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Mapguide OS RC1 SchemaReport bugs with KingOracle

2007-06-20 Thread Bruno Scott

I am just trying the new SchemaReport feature
This things is very great and usefull, thanks for giving this to us.

However, i've found a little bug
With the KingOracle provider i can't use the View Data neither the View
Feature functions
it return this message The specified class was not found.

I think this is maybe related to the name of the feature class that the
schema report returns
In the Studio i see my feature class in this forms : ROAD~ACCIDENT~GEOLOC
and in schemareport like this : ROAD-x7e-ACCIDENT-x7e-GEOLOC


Bruno

-- 
View this message in context: 
http://www.nabble.com/Mapguide-OS-RC1-SchemaReport-bugs-with-KingOracle-tf3951151s16610.html#a11209790
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