Re: [mapguide-users] mapAgentURL is not defined in FUSION mapguide

2019-08-11 Thread Rodolfo Moreno
I am Rodolfo and Thanks Liglio.
I used the FusionSF.jc that you sent me. The fusion layout works fine by a
moment but after 1o seconds the fusion launched an error message:

Error Details:
Exception occurred in AJAX callback.
Message: Cannot read property 'message' of undefined
Location: undefined (undefined)
Inner Stack: TypeError: Cannot read property 'message' of undefined
at Object.ajaxException
(http://localhost/mapguide/fusion/lib/fusionSF1.js:788:77)
at http://localhost/mapguide/fusion/lib/fusionSF1.js:46607:25
at initialize.respondToReadyState
(http://localhost/mapguide/fusion/lib/fusionSF1.js:97018:51)
at initialize.onStateChange
(http://localhost/mapguide/fusion/lib/fusionSF1.js:96931:18)
at XMLHttpRequest.
(http://localhost/mapguide/fusion/lib/fusionSF1.js:46607:25)
Response:  

When I compared my file with your fusionSF file I realized that your file is
of 2017 and the mine is of 2018. 





--
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] mapAgentURL is not defined in FUSION mapguide

2019-08-05 Thread Rodolfo Moreno
Thanks Liglio,
I made what you suggested.
_
var getSiteVersion = function(sessionId, callback) {
var xhr = getXmlHttpRequest();  
*var mapAgentUrl = getAgentUrl();*
xhr.open("GET", mapAgentUrl +
"?OPERATION=GETSITEVERSION&VERSION=1.0.0&LOCALE=en&CLIENTAGENT=MapGuide+Developer&SESSION="+
sessionId, true);
__

And now fusion is launched another error:

Error Details:
Uncaught TypeError: callback is not a function

Stack Trace:
 - ? at http://localhost/mapguide/fusion/lib/fusionSF.js (line: 1698)

here the code in that line:
__
var getAgentUrl = function(callback) { 
/* 
* if the application has been loaded from the same host as 
* fusion is installed in, then technically we don't need to 
* use the redirect script because we conform to the  
* Same Origin Policy for XmlHttpRequest to work. 
*/ 
var fusionURL = Fusion._getScriptLocation(); 
var testUrl = window.location.protocol + '//' +
window.location.host; 
var configUrl = 'config.json'; 

if (((Fusion.fusionURL.indexOf("http://";) < 0) ||
(Fusion.fusionURL.indexOf(testUrl, 0) == 0)) && !(Fusion.bForceRedirect)) { 
Fusion.sRedirectScript = ''; 
} 
else { 
Fusion.sRedirectScript = 'redirect.php'; 
configUrl += '&method=get'; 
} 

var r = Fusion.getRedirectScript(); 
if (r != '') { 
r = r + '?s='; 
} 

var fusionURL = r + Fusion.getFusionURL() + configUrl; 

var xhr = getXmlHttpRequest(); 
xhr.open("GET", fusionURL, true); 
xhr.onload = function (e) {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
//Can't use parseJSON as this JSON file will most likely
have comments
eval("Fusion.configuration=" + xhr.responseText); 
var s = Fusion.configuration.mapguide.webTierUrl; 
/* if it is set, use it ... otherwise assume fusion is
installed in 
* the default location and compute the web tier url from
that 
*/ 
if (s) { 
var nLength = s.length; 
var slastChar = s.charAt((nLength - 1)); 
if (slastChar != '/') { 
s = s + "/"; 
} 
} else { 
var idx = Fusion.fusionURL.lastIndexOf('fusion'); 
if (idx == -1) { 
s = Fusion.fusionURL + "../";   //loaded
relatively from within fusion directory 
} 
else { 
s = Fusion.fusionURL.substring(0, idx); 
} 
} 
Fusion.configuration.mapguide.mapAgentUrl = s +
'mapagent/mapagent.fcgi'; 
*callback(Fusion.configuration.mapguide.mapAgentUrl);*
(LINE 1698)
} else {
console.error(xhr.statusText);
}
}
};
xhr.onerror = function (e) {
console.error(xhr.statusText);
};
xhr.send(null); 
}
___

what could be the problem?





--
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] mapAgentURL is not defined in FUSION mapguide

2019-08-02 Thread Rodolfo Moreno
Hi Liglio, 
This is the code

Line 1745: var getSiteVersion = function(sessionId, callback) {
Line 1746:var xhr = getXmlHttpRequest();  
*Line 1747:xhr.open("GET", mapAgentUrl +
"?OPERATION=GETSITEVERSION&VERSION=1.0.0&LOCALE=en&CLIENTAGENT=MapGuide+Developer&SESSION="+
sessionId, true);
*
Line 1748:xhr.onload = function (e) {
Line 1749:if (xhr.readyState === 4) {
if (xhr.status === 200) {
var verXML = xhr.responseXML.documentElement; 
var el = verXML.getElementsByTagName("Version")[0];
var version = el.textContent || el.text;
var bits = version.split('.');
callback([
parseInt(bits[0]),
parseInt(bits[1]),
parseInt(bits[2]),
parseInt(bits[3])
]);
} else {
console.error(xhr.statusText);
}
}
};
xhr.onerror = function (e) {
console.error(xhr.statusText);
};
xhr.send(null); 
};

What I tried was to add the mapAgentUrl Parameter to the function like this:

Line 1745: var getSiteVersion = function( *mapAgentUrl*, sessionId,
callback) {

but in that case fusion doesnt lunch any error but the map is in blank. In
the web browser console log I saw:
/mapguide/fusion/templates/mapguide/slate/92e7f2f6-b59b-11e9-8000-fcf8aef6937a_en_MTI3LjAuMC4x0AFC0AFB0AFA?OPERATION=GETSITEVERSION&VERSION=1.0.0&LOCALE=en&CLIENTAGENT=MapGuide+Developer&SESSION=function(version)%20{%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Fusion.sessionId%20=%20passedSessionId;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Fusion.siteVersion%20=%20version;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20cb();%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20}:1
Failed to load resource: the server responded with a status of 404 (Not
Found)
fusionSF.js:1762 Not Found
xhr.onload @ fusionSF.js:1762

I hope that you can help me. Thanks in advance Liglio



--
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] mapAgentURL is not defined in FUSION mapguide

2019-07-24 Thread Rodolfo Moreno
Thanks Liglio and RenoSun for your answer.
I reviewed the FusionSF.js and could see that the changes suggested already
were done.
Modify the index.html to work with FusionSF.js
next I launched the slate template from maestro and the error say:

Error Details:
Uncaught ReferenceError: mapAgentUrl is not defined

Stack Trace:
 - ? at http://localhost/mapguide/fusion/lib/fusionSF.js (line: 1747)

Source:
http://localhost/mapguide/fusion/templates/mapguide/slate/index.html?session=3ade0cc8-ae41-11e9-8000-fcf8aef6937a_en_MTI3LjAuMC4x0AFC0AFB0AFA&ApplicationDefinition=Session:3ade0cc8-ae41-11e9-8000-fcf8aef6937a_en_MTI3LjAuMC4x0AFC0AFB0AFA//Preview4.ApplicationDefinition&locale=en

Which could be the error?

Thanks in advance



--
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] mapAgentURL is not defined in FUSION mapguide

2019-07-23 Thread Rodolfo Moreno
Hi Reno, thanks for your response
- "When you use .NET to display fusion with iframe, you no longer need to
send session id"
I am not using iframe with fusion
- "please double check if using SSL/non-SSL affect this as well"
I am not using SSL 
- "make sure you assign proper role to the mapguide user that you use to
load fusion"
I am loading the fusion template from maestro. which must be the role to
mapguide user? Where must I specify this role?
by last, Is there some piece of code that I should modify in fusion.js or in
other files?

Thanks in advance



--
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] mapAgentURL is not defined in FUSION mapguide

2019-07-19 Thread Rodolfo Moreno
Hi All, 
I have installed Mapguide OS MapGuideOpenSource-3.1.2.9484-Final-x64 and 
MapGuideMaestro-Release-6.0m10. After I loaded Sheybogan.mgp using Maestro. 
However when I tried the fusion slate template from maestro I got error 
message: "mapAgentURL is not defined". I tested the ajax viewer sucessfully 
but I dont know why fusion is not working. 
My enviroment is: windows 10 pro 64 bits

 

Thanks in advance. 



--
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] Kaliopa mobile viewer with google maps as base layer

2015-07-02 Thread Rodolfo Moreno
Thanks Srecko. Your suggestions is working. However I have a doubt. How could
I do in order to put both google street and google satellite in the viewer
and the user can turn on/off this two new layers independently.
Best Regards,



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Kaliopa-mobile-viewer-with-google-maps-as-base-layer-tp5212543p5214093.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] Kaliopa mobile viewer with google maps as base layer

2015-06-30 Thread Rodolfo Moreno
Thanks Srecko and RenoSun. 
I have have downloaded all 2.12 openlayers version (is the same of the
Kalipopa Mobile Viewer) to have the Google and other base map classes.
I call this library in the default.aspx, next I added the code that RenoSun
suggests me.

function initWms(){
wmsLayArr1 = new Array(); //list of base layers
wmsLayArr2 = new Hashtable(); //list of base layers ids

// CODE ADDED
  
var GoogleStreet = new OpenLayers.Layer.OSM("Google Street",
  ["http://mt1.google.com/vt/x=${x}&y=${y}&z=${z}";], {
numZoomLevels: 23,
  sphericalMercator: true,transitionEffect: 'resize' });

 map.addLayers([GoogleStreet]);
}

Then the Kaliopa mobile viewer shows the GoogleStreet base maps but my
mapguide map is not displayed any more. I supposed that the google layers
are overlaping my mapguide maps (on the top) thus I added the following
code:

map.setLayerIndex(GoogleStreet, 0);

In order to put the GoogleLayer in the bottom of my map but even I cant view
my mapguide map.
What it would be the problem?

Thanks in advance





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Kaliopa-mobile-viewer-with-google-maps-as-base-layer-tp5212543p5213669.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] Kaliopa mobile viewer with google maps as base layer

2015-06-23 Thread Rodolfo Moreno
Hi all,
Someone knows how to add google maps as base layer in the kaliopa mobile
viewer?
Thanks in advance.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Kaliopa-mobile-viewer-with-google-maps-as-base-layer-tp5212543.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] google transition esri

2015-04-28 Thread Rodolfo Moreno
I have read that google will leave google maps engine GME and google earth
pro. Reasons I suppose that is by this not a profitable business. However I
am worried about google base map that we use in Fusion. Specifically open
layers with google base map. Anyone knows how it going to impacto to Fusion
and openlayers viewers?
Best Regards,



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/google-transition-esri-tp5203347.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] How to load my appl with google maps as base map even without internet conection

2015-03-28 Thread Rodolfo Moreno
Thanks Gordon. 
I tried your suggestion. Your code always is showing that there is not
internet conection even if internet conexion exist.
What it could be failing? 
Regards,



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/How-to-load-my-appl-with-google-maps-as-base-map-even-without-internet-conection-tp5195491p5195900.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] How to load my appl with google maps as base map even without internet conection

2015-03-26 Thread Rodolfo Moreno
Hans,
Mapguide and the SQL Server are in the same offline machine. What I have
seen when I debug in the browser is that fusion viewer first does the
request to google maps and how there is no response the viewer hang out.
Best Regards,



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/How-to-load-my-appl-with-google-maps-as-base-map-even-without-internet-conection-tp5195491p5195624.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] How to load my appl with google maps as base map even without internet conection

2015-03-25 Thread Rodolfo Moreno
Hi All,
I have an application that has to google maps as base map (I am using Fusion
viewer). When the application loads in a machine with internet conection the
application works fine however when the application loads in a machine
without internet conection the application hangs out. 
What I would like to do is that the application loads even if the machine
has not conection internet. The app should detect automatically that there
is no internet conection and it should load the others layers without
problem.
How could I achieve this functionality?
My enviroment: Mapguide 2.5 + .NET 4.0 + Fusion viewer. My layers are stored
in SQL 2012
Thanks in advance



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/How-to-load-my-appl-with-google-maps-as-base-map-even-without-internet-conection-tp5195491.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] Adding Events In Fusion

2013-11-26 Thread Rodolfo Moreno
Hi All, 
I want to add an event to fusion, exactly in the moment when the user turns
on or off a layer. 
I saw the code sample in the COOKBOOK:
http://trac.osgeo.org/fusion/wiki/Cookbook/Fusion/Events
I followed all steps of the COOKBOOK however I get an error on the following
line: 

stateChanged: function(obj, event) { 
if (obj.legend && obj.legend.treeItem.checkBox) { 
if (obj.legend.treeItem.checkBox.checked) { 
this.triggerEvent(Fusion.Event.LEGEND_LAYER_VIS_ON, obj);
obj.show(); 
} else { 
this.triggerEvent(Fusion.Event.LEGEND_LAYER_VIS_OFF, obj); 
obj.hide(); 
} 
} 
OpenLayers.Event.stop(event, true); 
}, 

The message that I got is: "The object does not support this property or
method" 
In the debug mode I saw that effectively this object does not have the
triggerEvent method. 
I suppose that this error is due to the code sample from the cookbook is
related with older fusion versions. 

I am using the fusion version that come with MapGuide OS 2.2 
I would appreciate so much for any suggestions. Thanks in advance. 
Rodolfo 




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Adding-Events-In-Fusion-tp5091396.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Mapguide 2.2 integration with google maps

2013-03-02 Thread Rodolfo Moreno
Hi Jackie I removed my code from the index.html but I still am getting the
same error in fusion:

Uncaught TypeError: Cannot read property 'ROADMAP' of undefined
fusionSF-compressed.js:1
Fusion.Layers.Generic.OpenLayers.Class.loadMap fusionSF-compressed.js:1
Fusion.Layers.Generic.OpenLayers.Class.initialize fusionSF-compressed.js:1
Fusion.Widget.Map.OpenLayers.Class.loadMapGroup fusionSF-compressed.js:1
Fusion.Widget.Map.OpenLayers.Class.initialize fusionSF-compressed.js:1
Fusion.Lib.ApplicationDefinition.WidgetSet.OpenLayers.Class.create
fusionSF-compressed.js:1
Fusion.Lib.ApplicationDefinition.OpenLayers.Class.create
fusionSF-compressed.js:1
window.Fusion.setLoadState fusionSF-compressed.js:1
window.Fusion.scriptLoaded fusionSF-compressed.js:1
(anonymous function)

what could it be?



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Mapguide-2-2-integration-with-google-maps-tp5037537p5037997.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Mapguide 2.2 integration with google maps

2013-03-01 Thread Rodolfo Moreno
I have used the Maestro 4.0.0.6359 UI. In the layout definition of the
Maestro UI I did check in google maps street and my map has the
SEUDOMERCATOR projection. I added the google api code in the turquoise
yellow template folder (in the index.html). Next I clicked in preview map I
got the same error. What will be the missing part that I am not doing?
Best Regards,



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Mapguide-2-2-integration-with-google-maps-tp5037537p5037802.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 2.2 integration with google maps

2013-02-28 Thread Rodolfo Moreno
Hi All,
I have put google maps as base maps 2 years ago using mapguide 2.1. In that
time I followed the steps that this link recommended
(http://trac.osgeo.org/fusion/wiki/MapGuideCommercialOverlays)

Now I have tried to do the same with mapguide OS 2.2 but I think that the
way that one get the google key has changed. These are the steps that I did:
- I Put my map in seudo mercator coordinate system 3857
- I have got my google key following this link
(https://developers.google.com/maps/documentation/javascript/tutorial?hl=es#api_key)
- Next I put the following code in my index.html FUSION page (before of
calling to fusion.js )
 

With all these steps I have got the error in FUSION.js that say ROAD
undefined when try to load my index.html page.
My enviroment: window 2008 + IIS 7 + .NET 3.5 + mapguide os 2.2 (fusion
included in this version)

I hope some can help me. Thanks in advance.
Rodolfo





--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Mapguide-2-2-integration-with-google-maps-tp5037537.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Selection Fusion error

2012-10-22 Thread Rodolfo Moreno
Hi Jackie,
I think that I found the problem. When I set the name of the layer in the
map definition I have been put the name like "11". For example
layer name: "11"
layer label: "Valvula compuerta"
When I changed the name to "VC" (name must not start with number character)
then this error message dissapear.
So, In my map definition:
layer name: "VC"
layer label: "Valvula compuerta"

Thus I suppose that it is a fusion issue becasuse it error is not raised in
the  AJAX Viewer.
best regards,



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Selection-Fusion-error-tp5010082p5010356.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 Fusion error

2012-10-20 Thread Rodolfo Moreno
Hi All, 
I am getting the following error message just after I selected features. 
 
My map has 23 layers and only 3 of them are showing this error. I was
thinking that could be the datasource but in the Ajaxviewer this error is
not raised. That is why I think that the issue is in the fusion viewer. 
Additionally I have put these layers, which show the message error, in
another map (the map only has these 3 layers) and next I load it in the
fusion viewer. In this stage the message error is not showed. 

My enviroment is: 
Windows 7 + IIS + .NET + SQL2008 (here is the spatial data) + MapGuide 2.2 +
Fusion version that come with MapGuide 2.2 

Any suggestion it will be a great help. Thanks in advance



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Selection-Fusion-error-tp5010082.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] how to implement street view functionality

2011-03-17 Thread Rodolfo Moreno
Hi all, I would like to know how to implement street view functionality (like
google street view).
- do I need a special camera in order to take pictures about street scene? I
say it becuase I was reading a little about the google street view
technology and they say that are using special cameras, however I also have
seen the photo fly project of Autodesk that convert 2D photos in 3D photo
scene and in that case is not necessary the use of special cameras, but I am
not sure whether is photo scene can be used inside of a web application.  

- how do I can embed the photos or scene photos inside of a web application?
all street view solutios that I have reviewed are using adobe flash in and
some cases are using an adobe plug-in, particulary I have seen the 
http://krpano.com krpano plug-in 

- How to get the photos for a determined location? I mean that when the user
do click on a determined street location shows the photo scene of that
place. for instances, lets suppose that we have a highway of 10km
represented as a single feature then  when the user do click on the km 2 the
aplication shows the photo scene of this kilometer whether the user do click
on the km 7 the application change the photo scene of this kilometer.

whether somebody has had experience with it I ask him/her please that
suggest me some documentation o samples in order to achieve this
functionality.

Best regards,
Rodolfo

-
Rodolfo Moreno
CivilEng

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/how-to-implement-street-view-functionality-tp6181663p6181663.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: Quick Plot with Bing Maps

2011-01-12 Thread Rodolfo Moreno

Why it can not be printed through fusion or ajax viewer? It means that maybe
it's necessary to modify some part of code of fusion or ajax viewer
framework.

Regards, 

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Quick-Plot-with-Bing-Maps-tp5855625p5915950.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: We are pleased to announce our Mapguide projects iSlovenija, iObcina and iKomunala

2010-05-31 Thread Rodolfo Moreno

Congratulations, Interesting GIS solution. As of which viewer have you
started to develop the client side? Flexible layout(fusion), Web Layout or
is totally your own viewer?

GIS4CIVIL

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/We-are-pleased-to-announce-our-Mapguide-projects-iSlovenija-iObcina-and-iKomunala-tp5116870p5122263.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: EXAMPLE: Serving MapTiles directly

2010-02-25 Thread Rodolfo Moreno

Hi Pietro,
There is a part in your code where the log4net class is not preceded by #if
LOG_WITH_LOG4NET:

catch (ArgumentNullException ex)
{
log4net.ILog logger =
log4net.LogManager.GetLogger("exceptions");
logger.Error("GetMGTiles.ashx::ProcessRequest
[ArgumentNullException]", ex);

context.Response.StatusCode = (int)HttpStatusCode.NotFound;
System.Diagnostics.Trace.WriteLine(ex.ToString());
    }

Regards,

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/EXAMPLE-Serving-MapTiles-directly-tp4626665p4634954.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: EXAMPLE: Serving MapTiles directly

2010-02-25 Thread Rodolfo Moreno

Hi Pietro, 
I have tested your example: 
IE7: Sometimes some tiles don't showed up(see lostTile.jpg). 
FF35: maps (untile and tile) are not showed (see FF35_tile.jpg). 
IE8: both maps are showed correctly. 
Chrome 4: idem to FF35 

I suppose that the issues in FF35 and CHROME 4 are due to "div" attributes,
but I have not had time to fix it. Maybe you can corroborate it. 

In addition I want to tell you that in your code you do reference to
"log4net" class but it does not exists in your sample. I commented this part
in order to deploy your sample. 

I think that the IE7 issue is the most worring. 
my enviroment: w2003 and mg 2.1. 

I hope this help. 
Regards, 
http://n2.nabble.com/file/n4632851/LostTile.jpg 
http://n2.nabble.com/file/n4632851/FF35_tile.jpg 

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/EXAMPLE-Serving-MapTiles-directly-tp4626665p4632851.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: How to expand legend programatically in Fusion

2010-02-12 Thread Rodolfo Moreno

Thanks Mike for your quickly answer.
I tried your suggestion:
var myLegend = Fusion.getWidgetById('Legend');
myLedend.expandAll();

but this raises an error: expandAll() is not supported by this object.
how I must call to "expandAll()" function?
I think that first I must access to folder containing the layer information
I am interested in, but I don't how to do it.

thanks in advance.

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/How-to-expand-legend-programatically-in-Fusion-tp4561423p4562310.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] How to expand legend programatically in Fusion

2010-02-12 Thread Rodolfo Moreno

Hi all, I was trying expand the legend programatically by putting the
following code in Mg server side:
mylayer.GetExpandLegend(); but with no success.
Is there something additional that I need to put in the client side(in
fusion side)?

Regards,


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/How-to-expand-legend-programatically-in-Fusion-tp4561423p4561423.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: Map editing on web application

2010-02-08 Thread Rodolfo Moreno

Hi Kenneth, do you know of some wiki or url where I can see some sample of
editing with fusion? I saw the url that you posted but that one is a sample
with openlayers. At least I would like to know that class fusion must use
for editing.
Thanks in advance,

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Map-editing-on-web-application-tp4494040p4535220.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] Map Name as a parameter for FUSION

2010-02-03 Thread Rodolfo Moreno

Hi all, I know that a map definition can be passed as parameter in fusion
viewer(theme parameter). However in my case I would prefer to pass the
mapname as parameter. Is it possible? 
my use case is the following:
- I have a site with many pages. The user enter to the page where the fusion
viewer is loaded by default, it means without parameters. thus fusion
creates the map object (based on the mapdefinition of the appDefinition.xml)
and creates the map name too.
- Next the user could create other session layers through the task pane by
doing theming.
- Followed the user could go to other page and next come back to the page
where the fusion viewer is. In this moment the user should see the map such
as he/she left it. In this case it wuold be better load the fusion viewer
with the mapname as a parameter for both things: first because with the
mapname we can obtain the map with all modifications that the user did (e.g.
add layers) and second because we would avoid to create another map object
and hence we would consume less resources.

Regards,

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Map-Name-as-a-parameter-for-FUSION-tp4507829p4507829.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: Mapguide HOSTING

2010-02-01 Thread Rodolfo Moreno

Hi Gordon,
I gave at glance to the VPSLAND site and I could not see any plan for
mapguide hosting.
have you installed the maguide server inside of your VPSLAND windows plan ?

Regards,

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Mapguide-HOSTING-tp4479629p4494946.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: Mapguide HOSTING

2010-01-29 Thread Rodolfo Moreno

http://www.otxsystems.com/

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Mapguide-HOSTING-tp4479629p4480575.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] Selected objects and tooltips with Google (baselayer with Fusion)

2010-01-18 Thread Rodolfo Moreno

I forgot to mention that the overview map widget doesn't work well either.
The red square that is inside of the overview widget doesn't work. This is
located in the left upper corner of the overview without shows any movement.


Rodolfo Moreno wrote:
> 
> I have the same issue too.
> 
> 
> spatialminds wrote:
>> 
>> I experienced the same behavior.
>> 
>> I'm going to try installing the latest version of fusion tomorrow.
>> 
>> On Jan 17, 2010 1:41 PM, "pcardinal" 
>> wrote:
>> 
>> With the Fusion viewer, selected objets do not appear in the Selection
>> Window and tooltips are not displayed when the baselayer is Google.
>> Everything is ok when the baselayer is a Mapguide layer. Is it a bug?
>> Release: MapGuideOpenSource-2.1.0.4283-Final OS: Windows Browser: Firefox
>> 3.5.6 and Internet Explorer 8
>> --
>> View this message in context: Selected objects and tooltips with Google
>> (baselayer with
>> Fusion)<http://n2.nabble.com/Selected-objects-and-tooltips-with-Google-baselayer-with-Fusion-tp4410207p4410207.html>
>> Sent from the MapGuide Users mailing list
>> archive<http://n2.nabble.com/MapGuide-Users-f1803227.html>at
>> Nabble.com.
>> 
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> 
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Selected-objects-and-tooltips-with-Google-baselayer-with-Fusion-tp4410207p4414550.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] Selected objects and tooltips with Google (baselayer with Fusion)

2010-01-18 Thread Rodolfo Moreno

I have the same issue too.


spatialminds wrote:
> 
> I experienced the same behavior.
> 
> I'm going to try installing the latest version of fusion tomorrow.
> 
> On Jan 17, 2010 1:41 PM, "pcardinal"  wrote:
> 
> With the Fusion viewer, selected objets do not appear in the Selection
> Window and tooltips are not displayed when the baselayer is Google.
> Everything is ok when the baselayer is a Mapguide layer. Is it a bug?
> Release: MapGuideOpenSource-2.1.0.4283-Final OS: Windows Browser: Firefox
> 3.5.6 and Internet Explorer 8
> --
> View this message in context: Selected objects and tooltips with Google
> (baselayer with
> Fusion)<http://n2.nabble.com/Selected-objects-and-tooltips-with-Google-baselayer-with-Fusion-tp4410207p4410207.html>
> Sent from the MapGuide Users mailing list
> archive<http://n2.nabble.com/MapGuide-Users-f1803227.html>at
> Nabble.com.
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Selected-objects-and-tooltips-with-Google-baselayer-with-Fusion-tp4410207p4414249.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] Markup perpendicular

2010-01-06 Thread Rodolfo Moreno
t;//Get its outermost coordinates 
>>>> List outerCoords =
>>>> GetOuterCoordinates(matchGeom);
>>>> if (outerCoords.Count > 0)
>>>> {
>>>> foreach (MgCoordinate coord in outerCoords)
>>>> {
>>>> MgPoint testPoint = geomFact.CreatePoint(coord);   
>>>>
>>>>
>>>>//If touches or within our test circle, 
>>>> record this result
>>>> if (testCircle.Touches(testPoint) ||
>>>> testCircle.Contains(testPoint))
>>>> {
>>>> 
>>>> double dist =
>>>> mapCs.MeasureEuclideanDistance(coord, geomFact.CreateCoordinateXY(x,
>>>> y));
>>>> 
>>>> ClosestFeature result = new ClosestFeature();
>>>> result.Distance = dist;
>>>> result.ClosestVertex = coord;
>>>> result.FeatureId = new
>>>> MgInt32Property("FeatId", featureId);
>>>> 
>>>> matches.Add(distance, result);
>>>> }
>>>> }  
>>>> }
>>>> }
>>>>
>>>>//We have at least one result, we can stop iterating.
>>>>if (matches.Count > 0)
>>>>break;
>>>>
>>>>//Otherwise, inflate our test circle.
>>>> iterations++;
>>>> distance += incrementDist;
>>>> } 
>>>>while (matches.Count == 0 && iterations < maxIterations);
>>>> 
>>>>//If there are results, return the first one.
>>>> if (matches.Count > 0)
>>>> {
>>>>  return matches.Values[0]; //First entry is the closest since
>>>> entries are sorted by distance.
>>>> }
>>>>
>>>> return null; //Couldn't find a result after maxIteration attempts,
>>>> return null.
>>>> }
>>>> 
>>>> //MgInsertFeatures addThis(String geomCol, MgGeometry geom)
>>>> //{
>>>> //MgAgfReaderWriter agfReaderWriter = new MgAgfReaderWriter();
>>>> //MgPropertyCollection PropertyCollection = new
>>>> MgPropertyCollection();
>>>> ////add geometry
>>>> ////Response.Write(road.GeometryType);
>>>> //MgByteReader geometryByteReader =
>>>> agfReaderWriter.Write(geom);
>>>> //MgGeometryProperty geometryProperty = new
>>>> MgGeometryProperty(geomCol, geometryByteReader);
>>>> //PropertyCollection.Add(geometryProperty);
>>>> 
>>>> //MgInsertFeatures insertFeatures = new
>>>> MgInsertFeatures("test", PropertyCollection);
>>>> //return insertFeatures;
>>>> //}
>>>> 
>>>> //MgGeometry shortGeometry(MgPoint click, MgGeometry closest,
>>>> double joinDist)
>>>> //{
>>>> //MgGeometryFactory GF = new MgGeometryFactory();
>>>> //joinDist = joinDist + 0.001;
>>>> //MgCoordinate arcPt1 =
>>>> GF.CreateCoordinateXY(click.Coordinate.X + joinDist, 
>>>> click.Coordinate.Y);
>>>> 
>>>> //MgCoordinate arcPt2 =
>>>> GF.CreateCoordinateXY(click.Coordinate.X - joinDist, 
>>>> click.Coordinate.Y);
>>>> //MgCoordinate arcPt3 =
>>>> GF.CreateCoordinateXY(click.Coordinate.X, click.Coordinate.Y +
>>>> joinDist);
>>>> //MgCoordinate arcPt4 =
>>>> GF.CreateCoordinateXY(click.Coordinate.X, click.Coordinate.Y -
>>>> joinDist);
>>>> //MgArcSegment newGeom =
>>>> GF.CreateArcSegment(arcPt1,arcPt2,arcPt3);
>>>> //MgArcSegment newGeom1 = GF.CreateArcSegment(arcPt2, arcPt1,
>>>> arcPt4);
>>>> 
>>>> //MgCurveSegmentCollection myCurve = new
>>>> MgCurveSegmentCollection();
>>>> //myCurve.Add(newGeom);
>>>> //myCurve.Add(newGeom1);
>>>> 
>>>> //MgCurvePolygon myPoly =
>>>> GF.CreateCurvePolygon(GF.CreateCurveRing(myCurve), null);
>>>> 
>>>> //Response.Write(closest.Intersects(myPoly));
>>>> 
>>>> //return myPoly;
>>>> //   
>>>> //Response.Write(myPoly.Intersection(closest).Centroid.Coordinate.X + "
>>>> " + myPoly.Intersection(closest).Centroid.Coordinate.Y);
>>>> //}
>>>> 
>>>> void GetRequestParameters()
>>>> {
>>>> if (Request.HttpMethod == "POST")
>>>> GetParameters(Request.Form);
>>>> else
>>>> GetParameters(Request.QueryString);
>>>> }
>>>> 
>>>> void GetParameters(NameValueCollection parameters)
>>>> {
>>>> mapName = GetParameter(parameters, "MAPNAME");
>>>> sessionID = GetParameter(parameters, "SESSION");
>>>> x = GetDouble(parameters, "x0");
>>>> y = GetDouble(parameters, "y0");
>>>> }
>>>> String GetParameter(NameValueCollection parameters, String name)
>>>> {
>>>> String strval = parameters[name];
>>>> if (null == strval)
>>>> return "";
>>>> 
>>>> return strval.Trim();
>>>> }
>>>> 
>>>> double GetDouble(NameValueCollection parameters, String name)
>>>> {
>>>> double strval = Convert.ToDouble(parameters[name]);
>>>> if (null == strval)
>>>> return 0;
>>>> 
>>>> return strval;
>>>> }
>>>> 
>>>> }
>>>> 
>>>> 
>>> 
>>> 
>>  http://n2.nabble.com/file/n4258006/vertexIntersection.jpg
>> vertexIntersection.jpg 
>> 
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Markup-perpendicular-tp4253574p4261666.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] how to customize legend fusion widget

2009-11-20 Thread Rodolfo Moreno

Hi all, before all I want to mention that this post I will write in the
fusion forum too.
my featureclass just has two fields: spatial and key(int32 type) field. my
application receives a datareader from another application which consists of
keys and values(int or string) in order to do the theming. Then the
applytheme method create a new  element for each feature. As a
result if my featureclass has 100 features then the legend widget shows 100
classes too. It means that the legend could show 100 classes with the same
color and legend label. What I would like to do is that the legend widget
can do the clasification according to the given values by the
server(mapguide).
I was reviewing the legend.js but I don't have a clear idea how and where I
must modify it. the most likely is that I must modify other files (I was
debbuging with firebug).
My main idea is to get the images and values that were sent by the server
and as of it to start to do the classification.
Finally I don't know whether by changing the js files will be enough to
achieve this goal or maybe it's necesary to add .NET(I don't know PHP) code
that interact with the MAPAGENT.fcgi(i.e. GETLEGENDIMAGE and
GETLEGENDLABELS)

any help will be well appreciated,
Regards,

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/how-to-customize-legend-fusion-widget-tp4038937p4038937.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] Symbolization is not well-represented in legend

2009-10-30 Thread Rodolfo Moreno

Sorry I forget to mention that the layer with this issue is called newplaces
in the first post and newplaces1 in the second post.
Regards,

Rodolfo Moreno wrote:
> 
> The hospital layer (blue rectangle with a "H" inside). In the map is
> displayed correctly however in the legend just a blue rectangle is showed.
> In this case the graphic symbol is a PATH. When the graphic symbol is a
> IMAGE then both the map and the legend are showed correctly (see the
> attached image)
> 
> Regards,
> 
> 
> zspitzer wrote:
>> 
>> which layer is the issue in the legend?
>> 
>> On Fri, Oct 30, 2009 at 4:45 AM, Rodolfo Moreno
>> wrote:
>> 
>>>
>>> Hi All, I have been testing the symbolization in MGOS 2.0.2 using the
>>> new
>>> CompositeTypeStyle TAG added in layerdefinition 1.1.0. So when I
>>> displayed
>>> the map with this new symbolization I realize that the symbols are OK in
>>> the
>>> map but not in the legend.
>>> I have attached an image to see what I am saying.
>>>
>>> has anyone seen this issue?
>>> http://n2.nabble.com/file/n3914416/HospitalSymbol.jpg
>>>
>>> -
>>> Rodolfo Moreno
>>> CivilEng
>>>
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/Symbolization-is-not-well-represented-in-legend-tp3914416p3914416.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
>>>
>> 
>> 
>> 
>> -- 
>> Zac Spitzer -
>> http://zacster.blogspot.com
>> +61 405 847 168
>> 
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> 
>  http://n2.nabble.com/file/n3920348/hospitalSymbol.jpg 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Symbolization-is-not-well-represented-in-legend-tp3914416p3920365.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] Symbolization is not well-represented in legend

2009-10-30 Thread Rodolfo Moreno

The hospital layer (blue rectangle with a "H" inside). In the map is
displayed correctly however in the legend just a blue rectangle is showed.
In this case the graphic symbol is a PATH. When the graphic symbol is a
IMAGE then both the map and the legend are showed correctly (see the
attached image)

Regards,


zspitzer wrote:
> 
> which layer is the issue in the legend?
> 
> On Fri, Oct 30, 2009 at 4:45 AM, Rodolfo Moreno
> wrote:
> 
>>
>> Hi All, I have been testing the symbolization in MGOS 2.0.2 using the new
>> CompositeTypeStyle TAG added in layerdefinition 1.1.0. So when I
>> displayed
>> the map with this new symbolization I realize that the symbols are OK in
>> the
>> map but not in the legend.
>> I have attached an image to see what I am saying.
>>
>> has anyone seen this issue?
>> http://n2.nabble.com/file/n3914416/HospitalSymbol.jpg
>>
>> -
>> Rodolfo Moreno
>> CivilEng
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/Symbolization-is-not-well-represented-in-legend-tp3914416p3914416.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
>>
> 
> 
> 
> -- 
> Zac Spitzer -
> http://zacster.blogspot.com
> +61 405 847 168
> 
> ___________
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 
http://n2.nabble.com/file/n3920348/hospitalSymbol.jpg 

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Symbolization-is-not-well-represented-in-legend-tp3914416p3920348.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] Symbolization is not well-represented in legend

2009-10-29 Thread Rodolfo Moreno

Hi All, I have been testing the symbolization in MGOS 2.0.2 using the new
CompositeTypeStyle TAG added in layerdefinition 1.1.0. So when I displayed
the map with this new symbolization I realize that the symbols are OK in the
map but not in the legend.
I have attached an image to see what I am saying.

has anyone seen this issue?
http://n2.nabble.com/file/n3914416/HospitalSymbol.jpg 

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Symbolization-is-not-well-represented-in-legend-tp3914416p3914416.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-26 Thread Rodolfo Moreno

why don't you insert sql features using SQL spatial scripts?

Regards,


Gunter Becker wrote:
> 
> Is there at least anyone who had successfully added features to SQL Server
> 2008 Spatial with the MapGuide API. What could cause problems when adding
> features to the database?
> 
> I think there was another thread (
> http://n2.nabble.com/MSSqlServer-Spatial-problem-tt3148712.html#a3154109
> MSSqlServer Spatial problem ) that describes a similar problem.
> But this problem had to do with 3-dimensional point what is not what i am
> using. I am using x,y-points.
> 
> Any ideas?
> 
> Gunter 
> 
> 
> 
> Gunter Becker wrote:
>> 
>> Hi, 
>> 
>> i'm trying to add features to an existing FeatureSource via MapGuide API.
>> I've created a new schema with Autodesk Map 2010, created some polygons,
>> created my feature source and layer in MapGuide Studio, inserted the
>> layer in my map and it shows up fine.
>> 
>> OK, displaying the features works fine. But when trying to add some
>> features via the digitize function and my serverside code nothing
>> happens. It seemes that the code works fine, cause it is the same code
>> that I use with sdf feature sources and the code throws no error in debug
>> mode. The "UpdateFeatures"-Methode seems to work but when looking into
>> the SQL Server table there is no entry and therefore no object on the
>> map. When logging SQL-Statements with SQL Profiler no activities were
>> logged.
>> 
>> Only thing that works is deleting an existing map from the featuresource.
>> So maybe it has to do something with the coordinatesystem? But as far as
>> I understand the geometry-column of my databasetable doesn't need a
>> coordinatesystem assigned!
>> 
>> Someone who had same problem? Any ideas?
>> 
>> Thanks, Gunter
>> 
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Add-features-to-SQL-Server-Spatial-tp3878130p3894858.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] Adding layer programatically doesnt change legend in Fusion 2

2009-10-16 Thread Rodolfo Moreno

Replaces javascript code: 
   Refresh();
by:
  currentMap = Fusion.getMapById('Map');
  currentMap.reloadMap();

Regards


ary_s wrote:
> 
> Hii group,
> 
> I'm working on Layer manipulation in Fusion. When i add a layer, the
> features are available on the map but not in the legend. In ajax viewer
> its has no problem. Do I need to refresh the legend pane every time i add
> new layer? If so, how to refresh it?
> 
> 
> many thanks
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Adding-layer-programatically-doesnt-change-legend-in-Fusion-2-tp3834244p3836003.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] spanish loc alization / localización español

2009-08-13 Thread Rodolfo Moreno

Hi All, I do not know whether you could do that locale='es' works well. In my
case I did it by creating strings.json and strings.php such as you did but
also I needed to add es.js file inside fusion\lib\OpenLayers\Lang folder in
order to work correctly.
I am using FUSION 1.1 with MGOS 2.0.2. 
do you have a different enviroment(Fusion 1.1 and MGOS 2.0.2) that me? 
Is different the setting language in the FUSION 2 + MG2.1 beta enviroment?

Hi Jose I would be interested in your Strings as well, thanks in advance.

Regards,


Jose Cerrejon wrote:
> 
> Sure, I'll share my string completely translated with all who want it.
> 
> Thks.
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/spanish-localization---localizaci%C3%B3n-espa%C3%B1ol-tp3350983p3439337.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] Highlight selections problem

2009-08-06 Thread Rodolfo Moreno

Hi Jo,
I thinks that your problem is with your database. does your table containing
the geometries have primary key and spatial indexs? 

regards,


Jo Cook wrote:
> 
> Dear All,
> 
> I have the fairly common problem of wanting to pick a feature from a
> database and have the map automatically zoom to the correct location and
> highlight the feature. I am doing this in php and javascript (MGOS 2.1
> with bundled apache configuration), following some extremely helpful code
> snippets I found in the forum. Thanks!
> 
> I have now got stuck at the point where a lot of other people seem to get
> stuck, namely that the map zooms to the correct location and shows in the
> status bar that one feature is selected, but the feature doesn't show up
> as highlighted. I understand, from trawling the forum, that I need to save
> and refresh in order to highlight the feature.
> 
> The only problem is that I have tried many combinations of map save and
> selection save, and have looked in the api documentation, and tried
> figuring out where in my code it needs to go, and nothing seems to work,
> and now I'm horribly confused as to which of these I am supposed to be
> using. Am I saving a selection, or saving a map? 
> 
> This is the relevant section of php:
> 
>   $resourceSrvc =
> $siteConn->CreateService(MgServiceType::ResourceService);
>   $map = new MgMap();
>   $resId = new
> MgResourceIdentifier("Library://maps/map1.MapDefinition");
>   $mapName = $resId->GetName();
>   $map->Create($resourceSrvc, $resId, $mapName);
> 
>   
>   $layers = $map->GetLayers();
>   $selLayer = $layers->GetItem($SMAlayer);
>   $featureResourceId = new
> MgResourceIdentifier($selLayer->GetFeatureSourceId());
>   $featureClassName = $selLayer->GetFeatureClassName();
>   
>  
>   $filter = "site_code = '$SMAlocation'"; 
>   
>   $queryOptions = new MgFeatureQueryOptions(); 
>   $queryOptions->SetFilter($filter); 
>  
>   $featureSrvc =
> $siteConn->CreateService(MgServiceType::FeatureService);
>   $featureReader = $featureSrvc->SelectFeatures($featureResourceId,
> $featureClassName, $queryOptions);
>
>   $selection = new MgSelection($map);
>   $selection->AddFeatures($selLayer, $featureReader, 1);
>   $selectionXml = $selection->ToXml();
>   $selection->Save($resourceSrvc, $mapName);
> 
> Then this is the javascript
> 
> 
> 
> var initTimer;
> 
> function InitDocument()
>   {
>  //wait for map to be fully initialized
>  //then call the initial function 
>initTimer = setInterval(DelayedInit, 200); 
>
>}
>  
>  function DelayedInit() {
> try {
>   if(parent.ViewerFrame.mapFrame.mapInit) {
>clearInterval(initTimer);
>parent.ViewerFrame.mapFrame.ZoomToView(<?php echo $centerX; ?>,
> <?php echo $centerY; ?>, 2000, true);
>   var selectionXml = '<?php echo $selectionXml; ?>';
>   
> parent.ViewerFrame.mapFrame.SetSelectionXML(selectionXml);
>   parent.ViewerFrame.mapFrame.ExecuteMapAction(1);
>   parent.ViewerFrame.mapFrame.Refresh();
>   
> }
> }
>  catch(e) {}
>  }
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> This doesn't work, but doesn't seem to throw up any errors. Any help would
> be very much appreciated! To reiterate, I have searched the documentation
> and forums, but remain confused...
> 
> Thanks
> 
> Jo
> -- 
> -
> Joanne Cook
> Senior IT Support and Development
> Oxford Archaeology (North)
> 01524 880212
> http://thehumanjourney.net
> 
> 
> --
> Files attached to this email may be in ISO 26300 format (OASIS Open
> Document Format). If you have difficulty opening them, please visit
> http://iso26300.info for more information.
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Highlight-selections-problem-tp3398199p3398989.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] Maptip's wrong position

2009-07-24 Thread Rodolfo Moreno

Finally, I have already found out why the maptip is showing up in wrong
position. After of a long time I tried to solve it again. The problem is
that the SQLView must have spatial indexs as well. But it's not possible
because SQL asks for primary key in order to create the spatial indexs.
Therefore SQLViews with inner join always will have this problem. 

Regards, 


Rodolfo Moreno wrote:
> 
> Hi All, 
> maptip is showing up in the wrong position for SQL2008 layers which are
> SQLViews with inner join.
>  http://n2.nabble.com/file/n3143092/maptipIssue1.jpg 
> The red circle(upper left corner of the maptip rectangle) in the image
> indicates the mouse pointer. 
> however with SQLviews without inner join maptip is working correctly. 
> I have tested with MG 2.0.2 + AJAX viewer and FUSION 1.1 and also with  MG
> 2.1 + AJAX viewer and FUSION 2. In all cases I can see the same issue.
> 
> Any idea about it?
> 
> Regards,
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Maptip%27s-wrong-position-tp3143092p3323061.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] Maptip's wrong position

2009-06-23 Thread Rodolfo Moreno

Hi All, 
maptip is showing up in the wrong position for SQL2008 layers which are
SQLViews with inner join.
http://n2.nabble.com/file/n3143092/maptipIssue1.jpg 
The red circle(upper left corner of the maptip rectangle) in the image
indicates the mouse pointer. 
however with SQLviews without inner join maptip is working correctly. 
I have tested with MG 2.0.2 + AJAX viewer and FUSION 1.1 and also with  MG
2.1 + AJAX viewer and FUSION 2. In all cases I can see the same issue.

Any idea about it?

Regards,

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Maptip%27s-wrong-position-tp3143092p3143092.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] Missing sessionId in FUSION 2 during the first loading

2009-06-17 Thread Rodolfo Moreno

Hi All, my thememain.aspx page which is inside of the taskpane widget rises
an error in the first time that the application is loaded because Fusion 2
is not sending the sessionId. However the itself page works appropiately
when I select it from the TaskContextMenu, after of the first loading. 
This same application works well with Fusion 1.x. 

my current enviroment: W2K3 + IIS6 + MGOS 2.1 + FUSION 2 
my old enviroment where my application works well was: W2K3 + IIS6 + MGOS
2.0.2 + FUSION 1.X 

Any help would be appreaciated.


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Missing-sessionId-in-FUSION-2-during-the-first-loading-tp3093917p3093917.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


Re: [mapguide-users] Trying to add another class definition to a SDF

2009-05-21 Thread Rodolfo Moreno

Jackie and how can I use the FDO API into Magguide applications? do you get
some code sample about it?
Regards,


Jackie Ng wrote:
> 
> MapGuide does not expose FDO's IApplySchema command. You will have to use
> the FDO API directly if you want to modify existing schemas.
> 
> - Jackie
> 
> 
> Jamo wrote:
>> 
>> I've been trying this code to add another class definition to a SDF, it
>> only adds a new classDefinition when the users SDF already exists is
>> this possible, everything seems to run through fine  but no new
>> class..
>> 
>>   if (ResourceService.ResourceExists(dataSourceId) == false)
>>   {
>> 
>> //create Feature Source
>> MgClassDefinition myClassDef = new MgClassDefinition();
>> myClassDef.SetName(layerName);
>> myClassDef.SetDescription(layerDesc);
>> 
>> //TODO : make SHPGEOM a Variable...
>> myClassDef.SetDefaultGeometryPropertyName("GEOM");
>> 
>> //Set KEY Property
>> MgDataPropertyDefinition prop = new
>> MgDataPropertyDefinition("FeatId");
>> prop.SetDataType(MgPropertyType.Int32);
>> prop.SetAutoGeneration(true);
>> prop.SetReadOnly(true);
>> myClassDef.GetIdentityProperties().Add(prop);
>> myClassDef.GetProperties().Add(prop);
>> 
>> //Set geometry property
>> MgGeometricPropertyDefinition geomProp = new
>> MgGeometricPropertyDefinition("GEOM");
>> geomProp.SetGeometryTypes(MgFeatureGeometricType.Curve);
>> myClassDef.GetProperties().Add(geomProp);
>> 
>> //Create the schema
>> MgFeatureSchema schema = new MgFeatureSchema("Default", "Default
>> Feature Schema");
>> schema.GetClasses().Add(myClassDef);
>> 
>> MgCreateSdfParams sdfParams = new MgCreateSdfParams("MGA-56
>> (GDA94 / MGA zone 56)", map.GetMapSRS(), schema);
>> FeatureService.CreateFeatureSource(dataSourceId, sdfParams);
>> 
>>   }
>>   else
>>   {
>> //create Feature Source
>> MgClassDefinition myClassDef = new MgClassDefinition();
>> myClassDef.SetName(layerName);
>> myClassDef.SetDescription(layerDesc);
>> 
>> //TODO : make SHPGEOM a Variable...
>> myClassDef.SetDefaultGeometryPropertyName("GEOM");
>> 
>> //Set KEY Property
>> MgDataPropertyDefinition prop = new
>> MgDataPropertyDefinition("FeatId");
>> prop.SetDataType(MgPropertyType.Int32);
>> prop.SetAutoGeneration(true);
>> prop.SetReadOnly(true);
>> myClassDef.GetIdentityProperties().Add(prop);
>> myClassDef.GetProperties().Add(prop);
>> 
>> //Set geometry property
>> MgGeometricPropertyDefinition geomProp = new
>> MgGeometricPropertyDefinition("GEOM");
>> geomProp.SetGeometryTypes(MgFeatureGeometricType.Curve);
>> myClassDef.GetProperties().Add(geomProp);
>> 
>> FeatureService.DescribeSchema(dataSourceId,
>> "Default")[0].GetClasses().Add(myClassDef);
>>   }
>> 
>> 
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Trying-to-add-another-class-definition-to-a-SDF-tp2950536p2952391.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] what does maestro version is need for MGOS 2.1?

2009-04-29 Thread Rodolfo Moreno

Thanks Kenneth. It seems that the problem is in the mapguide server because
when I wanted to set a new resource using the mapagent
(http://localhost/mapguide/mapagent/index.html) I got the same error.

However the GET functions whether are working well. For example
SETRESOURCE is not working 
GETRESOURCECONTENT is working properly

please, could give me some clue about it.

Regards,


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> Any version should work, newest is prefered.
> 
> There is a new version of the LayerDefinition which is not yet supported,
> but unless you manage to make one of those, everything else should work 
> fine.
> 
> I just tested on MGE 2010, which should be close to 2.1, and everything 
> works fine there.
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> Rodolfo Moreno skrev:
>> Hi All,
>> I have installed the MGOS 2.1 (unreleased) in my test enviroment (a
>> virtual
>> machine with win 2003 SP2 + IIS6). 
>> The installer comes with the maestro 1.0.9.2926 version. Then I accessed
>> to
>> mapguide server using this maestro versiona and I could see the sheybogan
>> sample that I had loaded previously through the mapguide admin. As soon I
>> wanted to create or edit dataconnection, layerdefinition or
>> mapdefinition,
>> "the visual studio just in time debugger" is raised and next an error
>> message "an error occured while saving. the underlying connection was
>> closed. un expected error occurred on a receive".
>> I have reviewed the mapguide server log error and I have found anything.
>> Which is the suitable maestro version in order to access to MGOS 2.1?
>>
>> Another thing I could display the sheyboygan sample data using the BASIC
>> LAYOUT, however I could not display it with FLEXIBLE LAYOUT. for the
>> flexible layout case the browser shows the layout with empty
>> widgets(without
>> map). the map widget is waiting the response from the server all the
>> time.
>>
>> Regards,
>> RODOLFO
>>
>> -----
>> Rodolfo Moreno
>> CivilEng
>>
>>   
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/what-does-maestro-version-is-need-for-MGOS-2.1--tp2737148p2741904.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] what does maestro version is need for MGOS 2.1?

2009-04-28 Thread Rodolfo Moreno

Hi All,
I have installed the MGOS 2.1 (unreleased) in my test enviroment (a virtual
machine with win 2003 SP2 + IIS6). 
The installer comes with the maestro 1.0.9.2926 version. Then I accessed to
mapguide server using this maestro versiona and I could see the sheybogan
sample that I had loaded previously through the mapguide admin. As soon I
wanted to create or edit dataconnection, layerdefinition or mapdefinition,
"the visual studio just in time debugger" is raised and next an error
message "an error occured while saving. the underlying connection was
closed. un expected error occurred on a receive".
I have reviewed the mapguide server log error and I have found anything.
Which is the suitable maestro version in order to access to MGOS 2.1?

Another thing I could display the sheyboygan sample data using the BASIC
LAYOUT, however I could not display it with FLEXIBLE LAYOUT. for the
flexible layout case the browser shows the layout with empty widgets(without
map). the map widget is waiting the response from the server all the time.

Regards,
RODOLFO

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/what-does-maestro-version-is-need-for-MGOS-2.1--tp2737148p2737148.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


Re: [mapguide-users] FDO toolbox help

2009-04-06 Thread Rodolfo Moreno

Thanks Jackie, I will be waiting for your answer.


My energies are focused on MapGuide right now, but I take a look at this when I 
have time.

- Jackie


Hi Jackie, I am trying to use this tool in order to convert shp to sql2008.
I wanted to connect to sql2008 database but with no success. 
I have attached a screenshot with the error that I got it.
I am using the 0.7.1.2118 version.
could you help me with it?

thanks in advance,






-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/FDO-toolbox-help-tp2572209p2595745.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] FDO toolbox help

2009-04-01 Thread Rodolfo Moreno

Hi Jackie, I am trying to use this tool in order to convert shp to sql2008.
I wanted to connect to sql2008 database but with no success. 
I have attached a screenshot with the error that I got it.
I am using the 0.7.1.2118 version.
could you help me with it?

thanks in advance,


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/FDO-toolbox-help-tp2572209p2572209.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] SQL 2008 Geographic data type can't be selected

2009-03-13 Thread Rodolfo Moreno

In sql 2008 there are two types of spatial data: Geometry (flat Earth model)
and Geography (ellipsoidal model).
The issue is with geography data type. The features are displayed but these
can't be selected.
Regards,  


Martin Morrison wrote:
> 
> Maybe I am misunderstanding what the issue is.  Early on you stated:
> 
> " for the case of geographic data type the 
> selection of the features is not possible."
> 
> So what exactly is the issue that you are having?
> 
> Martin
> 
> -Original Message-
> From: mapguide-users-boun...@lists.osgeo.org
> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
> Moreno
> Sent: Friday, March 13, 2009 11:18 AM
> To: mapguide-users@lists.osgeo.org
> Subject: RE: [mapguide-users] SQL 2008 Geographic data type can't be
> selected
> 
> 
> That's right. geometry type in sql 2008 is working correctly. It means you
> can display and select the features.
> 
> 
> Martin Morrison wrote:
>> 
>> I just want to note that I am using SQL 2008 to display geometry without
>> any issues...
>> 
>> Martin
>> 
>> 
>> 
>> -----Original Message-
>> From: mapguide-users-boun...@lists.osgeo.org
>> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
>> Moreno
>> Sent: Friday, March 13, 2009 10:55 AM
>> To: mapguide-users@lists.osgeo.org
>> Subject: RE: [mapguide-users] SQL 2008 Geographic data type can't be
>> selected
>> 
>> 
>> Hi all,
>> I was reviewing others theards with relation to it.
>> http://n2.nabble.com/Layer%27s-selection-Problem-td2352146.html
>> It seems to be an issue with geography data type in sql 2008. I would
>> like
>> to post a ticket but I don't know exactly in where is the error in
>> mapguide
>> or FDO.
>> Any opinion?
>> Regards
>> 
>> 
>> Rodolfo Moreno wrote:
>>> 
>>> Yes, my table has primary key (as integer) and spatial index with
>>> geographic grid.
>>> 
>>> Regards,
>>> 
>>> 
>>> Dave Wilson wrote:
>>>> 
>>>> Can you ensure your table has a primary key? I'm pretty sure it's
>>>> required.
>>>> 
>>>> Dave
>>>> 
>>>> -Original Message-
>>>> From: mapguide-users-boun...@lists.osgeo.org
>>>> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
>>>> Moreno
>>>> Sent: Friday, March 06, 2009 4:01 PM
>>>> To: mapguide-users@lists.osgeo.org
>>>> Subject: RE: [mapguide-users] SQL 2008 Geographic data type can't be
>>>> selected
>>>> 
>>>> 
>>>> Hi Andrei,
>>>> sorry for my delay.
>>>> I have created a new sql table with geography sql type and I added two
>>>> simple polygons.
>>>> here is my sql script:
>>>> 
>>>> insert into test1
>>>> VALUES (1,geography::STGeomFromText('POLYGON ((0 0 ,1 0,1 1 , 0 1, 0 0
>>>> ))',
>>>> 4326) )
>>>>  
>>>> insert into test1
>>>> VALUES (2,geography::STGeomFromText('POLYGON ((1 1 ,3 1,2 3 , 1 1 ))',
>>>> 4326)
>>>> )
>>>> 
>>>> Next I have displayed the features with the ajax viewer of the MGOS (I
>>>> am
>>>> using 2.0.1 version) and the result is the same.
>>>> It means that the features are shown but these can't be selected.
>>>> 
>>>> I guess that it is an issue of MGOS. have you ever had success with it?
>>>> 
>>>> Regards,
>>>> 
>>>> 
>>>> Rodolfo Moreno wrote:
>>>>> 
>>>>> Thanks Andrei, I am goin to try your suggestion. 
>>>>> 
>>>>> 
>>>>> miansi wrote:
>>>>>> 
>>>>>> Hello Rodolfo,
>>>>>> 
>>>>>> Make sure you set SRID while populating SQL:
>>>>>> 
>>>>>> ...
>>>>>> , [Geo] = GEOMETRY::STGeomFromText([import].[Geo], @SRID)
>>>>>> ...
>>>>>> 
>>>>>> Base on your map (WGS 84) your SRID should be something like 4326
>>>>>> 
>>>>>> 
>>>>>> Regards,
>>>>>> 
>>>>>> Andrei
>>>>>> 
>>>>>> 
>>>>>> -Original Message-
>>>>>> From: mapguide-users-

RE: [mapguide-users] SQL 2008 Geographic data type can't be selected

2009-03-13 Thread Rodolfo Moreno

That's right. geometry type in sql 2008 is working correctly. It means you
can display and select the features.


Martin Morrison wrote:
> 
> I just want to note that I am using SQL 2008 to display geometry without
> any issues...
> 
> Martin
> 
> 
> 
> -Original Message-
> From: mapguide-users-boun...@lists.osgeo.org
> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
> Moreno
> Sent: Friday, March 13, 2009 10:55 AM
> To: mapguide-users@lists.osgeo.org
> Subject: RE: [mapguide-users] SQL 2008 Geographic data type can't be
> selected
> 
> 
> Hi all,
> I was reviewing others theards with relation to it.
> http://n2.nabble.com/Layer%27s-selection-Problem-td2352146.html
> It seems to be an issue with geography data type in sql 2008. I would like
> to post a ticket but I don't know exactly in where is the error in
> mapguide
> or FDO.
> Any opinion?
> Regards
> 
> 
> Rodolfo Moreno wrote:
>> 
>> Yes, my table has primary key (as integer) and spatial index with
>> geographic grid.
>> 
>> Regards,
>> 
>> 
>> Dave Wilson wrote:
>>> 
>>> Can you ensure your table has a primary key? I'm pretty sure it's
>>> required.
>>> 
>>> Dave
>>> 
>>> -Original Message-
>>> From: mapguide-users-boun...@lists.osgeo.org
>>> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
>>> Moreno
>>> Sent: Friday, March 06, 2009 4:01 PM
>>> To: mapguide-users@lists.osgeo.org
>>> Subject: RE: [mapguide-users] SQL 2008 Geographic data type can't be
>>> selected
>>> 
>>> 
>>> Hi Andrei,
>>> sorry for my delay.
>>> I have created a new sql table with geography sql type and I added two
>>> simple polygons.
>>> here is my sql script:
>>> 
>>> insert into test1
>>> VALUES (1,geography::STGeomFromText('POLYGON ((0 0 ,1 0,1 1 , 0 1, 0 0
>>> ))',
>>> 4326) )
>>>  
>>> insert into test1
>>> VALUES (2,geography::STGeomFromText('POLYGON ((1 1 ,3 1,2 3 , 1 1 ))',
>>> 4326)
>>> )
>>> 
>>> Next I have displayed the features with the ajax viewer of the MGOS (I
>>> am
>>> using 2.0.1 version) and the result is the same.
>>> It means that the features are shown but these can't be selected.
>>> 
>>> I guess that it is an issue of MGOS. have you ever had success with it?
>>> 
>>> Regards,
>>> 
>>> 
>>> Rodolfo Moreno wrote:
>>>> 
>>>> Thanks Andrei, I am goin to try your suggestion. 
>>>> 
>>>> 
>>>> miansi wrote:
>>>>> 
>>>>> Hello Rodolfo,
>>>>> 
>>>>> Make sure you set SRID while populating SQL:
>>>>> 
>>>>> ...
>>>>> , [Geo] = GEOMETRY::STGeomFromText([import].[Geo], @SRID)
>>>>> ...
>>>>> 
>>>>> Base on your map (WGS 84) your SRID should be something like 4326
>>>>> 
>>>>> 
>>>>> Regards,
>>>>> 
>>>>> Andrei
>>>>> 
>>>>> 
>>>>> -Original Message-
>>>>> From: mapguide-users-boun...@lists.osgeo.org
>>>>> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
>>>>> Moreno
>>>>> Sent: Monday, March 02, 2009 9:15 AM
>>>>> To: mapguide-users@lists.osgeo.org
>>>>> Subject: [mapguide-users] SQL 2008 Geographic data type can't be
>>>>> selected
>>>>> 
>>>>> 
>>>>> I have could select features from geometric data type (sql 2008 as
>>>>> data
>>>>> source) however, for the case of geographic data type the selection of
>>>>> the
>>>>> features is not possible.
>>>>> The error shown in the log is: "sys.geometry is incompatible with
>>>>> sys.geography"
>>>>> The map that contains this layer is set as WGS 84.
>>>>> 
>>>>> any help will be appreciated, thanks
>>>>> 
>>>>> -
>>>>> Rodolfo Moreno
>>>>> CivilEng
>>>>> 
>>>>> -- 
>>>>> View this message in context:
>>>>> http://n2.nabble.com/SQL-2008-Geographic-data-type-can%27t-be-selected-t
>>>>> p2410036p2410036.html
>&

RE: [mapguide-users] SQL 2008 Geographic data type can't be selected

2009-03-13 Thread Rodolfo Moreno

Hi all,
I was reviewing others theards with relation to it.
http://n2.nabble.com/Layer%27s-selection-Problem-td2352146.html
It seems to be an issue with geography data type in sql 2008. I would like
to post a ticket but I don't know exactly in where is the error in mapguide
or FDO.
Any opinion?
Regards


Rodolfo Moreno wrote:
> 
> Yes, my table has primary key (as integer) and spatial index with
> geographic grid.
> 
> Regards,
> 
> 
> Dave Wilson wrote:
>> 
>> Can you ensure your table has a primary key? I'm pretty sure it's
>> required.
>> 
>> Dave
>> 
>> -Original Message-
>> From: mapguide-users-boun...@lists.osgeo.org
>> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
>> Moreno
>> Sent: Friday, March 06, 2009 4:01 PM
>> To: mapguide-users@lists.osgeo.org
>> Subject: RE: [mapguide-users] SQL 2008 Geographic data type can't be
>> selected
>> 
>> 
>> Hi Andrei,
>> sorry for my delay.
>> I have created a new sql table with geography sql type and I added two
>> simple polygons.
>> here is my sql script:
>> 
>> insert into test1
>> VALUES (1,geography::STGeomFromText('POLYGON ((0 0 ,1 0,1 1 , 0 1, 0 0
>> ))',
>> 4326) )
>>  
>> insert into test1
>> VALUES (2,geography::STGeomFromText('POLYGON ((1 1 ,3 1,2 3 , 1 1 ))',
>> 4326)
>> )
>> 
>> Next I have displayed the features with the ajax viewer of the MGOS (I am
>> using 2.0.1 version) and the result is the same.
>> It means that the features are shown but these can't be selected.
>> 
>> I guess that it is an issue of MGOS. have you ever had success with it?
>> 
>> Regards,
>> 
>> 
>> Rodolfo Moreno wrote:
>>> 
>>> Thanks Andrei, I am goin to try your suggestion. 
>>> 
>>> 
>>> miansi wrote:
>>>> 
>>>> Hello Rodolfo,
>>>> 
>>>> Make sure you set SRID while populating SQL:
>>>> 
>>>> ...
>>>> , [Geo] = GEOMETRY::STGeomFromText([import].[Geo], @SRID)
>>>> ...
>>>> 
>>>> Base on your map (WGS 84) your SRID should be something like 4326
>>>> 
>>>> 
>>>> Regards,
>>>> 
>>>> Andrei
>>>> 
>>>> 
>>>> -Original Message-
>>>> From: mapguide-users-boun...@lists.osgeo.org
>>>> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
>>>> Moreno
>>>> Sent: Monday, March 02, 2009 9:15 AM
>>>> To: mapguide-users@lists.osgeo.org
>>>> Subject: [mapguide-users] SQL 2008 Geographic data type can't be
>>>> selected
>>>> 
>>>> 
>>>> I have could select features from geometric data type (sql 2008 as data
>>>> source) however, for the case of geographic data type the selection of
>>>> the
>>>> features is not possible.
>>>> The error shown in the log is: "sys.geometry is incompatible with
>>>> sys.geography"
>>>> The map that contains this layer is set as WGS 84.
>>>> 
>>>> any help will be appreciated, thanks
>>>> 
>>>> -
>>>> Rodolfo Moreno
>>>> CivilEng
>>>> 
>>>> -- 
>>>> View this message in context:
>>>> http://n2.nabble.com/SQL-2008-Geographic-data-type-can%27t-be-selected-t
>>>> p2410036p2410036.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
>>>> 
>>>> 
>>>> Notice Regarding Confidentiality
>>>> This email, including any and all attachments, (this "Email") is
>>>> intended
>>>> only for the party to whom it is addressed and may contain information
>>>> that is confidential or privileged.  Sierra Systems Group Inc. and its
>>>> affiliates accept no responsibility for any loss or damage suffered by
>>>> any person resulting from any unauthorized use of or reliance upon this
>>>> Email.  If you are not the intended recipient, you are hereby notified
>>>> that any dissemination, copying or other use of this Email is
>>>> prohibited. 
>>>> Please not

RE: [mapguide-users] SQL 2008 Geographic data type can't be selected

2009-03-09 Thread Rodolfo Moreno

Yes, my table has primary key (as integer) and spatial index with geographic
grid.

Regards,


Dave Wilson wrote:
> 
> Can you ensure your table has a primary key? I'm pretty sure it's
> required.
> 
> Dave
> 
> -Original Message-
> From: mapguide-users-boun...@lists.osgeo.org
> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
> Moreno
> Sent: Friday, March 06, 2009 4:01 PM
> To: mapguide-users@lists.osgeo.org
> Subject: RE: [mapguide-users] SQL 2008 Geographic data type can't be
> selected
> 
> 
> Hi Andrei,
> sorry for my delay.
> I have created a new sql table with geography sql type and I added two
> simple polygons.
> here is my sql script:
> 
> insert into test1
> VALUES (1,geography::STGeomFromText('POLYGON ((0 0 ,1 0,1 1 , 0 1, 0 0
> ))',
> 4326) )
>  
> insert into test1
> VALUES (2,geography::STGeomFromText('POLYGON ((1 1 ,3 1,2 3 , 1 1 ))',
> 4326)
> )
> 
> Next I have displayed the features with the ajax viewer of the MGOS (I am
> using 2.0.1 version) and the result is the same.
> It means that the features are shown but these can't be selected.
> 
> I guess that it is an issue of MGOS. have you ever had success with it?
> 
> Regards,
> 
> 
> Rodolfo Moreno wrote:
>> 
>> Thanks Andrei, I am goin to try your suggestion. 
>> 
>> 
>> miansi wrote:
>>> 
>>> Hello Rodolfo,
>>> 
>>> Make sure you set SRID while populating SQL:
>>> 
>>> ...
>>> , [Geo] = GEOMETRY::STGeomFromText([import].[Geo], @SRID)
>>> ...
>>> 
>>> Base on your map (WGS 84) your SRID should be something like 4326
>>> 
>>> 
>>> Regards,
>>> 
>>> Andrei
>>> 
>>> 
>>> -Original Message-
>>> From: mapguide-users-boun...@lists.osgeo.org
>>> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
>>> Moreno
>>> Sent: Monday, March 02, 2009 9:15 AM
>>> To: mapguide-users@lists.osgeo.org
>>> Subject: [mapguide-users] SQL 2008 Geographic data type can't be
>>> selected
>>> 
>>> 
>>> I have could select features from geometric data type (sql 2008 as data
>>> source) however, for the case of geographic data type the selection of
>>> the
>>> features is not possible.
>>> The error shown in the log is: "sys.geometry is incompatible with
>>> sys.geography"
>>> The map that contains this layer is set as WGS 84.
>>> 
>>> any help will be appreciated, thanks
>>> 
>>> -
>>> Rodolfo Moreno
>>> CivilEng
>>> 
>>> -- 
>>> View this message in context:
>>> http://n2.nabble.com/SQL-2008-Geographic-data-type-can%27t-be-selected-t
>>> p2410036p2410036.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
>>> 
>>> 
>>> Notice Regarding Confidentiality
>>> This email, including any and all attachments, (this "Email") is
>>> intended
>>> only for the party to whom it is addressed and may contain information
>>> that is confidential or privileged.  Sierra Systems Group Inc. and its
>>> affiliates accept no responsibility for any loss or damage suffered by
>>> any person resulting from any unauthorized use of or reliance upon this
>>> Email.  If you are not the intended recipient, you are hereby notified
>>> that any dissemination, copying or other use of this Email is
>>> prohibited. 
>>> Please notify us of the error in communication by return email and
>>> destroy all copies of this Email.  Thank you.
>>> ___
>>> mapguide-users mailing list
>>> mapguide-users@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>> 
>>> 
>> 
>> 
> 
> 
> -
> Rodolfo Moreno
> CivilEng
> 
> -- 
> View this message in context:
> http://n2.nabble.com/SQL-2008-Geographic-data-type-can%27t-be-selected-tp2410036p2438599.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/SQL-2008-Geographic-data-type-can%27t-be-selected-tp2410036p2450086.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] SQL 2008 Geographic data type can't be selected

2009-03-06 Thread Rodolfo Moreno

Hi Andrei,
sorry for my delay.
I have created a new sql table with geography sql type and I added two
simple polygons.
here is my sql script:

insert into test1
VALUES (1,geography::STGeomFromText('POLYGON ((0 0 ,1 0,1 1 , 0 1, 0 0 ))',
4326) )
 
insert into test1
VALUES (2,geography::STGeomFromText('POLYGON ((1 1 ,3 1,2 3 , 1 1 ))', 4326)
)

Next I have displayed the features with the ajax viewer of the MGOS (I am
using 2.0.1 version) and the result is the same.
It means that the features are shown but these can't be selected.

I guess that it is an issue of MGOS. have you ever had success with it?

Regards,


Rodolfo Moreno wrote:
> 
> Thanks Andrei, I am goin to try your suggestion. 
> 
> 
> miansi wrote:
>> 
>> Hello Rodolfo,
>> 
>> Make sure you set SRID while populating SQL:
>> 
>> ...
>> , [Geo] = GEOMETRY::STGeomFromText([import].[Geo], @SRID)
>> ...
>> 
>> Base on your map (WGS 84) your SRID should be something like 4326
>> 
>> 
>> Regards,
>> 
>> Andrei
>> 
>> 
>> -----Original Message-
>> From: mapguide-users-boun...@lists.osgeo.org
>> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
>> Moreno
>> Sent: Monday, March 02, 2009 9:15 AM
>> To: mapguide-users@lists.osgeo.org
>> Subject: [mapguide-users] SQL 2008 Geographic data type can't be
>> selected
>> 
>> 
>> I have could select features from geometric data type (sql 2008 as data
>> source) however, for the case of geographic data type the selection of
>> the
>> features is not possible.
>> The error shown in the log is: "sys.geometry is incompatible with
>> sys.geography"
>> The map that contains this layer is set as WGS 84.
>> 
>> any help will be appreciated, thanks
>> 
>> -
>> Rodolfo Moreno
>> CivilEng
>> 
>> -- 
>> View this message in context:
>> http://n2.nabble.com/SQL-2008-Geographic-data-type-can%27t-be-selected-t
>> p2410036p2410036.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
>> 
>> 
>> Notice Regarding Confidentiality
>> This email, including any and all attachments, (this "Email") is intended
>> only for the party to whom it is addressed and may contain information
>> that is confidential or privileged.  Sierra Systems Group Inc. and its
>> affiliates accept no responsibility for any loss or damage suffered by
>> any person resulting from any unauthorized use of or reliance upon this
>> Email.  If you are not the intended recipient, you are hereby notified
>> that any dissemination, copying or other use of this Email is prohibited. 
>> Please notify us of the error in communication by return email and
>> destroy all copies of this Email.  Thank you.
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> 
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/SQL-2008-Geographic-data-type-can%27t-be-selected-tp2410036p2438599.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


Re: [mapguide-users] Is MGE accessible by mobile

2009-03-06 Thread Rodolfo Moreno

Interesting question. Time ago I was asking me the same question.
Do you testing with mobile emulators?
http://mobiforge.com/page/mobile-emulators
http://emulator.mtld.mobi/emulator.php?webaddress=voxiva.com&emulator=sonyK750&Submit=Submit
I have not had time to research it.
please if you find out more about MGOS with mobile web browser share it.

Regards

- Jackie


flakesns wrote:
> 
> I plan to develop mge application and publish it in my server.
> The question now is it accessible or can browse the map using PDA or any
> mobile devices?
> Is the mobile web browser support the viewer?
> Is opera mini support for viewing?
> 




-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Is-MGE-accessible-by-mobile-tp2433496p2437952.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] SQL 2008 Geographic data type can't be selected

2009-03-02 Thread Rodolfo Moreno

Thanks Andrei, I am goin to try your suggestion. 


miansi wrote:
> 
> Hello Rodolfo,
> 
> Make sure you set SRID while populating SQL:
> 
> ...
> , [Geo] = GEOMETRY::STGeomFromText([import].[Geo], @SRID)
> ...
> 
> Base on your map (WGS 84) your SRID should be something like 4326
> 
> 
> Regards,
> 
> Andrei
> 
> 
> -Original Message-
> From: mapguide-users-boun...@lists.osgeo.org
> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
> Moreno
> Sent: Monday, March 02, 2009 9:15 AM
> To: mapguide-users@lists.osgeo.org
> Subject: [mapguide-users] SQL 2008 Geographic data type can't be
> selected
> 
> 
> I have could select features from geometric data type (sql 2008 as data
> source) however, for the case of geographic data type the selection of
> the
> features is not possible.
> The error shown in the log is: "sys.geometry is incompatible with
> sys.geography"
> The map that contains this layer is set as WGS 84.
> 
> any help will be appreciated, thanks
> 
> -
> Rodolfo Moreno
> CivilEng
> 
> -- 
> View this message in context:
> http://n2.nabble.com/SQL-2008-Geographic-data-type-can%27t-be-selected-t
> p2410036p2410036.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
> 
> 
> Notice Regarding Confidentiality
> This email, including any and all attachments, (this "Email") is intended
> only for the party to whom it is addressed and may contain information
> that is confidential or privileged.  Sierra Systems Group Inc. and its
> affiliates accept no responsibility for any loss or damage suffered by any
> person resulting from any unauthorized use of or reliance upon this Email. 
> If you are not the intended recipient, you are hereby notified that any
> dissemination, copying or other use of this Email is prohibited.  Please
> notify us of the error in communication by return email and destroy all
> copies of this Email.  Thank you.
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/SQL-2008-Geographic-data-type-can%27t-be-selected-tp2410036p2411066.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] SQL 2008 Geographic data type can't be selected

2009-03-02 Thread Rodolfo Moreno

I have could select features from geometric data type (sql 2008 as data
source) however, for the case of geographic data type the selection of the
features is not possible.
The error shown in the log is: "sys.geometry is incompatible with
sys.geography"
The map that contains this layer is set as WGS 84.

any help will be appreciated, thanks

-----
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/SQL-2008-Geographic-data-type-can%27t-be-selected-tp2410036p2410036.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] GetFeaturesKml and GetLayerKml

2009-02-24 Thread Rodolfo Moreno
 included that shows how to do this:
>>> 
>>> http://data.mapguide.com/mapguide/DynamicKml/GoogleEarth.php
>>> 
>>> Jason
>>> 
>>> -Original Message-
>>> From: alucas
>>> Subject: [mapguide-users] GetFeaturesKml and GetLayerKml
>>> 
>>> What is the diference between these methods? How can I get only some
>>> features from my layer and then export to kml? I suposed that with
>>> GetFeaturesKml I was able to filter features in a layer...
>>> ___
>>> 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/GetFeaturesKml-and-GetLayerKml-tp20459874p20476499
>> .html
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>> 
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> 
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/GetFeaturesKml-and-GetLayerKml-tp1818790p2381181.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] GetExteriorRing error in polygons with many interior rings

2009-02-20 Thread Rodolfo Moreno

I am using mapguide API for generate kml dynamically.
First I have tested with the http interface (mapagent.fcgi) using the
GETLAYERKML operation. The KML is generated and showed correctly in google
earth.
Next I did .NET code for generating kml dynamically using mapguide API. The
code works good when the features are polygons without interior ring,
however it works bad when the features are polygon with many interior rings.
The kml is generated and GE displays the kml with errors.

this is part of my code:
sb.Append("");
//sb.Append("" + extrude + "");
//sb.Append("relativeToGround");
sb.Append("");
sb.Append(EmitLinearRing(polygon.GetExteriorRing(), ht));
sb.Append("");

for (int i = 0; i < polygon.GetInteriorRingCount(); ++i)
{
  sb.Append("");
  sb.Append(EmitLinearRing(polygon.GetInteriorRing(i), ht));
  sb.Append("");
}
sb.Append("");

I was reviewing the kml generated I could realize that GetExteriorRing
method gets the coordinates of one of the interior rings and the true
EXTERIOR RING is gotten by the GetInteriorRing method, during the FOR
iteration, something like that:




 
   
   INTERIOR RING 2
   
 




  

  INTERIOR RING 1

  

 
  
EXTERIOR RING
  
 

 
  
INTERIOR RING 3
  
 




Is it an issue or maybe is there any error in my code?
I am using MGOS 2.0.1

Regards,

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/GetExteriorRing-error-in-polygons-with-many-interior-rings-tp2361862p2361862.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] Integration with Google Maps

2009-02-19 Thread Rodolfo Moreno

When I want to simplyfing a layer I use ArcMap, however it doesn't simplify
KML files.
I guess that first you should simplyfing the layer with some software GIS
desktop and then generate the kmz file.
I know that arcMap has tools for generalizing layers, but likely some open
source GIS desktop like "gvsig" or "mapwindow" could has it. 

Regards,


Stefan Dalakov wrote:
> 
> If you are serving it with MGOS, and if the problem is bandwidth or 
> loading time you can switch to kmz format, as Jackie says. If you have 
> it already produced, then you can save as kmz within GE, but I guess the 
> problem will be the complexity - GE has difficulty handling big files, 
> at least on my machine, so try optimizing the source data. MGOS serves 
> not the whole file but a viewport so you will not have this problem if 
> you use MGOS.
> I have not ran into a function of software I use, which allows 
> processing(simplifying) of an already created  KML.
> 
> Stefan Dalakov
> 
> Jackie Ng wrote:
>> MapGuide can serve compressed kml (kmz), which is many orders of
>> magnitude
>> smaller in size.
>>
>> - Jackie
>>
>>
>> Sergio Nistal Calvo wrote:
>>   
>>> Hi,
>>>
>>>  
>>>
>>> I have a kml file format, but its size is greater than 10 MB. How can I
>>> reduce its size or simplify in order to upload to Google Maps? I've seen
>>> online a post that says you can simplify it with Manifold GIS, but the
>>> program is not free.
>>>
>>>  
>>>
>>> Thanks.
>>>
>>>  
>>>
>>>  
>>>
>>> _
>>> ÂżEres un cotilla? Disfruta de todas las novedades en MSN CorazĂłn
>>> http://entretenimiento.es.msn.com/corazon/
>>> ___
>>> 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
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Integration-with-Google-Maps-tp2349001p2353767.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] when Mapguide 2.1 will be released?

2009-02-13 Thread Rodolfo Moreno

I have read that Mapguide 2.1 would be released in late january along with
the Fusion 2.0. 
Fusion 2.0 beta already has been released, So when Mapguide will be
released?

Regards,

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/when-Mapguide-2.1-will-be-released--tp2321759p2321759.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, google maps and open layers

2009-02-09 Thread Rodolfo Moreno

The projection of my map is WGS84 (at least it is said by the metadata of the
SHPs).

I have tested with other map and the overlaying is OK. Next I have tested
with other map whose projection is different to the google maps (WGS84) and
I could see that the mapguide layer is out of place. However when I did zoom
in/out/ or pan the mapguide layer didn't change its position with reference
to the google maps unlike the above map that when I did zoom in/out or pan
the position with reference to the google maps changed such as the images
show.

maybe the metadata information is wrong. which projection is used in Alberta
Canada? 
My idea is assign this projection a my original SHPs and NEXT transform it
to WGS84

Regards,


gingerbbm wrote:
> 
> Is this not a projection issue? The projection of your overlay data from
> MapGuide needs to match that used by Google Maps.
> 


-----
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/mapguide%2C-google-maps-and-open-layers-tp2286353p2298433.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, google maps and open layers

2009-02-06 Thread Rodolfo Moreno

I have an application where I use google maps as base layer using openlayers
according to the wiki sample "display mapguide maps using openlayers".
Everthing is working OK except that the mapguide layer is being overlayed
incorrectly. It means that mapguide layer is showed lightly out of place.
In the attached images you can see the difference of positioning between the
gmaps river and the mapguide river. Even if the zoom level (578k) is the
same in the image1 and the image2 the positioning of mapguide river1
(image1) and the river2 (image2) are different with reference to the gmaps
river.

I have adjusted the scales of the maguide river like this:
var fixedScales =[900,500,200, 100, 578000, 289000, 144000,
72000, 36000, 18000, 9028 ];
In order to fix to the gmaps scale but the problem keep on.

Anyone knows how fix it?
Regards,

http://n2.nabble.com/file/n2286353/Zoom578k1.jpg 
http://n2.nabble.com/file/n2286353/Zoom578k2.jpg 



-----
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/mapguide%2C-google-maps-and-open-layers-tp2286353p2286353.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


RE: [mapguide-users] how to use FDO api into MAPGUIDE applications

2009-02-06 Thread Rodolfo Moreno

Hi Stefan, you can add and delete features using mapguide API, however you
can't create non add fields to the SHPs.
http://n2.nabble.com/Writing-data-to-a-shapefile-example--td1815692.html#a1815693


Ivan Milicevic wrote:
> 
> Hello,
> 
> Can you post some sample code for that? 
> 
> -Original Message-
> From: mapguide-users-boun...@lists.osgeo.org
> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Stefan
> Dalakov
> Sent: Friday, February 06, 2009 6:20 PM
> To: MapGuide Users Mail List
> Subject: Re: [mapguide-users] how to use FDO api into MAPGUIDE
> applications
> 
> For sure you can modify SHP files with Mapguide API - I have application
> 
> which adds and deletes features.
> I have not tried to create a SHP file, but I don't think it is
> impossible 
> 
> Stefan Dalakov
> 
> Rodolfo Moreno wrote:
>> I have read that only SDFs can be created and altered with mapguide
> API,
>> which is why I need to use FDO api in my mapguide applications in
> order to
>> create and alter SHPs.
>>
>> If anyone has code sample or documentation about it, I will be very
>> grateful.
>>
>> Cheers,
>>
>> -
>> Rodolfo Moreno
>> CivilEng
>>
>>   
> 
> ___
> 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
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/how-to-use-FDO-api-into-MAPGUIDE-applications-tp2284511p2286146.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


Re: [mapguide-users] Fusion raise AJAX Error, Was: Repository or server error

2009-02-06 Thread Rodolfo Moreno

This is the error that FUSION is raised:

---
Windows Internet Explorer
---
Fusion Error: 
WARNING: Exception occurred in AJAX callback.
Message: Array length must be a finite positive integer
Location: undefined (undefined)
Response:
{sessionId:'7913cd3a--1000-8000-001cc06b0cf3_en_7F010AFC0AFB0AFA',mapId:'Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition',metersPerUnit:111319.4908,mapTitle:'Sheboygan',mapName:'Sheboygan498c585d92817',extent:[-87.764986990963,43.691398128788,-87.6955215109,43.7975248],layers:[{propertyMappings:{},uniqueId:'79863d5c--1000-8004-001cc06b0cf3',layerName:'Roads',layerTypes:[1],displayInLegend:true,expandInLegend:true,resourceId:'Library://Samples/Sheboygan/Layers/Roads.LayerDefinition',parentGroup:'79863d5c--1000-8003-001cc06b0cf3',legendLabel:'Roads',selectable:false,visible:true,actuallyVisible:true,editable:false,scaleRanges:
[{minScale:0,maxScale:1,styles:[{legendLabel:'',filter:'',geometryType:2,categoryIndex:0}]},{minScale:1,maxScale:24000,styles:[{legendLabel:'',filter:'',geometryType:2,categoryIndex:0}]}]},{propertyMappings:{},uniqueId:'79863d5c--1000-8005-001cc06b0cf3',layerName:'Rail
Lines',layerTypes:[1],displayInLegend:true,expandInLegend:true,resourceId:'Library://Samples/Sheboygan/Layers/Tracks.LayerDefinition',parentGroup:'79863d5c--1000-8003-001cc06b0cf3',legendLabel:'Rail
Lines',selectable:false,visible:false,actuallyVisible:false,editable:false,scaleRanges:
[{minScale:0,maxScale:24000,styles:[{legendLabel:'',filter:'',geometryType:2,categoryIndex:0}]}]},{propertyMappings:{},uniqueId:'79863d5c--1000-8006-001cc06b0cf3',layerName:'Districts',layerTypes:[2],displayInLegend:true,expandInLegend:true,resourceId:'Library://Samples/Sheboygan/Layers/Districts.LayerDefinition',parentGroup:'79863d5c--1000-8002-001cc06b0cf3',legendLabel:'Districts',selectable:true,visible:true,actuallyVisible:false,editable:false,scaleRanges:
[{minScale:1,maxScale:'infinity',styles:[{legendLabel:'',filter:'',geometryType:3,categoryIndex:0}]}]},{propertyMappings:{},uni…
---
OK   
---

Cheers,


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> AFAIK, the Fusion error is in javascript, and thus no log entry is
> created.
> 
> I don't know enough about Fusion to determine what may have caused the 
> error.
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> Rodolfo Moreno skrev:
>> Thanks Kenneth, I was a silly I forgot to review the log file.
>> this is the error in the log file.
>> Error: An exception occurred in FDO component.
>> RDBMS: No current open database.  
>>
>> The error is being raised by feature sources with feature joins to SQL
>> 2008
>> (my trial version has expired).
>> Describing the problem:
>> - Municipalities.FeatureSource has 2 featsources: 
>> - Municipalities and MunicipalitiesExtension (It has featurejoins). 
>> - Layer1 uses Municipalities (not MunicipalitiesExtension)
>> - Layer1 is used in Map1, then Map1 raise the RDBMS error.
>>
>> I thought that only in the case that MunicipalitiesExtension is used the
>> error would be raised (although I guess that it should be like I was
>> thought)
>>
>> I guess that it solved my problem, However I don't how why some of my
>> maps
>> don't work well, even if these are not using layers with feature joins.
>> For
>> example before that the expiration date of my SQL, these maps worked good
>> in
>> both IE7 and FF2, and now these maps only are work good in FF2 and not in
>> IE7. 
>> It's happennig with Fusion 1.0.6 (raise AJAX ERROR) and in the mapguide
>> log
>> any error is registered. the ajax viewer is working good in both
>> browsers.
>>
>> I am really confused, could the SQL expiration has generated the FUSION
>> error?
>>
>> Regards,
>>
>>
>> Kenneth Skovhede, GEOGRAF A/S wrote:
>>   
>>> What does the error log state:
>>> C:\Program Files\MapGuideOpenSource2.0\Server\Logs\Error.log
>>>
>>> If you can create a MapGuide Package, you can do this:
>>> 1. Create MapGuide Package
>>> 2. Move the package outside the install dir.
>>> 3. Uninstall MapGuide
>>> 4. Delete the installation folder
>>> 5. Re-install MapGuide
>>> 6. Restore the package
>>>
>>> That should clear any corruption in the reposito

[mapguide-users] how to use FDO api into MAPGUIDE applications

2009-02-06 Thread Rodolfo Moreno

I have read that only SDFs can be created and altered with mapguide API,
which is why I need to use FDO api in my mapguide applications in order to
create and alter SHPs.

If anyone has code sample or documentation about it, I will be very
grateful.

Cheers,

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/how-to-use-FDO-api-into-MAPGUIDE-applications-tp2284511p2284511.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] Repository or server error

2009-02-05 Thread Rodolfo Moreno

Thanks Kenneth, I was a silly I forgot to review the log file.
this is the error in the log file.
Error: An exception occurred in FDO component.
RDBMS: No current open database.  

The error is being raised by feature sources with feature joins to SQL 2008
(my trial version has expired).
Describing the problem:
- Municipalities.FeatureSource has 2 featsources: 
- Municipalities and MunicipalitiesExtension (It has featurejoins). 
- Layer1 uses Municipalities (not MunicipalitiesExtension)
- Layer1 is used in Map1, then Map1 raise the RDBMS error.

I thought that only in the case that MunicipalitiesExtension is used the
error would be raised (although I guess that it should be like I was
thought)

I guess that it solved my problem, However I don't how why some of my maps
don't work well, even if these are not using layers with feature joins. For
example before that the expiration date of my SQL, these maps worked good in
both IE7 and FF2, and now these maps only are work good in FF2 and not in
IE7. 
It's happennig with Fusion 1.0.6 (raise AJAX ERROR) and in the mapguide log
any error is registered. the ajax viewer is working good in both browsers.

I am really confused, could the SQL expiration has generated the FUSION
error?

Regards,


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> What does the error log state:
> C:\Program Files\MapGuideOpenSource2.0\Server\Logs\Error.log
> 
> If you can create a MapGuide Package, you can do this:
> 1. Create MapGuide Package
> 2. Move the package outside the install dir.
> 3. Uninstall MapGuide
> 4. Delete the installation folder
> 5. Re-install MapGuide
> 6. Restore the package
> 
> That should clear any corruption in the repository.
> I doubt that the repository is the problem though.
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> Rodolfo Moreno skrev:
>> Hi all, 
>> I am having an odd issue.
>> the problem consists in that the server doesn't send the maps how if
>> these
>> did not exist, however when I access to my repository by Maestro or
>> Studio2009 I can see and edit all the resources of my repository.
>>
>> the events before that the server or repository started to fail are:
>> - I was editing my resources using mapguide maestro and mapguide studio
>> 2009
>> at the same time.
>> - My SQL 2008 trial version has expired today (some of my datasources are
>> stored there). But I have tested another map that doesn't use data from
>> SQL
>> and the application doesn't work.
>>
>> current efects:
>> - the majority of the times the applications(using these resources) don't
>> work but sometimes these work. (very odd).
>>
>> I have restarted the server twice and the error keep on. I guees that for
>> some reason the repository has been corrupted. So I was looking for a
>> tool
>> that allows to repair the repository in REPOSITORYADMIN directory without
>> successful, becuase the tools within of that directory are for restoring. 
>>
>> or maybe it to be a server error?
>>
>> any help will be appreciated,
>>
>>
>> -
>> Rodolfo Moreno
>> CivilEng
>>
>>   
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Repository-or-server-error-tp2265645p2277008.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] Integration with Google Earth

2009-02-04 Thread Rodolfo Moreno

Hi Stefan, which version of arcmap converts shp to kml?
I have arcmap 9.2 and I have not found this tool.

Thanks in advance,



Stefan Dalakov wrote:
> 
> Hi,
> If you save that file -mapagent.fcgi in fact you will save the output of 
> this module, i.e. the requested kml/kmz file. However it might be 
> windowed this kml file - it will contain part of the layer and will try 
> to open it dynamically when you move around in Google Earth, but this 
> will for sure contain the kml file.
> The simplest perhaps will be to send me these files. You can zip and 
> send to my e-mail - I will use ArcMap to convert - it takes a couple of 
> minutes.Please add some info about coordinate system. ArcMap is an ESRI 
> product, and is not free. AT ALL!
> 
> Stefan Dalakov
> 
> Sergio Nistal Calvo wrote:
>> Hi again,
>>  
>> I tried with "web tier test page" but it opens a window with a dialog 
>> box to download the file "mapagent.fcgi" (I suppose that it will be 
>> for php or something). Where can I download the ArcMap? (files to 
>> convert are cyl_mun_25.dbf, cyl_mun_25.idx, cyl_mun_25.shp and 
>> cyl_mun_25.shx (municipal boundaries), espacios.dbf, espacios.idx, 
>> espacios.shp, espacios.shx, espacios.sbn and espacios.sbx (natural 
>> areas) and vias.dbf, vias.idx, vias.shp and vias.shx (roads), in total 
>> 17.4 MB).
>>  
>> Thanks.
>>
>>
>> 
>>
>> Date: Tue, 3 Feb 2009 00:07:36 +0200
>> From: s.dala...@mapware.net
>> To: mapguide-users@lists.osgeo.org
>> Subject: Re: [mapguide-users] Integration with Google Earth
>>
>> Hi,
>>
>> Have you tried with ArcMap ? Or perhaps you could try to convert a 
>> mapguide layer to KML using web tier test page - 
>> http://localhost:8008/mapguide/mapagent/index.html ?
>> I have converted several files with both methods and it works. It was 
>> some time ago, but I remember there was a problem in transformation if 
>> the coordinate system of the layer is not Decmal degrees (lat/lon) on 
>> WGS 84
>> If it is a single file and you need just the KML output, I can try 
>> converting it for you
>>
>> Stefan Dalakov
>>
>>
>> Sergio Nistal Calvo wrote:
>>
>> Hi,
>>  
>> I´m trying to convert some data in shp format to kml format with
>> Shp2kml program and I have two problems: 1 - one of the data, I
>> can´t convert because the attribute is "too long, > 100 characters
>> (240)", 2 - opening the other data with Google Earth, I get the
>> map upside down, as if seen with a mirror, and displaced a few
>> meters/kilometers on the right. The coordinate system of the data
>> is LOCAL_CS ["Non-Earth (Meter)", LOCAL_DATUM ["Local Datum", 0],
>> UNIT ["Meter", 1], AXIS ["X", EAST], AXIS [" Y", NORTH]], but I
>> can´t get it shp2kml so I leave the default "WGS 1984 Global
>> Definition" and I put "projected UTM (meters), Northern
>> Hemisphere, UTM Zone 32".
>>  
>> Any help is appreciated.
>>  
>> Thanks.
>>
>>
>> 
>> El doble de diversiĂłn: Con Windows Live Messenger comparte fotos
>> mientras hablas.
>> <http://www.microsoft.com/windows/windowslive/messenger.aspx>
>>
>>
>> 
>>
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> <mailto:mapguide-users@lists.osgeo.org>
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>   
>>
>>
>>
>> ------------
>> Con el nuevo Windows Live lo tendrás todo al alcance de tu mano 
>> <http://home.live.com/>
>> 
>>
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>   
> 
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Integration-with-Google-Earth-tp2260001p2269379.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] Repository or server error

2009-02-03 Thread Rodolfo Moreno

Hi all, 
I am having an odd issue.
the problem consists in that the server doesn't send the maps how if these
did not exist, however when I access to my repository by Maestro or
Studio2009 I can see and edit all the resources of my repository.

the events before that the server or repository started to fail are:
- I was editing my resources using mapguide maestro and mapguide studio 2009
at the same time.
- My SQL 2008 trial version has expired today (some of my datasources are
stored there). But I have tested another map that doesn't use data from SQL
and the application doesn't work.

current efects:
- the majority of the times the applications(using these resources) don't
work but sometimes these work. (very odd).

I have restarted the server twice and the error keep on. I guees that for
some reason the repository has been corrupted. So I was looking for a tool
that allows to repair the repository in REPOSITORYADMIN directory without
successful, becuase the tools within of that directory are for restoring. 

or maybe it to be a server error?

any help will be appreciated,


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Repository-or-server-error-tp2265645p2265645.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] Two maps in the same layout

2009-01-30 Thread Rodolfo Moreno

Thanks Paul, it works, it means that the parameter is being passed to the
mapLoaded function.
However I think that I have detected an issue with MAP_LOADED event in IE7
(in FF2 it works good) 
how you know I have two maps (MAP, MAP1). So the MAP_LOADED event is not
calling to mapLoaded function for MAP and whether do it for MAP1. It happens
in IE7. In FF2 both maps are calling to the mapLoaded function (work
correctly).

After I tested with MAP_BUSY_CHANGED event and I could detect the same
issue.
the following is a summarize of the test case:

 # times called during the initial loading of the 
application
Events  IE  FF

MAP_BUSY_CHANGED  map   1   4
 map1   3   4

MAP_LOADED map  0 (*)   1   
map11   1
(*) 0 means that the function never is called

maybe the others EVENTS have the same error.

Regards,


Paul Spencer wrote:
> 
> This is trickier than it should be :(  Ideally it should pass an  
> argument which is the map that triggered the event or set the context  
> (this) to be the map, but neither happens.
> 
> Fortunately there are many ways around this ...
> 
> Map.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded.bind(null,  
> 'Map'));
> Map1.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded.bind(null,  
> 'Map1'));
> 
> ... which is essentially equivalent to ..
> 
> Map.registerForEvent(Fusion.Event.MAP_LOADED, function()  
> { mapLoaded('Map'); });
> Map1.registerForEvent(Fusion.Event.MAP_LOADED, function()  
> { mapLoaded('Map'); });
> 
> where mapLoaded now takes a parameter
> 
> function mapLoaded(s) {
>switch(s) {
>  case 'Map':
>//Map was loaded
>break;
>  case 'Map1':
>//Map1 was loaded
>break;
>}
> }
> 
> You can also do something really simple:
> 
> Map.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded);
> Map1.registerForEvent(Fusion.Event.MAP_LOADED, map1Loaded);
> 
> ...
> 
> function mapLoaded() {}
> 
> function map1Loaded() {}
> 
> Cheers
> 
> Paul
> 
> 
> On 29-Jan-09, at 10:06 AM, Rodolfo Moreno wrote:
> 
>>
>> Thanks Jackie and Paul for the quickly answer.
>> I was testing the two ways.
>>
>> Paul with respect to the FUSION viewer, I could place two maps in  
>> the same
>> layout, however I could not handle suitably the event MAP_LOADED.  
>> this is my
>> code:
>>
>> var Map;
>> var Map1;
>> var fusionInitialized = function() {
>>$('AppContainer').resize({forceResize: true});
>>
>>Map = Fusion.getWidgetById('Map');
>>Map1 = Fusion.getWidgetById('Map1');
>>
>>Map.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded);
>>Map1.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded);
>>
>> }
>>
>> function mapLoaded()
>> {
>>  // Inside of this function I would like to detect which of the  
>> maps(Map or
>> Map1) has called
>> // to this function.
>>
>> }
>>
>> I would like that mapLoaded function to detect which of the maps(Map  
>> or
>> Map1) called it.
>> The other alternative (whether the other is not possible) would be I  
>> can
>> send parameters to the mapLoaded function, like this:
>>
>> {
>>   ...
>>Map.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded,  
>> parameter1);
>> }
>>
>> function mapLoaded(parameter1)
>> {
>>
>> }
>>
>> Thanks in advance,
>>
>>
>>
>> Paul Spencer wrote:
>>>
>>> yes you can do it using the fusion viewer but you need to edit the
>>> ApplicationDefinition.xml file manually (you can't do it using  
>>> Studio).
>>>
>>> You need to have a MapGroup for each map you want to display and a
>>> WidgetSet for each map you want to display.  Then you need two divs  
>>> in
>>> your page, one for each WidgetSet (referenced by the MapWidget in the
>>> WidgetSet).  Widgets within each widget set will only work on the
>>> associated map.
>>>
>>> Cheers
>>>
>>> Paul
>>>
>>>
>>> On 22-Jan-09, at 3:21 PM, Rodolfo Moreno wrote:
>>>
>>>> Ivan good sugestion about the iframes, it's better than frameset.
>>>> However I
>>>> would like to do it using FUSION viewer. Is it possible?
>>>
>>> _

RE: [mapguide-users] Fusion and Digitizing

2009-01-29 Thread Rodolfo Moreno
ygon(CreateJobByPolygon);  
>>> 
>>> function CreateJobByPolygon(polygon) {
>>> var geomText = polygon.Count;
>>> for (var i = 0; i < polygon.Count; i++){
>>> geomText += "," + polygon.Point(i).X + "," +
>> polygon.Point(i).Y;
>>> }
>>> Fusion.getWidgetById('Map').setCursor('auto');
>>> //  here you would send your geomText to a web service, or aspx page
>>> that would turn the coordinates into a linear ring
>>> //and then a polygon from there.  The geomText variable (in this
>>> particular situation) evaluates to something similar to 
>>> //3,5000.00,5000.00,5050.00,5050.00,5100.00,5100.00
>>> }
>>> 
>>> 
>>> Of course you can format the way the coordinates are sent to your
>>> application any way you want.
>>> 
>>> I would also recommend calling the DigitizePolygon() function from an
>>> InvokeScript() widget, as I had some problems when I tried to actually
>>> create a widget and call it from there.  Also, I prefer to change my
>>> cursor when the widget is activated, you can see I put it back to
>> 'auto'
>>> in the CreateJobByPolygon() function, but I like to set it to
>>> 'crosshair' before the DigitizePolygon function is called.
>>> 
>>> -Mark P.
>>> 
>>> -Original Message-
>>> From: mapguide-users-boun...@lists.osgeo.org
>>> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Stefan
>>> Dalakov
>>> Sent: Friday, January 23, 2009 12:35 PM
>>> To: MapGuide Users Mail List
>>> Subject: [mapguide-users] Fusion and Digitizing
>>> 
>>> Hi all,
>>>  From what I read here, should I conclude that digitizing functions in
>> 
>>> Fusion are not yet fully supported ?
>>> I need to digitize a polygon on the map and save it permanently. I
>> have 
>>> this working with AJAX viewer, but would like to port it to Fusion
>>> Has anyone succeeded to  do this ?
>>> 
>>> Stefan Dalakov
>>> 
>>> 
>>> ___
>>> mapguide-users mailing list
>>> mapguide-users@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>> ___
>>> mapguide-users mailing list
>>> mapguide-users@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>> 
>>> 
>> 
>> -- 
>> View this message in context:
>> http://n2.nabble.com/Fusion-and-Digitizing-tp2205560p2241352.html
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>> 
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> 
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Fusion-and-Digitizing-tp2205560p2241865.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] Two maps in the same layout

2009-01-29 Thread Rodolfo Moreno

Thanks Jackie and Paul for the quickly answer.
I was testing the two ways.

Paul with respect to the FUSION viewer, I could place two maps in the same
layout, however I could not handle suitably the event MAP_LOADED. this is my
code:

var Map;
var Map1;
var fusionInitialized = function() {
$('AppContainer').resize({forceResize: true});
  
Map = Fusion.getWidgetById('Map');
Map1 = Fusion.getWidgetById('Map1');

Map.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded);
Map1.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded);

}

function mapLoaded()
{
  // Inside of this function I would like to detect which of the maps(Map or
Map1) has called 
 // to this function. 

}

I would like that mapLoaded function to detect which of the maps(Map or
Map1) called it. 
The other alternative (whether the other is not possible) would be I can
send parameters to the mapLoaded function, like this:

{
   ...
Map.registerForEvent(Fusion.Event.MAP_LOADED, mapLoaded, parameter1);
}

function mapLoaded(parameter1)
{

}

Thanks in advance,



Paul Spencer wrote:
> 
> yes you can do it using the fusion viewer but you need to edit the  
> ApplicationDefinition.xml file manually (you can't do it using Studio).
> 
> You need to have a MapGroup for each map you want to display and a  
> WidgetSet for each map you want to display.  Then you need two divs in  
> your page, one for each WidgetSet (referenced by the MapWidget in the  
> WidgetSet).  Widgets within each widget set will only work on the  
> associated map.
> 
> Cheers
> 
> Paul
> 
> 
> On 22-Jan-09, at 3:21 PM, Rodolfo Moreno wrote:
> 
>> Ivan good sugestion about the iframes, it's better than frameset.  
>> However I
>> would like to do it using FUSION viewer. Is it possible?
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Two-maps-in-the-same-layout-tp2189508p2239370.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] Two maps in the same layout

2009-01-22 Thread Rodolfo Moreno

Only for completing my idea about the dynamic theming in the first time:



In this sentence you can see a parameter added called THEMINGTYPE, which is
why I have modified the viewer files. I have not found another way of doing
theming dynamically in the first time. 
I would like to do it without modifying the viewer files and much better if
it is possible to do in FUSION viewer. 

Thanks in advance,


Rodolfo Moreno wrote:
> 
> Hi Mark, about your question:
> 
> - Why would you need to modify any of the viewer files in order to have 2
> pages in your map? 
> I have modified viewer files because I want to set a themed layer
> dynamically in each map in the first time that my application to be
> loaded. 
> My use case is: The theming is placed according to a preference to set by
> the user in previous session. Thus the applicacion could show two
> preferences on the same map(and the same layout). This is useful when you
> want to show comparisons, for example: To compare population 1980 vs 1990
> (like a dashboard).
> 
> Ivan good sugestion about the iframes, it's better than frameset. However
> I would like to do it using FUSION viewer. Is it possible?
> 
> Thanks,
> 
> 
> Ivan Milicevic wrote:
>> 
>> Hi,
>> 
>>  
>> 
>> Frameset sucks, use iframe, it's more flexibile.
>> 
>>  
>> 
>> In C# code create two mgSession's and define two differen  weblayout's.
>> 
>>  
>> 
>> MgUserInformation userInfo = new MgUserInformation(defaultUser,
>> defaultPassword);
>> 
>> MgSite site = new MgSite();
>> 
>> site.Open(userInfo);
>> 
>> sessionId = site.CreateSession();
>> 
>> sessionId2 = site.CreateSession();
>> 
>> webLayout = "Library://PROJEKTI/PRIKAZI/1.WebLayout";
>> 
>>  weblayout2 = "Library://PROJEKTI/PRIKAZI/1mm.WebLayout";
>> 
>>  
>> 
>> Here, after ..
>> 
>>  
>> 
>> > marginwidth="0" marginheight="0" scrolling="no"
>> src="../mapviewernet/ajaxviewer.aspx?SESSION=<%=sessionId%>&WEBLAYOUT=<%
>> =webLayout"%> >
>> 
>>  
>> 
>> > frameborder="0" marginwidth="0" marginheight="0" scrolling="no"
>> src="../mapviewernet/ajaxviewer.aspx?SESSION=<%=sessionId2%>&WEBLAYOUT=<
>> %=webLayout2%>>
>> 
>>  
>> 
>>  
>> 
>> Put iframes into div's so you can place it absolutely, moving maps,
>> ect...
>> 
>>  
>> 
>> The point is that you must have two mgSessionId's and two weblayout's.
>> 
>>  
>> 
>>  
>> 
>> Hope this helps.
>> 
>>  
>> 
>> -Original Message-
>> From: mapguide-users-boun...@lists.osgeo.org
>> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Mark
>> Pendergraft
>> Sent: Wednesday, January 21, 2009 5:15 PM
>> To: MapGuide Users Mail List
>> Subject: RE: [mapguide-users] Two maps in the same layout
>> 
>>  
>> 
>> Roldolfo,
>> 
>> Sorry I didn't look at your code.  It's pretty much exactly the same as
>> 
>> what I posted.  Why would you need to modify any of the viewer files in
>> 
>> order to have 2 pages in your map?
>> 
>>  
>> 
>> I was able to create a 2 map page using framesets in the same manner
>> 
>> that you did.
>> 
>>  
>> 
>> -Mark
>> 
>>  
>> 
>> -Original Message-
>> 
>> From: mapguide-users-boun...@lists.osgeo.org
>> 
>> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Mark
>> 
>> Pendergraft
>> 
>> Sent: Wednesday, January 21, 2009 8:10 AM
>> 
>> To: MapGuide Users Mail List
>> 
>> Subject: RE: [mapguide-users] Two maps in the same layout
>> 
>>  
>> 
>> Many people have their page in a frameset.  Here is an example which has
>> 
>> two frames, 1 for a title.html page and 1 for the mapguide viewer.  Here
>> 
>> is an example of what your frameset page might look like (in VB.NET)
>> 
>>  
>> 
>> **
>> 
>>  
>> 
>> <%@ Page Language="VB" Debug="true" %>
>> 
>>  
>> 
>> <%@ Import Namespace="OSGeo.MapGuide" %>
>> 
>> 
>> 
>> > 
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional

RE: [mapguide-users] Two maps in the same layout

2009-01-22 Thread Rodolfo Moreno
gt; 
> Catch ex As Exception
> 
> Response.Write(ex.Message)
> 
> End Try
> 
> 
> 
> %>
> 
>  
> 
> 
> 
>  
> marginheight="0" scrolling="no"
> 
> src="http://localhost/mapguide/mga/title.html";>
> 
>  
> marginheight="0" scrolling="no"
> 
>  
> 
> src="http://localhost/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=<%=s
> 
> essionId%>&WEBLAYOUT=<%=webLayout%>&LOCALE=en">
> 
> 
> 
>  
> 
>  
> 
> 
> 
>  
> 
> This page creates a horizontal split page with two pages in it.  If you
> 
> adjusted frameset rows="50,*" to "frameset cols="*,*" you would get a
> 
> page split in half vertically.  Then change the src="" element to the
> 
> two pages you want shown.
> 
>  
> 
> Hope that clears it up a bit.
> 
>  
> 
> -Mark Pendergraft
> 
>  
> 
>  
> 
> -Original Message-
> 
> From: mapguide-users-boun...@lists.osgeo.org
> 
> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
> 
> Moreno
> 
> Sent: Wednesday, January 21, 2009 7:47 AM
> 
> To: mapguide-users@lists.osgeo.org
> 
> Subject: Re: [mapguide-users] Two maps in the same layout
> 
>  
> 
>  
> 
> Hi Jackie,
> 
> I don't understand what you want to tell me, could you elaborate on your
> 
> idea?
> 
> this the code of my beginning page
> 
>  
> 
> 
> 
> String webLayout =
> 
> "Library://Samples/Sheboygan/Layouts/SheboyganAspTest.WebLayout";
> 
>  
> 
> String defaultUser = "Anonymous";
> 
> String defaultPassword = "";
> 
>  
> 
> String sessionId1 = "";
> 
> String sessionId2 = "";
> 
> 
> 
>  
> 
> <%
> 
> try
> 
> {
> 
> // Initialize a session and register a variable to hold the
> 
> // session id, then initialize the Web Extensions, connect
> 
> // to the site, and create a session.
> 
>  
> 
> InitializeWebTier();
> 
>  
> 
> MgUserInformation userInfo = new MgUserInformation(defaultUser,
> 
> defaultPassword);
> 
> MgSite site = new MgSite();
> 
> site.Open(userInfo);
> 
> sessionId1 = site.CreateSession();
> 
>  
> 
> site = new MgSite();
> 
> site.Open(userInfo);
> 
> sessionId2 = site.CreateSession();
> 
> }
> 
> catch (Exception e)
> 
> {
> 
> Response.Write(e.Message);
> 
> }
> 
> %>
> 
>  
> 
> 
> 
> 
> 
>   Viewer Sample Application
> 
> 
> 
> 
> 
>   
> marginheight="0"
> 
> scrolling="no" src="title.html">   
> 
>   
> 
>  
> marginheight="0" scrolling="no"
> 
> src="/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=<%=sessionId1%>&WEBL
> 
> AYOUT=<%=webLayout%>&THEMINGTYPE=1">
> 
>
> marginheight="0" scrolling="no"
> 
> src="/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=<%=sessionId2%>&WEBL
> 
> AYOUT=<%=webLayout%>&THEMINGTYPE=2">
> 
>   
> 
> 
> 
> 
> 
>  
> 
> thanks,
> 
>  
> 
>  
> 
> Jackie Ng wrote:
> 
>> 
> 
>> The easiest way is to have an outer frameset (or 2 outer iframes) that
> 
>> points to your individual ajax viewers.
> 
>> 
> 
>> - Jackie
> 
>> 
> 
>> 
> 
>> Rodolfo Moreno wrote:
> 
>>> 
> 
>>> I want to put two maps in the same layout and moreover each map must
> 
> be
> 
>>> themed in different way just after of that the application to be
> 
> loaded
> 
>>> (the theming must be done automatically according to a placed
> 
> preference
> 
>>> in the first time that the application to be loaded).
> 
>>> 
> 
>>> I did a test application usign ajax viewer and I got it, however I
> 
> have
> 
>>> modified many files of the mapguide extensions (MAINFRAME.ASPX,
> 
>>> FRAMESETTASKBAR.TEMPL, FRAMESETNOTASKBAR.TEMPL, MAPFRAME.ASPX,
> 
>>> AJAXMAPPANE.TEMPL). 
> 
>>> I would like to know if it's possible to achieve it without the need
> 
> of
> 
>>> modifying that files?
> 
>>> Also I'd like to know if it's possible to do it in FUSION viewer (I
> 
>>> prefer FUSION than AJAXVIEWER).
> 
>>> 
> 
>>> I am attaching a image of my test application.
> 
>>> 
> 
>>> thanks in advance, 
> 
>>> 
> 
>>>  http://n2.nabble.com/file/n2189508/testApp.jpg 
> 
>>> 
> 
>> 
> 
>> 
> 
>  
> 
>  
> 
> -
> 
> Rodolfo Moreno
> 
> CivilEng
> 
>  
> 
> -- 
> 
> View this message in context:
> 
> http://n2.nabble.com/Two-maps-in-the-same-layout-tp2189508p2192823.html
> 
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> 
>  
> 
> ___
> 
> mapguide-users mailing list
> 
> mapguide-users@lists.osgeo.org
> 
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> ___
> 
> mapguide-users mailing list
> 
> mapguide-users@lists.osgeo.org
> 
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> ___
> 
> mapguide-users mailing list
> 
> mapguide-users@lists.osgeo.org
> 
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Two-maps-in-the-same-layout-tp2189508p2199928.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] Two maps in the same layout

2009-01-21 Thread Rodolfo Moreno

Hi Jackie,
I don't understand what you want to tell me, could you elaborate on your
idea?
this the code of my beginning page


String webLayout =
"Library://Samples/Sheboygan/Layouts/SheboyganAspTest.WebLayout";

String defaultUser = "Anonymous";
String defaultPassword = "";

String sessionId1 = "";
String sessionId2 = "";


<%
try
{
// Initialize a session and register a variable to hold the
// session id, then initialize the Web Extensions, connect
// to the site, and create a session.

InitializeWebTier();

MgUserInformation userInfo = new MgUserInformation(defaultUser,
defaultPassword);
MgSite site = new MgSite();
site.Open(userInfo);
sessionId1 = site.CreateSession();

site = new MgSite();
site.Open(userInfo);
sessionId2 = site.CreateSession();
}
catch (Exception e)
{
Response.Write(e.Message);
}
%>



Viewer Sample Application


 
  


  



thanks,


Jackie Ng wrote:
> 
> The easiest way is to have an outer frameset (or 2 outer iframes) that
> points to your individual ajax viewers.
> 
> - Jackie
> 
> 
> Rodolfo Moreno wrote:
>> 
>> I want to put two maps in the same layout and moreover each map must be
>> themed in different way just after of that the application to be loaded
>> (the theming must be done automatically according to a placed preference
>> in the first time that the application to be loaded).
>> 
>> I did a test application usign ajax viewer and I got it, however I have
>> modified many files of the mapguide extensions (MAINFRAME.ASPX,
>> FRAMESETTASKBAR.TEMPL, FRAMESETNOTASKBAR.TEMPL, MAPFRAME.ASPX,
>> AJAXMAPPANE.TEMPL). 
>> I would like to know if it's possible to achieve it without the need of
>> modifying that files?
>> Also I'd like to know if it's possible to do it in FUSION viewer (I
>> prefer FUSION than AJAXVIEWER).
>> 
>> I am attaching a image of my test application.
>> 
>> thanks in advance, 
>> 
>>  http://n2.nabble.com/file/n2189508/testApp.jpg 
>> 
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Two-maps-in-the-same-layout-tp2189508p2192823.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] Two maps in the same layout

2009-01-20 Thread Rodolfo Moreno

I want to put two maps in the same layout and moreover each map must be
themed in different way just after of that the application to be loaded (the
theming must be done automatically according to a placed preference in the
first time that the application to be loaded).

I did a test application usign ajax viewer and I got it, however I have
modified many files of the mapguide extensions (MAINFRAME.ASPX,
FRAMESETTASKBAR.TEMPL, FRAMESETNOTASKBAR.TEMPL, MAPFRAME.ASPX,
AJAXMAPPANE.TEMPL). 
I would like to know if it's possible to achieve it without the need of
modifying that files?
Also I'd like to know if it's possible to do it in FUSION viewer (I prefer
FUSION than AJAXVIEWER).

I am attaching a image of my test application.

thanks in advance, 

http://n2.nabble.com/file/n2189508/testApp.jpg 

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Two-maps-in-the-same-layout-tp2189508p2189508.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


Re: [mapguide-users] Creating Packages dynamically

2009-01-16 Thread Rodolfo Moreno

thanks Kenneth, It's cool.


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> Yes, you need at least 1.0.9, but the released version has a bug,
> with creating packages, so you should get the preview release from the 
> download page:
> http://trac.osgeo.org/mapguide/wiki/maestro/Downloads
> 
> The package options are found in the "Package" menu.
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> Rodolfo Moreno skrev:
>> Hi, I didn't know that Mapguide Maestro can create mapguide packages.
>> I have 1.0.8.27399 version and I have not found this option.
>> could you tell me how can I achieve this?
>> or maybe I need the last maestro version.
>>
>> Thanks,
>>
>>
>> Kenneth Skovhede, GEOGRAF A/S wrote:
>>   
>>> Hello Padmini.
>>>
>>> There are no ready-to-use code in MaestroAPI for authoring (creating) 
>>> MapGuide Packages.
>>> Creating packages is an administrative task, so I won't expect many API 
>>> users to have a need for it.
>>>
>>> The Maestro application has code that creates and edits packages.
>>> The code can be found here:
>>> http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Maestro/PackageManager
>>>
>>> Especially the file "PackageBuilder.cs" should be of interrest.
>>>
>>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>>
>>>
>>>
>>> padmini godavarthi skrev:
>>> 
>>>> Hi,
>>>> iam using mapguide opensource 2.0 (with .net 2.0+IIS 5.1)
>>>> Presently iam using mapguide maestro for creating  mapguide
>>>> packages.but
>>>> i
>>>> want to create my package dynamically through coding(using
>>>> maestroAPI.dll)
>>>>
>>>> can any boby plz help me so that it will be very helpful to me.
>>>>
>>>>
>>>>
>>>> Regards,
>>>> Padmini.  
>>>>   
>>>>   
>>> ___
>>> mapguide-users mailing list
>>> mapguide-users@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>>
>>> 
>>
>>
>> -
>> Rodolfo Moreno
>> CivilEng
>>
>>   
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Creating-Packages-dynamically-tp2167497p2170878.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


Re: [mapguide-users] Creating Packages dynamically

2009-01-16 Thread Rodolfo Moreno

Hi, I didn't know that Mapguide Maestro can create mapguide packages.
I have 1.0.8.27399 version and I have not found this option.
could you tell me how can I achieve this?
or maybe I need the last maestro version.

Thanks,


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> Hello Padmini.
> 
> There are no ready-to-use code in MaestroAPI for authoring (creating) 
> MapGuide Packages.
> Creating packages is an administrative task, so I won't expect many API 
> users to have a need for it.
> 
> The Maestro application has code that creates and edits packages.
> The code can be found here:
> http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Maestro/PackageManager
> 
> Especially the file "PackageBuilder.cs" should be of interrest.
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> padmini godavarthi skrev:
>> Hi,
>> iam using mapguide opensource 2.0 (with .net 2.0+IIS 5.1)
>> Presently iam using mapguide maestro for creating  mapguide packages.but
>> i
>> want to create my package dynamically through coding(using
>> maestroAPI.dll)
>>
>> can any boby plz help me so that it will be very helpful to me.
>>
>>
>>
>> Regards,
>> Padmini.  
>>   
> ___________
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Creating-Packages-dynamically-tp2167497p2168834.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] SHP to SQL Server 2008 spatial

2009-01-06 Thread Rodolfo Moreno

Hi Peter and Jackie I would like to know as well the correct procedure. I
never have used this tool (FDOToolbox). A time ago I was using the tool
which Martin mention, however I have had some issues with it. I posted the
problem (http://n2.nabble.com/convert-shp2sql2008-td1818680.html#a1818680)
but I could not have worked out it.

thanks


Martin Morrison wrote:
> 
> 
> 
> Peter Filip wrote:
>> 
>> Ok Jackie I'll hit you back.
>> 
>> Anyway, is there any other tool to accomplish this task ? (to load
>> spatial data to SQL 2008 spatial)
>> 
>> 
> 
> http://www.sharpgis.net/page/SQL-Server-2008-Spatial-Tools.aspx
> 
> Martin
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/SHP-to-SQL-Server-2008-spatial-tp2115403p2117981.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


RE: [mapguide-users] Does anyone use Feature Joins?

2008-12-15 Thread Rodolfo Moreno

Feature joins also have problem with dynamic theming.
I have posted a ticket for that ( http://trac.osgeo.org/mapguide/ticket/745)
In this ticket contains data attached data in order to replicate the error.

Cheers


Bruce Dechant wrote:
> 
> Thanks!
> 
> -Original Message-
> From: mapguide-users-boun...@lists.osgeo.org
> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Andy Morsell
> Sent: Friday, December 12, 2008 10:54 AM
> To: 'MapGuide Users Mail List'
> Subject: RE: [mapguide-users] Does anyone use Feature Joins?
> 
> Bruce,
> I've added a new ticket.  It is http://trac.osgeo.org/mapguide/ticket/791
> 
> Andy
> 
> 
> -Original Message-
> From: mapguide-users-boun...@lists.osgeo.org
> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Bruce Dechant
> Sent: Friday, December 12, 2008 8:53 AM
> To: MapGuide Users Mail List
> Subject: RE: [mapguide-users] Does anyone use Feature Joins?
> 
> Andy,
> 
> Would it be possible to create a new trac ticket for this and attach the
> data that replicates this issue? If not possible to attach the data -
> could
> you fully describe the join (primary, secondary, join type, what is
> indexed,
> any filtering, etc...)
> 
> Thanks,
> Bruce
> 
> -Original Message-
> From: mapguide-users-boun...@lists.osgeo.org
> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Andy Morsell
> Sent: Friday, December 12, 2008 9:23 AM
> To: 'MapGuide Users Mail List'
> Subject: RE: [mapguide-users] Does anyone use Feature Joins?
> 
> I have encountered very similar problems with almost every join I have
> attempted in MGOS or MGE.  My most recent experience was for a class that
> I
> taught at AU where a polygon SDF file is joined to a small Access
> database.
> Both MGE 2009 and MGOS 2.0.2 just spin on this join with the a CPU maxed
> anytime the layer is accessed.  I will let it spin for a couple of minutes
> and then end the process.  The crazy thing is that I know for a fact that
> this exact join worked just fine in MGE 2008 / MGOS 1.2 because I used the
> same dataset for the same class last year!
> 
> Andy Morsell, P.E.
> Spatial Integrators, Inc.
> www.SpatialGIS.com
> 
> 
> -Original Message-
> From: mapguide-users-boun...@lists.osgeo.org
> [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jackie Ng
> Sent: Thursday, December 11, 2008 8:39 PM
> To: mapguide-users@lists.osgeo.org
> Subject: [mapguide-users] Does anyone use Feature Joins?
> 
> 
> Hi All,
> 
> I was wondering if anyone uses this feature (pardon the pun).
> 
> When I first started with MapGuide, this was the feature that was of most
> interest to me as it seemed like an easy way to link spatial data with
> whatever non-spatial databases we have around.
> 
> But after many bad experiences with performance, and some really nasty
> join
> bugs (mainly http://trac.osgeo.org/mapguide/ticket/502), I've have totally
> shunned using feature joins, and either resorting to either pre-joining,
> baking the data and refreshing the dataset at regular intervals, or using
> a
> spatially enabled rdbms that does the joins at the dbms level.
> 
> I've have followed the best practices guide, but is seems every database I
> have encountered has its own set of quirks that don't play nice with
> MapGuide.
> 
> Most of our clients were sold on the feature joins capability (well by my
> sales colleagues anyway), and it pains me (as an implementer, one to has
> to
> deliver) to have to workaround this feature because it fails to perform at
> a
> satisfactory level.
> 
> I'd like to hear other people's experiences with feature joins. Is your
> experience better/worse?
> 
> - Jackie
> --
> View this message in context:
> http://n2.nabble.com/Does-anyone-use-Feature-Joins--tp1646599p1646599.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mail

Re: [mapguide-users] Fusion Error When Selecting From Search Results

2008-11-25 Thread Rodolfo Moreno

You have to do the change in the client script that receive the callback of
your server app.
for instances in the case of the dotnetviewer sample. the thememain,
querymain pages would be the client
script where you should do the change. In this files you must search the
parent.parent.refresh() and change it by Refresh() of the
MapGuideViewerApi.js

Regards


Eric123 wrote:
> 
> 
> Hi Rodolfo M.,
> 
> Which file need to be changed "parent.parent.refresh()" by "Refresh()"?
> :confused:
> 
> Cheers,
> Eric
> 
> 
> ralph2008 wrote:
>> 
>> Hi Shamrock,
>> 
>> I think that you are using the Ajax API viewer instead of using theFusion
>> Viewer API.
>> The fusion viewer API is the "MapGuideViewerApi.js" and is located in:
>> "C:\Program
>> Files\MapGuideOpenSource2.0\WebServerExtensions\www\fusion\MapGuide"
>> 
>> You must referencingt this file in your script and change the some lines
>> in your scripts:
>> for instances: change "parent.parent.refresh()" by "Refresh()"
>> 
>> I hope it help you
>> 
>> Regards,
>> 
>> Rodolfo M.
>> GIS Developer
>> Research & Development
>> Voxiva, Inc.
>> 
>> 
>> 
>> Shamrock Shooter wrote:
>>> 
>>> I am running MOS 2.0.1 with AutoDesk Studio 2009.  I created a search
>>> button to lookup address from my tax parcels shapefile attribute data. 
>>> If i run it in the basic layout it works fine.  If I run it in the
>>> fusion
>>> layout, it will populate a list of values in the task pane, but when I
>>> select one of the search results, it does not zoom to it in the map and
>>> throws me this error:
>>> 
>>> Fusion Error:
>>> WARNING: Exception occurred in AJAX callback.
>>> SyntaxError: syntax error
>>> Location: undefined (737)
>>> xx)
>>> 
>>> Can anyone help me out?  I tried some searching but didn't find any
>>> similar posts.
>>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Fusion-Error-When-Selecting-From-Search-Results-tp18161869p20675295.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
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Re%3A-Fusion-Error-When-Selecting-From-Search-Results-tp1575061p1576904.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 maps using openlayers

2008-11-19 Thread Rodolfo Moreno

Thanks Kenneth, finally I could fix it.
The problem was that style for the "map" div is not being placed suitable
and thus the map was not displayed. 

It happenned because my aspx page had the XHTML doc type at start of the
page.

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

XHTML hopes that the styles to be linked to other CSS file. So I removed
this line and the example is working.

Regards,



Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> Alright, that looks odd.
> It seems that the outermost div (named olMap) is hidden for some reason.
> have you tried to manually set the size and position for the div?
> like: 
> 
> The trace shows that the image is 300x300 but placed at -145 and -222 
> wich means that at most 155x78 pixels would be visible, wich is very
> weird.
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> Rodolfo Moreno skrev:
>> Kenneth,
>> In debug mode the init function is being used. 
>> In order to know whether mapguide server is requested I was seeing the
>> HTML 
>> firebug tab (see image attached) and it's possible see the image that
>> mapguide server has sent.
>>
>> Zac,
>> There is nothing in the firebug console tab
>>
>> maybe the image attached could be a clue what the viewer, in this case
>> open
>> layers is failing.
>> Regards,
>>
>>
>> zspitzer wrote:
>>   
>>> anything in the firebug console tab?
>>>
>>> On Wed, Nov 19, 2008 at 2:41 AM, Kenneth Skovhede, GEOGRAF A/S
>>> <[EMAIL PROTECTED]> wrote:
>>> 
>>>> The Firebug shows that you newer send a request to the MapGuide server.
>>>> Is there something missing, or are you never calling the init()
>>>> function?
>>>>
>>>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>>>
>>>>
>>>> Rodolfo Moreno skrev:
>>>>
>>>> Hi Kenneth,
>>>> Here is the javascript code. It's similar to the posted in the wiki
>>>> (http://trac.osgeo.org/mapguide/attachment/wiki/CodeSamples/JavaScript/OpenlayersExample/sheboygan.php)
>>>>
>>>> 
>>>>
>>>> var map, map2, layer;
>>>> //var url =
>>>> "<a  rel="nofollow" href="http://demo01.dmsolutions.ca/mapguide/mapagent/mapagent.fcgi"">http://demo01.dmsolutions.ca/mapguide/mapagent/mapagent.fcgi"</a>;;
>>>> //you can use this URL when MapGuide OS is installed locally
>>>>var url = "<a  rel="nofollow" href="http://localhost/mapguide/mapagent/mapagent.fcgi"">http://localhost/mapguide/mapagent/mapagent.fcgi"</a>;;
>>>>
>>>> var metersPerUnit = 111319.4908;  //value returned from
>>>> mapguide
>>>> var inPerUnit = OpenLayers.INCHES_PER_UNIT.m * metersPerUnit;
>>>> OpenLayers.INCHES_PER_UNIT["dd"] = inPerUnit;
>>>> OpenLayers.INCHES_PER_UNIT["degrees"] = inPerUnit;
>>>> OpenLayers.DOTS_PER_INCH = 96;
>>>>
>>>>
>>>> function init(){
>>>>
>>>>var mapBounds = new
>>>> OpenLayers.Bounds(-87.764986990963,43.691398128788,-87.6955215109,43.7975248);
>>>>var fixedScales
>>>> =[1000,1930.697730001,3727.593719998,7196.856730004,13894.95494,26826.95795,51794.74678997,10];
>>>>
>>>> var mapOptions = {
>>>> maxExtent: mapBounds,
>>>> scales: fixedScales
>>>> };
>>>>
>>>> map = new OpenLayers.Map( 'map', mapOptions ); 
>>>>
>>>>//tiled map
>>>>   var tiledParams = {
>>>>   mapdefinition:
>>>> 'Library://Samples/Sheboygan/MapsTiled/Sheboygan.MapDefinition',
>>>>   basemaplayergroupname: "Base Layer Group",
>>>> session: '<%=sessionId%>'
>>>>}
>>>>
>>>>   var tiledOptions = {
>>>>   units: "dd",
>>>>   singleTile: false
>>>> }
>>>>
>>>>   var tiledLayer = new OpenLayers.Layer.MapGuide(
>>>> "GetTileImage",
>>>>   

Re: [mapguide-users] Mapguide maps using openlayers

2008-11-19 Thread Rodolfo Moreno

Kenneth,
In debug mode the init function is being used. 
In order to know whether mapguide server is requested I was seeing the HTML 
firebug tab (see image attached) and it's possible see the image that
mapguide server has sent.

Zac,
There is nothing in the firebug console tab

maybe the image attached could be a clue what the viewer, in this case open
layers is failing.
Regards,


zspitzer wrote:
> 
> anything in the firebug console tab?
> 
> On Wed, Nov 19, 2008 at 2:41 AM, Kenneth Skovhede, GEOGRAF A/S
> <[EMAIL PROTECTED]> wrote:
>> The Firebug shows that you newer send a request to the MapGuide server.
>> Is there something missing, or are you never calling the init() function?
>>
>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>
>>
>> Rodolfo Moreno skrev:
>>
>> Hi Kenneth,
>> Here is the javascript code. It's similar to the posted in the wiki
>> (http://trac.osgeo.org/mapguide/attachment/wiki/CodeSamples/JavaScript/OpenlayersExample/sheboygan.php)
>>
>> 
>>
>> var map, map2, layer;
>> //var url =
>> "<a  rel="nofollow" href="http://demo01.dmsolutions.ca/mapguide/mapagent/mapagent.fcgi"">http://demo01.dmsolutions.ca/mapguide/mapagent/mapagent.fcgi"</a>;;
>> //you can use this URL when MapGuide OS is installed locally
>>  var url = "<a  rel="nofollow" href="http://localhost/mapguide/mapagent/mapagent.fcgi"">http://localhost/mapguide/mapagent/mapagent.fcgi"</a>;;
>>
>> var metersPerUnit = 111319.4908;  //value returned from mapguide
>> var inPerUnit = OpenLayers.INCHES_PER_UNIT.m * metersPerUnit;
>> OpenLayers.INCHES_PER_UNIT["dd"] = inPerUnit;
>> OpenLayers.INCHES_PER_UNIT["degrees"] = inPerUnit;
>> OpenLayers.DOTS_PER_INCH = 96;
>>
>>
>> function init(){
>>
>>  var mapBounds = new
>> OpenLayers.Bounds(-87.764986990963,43.691398128788,-87.6955215109,43.7975248);
>>  var fixedScales
>> =[1000,1930.697730001,3727.593719998,7196.856730004,13894.95494,26826.95795,51794.74678997,10];
>>
>> var mapOptions = {
>> maxExtent: mapBounds,
>> scales: fixedScales
>> };
>>  
>> map = new OpenLayers.Map( 'map', mapOptions );   
>>  
>>  //tiled map
>>   var tiledParams = {
>>   mapdefinition:
>> 'Library://Samples/Sheboygan/MapsTiled/Sheboygan.MapDefinition',
>>   basemaplayergroupname: "Base Layer Group",
>>   session: '<%=sessionId%>'
>>}
>>
>>   var tiledOptions = {
>>   units: "dd",
>>   singleTile: false
>> }
>>  
>>   var tiledLayer = new OpenLayers.Layer.MapGuide( "GetTileImage",
>>  url,
>>  tiledParams,
>>  tiledOptions );
>>   map.addLayer(tiledLayer);
>>  
>>  //un-tiled versions
>>
>>  var dynamicOverlayOptions = {
>>   buffer: 1,
>>   singleTile: true,
>>isBaseLayer : false,
>>visibility : false
>>  };
>>
>>  var mapImageOptions = {
>>   buffer: 1,
>>   singleTile: true,
>>   isBaseLayer : true
>>  };
>>
>> var untiledParams = {
>>  session: '<%=sessionId%>',
>>  mapname: 'Sheboygan'
>> };
>>
>> var dynamicLayer = new OpenLayers.Layer.MapGuide(
>> "GetDynamicMapOverlayImage",
>>  url,
>>  untiledParams,
>>  dynamicOverlayOptions );
>> map.addLayer(dynamicLayer);
>>  
>> var mapImageLayer = new OpenLayers.Layer.MapGuide( "GetMapImage",
>>  url,
>>  untiledParams,
>>  mapImageOptions );
>> map.addLayer(mapImageLayer);
>>
>> map.zoomToMaxExtent();
>>
>> map.addControl(new OpenLayers.Control.MousePosition());
>> map.addControl(new OpenLayers.Control.Scale());
>>  
>> var switcher=new OpenLayers.Control.LayerSwitcher();
>> 

Re: [mapguide-users] Mapguide maps using openlayers

2008-11-18 Thread Rodolfo Moreno

Hi Kenneth,
Here is the javascript code. It's similar to the posted in the wiki
(http://trac.osgeo.org/mapguide/attachment/wiki/CodeSamples/JavaScript/OpenlayersExample/sheboygan.php)



var map, map2, layer;
//var url =
"<a  rel="nofollow" href="http://demo01.dmsolutions.ca/mapguide/mapagent/mapagent.fcgi"">http://demo01.dmsolutions.ca/mapguide/mapagent/mapagent.fcgi"</a>;;
//you can use this URL when MapGuide OS is installed locally
var url = "<a  rel="nofollow" href="http://localhost/mapguide/mapagent/mapagent.fcgi"">http://localhost/mapguide/mapagent/mapagent.fcgi"</a>;;

var metersPerUnit = 111319.4908;  //value returned from mapguide
var inPerUnit = OpenLayers.INCHES_PER_UNIT.m * metersPerUnit;
OpenLayers.INCHES_PER_UNIT["dd"] = inPerUnit;
OpenLayers.INCHES_PER_UNIT["degrees"] = inPerUnit;
OpenLayers.DOTS_PER_INCH = 96;


function init(){

var mapBounds = new
OpenLayers.Bounds(-87.764986990963,43.691398128788,-87.6955215109,43.7975248);
var fixedScales
=[1000,1930.697730001,3727.593719998,7196.856730004,13894.95494,26826.95795,51794.74678997,10];

var mapOptions = {
maxExtent: mapBounds,
scales: fixedScales
};

map = new OpenLayers.Map( 'map', mapOptions );  

//tiled map
  var tiledParams = {
  mapdefinition:
'Library://Samples/Sheboygan/MapsTiled/Sheboygan.MapDefinition',
  basemaplayergroupname: "Base Layer Group",
 session: '<%=sessionId%>'
   }

  var tiledOptions = {
  units: "dd",
  singleTile: false
}

  var tiledLayer = new OpenLayers.Layer.MapGuide( "GetTileImage", 
url, 
tiledParams, 
tiledOptions );
  map.addLayer(tiledLayer);

 //un-tiled versions

 var dynamicOverlayOptions = {
  buffer: 1,
  singleTile: true,
  isBaseLayer : false,
  visibility : false
 };

 var mapImageOptions = {
  buffer: 1,
  singleTile: true,
 isBaseLayer : true
 };

var untiledParams = {
session: '<%=sessionId%>',
 mapname: 'Sheboygan'
};

var dynamicLayer = new OpenLayers.Layer.MapGuide(
"GetDynamicMapOverlayImage", 
url, 
untiledParams, 
dynamicOverlayOptions );
map.addLayer(dynamicLayer);

var mapImageLayer = new OpenLayers.Layer.MapGuide( "GetMapImage", 
url, 
untiledParams, 
mapImageOptions );
map.addLayer(mapImageLayer);

map.zoomToMaxExtent();

map.addControl(new OpenLayers.Control.MousePosition());
map.addControl(new OpenLayers.Control.Scale());

var switcher=new OpenLayers.Control.LayerSwitcher();
map.addControl(switcher);
switcher.maximizeControl();

}


The sessionId is returned as parameter to openlayers and the mapname is
hard-coded as 'Sheboygan'
only for the untiled version layer.

Also I have tested it with FF and firebug, I have gotten the same result
(see the image attached).

Regards,


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> How do you return the map name and sessionId to OpenLayers?
> 
> If you use Firebug (in Firefox), the "Net" tab will show you any errors 
> thrown by MapGuide.
> http://getfirebug.com/
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> Rodolfo Moreno skrev:
>> Hi all,
>> I have tried to port the wiki sample "display mapguide maps using
>> openlayers" from PHP to .NET without successful.
>>
>> The javascript code is the same of the example, the difference is the
>> SERVER
>> CODE. It's my .NET CODE:
>>
>> public partial class OLViewer : System.Web.UI.Page
>> {
>> public String sessionId;
>> protected void Page_Load(object sender, EventArgs e)
>> {
>> try
>> {
>> // Initialize the web tier
>> Utility utility = new Utility(Request);
>> utility.InitializeWebTier();
>>
>> MgUserInformation userInfo = new
>> MgUserInformation("Anonymous",
>> "");
>>
>>

[mapguide-users] Mapguide maps using openlayers

2008-11-17 Thread Rodolfo Moreno

Hi all,
I have tried to port the wiki sample "display mapguide maps using
openlayers" from PHP to .NET without successful.

The javascript code is the same of the example, the difference is the SERVER
CODE. It's my .NET CODE:

public partial class OLViewer : System.Web.UI.Page
{
public String sessionId;
protected void Page_Load(object sender, EventArgs e)
{
try
{
// Initialize the web tier
Utility utility = new Utility(Request);
utility.InitializeWebTier();

MgUserInformation userInfo = new MgUserInformation("Anonymous",
"");

MgSiteConnection siteCnn = new MgSiteConnection();
siteCnn.Open(userInfo);

MgSite site = siteCnn.GetSite();
sessionId = site.CreateSession();

userInfo.SetMgSessionId(sessionId);

MgResourceService resourceService =
(MgResourceService)siteCnn.CreateService(MgServiceType.ResourceService);
MgMappingService mappingService =
(MgMappingService)siteCnn.CreateService(MgServiceType.MappingService);

MgResourceIdentifier resId = new
MgResourceIdentifier("Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition");

MgMap map = new MgMap();
map.Create(resourceService, resId, "Sheboygan");

MgSelection sel = new MgSelection(map);
sel.Save(resourceService, "Sheboygan");

MgResourceIdentifier mapStateId = new
MgResourceIdentifier("Session:" + sessionId + "//" + "Sheboygan." +
MgResourceType.Map);
map.Save(resourceService, mapStateId);

}
catch (Exception er)
{
Response.Write(er.Message);
}
}
}

when I run the sample the Page is shown but not the map. (see attached
image).
http://n2.nabble.com/file/n1511002/MGusingOL.jpg 

I don't know what is the error.
I'd appreciate so much your suggestions.


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Mapguide-maps-using-openlayers-tp1511002p1511002.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] Tracking vehicles, Displaying positions

2008-11-07 Thread Rodolfo Moreno

There are many desktop GIS software open source that converts DWG2SHP. 
Try with gvSig
http://www.gvsig.gva.es/

Regards



Warren Medernach-2 wrote:
> 
> Yes, AutoCAD Map can import, export, and direct connect to SHP files.
> 
> A DXF is an Autodesk 'exchange format' and can also be read by AutoCAD
> Map.
> 
>  
> 
> Yes, MapGuide can import and connect (external) to SHP files.
> 
>  
> 
> Hope this helps
> 
> 
> Warren M
> 
>  
> 
>  
> 
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Carmelo
> Saffioti
> Sent: Friday, November 07, 2008 9:12 AM
> To: MapGuide Users Mail List
> Subject: Re: [mapguide-users] Tracking vehicles, Displaying positions
> 
>  
> 
> I don't have Autocad Map, but I'm planning to get the trial version to
> do this job faster...
> 
> For exporting shape files do I need Autocad Map? Do MapGuide import
> shape files? Some people told me that it can import DXF files...
> 
>  
> 
>   - Original Message - 
> 
>   From: Berdel, Brian <mailto:[EMAIL PROTECTED]>  
> 
>   To: MapGuide Users Mail List
> <mailto:mapguide-users@lists.osgeo.org>  
> 
>   Sent: Friday, November 07, 2008 3:20 PM
> 
>   Subject: RE: [mapguide-users] Tracking vehicles, Displaying
> positions
> 
>
> 
>   Do you have Autocad map or land desktop?  If so you can export
> to shape files. 
> 
>
> 
>   Brian 
> 
>
> 
>   From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Carmelo
> Saffioti
>   Sent: Friday, November 07, 2008 4:22 AM
>   To: MapGuide Users Mail List
>   Subject: Re: [mapguide-users] Tracking vehicles, Displaying
> positions
> 
>
> 
>   Hi Kenneth,
> 
>   thank you for your suggestion. I stored NMEA data with separate
> columns for lat/lon...
> 
>   Regarding DWG import, I'd like open source solutions, do you
> know anything about? DWG is proprietary, but if I export to DXF is there
> any open source solution to import it into MapGuide?
> 
>
> 
>   Cheers
> 
>   Carmelo
> 
>
> 
>   - Original Message - 
> 
>   From: Kenneth Skovhede, GEOGRAF A/S
> <mailto:[EMAIL PROTECTED]>  
> 
>   To: MapGuide Users Mail List
> <mailto:mapguide-users@lists.osgeo.org>  
> 
>   Sent: Thursday, November 06, 2008 9:17 AM
> 
>   Subject: Re: [mapguide-users] Tracking vehicles,
> Displaying positions
> 
>
> 
>   Hi Carmelo.
>   
>   If you pre-process your NMEA data and extract lat/lon
> values into columns, you 
>   can use the ODBC provider and make points of the
> columns.
>   I would suggest some kind of service that regularly does
> this on the MySql server.
>   
>   Since DWG is a proprietary format, you can't do it with
> open source tools.
>   Autodesk MapGuide Studio can import a DWG for you, and
> it is fairly inexpensive.
>   
>   
> 
>   Regards, Kenneth Skovhede, GEOGRAF A/S
> 
>   
>   
>   Carmelo Saffioti skrev: 
> 
>   Hi everybody,
>   I need to develop a system for tracking and displaying
> vehicles
>   positions. I'm storing NMEA gps sentences into a MySql
> DB. Now I'd
>   like to display these positions on a map. How can I do?
> I'm new to
>   this, can you give me any suggestion?
>   I have to create the map too, because this zone is not
> mapped. Is it
>   possible to create a map from a DWG cad file?
> 
>
> 
>   I hope you can help me
>   Cheers
>   Carmelo 
> 
>
>   
>   
> 
> 
> 
> 
>
>
>
>   ___
>   mapguide-users mailing list
>   mapguide-users@lists.osgeo.org
>   http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 
> 
> 
>   ___
>   mapguide-users mailing list
>   mapguide-users@lists.osgeo.org
>   http://lists.osgeo.org/mailman/listinfo/mapguide-u

RE: [mapguide-users] selectAggregate error

2008-10-30 Thread Rodolfo Moreno

done, ticket 745.
cheers


Jason Birch wrote:
> 
> If you have a reproducible issue, I would strongly encourage you to file
> a ticket against it:
> 
> http://trac.osgeo.org/mapguide/wiki/SubmitTicket
> 
> Please ensure that you provide enough information and data for the
> developers to _easily_ reproduce the problem.  Preferably an MGP that
> contains all of the data and data/layer/map definitions they will
> require, along with external data in something like an Access database
> and the name of the ODBC connection being used.  If the problem requires
> a lot of work to reproduce, it is less likely to receive attention.
> 
> Jason
> 
> -Original Message-
> From: Rodolfo Moreno
> Subject: Re: [mapguide-users] selectAggregate error
> 
> I have tested with different formats: unmanaged, managed shapes, managed
> sdf
> and unmanaged sql 2008 feature sources. As well I have tested in
> different
> viewers: Fusion and Ajax viewer. In all the cases the theming is wrong.
> 
> Could it be registered as an issue?
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/selectAggregate-error-tp1121116p1401726.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] selectAggregate error

2008-10-29 Thread Rodolfo Moreno

I am describing an issue, because the theming is not working well. 
Moog thinks that it is an mapguide issue as well. This is a fragment of the
email that he sent me (he gave  me permission to post it):
--
Hi Rodolfo,
i have the same problem but only with individual distribution(for linked
layers). Numerical works fine for both kind of layers (linked and not
linked). However, i think the problem is in the way the data is linked. is
the relationship set to one to one? my thematics used to fail when i use one
to many relationship. then i make it one to one and get the individual
distribution problem, fixed by the code ( not smoothly enough but it shows
me all features ) . this might be a mapguide bug or we are doing something
wrong lol
--

I have tested with different formats: unmanaged, managed shapes, managed sdf
and unmanaged sql 2008 feature sources. As well I have tested in different
viewers: Fusion and Ajax viewer. In all the cases the theming is wrong.

Could it be registered as an issue?



zspitzer wrote:
> 
> here the task about adding support ordering
> http://trac.osgeo.org/mapguide/ticket/618
> 
> can you create a MGP ?
> 
> On Wed, Oct 29, 2008 at 10:22 AM, ralph2008 <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hi Moog,
>> I have tried your code and it fixes partially the error.
>> The code avoids that the error to be raised, however the theming is not
>> done
>> suitably. I don't know whether it happens to you, but in my case the code
>> is
>> not theming the first feature of a layer.
>> I have a featureSource(SHP unmanaged) with 5 features:
>> featId=1
>> featId=2
>> featId=3
>> featId=4
>> featId=5
>> The Id order is created by mapguide studio (I guess).
>> Then when this layer is themed only the features 2,3,4 and 5 are
>> displayed.
>> It happens only with linked layers for either individual or numerical
>> distribution.
>>
>> I think that is an issue of mapguide, at least 2.0.1 since it's the
>> version
>> that I have.
>>
>> Regards
>>
>>
>> Rodolfo Moreno wrote:
>> >
>> >
>> > Yeah, that's rigth, I have gotten this error with linked layer (layer
>> with
>> > join to a database)
>> > I have received your new post in my email (with your code), but even it
>> > has
>> > not been posted in the forum, odd. I will try it.
>> > Thank very much Moog.
>> >
>> >
>> > Moog wrote:
>> >>
>> >>
>> >> hi, of course. i'm at college now i will send u the code when i arrive
>> >> home.
>> >> btw, my code its just a quicky way to solve this problem. i dont know
>> if
>> >> it's smooth enough. however it helps, i guess. did you get the error
>> in
>> a
>> >> linked layer? i only got that error when i was linking my layer with a
>> >> database.
>> >>
>> >> regards
>> >>
>> >>
>> >> Rodolfo Moreno wrote:
>> >>>
>> >>>
>> >>> Hi Moog I got the same error in .NET.
>> >>> I did what Mauricio suggested (put the selectDistinct statement
>> before
>> >>> that
>> >>> Addfeatureproperty ), but the same error is raised.
>> >>> Could share you share your solution, please.
>> >>>
>> >>> thanks in advance
>> >>>
>> >>>
>> >>>
>> >>> Moog wrote:
>> >>>>
>> >>>>
>> >>>> that's right. i fixed it making my own algorithm, but it want to
>> know
>> >>>> why
>> >>>> i
>> >>>> got that error. thanks
>> >>>>
>> >>>>
>> >>>> Mauricio Villablanca wrote:
>> >>>>>
>> >>>>>
>> >>>>> Your variable $aggregateOptions is a MgFeatureAggregateOptions
>> object
>> >>>>> and
>> >>>>> your featureService variable is a MgFeatureService object, right?
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> Moog wrote:
>> >>>>>>
>> >>>>>>
>> >>>>>> hello,
>> >>>>>> i need some help. Do you know why i get the following error in
>> this
>> >>>>>> line?
>> >>>>>>
>> >>>>>> $dataReader = $featur

Re: [mapguide-users] selectAggregate error

2008-10-28 Thread Rodolfo Moreno

Yeah, that's rigth, I have gotten this error with linked layer (layer with
join to a database)
I have received your new post in my email (with your code), but even it has
not been posted in the forum, odd. I will try it.
Thank very much Moog.


Moog wrote:
> 
> 
> hi, of course. i'm at college now i will send u the code when i arrive
> home.
> btw, my code its just a quicky way to solve this problem. i dont know if
> it's smooth enough. however it helps, i guess. did you get the error in a
> linked layer? i only got that error when i was linking my layer with a
> database.
> 
> regards
> 
> 
> Rodolfo Moreno wrote:
>> 
>> 
>> Hi Moog I got the same error in .NET.
>> I did what Mauricio suggested (put the selectDistinct statement before
>> that
>> Addfeatureproperty ), but the same error is raised.
>> Could share you share your solution, please.
>> 
>> thanks in advance
>> 
>> 
>> 
>> Moog wrote:
>>> 
>>> 
>>> that's right. i fixed it making my own algorithm, but it want to know
>>> why
>>> i
>>> got that error. thanks
>>> 
>>> 
>>> Mauricio Villablanca wrote:
>>>> 
>>>> 
>>>> Your variable $aggregateOptions is a MgFeatureAggregateOptions object
>>>> and
>>>> your featureService variable is a MgFeatureService object, right?
>>>> 
>>>> 
>>>> 
>>>> Moog wrote:
>>>>> 
>>>>> 
>>>>> hello,
>>>>> i need some help. Do you know why i get the following error in this
>>>>> line?
>>>>> 
>>>>> $dataReader = $featureService->SelectAggregate($resId,
>>>>> $layer->GetFeatureClassName(), $aggregateOptions);
>>>>> 
>>>>> where, $aggregateOptions is
>>>>> $aggregateOptions->AddFeatureProperty($this->args['PROPERTYNAME']);
>>>>> $aggregateOptions->SelectDistinct(true);
>>>>> 
>>>>> Index is out of range. Exception occurred in method GetItem at line 81
>>>>> in
>>>>> file
>>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\common\foundation\System/DisposableCollection.cpp
>>>>>  
>>>>> Index is out of range.
>>>>> - MgFeatureServiceHandler.ProcessOperation line 83 file
>>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\server\src\services\feature\FeatureServiceHandler.cpp
>>>>> - MgOpSelectFeaturesSpatial.Execute line 110 file
>>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\server\src\services\feature\OpSelectFeaturesSpatial.cpp
>>>>> - MgServerSelectFeatures.SelectFeatures line 249 file
>>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\server\src\services\feature\ServerSelectFeatures.cpp
>>>>> - GetItem line 81 file
>>>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\common\foundation\System/DisposableCollection.cpp
>>>>>  
>>>>> 
>>>>> thanks ;)
>>>>> 
>>>>> -- 
>>>>> View this message in context:
>>>>> http://www.nabble.com/selectAggregate-error-tp19690193p19690193.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
>>>>> 
>>>>> 
>>>> 
>>>> -- 
>>>> View this message in context:
>>>> http://n2.nabble.com/selectAggregate-error-tp1121116p1299635.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
>>>> 
>>>> 
>>> 
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/selectAggregate-error-tp19690193p19838822.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
>>> 
>>> 
>> 
>> 
>> -
>> Rodolfo Moreno
>> CivilEng
>> 
>> -- 
>> View this message in context:
>> http://n2.nabble.com/selectAggregate-error-tp1121116p1384640.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
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/selectAggregate-error-tp19690193p20198179.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
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/selectAggregate-error-tp1121116p1387543.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] convert shp2sql2008

2008-10-28 Thread Rodolfo Moreno

AmyN I was using this tool before (SQL-Server-2008-Spatial-Tools). however
I've had problems uploading some shapes.
Some months ago I had the sql 2008 (CTP november 2007) and I used 1.1.2
spatial tool for uploading my shapes and it works well. After I installed
the sql 2008 (CTP febraury 2008) and I got some erros when I tried uploading
my shapes with geographic coordinates, so I got the last version (1.2.0) but
now not even 
I can connect to the database. Then I decided to get another tool.

Zac I already have the fdo2fdo tool 0.7.5 (I mentioned it in previous post).
My problem is that I could connect this tool to the sql 2008 (my previous
post describes all what I did but without success).

Thanks,



zspitzer wrote:
> 
> try googling for fdo2fdo or fdotoolbox
> 
> z
> 
> On Tue, Oct 28, 2008 at 4:08 PM, AmyN <[EMAIL PROTECTED]> wrote:
>>
>> not sure if this is quite what you were looking for ... but worth a look?
>>
>> http://www.sharpgis.net/page/SQL-Server-2008-Spatial-Tools.aspx
>>
>>
>> -
>> Amy Norcott
>> GIS Analyst
>> Wollongong, Australia
>> --
>> View this message in context:
>> http://www.nabble.com/convert-shp2sql2008-tp20152714p20201480.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
>>
> 
> 
> 
> -- 
> Zac Spitzer -
> http://zacster.blogspot.com (My Blog)
> +61 405 847 168
> _______
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/convert-shp2sql2008-tp1372543p1387486.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] selectAggregate error

2008-10-27 Thread Rodolfo Moreno

Hi Moog I got the same error in .NET.
I did what Mauricio suggested (put the selectDistinct statement before that
Addfeatureproperty ), but the same error is raised.
Could share you share your solution, please.

thanks in advance



Moog wrote:
> 
> 
> that's right. i fixed it making my own algorithm, but it want to know why
> i
> got that error. thanks
> 
> 
> Mauricio Villablanca wrote:
>> 
>> 
>> Your variable $aggregateOptions is a MgFeatureAggregateOptions object and
>> your featureService variable is a MgFeatureService object, right?
>> 
>> 
>> 
>> Moog wrote:
>>> 
>>> 
>>> hello,
>>> i need some help. Do you know why i get the following error in this
>>> line?
>>> 
>>> $dataReader = $featureService->SelectAggregate($resId,
>>> $layer->GetFeatureClassName(), $aggregateOptions);
>>> 
>>> where, $aggregateOptions is
>>> $aggregateOptions->AddFeatureProperty($this->args['PROPERTYNAME']);
>>> $aggregateOptions->SelectDistinct(true);
>>> 
>>> Index is out of range. Exception occurred in method GetItem at line 81
>>> in
>>> file
>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\common\foundation\System/DisposableCollection.cpp
>>>  
>>> Index is out of range.
>>> - MgFeatureServiceHandler.ProcessOperation line 83 file
>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\server\src\services\feature\FeatureServiceHandler.cpp
>>> - MgOpSelectFeaturesSpatial.Execute line 110 file
>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\server\src\services\feature\OpSelectFeaturesSpatial.cpp
>>> - MgServerSelectFeatures.SelectFeatures line 249 file
>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\server\src\services\feature\ServerSelectFeatures.cpp
>>> - GetItem line 81 file
>>> d:\buildforgeprojects\carrera_nightly\build_32.2\ent\os\common\foundation\System/DisposableCollection.cpp
>>>  
>>> 
>>> thanks ;)
>>> 
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/selectAggregate-error-tp19690193p19690193.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
>>> 
>>> 
>> 
>> -- 
>> View this message in context:
>> http://n2.nabble.com/selectAggregate-error-tp1121116p1299635.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
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/selectAggregate-error-tp19690193p19838822.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
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/selectAggregate-error-tp1121116p1384640.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] GD vs AGG

2008-10-24 Thread Rodolfo Moreno

I was reading the RFC 52 about Remove GD Renderer. I think that AGG has some
disadvantage yet, for examples for rendering points. 
AGG is not rendering well layer points, mainly because It paints the thick
lines, thus the points border are thicker than points filler (see images
attached).

Cheers,
http://n2.nabble.com/file/n1372808/AGGwithPointsTheme.jpg 
http://n2.nabble.com/file/n1372808/GDwithPointsTheme.jpg 

-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/GD-vs-AGG-tp1372808p1372808.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] Tool for calculate Area

2008-10-24 Thread Rodolfo Moreno

Is it possible to calculate the Area  such as to do the measure tool for
calculating distances?

Regards,


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Tool-for-calculate-Area-tp1372552p1372552.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] convert shp2sql2008

2008-10-24 Thread Rodolfo Moreno

Hi All, 
I have tried to convert shp to sql server 2008, but without success.

I am using SL-King's FDO2FDO 0.7.5 version.

I have copied the dll "SQLServerSpatialProvider.dll" and
"SQLServerSpatialOverrides.dll" 3.3.0.0 version to the directory of the
fdo2fdo and I have modified the providers.xml, but the FDO2FDO, doesn't
recognize it, since I couldn't create the FDO connection for the sql2008. 

I have mssql server 2008 (pre_release 10.0.1442.32) 

Any help will be well appreciated


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/convert-shp2sql2008-tp1372543p1372543.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] SQL Import Spatial Data

2008-10-22 Thread Rodolfo Moreno

Hi Jason, 
could you elaborate about how import shp2slq2008 using SL-King's
FDO2FDO?

I have downloaded 0.7.5 version. 
I have added the dll "SQLServerSpatialProvider.dll" and
"SQLServerSpatialOverrides.dll" 3.3.0.0 version to the directory of the
fdo2fdo and I have modified the providers.xml

I guess FDO2FDO doesn't recognize it, since I couldn't create the FDO
connection.
 
I have mssql server 2008 (pre_release 10.0.1442.32)

thanks in advance 



Jason Birch wrote:
> 
> Yes, using FME.  That part was pretty darn easy.  You may also have some
> success (not with the DWG part) using Jackie's FDO Toolbox or SL-King's
> FDO2FDO.
> 
>  
> 
> I found SQL 2008 to be relatively fast (compared to other RDBMS) but the
> lack of curve support and its insistence on valid OGC geometry were
> showstoppers for me.
> 
>  
> 
> Jason
> 
>  
> 
> From: Greenhough, Jamie
> Subject: [mapguide-users] SQL Import Spatial Data
> 
>  
> 
> Does anyone have experience with importing spatial data to SQL 2008?
> Specifically SHP/DWG -> SQL.
> 
>  
> 
> We are exploring the development effort and performance of using
> unmanaged SHP/DWG files with alias' vs. importing these files into
> SQL2008 and using FDO.
> 
>  
> 
> Any input is appreciated, thanks.
> 
> 
> ___________
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/SQL-Import-Spatial-Data-tp1312554p1364813.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] Site info 0 values problem with 2.0.2

2008-10-21 Thread Rodolfo Moreno

Hi Zac,
I don't know the meaning of it, but I have tested the url in my testing
server and I have gotten this response.

0 
0 
0 
0 
-1 

In my case the negative value is in CpuUtilization.
My plataform: w2003 sp2, iis 6, mapguide 2.0.1

Hope this helps


zspitzer wrote:
> 
> On windows,
> 
> http://localhost:8008/mapguide/mapagent/mapagent.fcgi?OPERATION=GETSITEINFO&VERSION=1.0.0&LOCALE=en&CLIENTAGENT=MapGuide+Developer
> 
> I am seeing this on a server which is under reasonable load (mgserver
> between 40-90% CPU)
> 
> 0
> 0
> 0
> -20511430
> 0
> 
> AverageOperationTime looks wierd
> 
> the queues numbers & cpu usage are just wrong
> 
> anyone else seeing this?
> 
> 
> -- 
> Zac Spitzer -
> http://zacster.blogspot.com (My Blog)
> +61 405 847 168
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Site-info-0-values-problem-with-2.0.2-tp1358904p1359910.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] Accessing the Task Frame / Selection changed | Fusion

2008-10-11 Thread Rodolfo Moreno

Hi Brian I have the same question.
by the moment I have modified the selection panel in order to update values,
however I would like to achieve this functionality.

If you have gotten any clue, please share it.


Berdel, Brian wrote:
> 
> Hello all, 
> 
> I am trying to access the task frame when a selection is made...I can
> hook to the select widget but I really have no idea how to access the
> task frame from javascript... (if I wanted to perform a _postback in
> Javascript on it or update values.) 
> 
>  
> 
> Any help appreciated!
> 
>  
> 
> Thanks, 
> 
>  
> 
> -Brian
> 
>  
> 
>  
> 
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/Accessing-the-Task-Frame---Selection-changed-%7C-Fusion-tp1304585p1321549.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] StatusScale issue in scale ranges

2008-10-06 Thread Rodolfo Moreno

Thanks Jason for your explanation and I agree about the current behavior now
that I already understood how it works.

Regards,


Jason Birch wrote:
> 
> I'd suggest trying:
> 
> 0-15000
> 15000-Infinity
> 
> Or
> 
> 0-15001
> 15001-Infinity
> 
> Depending on whether you want the lower or the upper rule to display at
> 1:15000.  Otherwise, you're leaving a gap of 1.0 in your scale range.
> 
> MapGuide can't display both the lower 15000 and the upper 15000 at the
> same time, so the developers had to choose one.  I'm guessing that the
> code does something like
> 
> lowerbounds <= n < upperbounds
> 
> A bit of Google Code Search shows this around line 709 of
> MappingUtil.cpp in the Mapping Service, confirming my guess:
> 
> // make sure we have a valid scale range 
> if (scale >= dl->GetMinScale() && scale < dl->GetMaxScale())
> 
> http://tinyurl.com/4yhnwc
> 
> Note, this isn't a bug.  I'll be really annoyed if someone "fixes" this,
> as it is now my expected behaviour.
> 
> Jason
> 
> -Original Message-
> From: Rodolfo Moreno
> Subject: Re: [mapguide-users] StatusScale issue in scale ranges
> 
> I have two scale ranges
> 0-15000
> 15001 - infinite
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/StatusScale-issue-in-scale-ranges-tp1142302p1301345.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] [ZS1] Re: StatusScale issue in scale ranges

2008-10-06 Thread Rodolfo Moreno

Hi Kenneth,
that's rigth, although I've just realized of it today.
Regards,


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> That sounds VERY strange.
> So you have:
> 15001 -> Visible
> 15000 -> Invisible
> 14999 -> Visible
> 
> But ONLY when typing the range in the scale box?
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> Rodolfo Moreno skrev:
>> Hi Kenneth,
>> I know the behavior of the scale ranges.
>> My case is the following¨
>> I have two scale ranges
>> 0-15000
>> 15001 - infinite
>>
>> when I start the map can see the layer according to 15001 - inifinte
>> scale
>> range, however when you do zoom in until 15000 using the status scale the
>> layer disappears. When I do the same usign the slider, zoom rectangle or
>> zoom in tool the layer shows up according to 0-15000 scale ranges.
>> It happen with any of viewers (fusion, ajax or dwf).
>>
>> Regards,
>>
>>
>> Kenneth Skovhede, GEOGRAF A/S wrote:
>>   
>>> Can you clarify the problem a bit?
>>>
>>> If you have a layer with scale ranges:
>>> 0-2000 : Red dots
>>> 2001-Infinite : Blue dots
>>>
>>> Does it change from blue to red if you type in "2000" in the status bar 
>>> at the bottom?
>>> Does it change if you use the slider (to the same range)?
>>> Does it change if you drag a rectange (to the same range)?
>>> (The change is expected behavior)
>>>
>>> If you have ranges:
>>> 0-2000
>>> 4000-Infinite
>>>
>>> The layer will be invisible in the range [2001-3999], which is correct 
>>> behavior.
>>>
>>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>>
>>>
>>>
>>> Rodolfo Moreno skrev:
>>> 
>>>> Hi all,
>>>> I got an issue in mapguide 2.0.1.
>>>> Layers with different scale ranges become invisible when you do zoom in
>>>> with
>>>> the StatusScale until to achieve one of the scale ranges. 
>>>> It happens with any of the viewers (AJAX, DWF or FUSION), which is why
>>>> I
>>>> think that the problem is the mapguide server.
>>>> I don't know whether this issue has been solved in the 2.0.2 version
>>>>
>>>> I would like to know whether someone has gotten the same problem.
>>>>
>>>> Regards
>>>>
>>>>
>>>> -
>>>> Rodolfo Moreno
>>>> CivilEng
>>>>
>>>>   
>>>>   
>>> ___
>>> mapguide-users mailing list
>>> mapguide-users@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>>
>>> 
>>
>>
>> -
>> Rodolfo Moreno
>> CivilEng
>>
>>   
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/StatusScale-issue-in-scale-ranges-tp1142302p1301280.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] StatusScale issue in scale ranges

2008-10-06 Thread Rodolfo Moreno

Hi Maskin,
I have tried the range scales that you suggest me
and the wrong behavior continues.

I realized as well that It only happen it in the edge of the scale range (at
least for my case).
for instance:
range scales:
range1: 0-15001
range2: 15002 - inifinite

the map starts in range2. next I put 15001 (inside of the range1) in status
scale and the layer disappears. however when I put 15000 or numbers less
than 15001 the layer shows up (right behavior).

I only have tested with mapguide server 2.0.1, I don't know whether this
issue has been solved in the 2.0.2 version.

Regards,



Maksim Sestic wrote:
> 
> Hi Rodolfo,
> 
> It's a known (?) bug, at least with MGE 2008. You better use:
> 
> 0 - 15001
> 15002 - Infinity 
> 
> set of ranges. It seems that something's broken with "inclusive" part of
> the
> range.
> 
> Regards,
> Maksim Sestic
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Rodolfo
> Moreno
> Sent: Sunday, October 05, 2008 17:23
> To: mapguide-users@lists.osgeo.org
> Subject: Re: [mapguide-users] StatusScale issue in scale ranges
> 
> 
> Hi Kenneth,
> I know the behavior of the scale ranges.
> My case is the following¨
> I have two scale ranges
> 0-15000
> 15001 - infinite
> 
> when I start the map can see the layer according to 15001 - inifinte scale
> range, however when you do zoom in until 15000 using the status scale the
> layer disappears. When I do the same usign the slider, zoom rectangle or
> zoom in tool the layer shows up according to 0-15000 scale ranges.
> It happen with any of viewers (fusion, ajax or dwf).
> 
> Regards,
> 
> 
> Kenneth Skovhede, GEOGRAF A/S wrote:
>> 
>> Can you clarify the problem a bit?
>> 
>> If you have a layer with scale ranges:
>> 0-2000 : Red dots
>> 2001-Infinite : Blue dots
>> 
>> Does it change from blue to red if you type in "2000" in the status 
>> bar at the bottom?
>> Does it change if you use the slider (to the same range)?
>> Does it change if you drag a rectange (to the same range)?
>> (The change is expected behavior)
>> 
>> If you have ranges:
>> 0-2000
>> 4000-Infinite
>> 
>> The layer will be invisible in the range [2001-3999], which is correct 
>> behavior.
>> 
>> Regards, Kenneth Skovhede, GEOGRAF A/S
>> 
>> 
>> 
>> Rodolfo Moreno skrev:
>>> Hi all,
>>> I got an issue in mapguide 2.0.1.
>>> Layers with different scale ranges become invisible when you do zoom 
>>> in with the StatusScale until to achieve one of the scale ranges.
>>> It happens with any of the viewers (AJAX, DWF or FUSION), which is 
>>> why I think that the problem is the mapguide server.
>>> I don't know whether this issue has been solved in the 2.0.2 version
>>>
>>> I would like to know whether someone has gotten the same problem.
>>>
>>> Regards
>>>
>>>
>>> -
>>> Rodolfo Moreno
>>> CivilEng
>>>
>>>   
>> ___
>> mapguide-users mailing list
>> mapguide-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> 
> 
> 
> -
> Rodolfo Moreno
> CivilEng
> 
> --
> View this message in context:
> http://n2.nabble.com/StatusScale-issue-in-scale-ranges-tp1142302p1298894.htm
> l
> 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
> 
> __ Information from ESET NOD32 Antivirus, version of virus
> signature
> database 3495 (20081004) __
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
> 
>  
> 
> __ Information from ESET NOD32 Antivirus, version of virus
> signature
> database 3495 (20081004) __
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
>  
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 


-
Rodolfo Moreno
CivilEng

-- 
View this message in context: 
http://n2.nabble.com/StatusScale-issue-in-scale-ranges-tp1142302p1301256.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


  1   2   >