Re: [mapguide-users] Mapguide Tiles with OpenLayers

2017-11-06 Thread Greg
Jackie,

That works great.

Thank you.



--
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] Mapguide Tiles with OpenLayers

2017-11-02 Thread Greg
Looking for advice or sample using Mapguide tiles with OpenLayers.

Mapguide 3.1
OpenLayers 4.3.3

I have created a Tile Set Definition from the base layer. What is the best
way to access the tiles with OpenLayers?

I found this:  http://jsfiddle.net/ynaatpaq/ <http://jsfiddle.net/ynaatpaq/>  

Are there other samples or How to's?

Thanks,

Greg



--
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] EPSG:3857 Changes

2017-10-17 Thread Greg
Jackie,

Thank you for the reply.  I was able to create new dictionary files from the
source.  The source included the most recent version of the WGS84 Datum and
had been updated 7 months ago.  Using the new files didn't make any
difference.  My data requires a re-projection from UTM83-12 (NAD83 Datum) to
WGS84.PseudoMercator (WGS84 datum).  After a little more research, I learned
CSMap doesn't do any re-projection between NAD83 and WGS84.  Initially there
was no difference between the two and this made sense.  NAD83 isn't changing
much while WGS84 is moving as it is tied to the International Terrestrial
Reference Frame (ITRF), which changes over time.  ESRI has an article about
it here:

I think this may be the cause of my data not lining up with commercial
layers using the WGS84 Datum.  Until CSMap does a datum transformation first
and then coordinate translation, things will be a little off.

Thanks very much for your help.

Greg <http://support.esri.com/en/technical-article/05929> 



--
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] EPSG:3857 Changes

2017-10-12 Thread Greg
It looks like the cs-map dictionaries may have been updated to solve this
problem since release of MGOS 3.1.  See this 
https://trac.osgeo.org/csmap/ticket/202
  

Can anyone tell me how to use the latest with my installation of MGOS 3.1?

Thanks



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

[mapguide-users] EPSG:3857 Changes

2017-09-28 Thread Greg
I've notice that coordinate transformations to ESPG:3857 seem to be a little
off when compared to commercial layers like Google.  I have access to high
resolution imagery from Google and it's especially noticeable there.

After a little research I discovered that ESPG:3857 is changing over time,
with its origin moving more than a meter since 1994.  according to
http://www.epsg-registry.org the current coordinate system is different than
that used by both Autodesk and Mapguide (v3.1).  Based on my experience,
Google must be using the latest version for its imagery.

Does anyone know if this is something that might be addressed, or if there
is a way to manually edit the definition used by Mapguide?

Thanks,

Greg



--
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] MS SQL Server Spatial Provider - Unable to Connect

2017-02-17 Thread Greg
For anyone who's interested here's the solution:

Sql server was installed on a separate machine from the mapguide server. 
The slq server native client had to be installed on the mapguide server.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MS-SQL-Server-Spatial-Provider-Unable-to-Connect-tp5308288p5308407.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] MS SQL Server Spatial Provider - Unable to Connect

2017-02-16 Thread Greg
Using Maestro ver 6.0.0.63 I am unable to connect to a MS SQL Server database
on a remote server.  I am able to connect to a copy of the database on the
localhost.  The error in Maestro is "The remote server returned an error:
(559) MgFdoException". I am able to connect to the remote database using
SqlSpatialTools build 3759 and query the table with spatial data.  The
remote version is running on the default instance of sql server.  Using the
same credentials for all connections.  Also tried with sa credentials and it
still didn't work.  Log entry (shown below) says Native Client 10.0
required.  Native Client 10.0 is installed on both the local and remote sql
servers.

Remote Server
Windows Server 2008 R2
MS SQL Server Standard Edition (64-bit) v 10.50.6000 SP3 (2008 R2)
Mapguide OS 3.1 (64bit)

Locahost
Windows 10
MS SQL Server Express Edition with Advanced Services (64-bit) v 10.50.4042
SP2
Mapguide OS 3.1 (64bit)

The Mapguide server logs the following error:

<2017-02-16T12:35:29>   2400MapGuide Maestro v6.0.0.63  10.0.0.128  
greg
 Error: An exception occurred in FDO component.
Error occurred in Feature Source
(Session:54099516-f47e-11e6-8000-90b11c34bb0b_en_MTI3LjAuMC4x0AFC0AFB0AFA//0479af0e-fb2f-437f-a5b3-5d603d362f26.FeatureSource):
An exception occurred in FDO component.
Please install 'SQL Server Native Client 10.0' or upper to be able
to use the provider

- MgFdoConnectionManager.Open() line 333 file
c:\working\build_area\mapguide\3.1.0\x64\mgdev\server\src\common\manager\FdoConnectionManager.cpp
- MgFdoConnectionManager.CacheFdoConnection() line 1097 file
c:\working\build_area\mapguide\3.1.0\x64\mgdev\server\src\common\manager\FdoConnectionManager.cpp
- MgFdoConnectionManager.Open() line 1089 file
c:\working\build_area\mapguide\3.1.0\x64\mgdev\server\src\common\manager\FdoConnectionManager.cpp
 (Cause: , Root Cause: )
 StackTrace:
  - MgFeatureServiceHandler.ProcessOperation() line 83 file
c:\working\build_area\mapguide\3.1.0\x64\mgdev\server\src\services\feature\FeatureServiceHandler.cpp
  - MgOpTestFeatureSourceConnection.Execute() line 100 file
c:\working\build_area\mapguide\3.1.0\x64\mgdev\server\src\services\feature\OpTestFeatureSourceConnection.cpp
  - MgServerFeatureService.TestConnection() line 244 file
c:\working\build_area\mapguide\3.1.0\x64\mgdev\server\src\services\feature\ServerFeatureService.cpp
  - MgFdoConnectionManager.Open() line 366 file
c:\working\build_area\mapguide\3.1.0\x64\mgdev\server\src\common\manager\FdoConnectionManager.cpp



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MS-SQL-Server-Spatial-Provider-Unable-to-Connect-tp5308288.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] FW: Change Layer Visibility - Mapguide With Openlayers3

2017-02-10 Thread Greg Neff
I found my problem.  It was here:



map.Save(resService); should be map.Save();



Updating the OpenLayers mapguide layer accomplished like this:



var params = mgLayer.getSource().getParams();

params.t = new Date().getMilliseconds();

mgLayer.getSource().updateParams(params);



Thanks,



Gregory B. Neff

District Engineer

Cottonwood Improvement District

8620 Highland Drive

Sandy, Utah 84093

(801) 943-7671

*From:* Greg Neff [mailto:gbn...@cid.utah.gov]
*Sent:* Friday, February 10, 2017 11:34 AM
*To:* 'mapguide-users@lists.osgeo.org' <mapguide-users@lists.osgeo.org>
*Subject:* Change Layer Visibility - Mapguide With Openlayers3



OpenLayers v3.18

Mapguide 3.1 64 bit

IIs – Windows 10



Is it possible to change the visibility of a Mapguide  map layer using the
Mapguide api and then have the change reflected in the openlayers viewer
where the Mapguide map is a layer?



I have tried the following code below and seem to be able to get the layer
visibility and set the visibility, but I don’t think the changes are being
saved to the “runtime” or session map. (btw: When I couldn’t make it work
with OpenLayers, I tried it in the AJAX viewer with an invoke url running
in the task pane and that is the code shown.)



Thanks,



Gregory B. Neff

District Engineer

Cottonwood Improvement District

8620 Highland Drive

Sandy, Utah 84093

(801) 943-7671



<%@ Import Namespace="OSGeo.MapGuide" %>



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



http://www.w3.org/1999/xhtml;>



 Changing Layer Visibility



function RefreshMap() {

parent.parent.Refresh();

}









<%

String sessionId = Request.Form.Get("SESSION");

//make sure to pass these values

//String mapguideMapResource = Request.Form.Get("mapguideMapName");

String mapguideMapResource = "Cid_Map";

//String mapguideLayer =
Request.Form.Get("mapguideCleanedLinesLayer");

String mapguideLayer = "linesCleaned2017";

String realPath = Request.ServerVariables["APPL_PHYSICAL_PATH"];

realPath = realPath.Replace(@"Cid_Map\", "");

String configPath = realPath + "webconfig.ini";

MapGuideApi.MgInitializeWebTier(configPath);



MgUserInformation userInfo = new MgUserInformation(sessionId);

MgSiteConnection siteConnection = new MgSiteConnection();

siteConnection.Open(userInfo);



MgResourceService resService = (MgResourceService
)siteConnection.CreateService(MgServiceType.ResourceService);



MgMap map = new MgMap(siteConnection);

map.Open(resService, mapguideMapResource);



MgLayerCollection layers = map.GetLayers();

//MgLayerBase layerClean2017 = layers.GetItem(mapguideLayer);

MgLayer layer = (MgLayer)layers.GetItem(mapguideLayer);

if (layer.GetVisible())

{

layer.SetVisible(false);

}

else

{

layer.SetVisible(true);

}

layer.ForceRefresh();

map.Save(resService);



Response.Write(sessionId + "");

Response.Write("Map Name: " + map.GetName() + "");

Response.Write(layer.GetName() + " " + layer.GetVisible());

%>




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

[mapguide-users] Change Layer Visibility - Mapguide With Openlayers3

2017-02-10 Thread Greg Neff
OpenLayers v3.18

Mapguide 3.1 64 bit

IIs – Windows 10



Is it possible to change the visibility of a Mapguide  map layer using the
Mapguide api and then have the change reflected in the openlayers viewer
where the Mapguide map is a layer?



I have tried the following code below and seem to be able to get the layer
visibility and set the visibility, but I don’t think the changes are being
saved to the “runtime” or session map. (btw: When I couldn’t make it work
with OpenLayers, I tried it in the AJAX viewer with an invoke url running
in the task pane and that is the code shown.)



Thanks,



Gregory B. Neff

District Engineer

Cottonwood Improvement District

8620 Highland Drive

Sandy, Utah 84093

(801) 943-7671



<%@ Import Namespace="OSGeo.MapGuide" %>



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



http://www.w3.org/1999/xhtml;>



 Changing Layer Visibility



function RefreshMap() {

parent.parent.Refresh();

}









<%

String sessionId = Request.Form.Get("SESSION");

//make sure to pass these values

//String mapguideMapResource = Request.Form.Get("mapguideMapName");

String mapguideMapResource = "Cid_Map";

//String mapguideLayer =
Request.Form.Get("mapguideCleanedLinesLayer");

String mapguideLayer = "linesCleaned2017";

String realPath = Request.ServerVariables["APPL_PHYSICAL_PATH"];

realPath = realPath.Replace(@"Cid_Map\", "");

String configPath = realPath + "webconfig.ini";

MapGuideApi.MgInitializeWebTier(configPath);



MgUserInformation userInfo = new MgUserInformation(sessionId);

MgSiteConnection siteConnection = new MgSiteConnection();

siteConnection.Open(userInfo);



MgResourceService resService = (MgResourceService
)siteConnection.CreateService(MgServiceType.ResourceService);



MgMap map = new MgMap(siteConnection);

map.Open(resService, mapguideMapResource);



MgLayerCollection layers = map.GetLayers();

//MgLayerBase layerClean2017 = layers.GetItem(mapguideLayer);

MgLayer layer = (MgLayer)layers.GetItem(mapguideLayer);

if (layer.GetVisible())

{

layer.SetVisible(false);

}

else

{

layer.SetVisible(true);

}

layer.ForceRefresh();

map.Save(resService);



Response.Write(sessionId + "");

Response.Write("Map Name: " + map.GetName() + "");

Response.Write(layer.GetName() + " " + layer.GetVisible());

%>




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

Re: [mapguide-users] Add geometry to feature source

2016-04-04 Thread Greg Neff
I never did solve the problem although I don't think it was the same
problem as you are facing.  If I refreshed the page after creating the
feature source and layer, I could see the new layer.  That was a long time
ago and I don't use that particular application anymore.

Sorry,

Gregory B. Neff

District Engineer

Cottonwood Improvement District

8620 Highland Drive

Sandy, Utah 84093

(801) 943-7671

-Original Message-
From: mapguide-users [mailto:mapguide-users-boun...@lists.osgeo.org] On
Behalf Of Liglio
Sent: Monday, April 04, 2016 1:03 PM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Add geometry to feature source

Hi Greg,

I have the same problem, I created a temporary feature source in the map
session and if I change the  node of the layer xml file from
this:

Library://data/sdf/truck_route.FeatureSource

to something like this (the session id varies of course):

Session:f3d25478-4b71-11e0-8000-485b394503be_en_7F010AFC0A
FB0AFA//truck_route.FeatureSource

The temporary layer is added to the map session but shows nothing. Have
you
got an answer to this question ?

Thanks.




--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Add-geometry-to-feature-source-tp41852
40p5259593.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide Maestro and Themed Layers

2016-02-08 Thread Greg
Thanks!  Works perfectly now.

Greg



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-Maestro-and-Themed-Layers-tp5249176p5249515.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 Maestro and Themed Layers

2016-02-05 Thread Greg
Mapguide Maestro 6.0m4
Mapguide 3.0
Windows 7 64bit

Just tried adding/editing themed layers with Maestro and it's not working. 
When selecting thematic property I get this error:

<http://osgeo-org.1560.x6.nabble.com/file/n5249176/error.png> 

When making changes to an already themed layer changes aren't made as
intended.

I noticed this

https://trac.osgeo.org/mapguide/ticket/2561
<https://trac.osgeo.org/mapguide/ticket/2561>  

while searching for an answer.  Looks like it's a known issue.  Can anyone
suggest a workaround?

Thanks,

Greg



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-Maestro-and-Themed-Layers-tp5249176.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 3 and jQuery - First ajax request returns empty json

2016-01-21 Thread Greg
Mapguide 3.0
OpenLayers 3.12
jQuery 2.2.0
Windows 7 64bit

I have a strange issue that maybe someone can help with.  When sending a
QUERYMAPFEATURES request to the Mapguide server using the code below,
getJSON always reports success.  On the first request, however, the data is
empty.  All subsequent requests, even for the exact same selection are fine
and the data is as expected.  If the browser is refreshed and a new session
created, the data from the first request is again empty.  Any thoughts?

wktFormat = new ol.format.WKT();
function sendSelectionQuery(geom, layers) {
var reqQueryFeatures = 3; //Attributes
var wkt = wktFormat.writeGeometry(geom);
$.getJSON(mapAgentUrl, {
"OPERATION": "QUERYMAPFEATURES",
"VERSION": "2.6.0",
"PERSIST": "1",
"MAPNAME": mapName,
"SESSION": sessionId,
"LAYERNAMES": layers,
"GEOMETRY": wkt,
"SELECTIONVARIANT": "INTERSECTS",
"SELECTIONCOLOR": "0xFF00",
"SELECTIONFORMAT": "PNG8",
"MAXFEATURES": "-1",
"REQUESTDATA": reqQueryFeatures,
"FORMAT": "application/json"
}, function (data, textStatus, jqXHR) {
processQueryResult(data);
})
.fail(function (jqXHR, textStatus, errorThrown) {
$("#error").html(jqXHR.responseText);
});
}



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-3-and-jQuery-First-ajax-request-returns-empty-json-tp5246579.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] Compiler Error Message: CS0122

2015-12-07 Thread Greg
Upgrading from MGOS 2.6 to 3.0 64 BIT
IIS on windows 7
.net 4

Uninstalled 2.6, installed 3.0
Updated packages using NuGet Package Manager
built project (vs 2010) and I am getting:

Compiler Error Message: CS0122: 'OSGeo.MapGuide.MgMap.MgMap()' is
inaccessible due to its protection level

at this line:

MgMap map = new MgMap();

This is the code snippet:

MapGuideApi.MgInitializeWebTier(configPath);

MgUserInformation userInfo = new MgUserInformation(sessionId);
MgSiteConnection siteConnection = new MgSiteConnection();
siteConnection.Open(userInfo);

MgResourceService resService =
(MgResourceService)siteConnection.CreateService(MgServiceType.ResourceService);
MgFeatureService featureService =
(MgFeatureService)siteConnection.CreateService(MgServiceType.FeatureService);

MgMap map = new MgMap();
map.Open(resService, "Cid_Map");

This was fine with 2.6 and I am assuming there were no changes to 3.0 that
would cause a problem with this code.  Any ideas?

Greg



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Compiler-Error-Message-CS0122-tp5240326.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] Compiler Error Message: CS0122

2015-12-07 Thread Greg
I found it in the Mapguide Web API Reference.  It should be like this now:

MgMap map = new MgMap(siteConnection);




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Compiler-Error-Message-CS0122-tp5240326p5240336.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 layer slow with ol3

2015-11-09 Thread Greg
Setting map pixelRatio: 1 fixes the display problem with the Mapguide layer.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-layer-slow-with-ol3-tp5233404p5235379.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 layer slow with ol3

2015-11-09 Thread Greg
Tested with displayDpi: 96 and performance is same as with openlayers 2.13. 
Now how to solve Mapguide layer not displaying right on ipad with retina
display?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-layer-slow-with-ol3-tp5233404p5235367.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 layer slow with ol3

2015-11-06 Thread Greg Neff
Code setting up map:

Additional Info:



Windows Server 2008 R2

Mapguide 2.6

Openlayers 3.10.1 vs 2.13

Safari on ios 9.1



Mapguide server and web application are accessed over vpn.

Everything on the Mapguide side, map definition layers, projection, etc.,
is the same for both versions of openlayers



Resources:
















Re: [mapguide-users] Mapguide layer slow with ol3

2015-11-06 Thread Greg Neff
The vpn is used in both versions.  I am thinking it must be the dpi which I
am only using with ol3.  I used it because Mapguide layers weren’t
displaying correctly on ipads without it.  Using the default, 96, with ol2
and everything is fine on ipads.



I will test ol3 with dpi of 96 and see what happens.



Thanks,



Gregory B. Neff

District Engineer

Cottonwood Improvement District

8620 Highland Drive

Sandy, Utah 84093

(801) 943-7671
--

*From:* mapguide-users [mailto:mapguide-users-boun...@lists.osgeo.org] *On
Behalf Of *Scott Hameister
*Sent:* Friday, November 06, 2015 9:43 AM
*To:* MapGuide Users Mail List
*Subject:* Re: [mapguide-users] Mapguide layer slow with ol3



I assume the VPN is involved in both versions of open layers?

If not that would be my first guess.

I noticed a High DPI of 192 instead of the default...were you doing this on
both versions? That will create a longer run at image creation.

Otherwise nothing looks amiss



On Fri, Nov 6, 2015 at 10:36 AM, Greg Neff <gbn...@cid.utah.gov> wrote:

Code setting up map:

Additional Info:



Windows Server 2008 R2

Mapguide 2.6

Openlayers 3.10.1 vs 2.13

Safari on ios 9.1



Mapguide server and web application are accessed over vpn.

Everything on the Mapguide side, map definition layers, projection, etc.,
is the same for both versions of openlayers



Resources:
















[mapguide-users] Mapguide layer slow with ol3

2015-10-29 Thread Greg Neff
Using Mapguide 2.6 with openlayers 3.10



Mapguide layer is loading very slowly with openlayers 3 and Bing maps.
Same mapguide layer loads an order of magnitude faster with openlayers
2.13.  All other things: mapguide version, projection, base layers are the
same.  Has anyone else experienced this or know why it may be happening?



Thanks,



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

[mapguide-users] (no subject)

2015-01-21 Thread Greg Neff
Mapguide 2.6.0.8316 64bit

Windows Server 2008 R2

Ajax Viewer



I am trying to troubleshoot a server installation and receiving the
following error when clearing a selection:



2015-01-21T10:21:59 11236Ajax Viewer  10.0.0.128Anonymous

 Error: Argument is null.

 StackTrace:

  - MgRenderingServiceHandler.ProcessOperation() line 83 file
c:\working\build_area\mapguide\2.6.0\x64\mgdev\server\src\services\rendering\RenderingServiceHandler.cpp

  - MgOpQueryFeatures.Execute() line 125 file
c:\working\build_area\mapguide\2.6.0\x64\mgdev\server\src\services\rendering\OpQueryFeatures.cpp

  - MgServerRenderingService.QueryFeatures() line 853 file
c:\working\build_area\mapguide\2.6.0\x64\mgdev\server\src\services\rendering\ServerRenderingService.cpp

  - MgServerRenderingService.RenderForSelection() line 1187 file
c:\working\build_area\mapguide\2.6.0\x64\mgdev\server\src\services\rendering\ServerRenderingService.cpp



This map was working on a Windows 7 machine but since moving it to the
Windows Server 2008 R2 machine I am having problems related to making
selections.  Uninstalled previous version, 2.5.1, which was working well
before installing 2.6



Does anyone have ideas on what might be wrong?



Thanks,



Gregory B. Neff

District Engineer

Cottonwood Improvement District

8620 Highland Drive

Sandy, Utah 84093

(801) 943-7671
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide 2.6 Open Layers Samples - Slelection

2014-09-19 Thread Greg
I solved my problem.  The Mapguide layer hadn't finished loading when I
called sendSelectionQuery(geom) so I added an event listener for the loadend
of the Mapguide layer and called sendSelectionQuery(geom) after the layer
loaded.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-2-6-Open-Layers-Samples-Slelection-tp5162712p5162957.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.6 Open Layers Samples - Slelection

2014-09-18 Thread Greg
Hopefully, this question is not to vague.  I have been working with the
selection sample from the ol2samples directory from the Mapguide 2.6
installation.  I am trying to do the following:

From the map page I send a query to the mapguide server and pull some
records from a feature source.

I return the coordinates of the features to the map page and can zoom the
map to those coordinates and see the feature.

Right after zooming I use the sendSelectionQuery(geom) function of the
sample to select the feature zoomed to.

This works great as long as the feature is visible at the zoom level before
the query to the feature source is made.  If not, zooming to the feature
works but the selection doesn't.

I assume this is because the request to the mapguide server made by
sendSelectionQuery(geom) is happening before the map view has been updated
for the new zoom level.

Any ideas about how to overcome this?

Thanks,

Greg



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-2-6-Open-Layers-Samples-Slelection-tp5162712.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 OpenLayers samples

2014-09-09 Thread Greg
I am wondering if there is Mapguide documentation (I have looked but haven’t
found anything, likely because I don’t know exactly what to look for.) that
explains the parameters that can be sent to the mapagent and the data that
is returned as is done in the code snippet below from the new open layers
samples included with Mapguide 2.6:

function sendSelectionQuery(geom) {
var reqQueryFeatures = 1; //Attributes
var wkt = wktFormat.extractGeometry(geom);
$.getJSON(mapAgentUrl, {
OPERATION: QUERYMAPFEATURES,
VERSION: 2.6.0,
PERSIST: 1,
MAPNAME: mapName,
SESSION: sessionId,
GEOMETRY: wkt,
SELECTIONVARIANT: INTERSECTS,
SELECTIONCOLOR: 0xFF00,
SELECTIONFORMAT: PNG8,
MAXFEATURES: -1,
REQUESTDATA: reqQueryFeatures,
FORMAT: application/json
}, function(data, textStatus, jqXHR) {
processQueryResult(data);
selLayer.setVisibility(true);
selLayer.redraw(true);
}).error(function(jqXHR, textStatus, errorThrown) {
$(#error).html(jqXHR.responseText);
});
}


Thanks,

Greg




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-OpenLayers-samples-tp5160952.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] Advice on Mobile Viewer

2014-01-10 Thread Greg
I'm looking for a little advice.  People in our organization are clamoring to
move to touch devices.  Currently we have a nice application which uses the
AJAX viewer and have created the same thing using the Fusion viewer.  We
have a very simple mobile version based on Open Layers 2.12 which works well
but has no advanced functionality like selection handling.  The server would
have to be Windows based.  I have been thinking of a couple of options:

1.  Create a somewhat simplified Fusion application for mobile/touch
devices. (I don't know if the latest MGOS version will handle touch events. 
We are currently using 2.5.  If it will, please point me in the right
direction.  I have searched but haven't found anything yet.)

2.  Use Autodesk IMS 2013 with it's mobile viewer. (We have a license but
aren't using it.  Crazy I know but MGOS has met all our needs including the
ability to put an entire mapping solution on a laptop and send it into the
field without paying for another license.)

Any advice or input is very welcome.

Thanks,

Greg



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Advice-on-Mobile-Viewer-tp5097447.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] Legend Pane Size - Chrome

2013-10-28 Thread Greg
I have changed the legend size variable in the ajaxmappane.templ  file. With
Firefox and IE it works as expected.  In the latest version of Chrome the
legend size is changed but the legend itself does not expand to fill the
space.  See the image:
http://osgeo-org.1560.x6.nabble.com/file/n5086196/temp.jpg 

Has anyone else noticed this?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Legend-Pane-Size-Chrome-tp5086196.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] BASEMAPSWTICHER

2013-09-09 Thread Greg
I was eavesdropping on this post because I have had the same question.  I
tried Andy's code in the fusionInitialized function and it does set the menu
item to none but the base map has already loaded.  A mapReload doesn't
change things.  You have to manually select the base map for it to change.

MGOS 2.5.1
Windows 7



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/BASEMAPSWTICHER-tp5018001p5076929.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] Session Expired Error

2013-08-26 Thread Greg
Never mind.  I found my problem:  I neglected to update the reference to the
url of my task pane form.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Session-Expired-Error-tp5074371p5074377.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] Fusion Viewer External Providers Default Selection

2013-07-09 Thread Greg
Does anyone know if there is a way to make the default External Providers
selection None when the map first loads?

Fusion Viewer
Mapguide 2.5

Thanks,

Greg



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Fusion-Viewer-External-Providers-Default-Selection-tp5065188.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] Fusion Selection Handler

2013-06-25 Thread Greg
Mapguide 2.5 64 bit
Windows 7 64 bit
fusion viewer

I trying to write a simple selection handler and am struggling with the
Fusion.SelectionObject.  In the following code I can capture the selection
and get the layers of the selected entities.  I don't know why, however,
selection.getNumElements() always returns 0 regardless of the number
selected.  The code is in my index.html file.  Any ideas?

var fusionInitialized = function () {
$('AppContainer').resize({ forceResize: true });
mapWidget = Fusion.getMapById('Map');
mapWidget.registerForEvent(Fusion.Event.MAP_LOADED, initPanelHandler);

mapWidget.registerForEvent(Fusion.Event.MAP_SELECTION_ON, selectionOn);
}

function selectionOn() {
maps = mapWidget.getAllMaps();
for (var i = 0; i  maps.length; i++) {
if (maps[i].arch == MapGuide) {
maps[i].getSelection(displaySelection);
}
}
}

function displaySelection(selection) {
alert(Number selected is:  + selection.getNumElements()); //always
returns 0
alert(Number layers selected:  + selection.getNumLayers()); //returns
correct # of layers
if (selection  selection.getNumElements() == 1) {
var selLayer = selection.getLayer(0);
var selLayerName = selLayer.name();
alert(Layer =  + selLayerName);
}
}



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Fusion-Selection-Handler-tp5062180.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] 64-bit woes

2013-04-26 Thread Greg
I am using the local IIS Web server for debug.  I am running vs as
administrator.  I must be doing something else wrong.  My build and
Intellisense outputs are below.  Is it possible that some of my other
project references are causing a problem?

/- Build started: Project: Cid_Map, Configuration: Debug Any CPU --
  Cid_Map - C:\Program Files\OSGeo\MapGuide\Web\www\Cid_Map\bin\Cid_Map.dll
  C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\packages\mapguide-api-base-x64.2.5.0.7449\mapguide-api-base\ACE.dll
  C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\packages\mapguide-api-base-x64.2.5.0.7449\mapguide-api-base\FoundationUnmanagedApi.dll
  Sharing violation
  C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\packages\mapguide-api-web-x64.2.5.0.7449\mapguide-api-web\lib_json.dll
  C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\packages\mapguide-api-web-x64.2.5.0.7449\mapguide-api-web\MapGuideCommonUnmanagedApi.dll
  Sharing violation/

 Intellisense Output:

/There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\xerces-c_3_1mg.dll' ('An attempt
was made to load a program with an incorrect format.'). IntelliSense may not
work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\WebUnmanagedApi.dll' ('An attempt
was made to load a program with an incorrect format.'). IntelliSense may not
work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\MgPlatformBase.dll' ('An attempt
was made to load a program with an incorrect format.'). IntelliSense may not
work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\MgFoundation.dll' ('An attempt was
made to load a program with an incorrect format.'). IntelliSense may not
work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\GeometryUnmanagedApi.dll' ('An
attempt was made to load a program with an incorrect format.'). IntelliSense
may not work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\MgHttpHandler.dll' ('An attempt was
made to load a program with an incorrect format.'). IntelliSense may not
work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\MgGeometry.dll' ('An attempt was
made to load a program with an incorrect format.'). IntelliSense may not
work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\PlatformBaseUnmanagedApi.dll' ('An
attempt was made to load a program with an incorrect format.'). IntelliSense
may not work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\MgWebApp.dll' ('An attempt was made
to load a program with an incorrect format.'). IntelliSense may not work
properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\MapGuideCommonUnmanagedApi.dll'
('An attempt was made to load a program with an incorrect format.').
IntelliSense may not work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\MgWebSupport.dll' ('An attempt was
made to load a program with an incorrect format.'). IntelliSense may not
work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\FoundationUnmanagedApi.dll' ('An
attempt was made to load a program with an incorrect format.'). IntelliSense
may not work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\MgMdfModel.dll' ('An attempt was
made to load a program with an incorrect format.'). IntelliSense may not
work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\MgMdfParser.dll' ('An attempt was
made to load a program with an incorrect format.'). IntelliSense may not
work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\MgMapGuideCommon.dll' ('An attempt
was made to load a program with an incorrect format.'). IntelliSense may not
work properly until the solution is reloaded.
There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\ACE.dll' ('An attempt was made to
load a program with an incorrect format.'). IntelliSense may not work
properly until the solution is 

Re: [mapguide-users] 64-bit woes

2013-04-26 Thread Greg
I have additional information:

I changed the platform target in my project from x64 to any cpu and my
IntelliSense problems went away.

I still get the build error when the dll files are copied from the nuget
packages (see below).  If I stop the local IIS server during build, the
error goes away.  I can easily work around this.


  C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\packages\mapguide-api-base-x64.2.5.0.7449\mapguide-api-base\ACE.dll
  Sharing violation
  C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\packages\mapguide-api-web-x64.2.5.0.7449\mapguide-api-web\lib_json.dll
  Sharing violation
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5):
error MSB3073: The command 
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5):
error MSB3073: xcopy /s /y C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\packages\mapguide-api-base-x64.2.5.0.7449\mapguide-api-base\*.*
C:\Program Files\OSGeo\MapGuide\Web\www\Cid_Map\bin\
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5):
error MSB3073: xcopy /s /y C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\packages\mapguide-api-web-x64.2.5.0.7449\mapguide-api-web\*.*
C:\Program Files\OSGeo\MapGuide\Web\www\Cid_Map\bin\ exited with code 4.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/64-bit-woes-tp4182647p5049930.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] 64-bit woes

2013-04-25 Thread Greg
I am suddenly getting the following error when I build my project using
Jackie's nuget package and don't know what to make of it:

The command 
xcopy /s /y C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\packages\mapguide-api-base-x64.2.5.0.7449\mapguide-api-base\*.*
C:\Program Files\OSGeo\MapGuide\Web\www\Cid_Map\bin\
xcopy /s /y C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\packages\mapguide-api-web-x64.2.5.0.7449\mapguide-api-web\*.*
C:\Program Files\OSGeo\MapGuide\Web\www\Cid_Map\bin\ exited with code 4.

I uninstalled and re-installed the package just to be sure and still have
the error.

I am also getting this warning below again, but as long as I keep all my c#
code in the CodeBehind and not on the .aspx page, Intellisense works:

C:\Program Files\OSGeo\MapGuide\Web\www\Cid_Map\Cid_Map.aspx: ASP.NET
runtime error: Could not load file or assembly 'Cid_Map' or one of its
dependencies. An attempt was made to load a program with an incorrect
format. C:\Program Files\OSGeo\MapGuide\Web\www\Cid_Map\Cid_Map.aspx



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/64-bit-woes-tp4182647p5049674.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] 64-bit woes

2013-04-12 Thread Greg
Thanks Jackie and Hans for your suggestions.  I decided to:

- remove all mapguide references
- delete all mapguide dll's from my application\bin directory
- install the mapguide-api-web-x64 nuget package
- rebuild

and all is working now.

Thanks again.

Greg



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/64-bit-woes-tp4182647p5046450.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] 64-bit woes

2013-04-11 Thread Greg
I know this is an old post but with the release of 2.5 I am upgrading and am
hoping to get a few ideas.  I need to develop for Windows Server 2008 R2. 
My development machine is:

Windows 7 64 bit
Visual Studio 2010
IIS 7.5
MGOS 2.5 64 bit

I have installed the 64 bit version to my development machine.  All is
working except for the visual studio warning:   C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\AsBuilts.aspx: ASP.NET runtime error:
Could not load file or assembly 'MapGuideDotNetApi' or one of its
dependencies. An attempt was made to load a program with an incorrect
format.  I can modify and compile the project and it runs fine on my
development machine.  Intellisense does not work, however.

I assume this is because visual studio is 32 bit.  Would I be better off
installing 32 bit Mapguide on the development machine?  If I do, what will I
need to do to move the app to the Windows Server 2008 R2 machine?  I assume
that at the very least I will need to replace the 32 bit dll's with the 64
bit versions on the server and the application path will be different:
c:\Program Files\Osgeo\ ... vs c:\Program Files (x86)\Osgeo\ ...  as stated
in previous posts.

Also, would I compile my app as Any CPU?

Should this work or is the a better way?

Any suggestions would be greatly appreciated.

Greg





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/64-bit-woes-tp4182647p5046155.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] 64-bit woes

2013-04-11 Thread Greg
The only Mapguide references in my project are:

OSGeo.MapGuide.Foundation
OSGeo.MapGuide.Geometry
OSGeo.MapGuide.MapGuideCommon
OSGeo.MapGuide.PlatformBase
OSGeo.MapGuide.Web

and I have copied all dll's from the mapviewernet\bin folder

When the project is loaded I get the following output:

There was a problem reading metadata from 'C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\Bin\xerces-c_3_1mg.dll' ('An attempt
was made to load a program with an incorrect format.'). IntelliSense may not
work properly until the solution is reloaded.

repeated for all of the Mapguide dll's

Maybe this is expected?  I am able to debug, just no intellisense.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/64-bit-woes-tp4182647p5046171.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: Mapgiude OS Mobile Viewer

2012-05-08 Thread Greg
I read this thread with great interest.  We too have a very simple mobile
viewer app based on openlayers with a Bing and Google base layers and
Mapguide map as an overlay.  Controls are available to switch between base
layers and for zooming, but that is as far as we have taken it.

I am wondering if there a way to add mapguide layers to the map so entities
on those layers can be selected?  Ideally we would select and entity,
retrieve information on the entity from a database and display it.  Are you
aware of an example that does something like this?  Is it even possible?

Greg

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Mapgiude-OS-Mobile-Viewer-tp4941633p4961273.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: Add Mapguide layer to OpenLayers

2011-10-06 Thread Greg
Thanks very much for the response.  I have tried this many different ways and
always get error 559 (MgResourceNotFoundException) 

I think these are the relevant lines of my code (there are no errors when
this code runs, only when OpenLayers tries to find the map):

/MapGuideApi.MgInitializeWebTier(configPath);
MgUserInformation userinfo = new
OSGeo.MapGuide.MgUserInformation(defaultUser, defaultPassword);
MgSite site = new MgSite();
site.Open(userinfo);
sessionId = site.CreateSession();

MgUserInformation userInfo = new MgUserInformation(sessionId);
MgSiteConnection siteConnection = new MgSiteConnection();
siteConnection.Open(userInfo);

MgResourceService resService =  
(MgResourceService)siteConnection.CreateService(MgServiceType.ResourceService);
MgResourceIdentifier mapDefId = new MgResourceIdentifier(mapDef);
MgMap map = new MgMap();
mapName= mapDefId.GetName();
map.Create(resService, mapDefId, mapName);
MgResourceIdentifier mapId = new MgResourceIdentifier(Session: +
sessionId + // + map.GetName() + . + MgResourceType.Map);
map.Save(resService, mapId);
mapName = map.GetName();/

I pass mapName and sessionId to OpenLayers and attempt to create a Mapguide
overlay layer.

From everything I have found on-line this should work so I am at a loss
here.  Any help is appreciated.

Greg

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Add-Mapguide-layer-to-OpenLayers-tp6841213p680.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: Add Mapguide layer to OpenLayers

2011-10-06 Thread Greg
For anyone whose is interested, and I doubt there are many, and empty
selection object is required like this:

MgSelection sel = new MgSelection();
sel.Save(resService, mapName);
map.Save(resService, mapId);

I discovered this by looking at the server access log which showed this:

2011-10-06T15:29:48   8164::1 Anonymous
GetResourceData.1.0.0:3(Session:aba90a18-f060-11e0-8000-485b394503be_en_7F010AFC0AFB0AFA//Cid_Map_Flex.Selection,RuntimeData,)
Failure

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Add-Mapguide-layer-to-OpenLayers-tp6841213p6867560.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: Problems with browsers

2011-10-05 Thread Greg
Try turning compatibility view on or off.  I noticed some strange behavior a
while back and can't remember which setting worked best.  I think I had to
turn it off for the Ajax viewer and on for the Fusion viewer.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Problems-with-browsers-tp6861241p6862385.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: Add Mapguide layer to OpenLayers

2011-10-05 Thread Greg
If I understand you correctly, I create the map like this on the server:

map.Create(resService, resId, myMapName);

and with OpenLayers

var params = {
 mapname: myMapName

Do I need to save the runtime map after I create it and then use
map.GetName() and pass that to OpenLayers?

Thanks,

Greg

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Add-Mapguide-layer-to-OpenLayers-tp6841213p6862676.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: Add Mapguide layer to OpenLayers

2011-10-04 Thread Greg
I wasn't sure about that and tried it both ways.  I am getting an
MGResourceNotFoundException so something else must be wrong.  This is the
request to the server:

http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=AnonymousPASSWORD=mapName=Mapguidesession=93aee894-ee92-11e0-8000-485b394503be_en_7F010AFC0AFB0AFAselectioncolor=0xFF00behavior=7operation=GETDYNAMICMAPOVERLAYIMAGEformat=PNGlocale=enclip=1version=2.0.0setdisplaydpi=96setdisplayheight=1299setdisplaywidth=1662setviewcenterx=-12449910.02553setviewcentery=4957889.3970753setviewscale=18.00544982313;

It looks OK to me, although I'm not sure where the version=2.0.0 comes
from?  Maybe its a default that I need to override.  I am using MGOS 2.2
(32bit), OpenLayers 2.11, Win7 64bit

The mapName, sessionId and other info come from the server like this:

MgUserInformation userinfo = new
OSGeo.MapGuide.MgUserInformation(defaultUser, defaultPassword);
MgSite site = new MgSite();
site.Open(userinfo);
sessionId = site.CreateSession();

MgUserInformation userInfo = new MgUserInformation(sessionId);
MgSiteConnection siteConnection = new MgSiteConnection();
siteConnection.Open(userInfo);

MgResourceService resService =
(MgResourceService)siteConnection.CreateService(MgServiceType.ResourceService);
MgResourceIdentifier resId = new MgResourceIdentifier(mapDef);
MgMap map = new MgMap();
map.Create(resService, resId, Mapguide);
mapName = map.GetName();
LLX = map.GetMapExtent().GetLowerLeftCoordinate().GetX();
LLY = map.GetMapExtent().GetLowerLeftCoordinate().GetY();
URX = map.GetMapExtent().GetUpperRightCoordinate().GetX();
URY = map.GetMapExtent().GetUpperRightCoordinate().GetY();

And are passed to my function, init(), which loads the map, like this:



--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Add-Mapguide-layer-to-OpenLayers-tp6841213p6858953.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: Add Mapguide layer to OpenLayers

2011-10-03 Thread Greg
OK.  I think I understand what you are saying about the name.  For some
reason, though, while I am able to create a mapguide base layer like this:

var params = {
mapdefinition: Library://maps/Cid_Map_Flex.MapDefinition,
selectioncolor: 0xFF00,
behavior: 7
};

var options = {
isBaseLayer: true,
transitionEffect: resize,
buffer: 1,
useOverlay: false,
useAsyncOverlay: false,
singleTile: true,
maxExtent: extent,
maxResolution: 'auto',
numZoomLevels: 20,
sphericalMercator: true
};

var myBaseLayer = new OpenLayers.Layer.MapGuide(Cid_Map, url, params,
options);
map.addLayer(myBaseLayer);

I am unable to do it like this:

var params = {
mapname: ' + mapName + ',
session: ' + sessionId + ',
selectioncolor: 0xFF00,
behavior: 7
};

The mapName and sessionId parameters passed to the function appear to be
correct but my browser is giving the following error:

Failed to load resource: the server responded with a status of 559
(MgConnectionFailedException)

the url looks like this:

/mapguide/mapagent/mapagent.fcgi?USERNAME=Anonymousmapname='Cid_Map_for_OL'session='fe95b18c-edda-11e0-8000-485b394503be_en_7F010AFC0AFB0AFA'selectioncolor=0xFF00behavior=7
...

I think that OpenLayers is finding my map but the mapguide server won't
allow the connection the way I have supplied the parameters.  Is there
anything I am missing?

I would just use the first method but what I really want to do is use the
Mapguide layer as an overlay and use Google maps as my base layer. 
According to the documentation, the only way to add a Mapguide layer as an
overlay is using the mapname and sessionid.  When I try it the other way I
get MgInvalideArgumentException






--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Add-Mapguide-layer-to-OpenLayers-tp6841213p6855662.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: Fusion Task Pane without session variable

2011-09-21 Thread Greg
I am very new to Mapguide and especially Fusion so I think there is something
important I have missed here.  The following line is included in my
index.html page.



Please correct me if I'm wrong;  the code for TaskPane.js is included in
fusionSF-compressed.js and that is where I need to make the change suggested
by Brian and not in the TaskPane.js.  Or is it possible to make the change
in TaskPane.js and then include



in index.html?

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fusion-Task-Pane-without-session-variable-tp6801587p6816911.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: Fusion Task Pane without session variable

2011-09-21 Thread Greg
Mike,

Thanks for that.  It was a big help.  An interesting thing happened:  When I
switched to fusion.js everything worked fine with no modifications to the
TaskPane.js file.  Maybe the single file needs to be re-built.  I will try
that.

Thanks,

Greg

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fusion-Task-Pane-without-session-variable-tp6801587p6817055.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: Fusion layout is blank

2011-09-19 Thread Greg
I am fairly new to this so I hope that if I say anything incorrect someone
here will correct it:

As I understand it, when you modify a flexible layout and save it, the
modified application is saved to the library and the
ApplicationDefinition.xml in the folder of the template is not modified.  So
that part is the way it should be.

I assume you are trying to view the url from Maestro which should work. 
What coordinate system and units are you using?

I tried to use a projection with units in feet and Fusion did not like it. 
I created a new map definition using a different projection with meters,
assigned it to my flexible layout and everything worked.

I think there is a bug in fusion layouts where the map definition is in
feet.  Maybe this is the problem you are experiencing.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fusion-layout-is-blank-tp6802416p6809729.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] Fusion Task Pane without session variable

2011-09-16 Thread Greg
I am opening the task pane in the Fusion viewer when my page loads.  The
initial URL for my task pane is an .aspx page.  The page seems to load fine
in my task pane.  The script shown below doesn't work when the task pane is
opened but works if I click the Home button in the task pane:

String sessionId = Request.QueryString[SESSION];
String mapId = Request.QueryString[MAPNAME];

Is there a way to get these parameters when the task pane opens?  Or maybe a
java script method to use on the task pane after it opens that would be the
equivalent of clicking the Home button?

MGOS 2.2
Fusion Viewer
Windows 7 64 bit
IIS
ie 9 or google chrome browser

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fusion-Task-Pane-without-session-variable-tp6801587p6801587.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: Fusion Task Pane without session variable

2011-09-16 Thread Greg
Thanks for the reply.  I had run across your code in an older post but was
unable to get it to work.  Maybe it has something to do with the way I am
putting the task pane into my viewer.  This is in my index.html:

dTasks = new Jx.Dialog({
id: 'dialogTasks',
label: OpenLayers.i18n('taskPaneTitle'),
modal: false,
resize: true,
horizontal: '50 left',
vertical: 'bottom -10',
width: 400,
height: 680,
contentId: 'TaskPane'
});

with this:

showTaskPane();

and this:

var showTaskPane = function () {
dTasks.open();
}

Any thoughts?

Thanks,

Greg




--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fusion-Task-Pane-without-session-variable-tp6801587p6802079.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: Overview Map in MGOS 2.2 Fusion Offset

2011-09-15 Thread Greg
I have noticed the same problem.  Did you ever find a solution?

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Overview-Map-in-MGOS-2-2-Fusion-Offset-tp6431272p6797807.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: Overview Map in MGOS 2.2 Fusion Offset

2011-09-15 Thread Greg
Thanks Gordon I will give it a try.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Overview-Map-in-MGOS-2-2-Fusion-Offset-tp6431272p6798738.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: Fusion Viewer API - missing .js ?

2011-08-16 Thread Greg
I am not sure how to drop the sel object into the browser console.  I have
been using Chrome and IE to test.

I am using MGOS 2.2 (32bit)  with IIS 7.5 on Windows 7 sp1 64bit

According to the guide here:
http://trac.osgeo.org/fusion/wiki/MapGuideTutorial  getNumElements() should
be available to the selection object but I can't get any of the functions
that should be part of the api to work.  I did check in
fusionSF-compressed.js and the functions are included.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fusion-Viewer-API-missing-js-tp6681805p6692767.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] Maestro/Fusion Question

2011-06-14 Thread Greg
When editing a flexible layout in Maestro (3.1) I am able to add a map to the
currently available maps but am unable to remove one. (The remove button is
grayed-out)  The same seems to be true in Mapguide Studio.  The only option
to remove a map appears to be; delete the layout and recreate it.  Is this
correct or am I missing something?

Thanks,

Greg

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Maestro-Fusion-Question-tp6475219p6475219.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: Fusion Viewer Error

2011-06-10 Thread Greg

Jackie Ng wrote:
 
 
 Here's a little test, can you reproduce the problem with the Sheboygan
 dataset by setting the coordinate system of the Map Definition in a
 feet-based coordinate system?
 
 - Jackie
 

I tested with the Sheboygan sample data and got the same error.

Thanks for your help.  For now I will keep things in meters.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fusion-Viewer-Error-tp6454124p6462576.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: Fusion Viewer Error

2011-06-10 Thread Greg
To answer your question; I think it is the cs code.  I have tried setting the
coordinate system from Maestro using Select by list and Type coordinate
system code.  I have also set it using Mapguide Studio 2011.

Maestro shows the coordinate system as this:

PROJCS[WI83-CF,GEOGCS[LL83,DATUM[NAD83,SPHEROID[GRS1980,6378137.000,298.25722210]],PRIMEM[Greenwich,0],UNIT[Degree,0.017453292519943295]],PROJECTION[Lambert_Conformal_Conic_2SP],PARAMETER[false_easting,1968500.000],PARAMETER[false_northing,0.000],PARAMETER[central_meridian,-90.00],PARAMETER[latitude_of_origin,43.83],PARAMETER[standard_parallel_1,45.50],PARAMETER[standard_parallel_2,44.25],UNIT[Foot_US,0.30480060960122]]




Jackie Ng wrote:
 
 What feet-based coordinate system did you use (cs code and/or EPSG code)? 
 
 - Jackie
 


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fusion-Viewer-Error-tp6454124p6462633.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: Fusion Viewer Error

2011-06-09 Thread Greg
I have done a little testing and have narrowed the problem down to this:

If the map coordinate system units are meters or lat lon; there is no error.

If the units are feet I get the error message shown in my previous post.

I have tried several coordinate systems and as long as the units are meters
everything works.

Is there anyone using the Fusion viewer with a coordinate system using feet
as the units?

Although I don't have much experience with the Fusion viewer, I don't think
this was a problem with MGOS 2.2 beta.




--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fusion-Viewer-Error-tp6454124p6459955.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] Fusion Viewer Error

2011-06-08 Thread Greg
I receive the following error when trying to view a flexible layout:
http://osgeo-org.1803224.n2.nabble.com/file/n6454124/Fusion_Error.png 

After the error the map does not load.

The same map definition I am trying with the flexible layout works fine in
the ajax viewer.

I am wondering if anyone has seen an error like this before and might know
where to look for the cause.

My setup is as follows:

mgos 2.2 release (32 bit version)
windows 7 64 bit
.net 2.0
iis 7.5

map coordinate system is UTM83-12F

I don't know if this is related, but if I validate the map resource in
Maestro 3.1 I get this:
http://osgeo-org.1803224.n2.nabble.com/file/n6454124/validation_errors.png 

Thanks


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Fusion-Viewer-Error-tp6454124p6454124.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: MGOS 2.2 RC4 64bit - problem with references

2011-03-22 Thread Greg
Thanks for the reply.  I was missing a .dll from the mapviewernet folder. 
After adding it to my application\bin folder my application will run. 
However, I changed the platform target to x64 from anyCPU, but still have
this warning in vs:

C:\Program Files\OSGeo\MapGuide\Web\www\Cid_Map\Cid_Map.aspx: ASP.NET
runtime error: Could not load file or assembly 'Cid_Map' or one of its
dependencies. An attempt was made to load a program with an incorrect format

and intellisense is not working, Maybe because of the warning?  The warning
occurs on every .aspx file in the project on on line 1.

After changing the target to x64 I now see (have warnings) that Microsoft
dlls mscorlib.dll, system.data.dll, system.web.dll target a different
platform - could this be the problem?  I have tried to change these
references to the 64bit versions located in
c:\Windows\Microsoft.NET\Framework64\v2.0.50727 folder but am unable to make
the change.  Any ideas?

Thanks

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MGOS-2-2-RC4-64bit-problem-with-references-tp6193359p6197220.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 Maestro 3 beta 2 - Expressions

2011-03-22 Thread Greg
I was working with a point feature style and noticed that if I use an
expression for the symbol rotation it doesn't keep.  When I re-open the
style editor it is gone.  Maybe a bug?  The same expression works in Maestro
2.1 or Mapguide Studio.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Mapguide-Maestro-3-beta-2-Expressions-tp6197942p6197942.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] MGOS 2.2 RC4 64bit - problem with references

2011-03-21 Thread Greg
I am trying to modify a .net mapguide web application using:

MGOS 2.2 RC4 64bit
visual studio 2010
windows 7 64 bit
iis 7.5

I receive the following warning in visual studio: ASP.NET runtime error:
Could not load file or assembly 'OSGEO.MapGuide.Foundation' or one of its
dependencies.  An attempt was made to load a program with an incorrect
format.

and when open my web page I get:

The type initializer for 'OSGEO.Mapguide.MapguideApiPINVOKE' threw and
exception.

I have read the following post and followed its suggestions with no luck:

http://osgeo-org.1803224.n2.nabble.com/Compile-Error-An-attempt-was-made-to-load-a-program-with-an-incorrect-format-td6153978.html

This application was working great on another windows 7 64 bit machine but
using MGOS 2.2 Beta 32bit.

I have copied the following 64 bit dlls to my application bin directory and
added references to the same:

OSGeo.Mapguide.Foundation.dll
OSGeo.Mapguide.Geometry.dll
OSGeo.Mapguide.MapguideCommon.dll
OSGeo.Mapguide.PlatformBase.dll
OSGeo.Mapguide.Web.dll

corflags for all shows:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VCcorflags.exe
C:\Program
Files\OSGeo\MapGuide\Web\www\Cid_Map\bin\OSGeo.MapGuide.Foundation.dll
Microsoft (R) .NET Framework CorFlags Conversion Tool.  Version  4.0.30319.1
Copyright (c) Microsoft Corporation.  All rights reserved.

Version   : v2.0.50727
CLR Header: 2.5
PE: PE32+
CorFlags  : 1
ILONLY: 1
32BIT : 0
Signed: 0

Target framework is .net 2.0
Build Platform is Any CPU
MapGuideApplicationPool (of which my application is a member) Enable 32-Bit
Applications is False and .NET Framework Version is v2.0

Is anyone using this type of configuration?  Am I missing  something?  Would
I be better to use the 32 bit version of Mapguide?

Thanks



--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MGOS-2-2-RC4-64bit-problem-with-references-tp6193359p6193359.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: Compile Error: An attempt was made to load a program with an incorrect format.

2011-03-20 Thread Greg
I have the same problem with rc4.  Did you find a solution?

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Compile-Error-An-attempt-was-made-to-load-a-program-with-an-incorrect-format-tp6153978p6191138.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] Problems Publishing .net mapguide application

2011-03-18 Thread Greg
I am hoping someone can point me in the right direction.  I have developed a
.net application using vs 2010 mapguide for Mapguide 2.2 beta 1 (32 bit).  I
am hoping to make the necesary changes and publish it to another pc.  On the
other pc I have installed Mapguide 2.2 rc3 (64 bit).  Both pcs are windows 7
64 bit.  I have published my application and get the following error when
trying to load the map (basic layout viewer)

Could not load file or assembly 'MapGuideDotNetApi, Version=1.0.0.1,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt
was made to load a program with an incorrect format. 

I tried simply copying the newer mapguide dll files from the
mapviewernet\bin to my application bin directory.

Can anyone tell me the best way to proceed.

Thanks

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Problems-Publishing-net-mapguide-application-tp6185872p6185872.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: ZoomToView function breaks session

2011-03-16 Thread Greg
I had a similar problem.  For some reason if I didn't enclose the coordinates
in quotes, like this:

parent.parent.ZoomToView(11516002.190242026, 3400692.2790488531, 2000.0,
true);

the problem went away.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/ZoomToView-function-breaks-session-tp6170572p6177078.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] Layer does not appear in legend

2011-03-15 Thread Greg
MGOS 2.2 Beta
Windows 7 64 bit
iis 7.5
.net 2.0

I have added a new feature source and layer to a map session.  I have added
features to the feature source and they are displaying correctly on the map. 
The layer group and layer they are added to, however, do not show in the
legend.  I am creating the layer from an xml file.  If I test by changing
the styling of the layer, for example the color, the color of the features
changes accordingly.  So it appears the layer is added, it's just not
displaying in the legend.  If I manually refresh the layer pane, still
nothing.  SetDisplayInLegend is true for the layer and the layer group. 
Does anyone know why this might occur?

Here is my code:
http://osgeo-org.1803224.n2.nabble.com/file/n6174605/FindTruckRouteResult.aspx
FindTruckRouteResult.aspx 

The layer and layer group are added near the bottom of the page.

Thanks,

Greg

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Layer-does-not-appear-in-legend-tp6174605p6174605.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: Layer does not appear in legend

2011-03-15 Thread Greg
Layer is visible at all scales and visible on the map.  Just not showing in
legend

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Layer-does-not-appear-in-legend-tp6174605p6174962.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: Add geometry to feature source

2011-03-11 Thread Greg
Jackie,

Thanks for all your help.  It's obvious I am struggling with this.  After
making the change you suggested, I can add a layer from xml.  Still having
problems though.  If I change the  node of the xml file from this:

Library://data/sdf/truck_route.FeatureSource

to something like this (the session id varies of course):

Session:f3d25478-4b71-11e0-8000-485b394503be_en_7F010AFC0AFB0AFA//truck_route.FeatureSource

The layer is not added.  Other than the two lines above, the files are
identical.  So at this point, I don't know if the problem is with the xml
file or with the feature source I have created that the layer refers to.  I
suspect the latter.  Is there a way to test the feature source?  I have
tried to test a few things with a feature reader, as you will see if you
look at the attached code.  I have also tried to verify the xml as you will
also see in the code.  If my code is correct, the xml is OK.

http://osgeo-org.1803224.n2.nabble.com/file/n6162055/FindTruckRouteResult.aspx
FindTruckRouteResult.aspx 


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Add-geometry-to-feature-source-tp6082938p6162055.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: Add geometry to feature source

2011-03-09 Thread Greg
Thanks for the replies.  In response to Zac: I am pretty sure my feature
source is not read only.  I tried to verify this (see attached code).  I
also made the changes Jackie suggested and ...

My code is now adding one item to the feature source which I am able to pull
with a feature reader.  I think this is correct since I have merged all my
geometries into one so there is only one feature to add.  Unfortunately, the
feature reader tells me the geometry (curveGeom) in my case is null.  To
verify I this I am adding a layer and trying to modify the definition to use
the newly added feature source.  First I tried just copying a layer
definition from the repository to the session until I realized there is no
simple way to modify the layer definition to point the new feature source.

Currently I am trying to accomplish this by reading an xml file of the layer
definition in the repository, modifying it to point to the newly created
feature source, creating the layer, and then adding it to the map.  I have
saved the modified xml to a file and verified it is correct. When I get to
this line:

MgByteSource byteSource = new MgByteSource(strLayerXML);

I get the following error:

The specified file was not found: lt;?xml version=1.0
encoding=UTF-8?gt;lt;LayerDefinition
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xsi:noNamespaceSchemaLocation=LayerDefinition-1.3.0.xsd
version=1.3.0gt;lt;VectorLayerDefinitiongt;lt;ResourceIdgt;Session:4242bfcc-4aa9-11e0-8000-485b394503be_en_7F010AFC0AFB0AFA//truck_route.FeatureSourcelt;/ResourceIdgt;lt;FeatureNamegt;Schema1:truck_routelt;/FeatureNamegt;lt;FeatureNameTypegt;FeatureClasslt;/FeatureNameTypegt;lt;Geometrygt;Geomlt;/Geometrygt;lt;VectorScaleRangegt;lt;LineTypeStylegt;lt;LineRulegt;lt;LegendLabelgt;lt;/LegendLabelgt;lt;LineSymbolization2Dgt;lt;LineStylegt;Solidlt;/LineStylegt;lt;Thicknessgt;0.04lt;/Thicknessgt;lt;Colorgt;lt;/Colorgt;lt;Unitgt;Incheslt;/Unitgt;lt;SizeContextgt;DeviceUnitslt;/SizeContextgt;lt;/LineSymbolization2Dgt;lt;/LineRulegt;lt;/LineTypeStylegt;lt;/VectorScaleRangegt;lt;/VectorLayerDefinitiongt;lt;/LayerDefinitiongt;


I have attached my code.

http://osgeo-org.1803224.n2.nabble.com/file/n6156094/FindTruckRouteResult.aspx
FindTruckRouteResult.aspx 

any ideas?

Thanks,

Greg


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Add-geometry-to-feature-source-tp6082938p6156094.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: Add geometry to feature source

2011-03-08 Thread Greg
Thanks for pointing me in the right direction.  I am much closer now but
still have a problem:

After creating the feature source and adding the features I use an
MgFeatureReader to see if things have actually been added and the reader has
no rows.  I have probably done something wrong with the MgInsertFeatures
command but I can't figure out what.  My code is below.  If you have a
minute, please take a look.

Thanks,

Greg

//create lines using the coordinates from the file
for (i = 0; i  lat.Count - 1; i+=2)
{
//convert from Lat Lon to X Y
coordLatLon =
geometryFactory.CreateCoordinateXY(Convert.ToDouble(lon[i]),
Convert.ToDouble(lat[i]));
coordXY = mapCS.ConvertFromLonLat(coordLatLon);
coordsXY.Add(coordXY);
coordLatLon =
geometryFactory.CreateCoordinateXY(Convert.ToDouble(lon[i+1]),
Convert.ToDouble(lat[i+1]));
coordXY = mapCS.ConvertFromLonLat(coordLatLon);
coordsXY.Add(coordXY);
line = geometryFactory.CreateLineString(coordsXY);
geometries.Add(line);
coordsXY.Clear();
//X.Add(coordXY.GetX().ToString());
//Y.Add(coordXY.GetY().ToString());
//if (i  108)
//{
//Response.Write(
 + line.GetLength().ToString() + );
//}
}

MgMultiGeometry mergedFeatures;
mergedFeatures = geometryFactory.CreateMultiGeometry(geometries);
MgPropertyCollection properties = new MgPropertyCollection();
MgAgfReaderWriter agfRW = new MgAgfReaderWriter();
MgByteReader agfByteStream;
agfByteStream = agfRW.Write(mergedFeatures);
MgGeometryProperty geometryProperty;
geometryProperty = new MgGeometryProperty(curveProp,
agfByteStream);
properties.Add(geometryProperty);
MgInsertFeatures insertCommand;
insertCommand = new MgInsertFeatures(curveInsert, properties);
MgFeatureCommandCollection commands = new
MgFeatureCommandCollection();
commands.Add(insertCommand);

//TODO: * check if TruckRoute feature class already exists *
MgClassDefinitionCollection featClassColl = new
MgClassDefinitionCollection();

//create feature source
//create feature class definition
String geomPropName = curveGeom;
MgClassDefinition featClass = new MgClassDefinition();
featClass.SetName(truck_route);
featClass.SetDescription(Truck Route Display);
featClass.SetDefaultGeometryPropertyName(geomPropName);
MgPropertyDefinitionCollection classProperties =
featClass.GetProperties();

//create identity property
MgDataPropertyDefinition idProp = new
MgDataPropertyDefinition(featId);
idProp.SetDataType(MgPropertyType.Int32);
idProp.SetAutoGeneration(true);
idProp.SetReadOnly(true);
classProperties.Add(idProp);

//create geometry property
MgGeometricPropertyDefinition curveProp = new
MgGeometricPropertyDefinition(geomPropName);
curveProp.SetGeometryTypes(MgFeatureGeometricType.Curve);
curveProp.SetHasElevation(false);
curveProp.SetHasMeasure(false);
curveProp.SetSpatialContextAssociation(defaultSrs);
classProperties.Add(curveProp);

MgPropertyDefinitionCollection idProps =
featClass.GetIdentityProperties();
idProps.Add(idProp);

//create a feature schema
MgFeatureSchema curveSchema = new MgFeatureSchema();
curveSchema.SetName(Schema1);
curveSchema.SetDescription(temp schema for truck_route);
curveSchema.GetClasses().Add(featClass);

//creat sdf parameters
MgCreateSdfParams sdfParams = new MgCreateSdfParams();
sdfParams.SetSpatialContextName(defaultSrs);
sdfParams.SetCoordinateSystemWkt(srsMapDef);
sdfParams.SetFeatureSchema(curveSchema);

//add feature source to feature service
MgResourceIdentifier TruckRouteFeatureResId = new
MgResourceIdentifier(Session: + sessionId +
//truck_route.FeatureSource);
featureService.CreateFeatureSource(TruckRouteFeatureResId,
sdfParams);
featureService.UpdateFeatures(TruckRouteFeatureResId, commands,
false);

//check features created
MgFeatureQueryOptions nameQuery = new MgFeatureQueryOptions();
nameQuery.SetFilter(featId = 0);
MgFeatureReader featureReader =
featureService.SelectFeatures(TruckRouteFeatureResId, truck_route,
nameQuery);

while (featureReader.ReadNext())
{
Response.Write(
featId =  + featureReader.GetInt32(featId).ToString() + );
}


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Add-geometry-to-feature-source-tp6082938p6148410.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide

[mapguide-users] Re: Add geometry to feature source

2011-03-08 Thread Greg
Thanks for pointing me in the right direction.

I still have a problem:  When I create an MgFeatureReader to look see if my
code has added anything to the feature source, no rows are returned.  I must
be doing something wrong with the MgInsertFeatures.  My code is below.  If
you have a minute, please take a look.

Thanks,

Greg

//create lines using the coordinates from the file
for (i = 0; i  lat.Count - 1; i+=2)
{
//convert from Lat Lon to X Y
coordLatLon =
geometryFactory.CreateCoordinateXY(Convert.ToDouble(lon[i]),
Convert.ToDouble(lat[i]));
coordXY = mapCS.ConvertFromLonLat(coordLatLon);
coordsXY.Add(coordXY);
coordLatLon =
geometryFactory.CreateCoordinateXY(Convert.ToDouble(lon[i+1]),
Convert.ToDouble(lat[i+1]));
coordXY = mapCS.ConvertFromLonLat(coordLatLon);
coordsXY.Add(coordXY);
line = geometryFactory.CreateLineString(coordsXY);
geometries.Add(line);
coordsXY.Clear();
//X.Add(coordXY.GetX().ToString());
//Y.Add(coordXY.GetY().ToString());
//if (i  108)
//{
//Response.Write(
 + line.GetLength().ToString() + );
//}
}

MgMultiGeometry mergedFeatures;
mergedFeatures = geometryFactory.CreateMultiGeometry(geometries);
MgPropertyCollection properties = new MgPropertyCollection();
MgAgfReaderWriter agfRW = new MgAgfReaderWriter();
MgByteReader agfByteStream;
agfByteStream = agfRW.Write(mergedFeatures);
MgGeometryProperty geometryProperty;
geometryProperty = new MgGeometryProperty(curveProp,
agfByteStream);
properties.Add(geometryProperty);
MgInsertFeatures insertCommand;
insertCommand = new MgInsertFeatures(curveInsert, properties);
MgFeatureCommandCollection commands = new
MgFeatureCommandCollection();
commands.Add(insertCommand);

//TODO: * check if TruckRoute feature class already exists *
MgClassDefinitionCollection featClassColl = new
MgClassDefinitionCollection();

//create feature source
//create feature class definition
String geomPropName = curveGeom;
MgClassDefinition featClass = new MgClassDefinition();
featClass.SetName(truck_route);
featClass.SetDescription(Truck Route Display);
featClass.SetDefaultGeometryPropertyName(geomPropName);
MgPropertyDefinitionCollection classProperties =
featClass.GetProperties();

//create identity property
MgDataPropertyDefinition idProp = new
MgDataPropertyDefinition(featId);
idProp.SetDataType(MgPropertyType.Int32);
idProp.SetAutoGeneration(true);
idProp.SetReadOnly(true);
classProperties.Add(idProp);

//create geometry property
MgGeometricPropertyDefinition curveProp = new
MgGeometricPropertyDefinition(geomPropName);
curveProp.SetGeometryTypes(MgFeatureGeometricType.Curve);
curveProp.SetHasElevation(false);
curveProp.SetHasMeasure(false);
curveProp.SetSpatialContextAssociation(defaultSrs);
classProperties.Add(curveProp);

MgPropertyDefinitionCollection idProps =
featClass.GetIdentityProperties();
idProps.Add(idProp);

//create a feature schema
MgFeatureSchema curveSchema = new MgFeatureSchema();
curveSchema.SetName(Schema1);
curveSchema.SetDescription(temp schema for truck_route);
curveSchema.GetClasses().Add(featClass);

//creat sdf parameters
MgCreateSdfParams sdfParams = new MgCreateSdfParams();
sdfParams.SetSpatialContextName(defaultSrs);
sdfParams.SetCoordinateSystemWkt(srsMapDef);
sdfParams.SetFeatureSchema(curveSchema);

//add feature source to feature service
MgResourceIdentifier TruckRouteFeatureResId = new
MgResourceIdentifier(Session: + sessionId +
//truck_route.FeatureSource);
featureService.CreateFeatureSource(TruckRouteFeatureResId,
sdfParams);
featureService.UpdateFeatures(TruckRouteFeatureResId, commands,
false);

//check features created
MgFeatureQueryOptions nameQuery = new MgFeatureQueryOptions();
nameQuery.SetFilter(featId = 0);
MgFeatureReader featureReader =
featureService.SelectFeatures(TruckRouteFeatureResId, truck_route,
nameQuery);
Response.Write(
Features:);
Response.Write(
Geometries Length:   + geometries[100].GetLength().ToString() + );
Response.Write(
Properties:  + properties.GetItem(0).GetName().ToString() + );
Response.Write(
Commands:+ commands.GetCount().ToString() + );
Response.Write(
Feature Reader:  + featureReader.GetPropertyName(0).ToString() + );

while (featureReader.ReadNext())
{
Response.Write(
featId

[mapguide-users] Re: Add geometry to feature source

2011-03-08 Thread Greg
Thanks for pointing me in the right direction. 

I still have a problem:  When I create an MgFeatureReader to look see if my
code has added anything to the feature source, no rows are returned.  I must
be doing something wrong with the MgInsertFeatures command.  My code is
below.  It runs fine and all of my geometries are fine.  There are about
2000 lines in the collection.  But I can't figure out where I have gone
wrong.  If you have a minute, please take a look. 

Thanks, 

Greg

http://osgeo-org.1803224.n2.nabble.com/file/n6150576/FindTruckRouteResult.aspx
FindTruckRouteResult.aspx 

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Add-geometry-to-feature-source-tp6082938p6150576.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: Add geometry to feature source

2011-03-03 Thread Greg
Thanks for the reply.

The code I have shown doesn't throw an error.  I just can't figure out the
next step which is adding the geometry to the feature source I have just
created so I can display it on the map.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Add-geometry-to-feature-source-tp6082938p6085104.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: Legend Doesn't Refresh

2011-03-02 Thread Greg
Thanks for the reply.  I found my problem.  I had the following line like
this:

 instead of



Another question has come up related to this:

I am wondering if there is a way to expand, or show initially expanded, a
layer group in the legend.  I don't see a method on the server or client to
do it.

Any ideas?  Thanks.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Legend-Doesn-t-Refresh-tp6079198p6081870.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] Add geometry to feature source

2011-03-02 Thread Greg
I am trying to add and MgLineStringCollection to a feature source I have
created.  I have searched for code and examples and read the Web API
Reference but have been unable to find anything that helps me.  Here is a
portion of my code:

http://osgeo-org.1803224.n2.nabble.com/file/n6082938/Untitled.png 

I am hoping someone reading this post can point me to an example or
solution. 

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Add-geometry-to-feature-source-tp6082938p6082938.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: Is it possible to convert Lat and Long value to X Y (AJAX viewer)

2011-02-25 Thread Greg

I was able to do it using something Like this:

MgUserInformation userInfo = new MgUserInformation(sessionId);
MgSiteConnection siteConnection = new MgSiteConnection();
siteConnection.Open(userInfo);

MgResourceService resService =
(MgResourceService)siteConnection.CreateService(MgServiceType.ResourceService);

MgMap map = new MgMap();
map.Open(resService, Cid_Map);

//create coord sys
MgCoordinateSystemFactory coordFactory = new
MgCoordinateSystemFactory();
String srsMapDef = map.GetMapSRS().ToString();
MgCoordinateSystem mapCS = coordFactory.Create(srsMapDef);
MgGeometryFactory geometryFactory = new MgGeometryFactory();
MgCoordinate coordLatLon;
MgCoordinate coordXY;
ArrayList X = new ArrayList();
ArrayList Y = new ArrayList();
Response.Write(table);
for (i = 0; i  lat.Count; i++)
{
coordLatLon =
geometryFactory.CreateCoordinateXY(Convert.ToDouble(lon[i]),
Convert.ToDouble(lat[i]));
coordXY = mapCS.ConvertFromLonLat(coordLatLon);
X.Add(coordXY.GetX().ToString());
Y.Add(coordXY.GetY().ToString());
if (i  108)
{
Response.Write(tr class='colData'td + X[i] +
/tdtd + Y[i] + /td/tr);
}
}
Response.Write(/table);
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Is-it-possible-to-convert-Lat-and-Long-value-to-X-Y-AJAX-viewer-tp6023213p6065880.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] Add lines to map

2011-02-25 Thread Greg

I am using .net and MGOS 2.2 Beta

I am trying to add lines to a map based on a table of latitude/longitude
coordinate pairs that represent the endpoints of the lines.  I don't know
precisely how to do it but I am wondering if it would be something like
this:

1. create a temporary feature source for the lines

2. add the coordinates to the feature source

3. create a temporary layer, set it to use the feature source

4. add the layer to the map

5. remove the layer from the map when its no longer needed

I need the layer to apply only to the user and not to other users who might
be viewing the map.  Other users might be adding their own lines to the map
from a different set of coordinates.

So far I have managed to read the coordinates from a file, use
MgGeometryFactory to convert them to the map system coordinates and create a
feature source.  So , I am stuck on step 2 above.

Any advise on the right way to do this?

Thanks
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Add-lines-to-map-tp6065961p6065961.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] Task Pane Error - Http Error 400.0

2011-01-31 Thread Greg

When I click the return to home task pane button in the ajax viewer I get the
following error:

HTTP Error 400.0 - Bad Request
ASP.NET detected invalid characters in the URL.

I am using my own page for the home task.  I have tried several different
pages.  They all load fine at the start or with a page refresh, but when
reloaded using the home button give the error.

I am using:
mgos 2.2 beta
iis 7.5
.net 2.0
win 7 64 bit

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Task-Pane-Error-Http-Error-400-0-tp5977491p5977491.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: Task Pane Error - Http Error 400.0

2011-01-31 Thread Greg

Thanks very much for the reply.  I made the change myself to mainframe.aspx
and all is well now.  Do you know if RC2 is available for download?
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Task-Pane-Error-Http-Error-400-0-tp5977491p5977625.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: MGE performance. It's soooooo Slllllllooooooowwww

2011-01-28 Thread Greg

I have been working on a migration very similar to yours and also found the
Fusion viewer to be too slow by comparison to my Mapguide 6.5 aaplication. 
We have used an application built on Mapguide 6.5 and Coldfusion for many
years with great success.  I have started the migration process 2 times
before and quit because of performance issues.  This time I have finally got
a Mapguide Open Source app working that has performance equal or better to
my 6.5 app.  If you are interested, here is what I have done:

MGOS 2.2
IIS VER 7.5
SQL SERVER 2008
Basic Viewer Layout (AJAX)
- map data is all sdf stored on the server
- raster data is tiff using GDAL provider and optimized for display at
different resolutions
- secondary data is retrieved from sql data source as features are selected
and displayed in basic viewer  task pane or new window
- not using tooltips to help with performance
- map has 13 layers mostly parcels and utilities -one of the layers is
themed
- using .net and C# for development

It's not very fancy, but it works well and the performance great.

Here is a picture of my initial map view which takes about 2 seconds to
load:
http://osgeo-org.1803224.n2.nabble.com/file/n5970986/map.png 




frosty1_4me wrote:
 
 Hi,
 
 We have been working on a complete migration from 6.5 to MGE as a pilot to
 see if we can actually move to the new platform since the 6.5 software is
 no longer supported.
 
 We have brought across everything from our 6.5 app to the new MGE
 framework (using fusion due to the required functionality), we have also
 made alot of changes in an attempt to speed up our data.  We currently use
 SQL for our db's, but we've went so far as to setup static tables instead
 of news in the db, we have also imported data and stored in directly in
 the SDF's to try and speed things up, but nothing we have tried really
 makes a difference.  The performance of MGE using Fusion is unbelievabley
 slow and there doesn't seem to be anything we can do.
 
 Take for example a simple SDF3 of parcels.  We created an SDF3 that has
 about 23k parcels and instead of linking it to a db, we attached the data
 to the parcels in an attempt to speed up the flyouts in MGE.  The data is
 only a simple ID, and another db field for testing purposes.  We used the
 tooltip method in MGE and we also tried using an aspx page to load the
 simple dataset instead of the tooltip directly accessing the data from the
 attribute list in MGE.   The results were the same, slow flyout loading
 times.  To make things worse, if we turned on a layer which has alot of
 data, then tested the flyouts again for the parcels, it takes about 15secs
 for the flyout to appear.  Obviously thats not acceptable.
 
 I don't know what else we can do with all of this.  The performance of MGE
 is absolutely horrible, and after using 6.5 for so long we actually are
 considering going to a completely different GIS software. (Esri?)
 
 How are others dealign with this performance issue?  The basic AJAX viewer
 is faster, but you also don't have the tools and flexablitly that you do
 with the Fusion setup.
 
 Thanks.
 

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MGE-performance-It-s-soo-Slllooo-tp5970714p5970986.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: selectionXML Problem

2011-01-14 Thread Greg

After further investigation, that is exactly what is happening.  Encoding on
the client leaves the + sign as-is.  Decoding on the server changes it to a
space.  If I add ValidateRequest=false as shown below and pass the xml
string un-encoded to the server, everything works fine.

%@ Page Language=C# AutoEventWireup=true CodeBehind=LineInfo.aspx.cs
Inherits=Cid_Map.LineInfo ValidateRequest=false %

If someone can show me the correct way to encode and decode the selectionXML
from my code above, I would be grateful.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/selectionXML-Problem-tp5920249p5922553.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] selectionXML Problem

2011-01-13 Thread Greg

I am having trouble getting the current selection by using GetSelectionXML(),
passing the selection XML to the server and getting the selection.  When a
new item is selected for about 90% of the features, I get the correct Item. 
For the other 10%, the item is not found, even though the correct properties
are shown in the properties pane.  I am using the basic layout.  Below is my
code that takes the XML and gets the item from the Mapguide server.  Any
ideas what might be happening?

%
String sessionId = Request.Form.Get(SID);
String selectionXML = Server.UrlDecode(Request.Form.Get(sel));
//Response.Write(sessionId:  + sessionId + brselectionXML:   +
selectionXML);

string realPath = Request.ServerVariables[APPL_PHYSICAL_PATH];
String configPath = realPath + webconfig.ini;
MapGuideApi.MgInitializeWebTier(configPath);

MgUserInformation userInfo = new MgUserInformation(sessionId);
MgSiteConnection siteConnection = new MgSiteConnection();
siteConnection.Open(userInfo);
if (siteConnection == null)
{
Response.Write(Failed to get site connection.);
return;
}

MgResourceService resService =
(MgResourceService)siteConnection.CreateService(MgServiceType.ResourceService);
MgFeatureService featureService =
(MgFeatureService)siteConnection.CreateService(MgServiceType.FeatureService);

MgMap map = new MgMap();
map.Open(resService, Cid_Map);

//get LineID information for selected feature (line)
MgSelection selection = new MgSelection(map, selectionXML);
MgLayer layer = (MgLayer)map.GetLayers().GetItem(lines_ss_cid);
string strLayerClassName = layer.GetFeatureClassName();
string strSelection = selection.GenerateFilter(layer,
strLayerClassName);
MgFeatureQueryOptions nameQuery = new MgFeatureQueryOptions();
nameQuery.SetFilter(strSelection);
MgResourceIdentifier resID = new
MgResourceIdentifier(Library://data/sdf/lines_ss_cid.FeatureSource);
MgFeatureReader featureReader = featureService.SelectFeatures(resID,
lines_ss_cid, nameQuery);
string strLineID = ;
if(featureReader.ReadNext())
{
strLineID = featureReader.GetInt32(LineID).ToString();
}
else
{
//this shouldn't happen
Response.Write(LineID not found in Mapguide datasource.);
}
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/selectionXML-Problem-tp5920249p5920249.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: selectionXML Problem

2011-01-13 Thread Greg

Thanks for the reply.

The datasource is sdf.  The primary key is int32.  There are two columns in
the table of type double.  The sdf file was created in Autocad Map.  I have
re-created the table with no change.  I am going to try creating it a
slightly different way to see if it makes a difference.  The data  looks
fine when I view it in Mapguide Studio.  My map was created using Studio,
don't know if that makes a difference.

I have been wondering if something weird is happenning to the XML as I pass
it to the server.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/selectionXML-Problem-tp5920249p5920511.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: Measure Tool distance in Feet not Miles

2010-12-15 Thread Greg

This helped me.  I had been trying to solve the exact problem and you
solution worked perfectly.

Thanks.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Measure-Tool-distance-in-Feet-not-Miles-tp5580857p5838514.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: At a loss MGOS 2.2 beta

2010-12-07 Thread Greg

Thanks for help.  I got it working now.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/At-a-loss-MGOS-2-2-beta-tp5809647p5811988.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: MGOS 2.2 Beta with .net Problems

2010-12-06 Thread Greg

I tried it that way like this:

frameset rows=0.* border=0 framespacing=0
frame /  
frame src=/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=%=
sessionId %WEBLAYOUT=%= webLayout % name=ViewerFrame /
/frameset

but I just get a blank page, no map.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MGOS-2-2-Beta-with-net-Problems-tp5797915p5808480.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] At a loss MGOS 2.2 beta

2010-12-06 Thread Greg

I get only a blank page when I try to view a layout.  No errors.  I have
searched all the resources and can't find a reason this might be happening. 
Hopefully someone here will know.  I am using:

MGOS 2.2 Beta
Windows 7 x64
IIS with .net 2.0
vs 2010

Here is my code:
http://osgeo-org.1803224.n2.nabble.com/file/n5809647/code.png 

Here is my output:
http://osgeo-org.1803224.n2.nabble.com/file/n5809647/output.png 

When I view the source behind my blank page this is how it looks:

frame
src=/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=c79894f2-0185-11e0-8000-485b394503be_en_7F010AFC0AFB0AFAWEBLAYOUT=Library://layouts/Cid_Map_Basic.WebLayout
name=ViewerFrame /

It looks OK to me.  I am getting a session id just no map.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/At-a-loss-MGOS-2-2-beta-tp5809647p5809647.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] Flexible Layout Map Extents too Large

2010-12-06 Thread Greg

I am trying to create a flexible layout and can not zoom in past a certain
point.  The same map works great in a basic layout.  My coordinate system is
UTM83-12F.  I have set the initial view of the map at 1:60,000 but it won't
zoom in past 1:364,562.  Is there some way to fix the map extents?

Here is a picture of my map in the flexible viewer:
http://osgeo-org.1803224.n2.nabble.com/file/n5809740/flexible.png 

and here is a picture of it in the basic viewer working correctly:
http://osgeo-org.1803224.n2.nabble.com/file/n5809740/basic.png 
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Flexible-Layout-Map-Extents-too-Large-tp5809740p5809740.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: MGOS 2.2 Beta with .net Problems

2010-12-03 Thread Greg

OK.  I fixed the out-of-scope problem.  Told you I was a newbie.  Now I have
the following problem:

I run the code below and am able to write sessionId to the page but the map
does not display.  Maybe there is something wrong with my frame tag or with
the location of my web layout.  I can't determine the problem.  I can
display the layout from Maestro and the url looks like this:

http://localhost/mapguide/mapviewerajax/?WEBLAYOUT=Library%3a%2f%2flayouts%2fCid_Map_Basic.WebLayout

the web page from my code looks like the attached image.

This is my setup:

Windows 7 64 bit
vs 2010, compile any cpu, .net target 2.0
iis 7.5

Any suggestions?

http://osgeo-org.1803224.n2.nabble.com/file/n5800284/Cid_Map.aspx.png 
%@ Page Language=C# debug=true AutoEventWireup=true
CodeBehind=Cid_Map.aspx.cs Inherits=Cid_Map.Cid_Map %
%@ Import Namespace=OSGeo.MapGuide %

script runat=server
String webLayout = Library://layouts/Cid_Map_Basic.WebLayout;
String defaultUser = Anonymous;
String defaultPassword = ;
String sessionId = ;
/script

%
try
{
MapGuideApi.MgInitializeWebTier(@C:\Program Files
(x86)\OSGeo\MapGuide\Web\www\webconfig.ini);
MgUserInformation userinfo = new
OSGeo.MapGuide.MgUserInformation(defaultUser, defaultPassword);
MgSite site = new MgSite();
site.Open(userinfo);
sessionId = site.CreateSession();
}
catch (Exception e)
{
Response.Write(e.Message);
}
%
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

html xmlns=http://www.w3.org/1999/xhtml;
head
titleCID_Map/title
/head
%Response.Write(sessionId); %
frameset rows=0.* border=0 framespacing=0
frame /
frame src=/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=%=
sessionId %WEBLAYOUT=%= webLayout % name=ViewerFrame /
/frameset

/html



-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MGOS-2-2-Beta-with-net-Problems-tp5797915p5800284.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: MGOS 2.2 Beta with .net Problems

2010-12-03 Thread Greg

Re-posting the image at higher resolution:
http://osgeo-org.1803224.n2.nabble.com/file/n5800291/Cid_Map.aspx.png 

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MGOS-2-2-Beta-with-net-Problems-tp5797915p5800291.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: MGOS 2.2 Beta with .net Problems

2010-12-03 Thread Greg

If I embed the layout like this:

%Response.Write(sessionId); %
iframe id=viewerFrame width=100% height=100% frameborder=0
scrolling=no
src=/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=%= sessionId
%WEBLAYOUT=%= webLayout %
/iframe

I get this:
http://osgeo-org.1803224.n2.nabble.com/file/n5800381/Cid_Map.aspx.png 

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MGOS-2-2-Beta-with-net-Problems-tp5797915p5800381.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] MGOS 2.2 Beta with .net Problems

2010-12-02 Thread Greg

I am trying to create a .net application with Mapguide.
windows 7 64bit 
vs 2010
.net 2.0

I have created a basic weblayout which I am able to view in a browser when I
view the layout from Maestro.

I am trying to view the layout using the following code:

%@ Page Language=C# debug=true AutoEventWireup=true
CodeBehind=Cid_Map.aspx.cs Inherits=Cid_Map.Cid_Map %
%@ Import Namespace=OSGeo.MapGuide %

%
try
{
MapGuideApi.MgInitializeWebTier(@C:\Program Files
(x86)\OSGeo\MapGuide\Web\www\webconfig.ini);
MgUserInformation userinfo = new
OSGeo.MapGuide.MgUserInformation(Anonymous, );
MgSite site = new MgSite();
site.Open(userinfo);
String sessionId = site.CreateSession();
String webLayout = Library://layouts/Cid_Map_Basic.WebLayout;
}
catch (Exception e)
{
Response.Write(e.Message);
}
%


!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

html xmlns=http://www.w3.org/1999/xhtml;
head
titleCID_Map/title
/head

frameset rows=0.* border=0 framespacing=0
frame /

frame src=/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=%=
sessionId %WEBLAYOUT=%= webLayout % name=ViewerFrame /

/frameset

/html

The code compiles but I receive the following error at runtime:

Server Error in '/Cid_Map' Application.


Compilation Error 
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately. 

Compiler Error Message: CS0103: The name 'sessionId' does not exist in the
current context

Source Error:

 

[No relevant source lines]
 

Source File:Line: 0 



Show Detailed Compiler Output:


c:\windows\system32\inetsrv
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe /t:library
/utf8output
/R:C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll
/R:C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files\cid_map\ebe59763\904b562e\assembly\dl3\7339b2ed\005f0c6d_3bf2ca01\MapGuideDotNetApi.DLL
/R:C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll
/R:C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files\cid_map\ebe59763\904b562e\assembly\dl3\3eb17a0f\00086656_3bf2ca01\OSGeo.MapGuide.MapGuideCommon.DLL
/R:C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files\cid_map\ebe59763\904b562e\assembly\dl3\7a6e9e6b\0073ab4b_3bf2ca01\OSGeo.MapGuide.PlatformBase.DLL
/R:C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files\cid_map\ebe59763\904b562e\assembly\dl3\bfe246ee\e537c4a6_6a92cb01\Cid_Map.DLL
/R:C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
/R:C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll
/R:C:\Windows\assembly\GAC_64\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll
/R:C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files\cid_map\ebe59763\904b562e\assembly\dl3\8662482b\00168d5d_3bf2ca01\OSGeo.MapGuide.Web.DLL
/R:C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
/R:C:\Windows\assembly\GAC_64\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll
/R:C:\Windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll
/R:C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorlib.dll
/R:C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll
/R:C:\Windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll
/R:C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files\cid_map\ebe59763\904b562e\assembly\dl3\9ccfd264\000b2242_3bf2ca01\OSGeo.MapGuide.Foundation.DLL
/R:C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll
/R:C:\Windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll
/R:C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll
/R:C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files\cid_map\ebe59763\904b562e\assembly\dl3\c3a0b290\00658444_3bf2ca01\OSGeo.MapGuide.Geometry.DLL
/R:C:\Windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll
/out:C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files\cid_map\ebe59763\904b562e\App_Web_cid_map.aspx.cdcab7d2.nyo5ds1z.dll
/D:DEBUG /debug+ /optimize-
/win32res:C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files\cid_map\ebe59763\904b562e\dxcs1aed.res /w:4 /nowarn:1659;1699;1701 
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary 

[mapguide-users] Measure Widget Problem

2009-12-28 Thread Greg Neff
I am having problems with the measure widget in Mapguide 2.1:  The
measurements give are really large, on the order of 6 times the actual
measurement.  The coordinate system for the map is UTM83-12F.  I am new to
Mapguide and don't know enough to track down my problem.  Hopefully someone
here can help.

 

Thanks,

 

Gregory B. Neff

District Engineer

Cottonwood Improvement District

8620 Highland Dr.

Sandy, Utah 84093

(801) 943-7671

 

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


RE: [mapguide-users] Writing data to a shapefile example?

2008-04-28 Thread Greg Boone
Using the FDO API directly, it should be possible to create and modify shape 
files.

Initial creation of Shape files can be accomplished by running the FDO 
ApplySchema command after connecting to an empty directory location. Each new 
FDO class definition will be used to generate an empty Shape file with the same 
name as the class.

Modifying Shape files can also be accomplished by running the FDO ApplySchema 
command on a set of shape files that have been initially read by specifying 
their directory location through the FDO Shape provider connection properties. 
There is a restriction here that the shape files being modified through 
ApplySchema cannot have data in them, and must be empty.

Refer to 
https://svn.osgeo.org/fdo/trunk/Providers/SHP/Src/UnitTest/SchemaTests.cpp for 
examples of how this is done.

Greg

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Morsell
Sent: Monday, April 28, 2008 2:22 PM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] Writing data to a shapefile example?

We researched this awhile back for a project and found parts of  it not to
be possible with the existing FDO API functionality.  The biggest problems:
you cannot create a new Shape file programmatically, and you cannot modify
an existing Shape files schema.  It may be possible to have empty dummy
Shape files in the repository with the proper schema definition and then
write data into them, then copy the shape file, etc., however.

It also may be possible to modify existing Shape files, but I have not seen
any examples where this is done.  The General Tasks Shareable Markups
example is good for SDF creation and modification though.
http://data.mapguide.com/mapguide/gt/index.php


Andy Morsell, P.E.
Spatial Integrators, Inc.
http://www.SpatialGIS.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of MMicallef-MTO
Sent: Monday, April 28, 2008 9:22 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Writing data to a shapefile example?


Looking for some quick help:

Does anyone have an example for generic code for writing data to a shapefile
 eg - new point with attributes
 - deleting a point
 - updating attributes

I have been looking and am unable to locate examples for 2.0 I have to put
together a site that shows this functionality for our data an do not have
much time...

Something simple - any help is greatly appreciated!

Mike
--
View this message in context:
http://www.nabble.com/Writing-data-to-a-shapefile-example--tp16942559p169425
59.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


RE: [mapguide-users] RE: [fdo-internals] New King.Oracle provider for FDO 3.3

2008-03-25 Thread Greg Boone
Can you resolve this issue and make the appropriate patch to the KingOracle 
source code?

Greg

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zac Spitzer
Sent: Tuesday, March 18, 2008 7:14 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] RE: [fdo-internals] New King.Oracle provider for 
FDO 3.3

the version on the FDO site has a dependacy problem on DWMAPI.DLL
http://trac.osgeo.org/fdo/ticket/274

On Wed, Mar 19, 2008 at 2:09 AM, Simon Pelicon [EMAIL PROTECTED] wrote:

  Sorry for to quick response.

  I will have to check for the difference and i will let you know.
  Thanks!

  Simon



  Simon Pelicon wrote:
   There is no difference. I just added link to our page
  
   Simon
  
   Greg Boone wrote:
   Hi Simon,
  
   The King Oracle Provider is also being distributed as a part of the
   FDO 3.3.0 distribution available at
   http://fdo.osgeo.org/content/fdo-330-downloads, built from the
   KingOracle source code in
   https://svn.osgeo.org/fdo/trunk/Providers/KingOracle. What is the
   difference between your version and the 3.3.0 version?
  
   Greg
  
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Simon
   Pelicon
   Sent: Tuesday, March 18, 2008 7:14 AM
   To: MapGuide Users Mail List; FDO Internals Mail List
   Subject: [fdo-internals] New King.Oracle provider for FDO 3.3
  
   Hi,
  
   King.Oracle provider v0.7.3 for FDO 3.3(MapGuide Open Source 2.0)
   is now available for download:
   http://www.sl-king.com/fdooracle/download/download.html.
  
   Provider is tested with MapGuide Open Source 2.0.
  
   Simon
  
   ___
   fdo-internals mailing list
   [EMAIL PROTECTED]
   http://lists.osgeo.org/mailman/listinfo/fdo-internals
   ___
   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




--
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
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] RE: [fdo-internals] New King.Oracle provider for FDO 3.3

2008-03-18 Thread Greg Boone
Hi Simon,

The King Oracle Provider is also being distributed as a part of the FDO 3.3.0 
distribution available at http://fdo.osgeo.org/content/fdo-330-downloads, built 
from the KingOracle source code in 
https://svn.osgeo.org/fdo/trunk/Providers/KingOracle. What is the difference 
between your version and the 3.3.0 version?

Greg


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Pelicon
Sent: Tuesday, March 18, 2008 7:14 AM
To: MapGuide Users Mail List; FDO Internals Mail List
Subject: [fdo-internals] New King.Oracle provider for FDO 3.3

Hi,

King.Oracle provider v0.7.3 for FDO 3.3(MapGuide Open Source 2.0)
is now available for download: 
http://www.sl-king.com/fdooracle/download/download.html.

Provider is tested with MapGuide Open Source 2.0.

Simon

___
fdo-internals mailing list
[EMAIL PROTECTED]
http://lists.osgeo.org/mailman/listinfo/fdo-internals
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] SelectFeatures and Joins

2008-03-12 Thread Greg Linforth
The SelectFeatures function of FeatureService seems to be broken for any
joined features.  I can put in filters which should return no features but
at least one is returned.  I am using the 2.0 release.  Is anyone else
seeing this issue?  As it stands it breaks Fusion selections and disallows
custom queries.

 

-Greg

 

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


RE: [mapguide-users] OGR to FDO 3.3.0 in MGOS 2.0 ...how to download

2008-03-11 Thread Greg Boone
To get a compiled OGR provider:

- Open:

http://fdo.osgeo.org/content/fdo-330-downloads

- Download and open:

fdosdk-3.3.0_win32.tar.gz

- Extract OGRProvider.dll into the MapGuide FDO bin directory (The same 
location where Fdo.dll resides)

- Open the FDO providers.xml file (Also located where Fdo.dll resides)

- Integrate the following section:

FeatureProvider
  NameOSGeo.OGR.3.3/Name
  DisplayNameOSGeo FDO Provider for OGR/DisplayName
  DescriptionFDO Access to OGR Data Sources/Description
  IsManagedFalse/IsManaged
  Version3.3.0.0/Version
  FeatureDataObjectsVersion3.3.0.0/FeatureDataObjectsVersion
  LibraryPathOGRProvider.dll/LibraryPath
/FeatureProvider

That should get you started.

Greg

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maciej 
Skorczewski
Sent: Tuesday, March 11, 2008 8:57 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] OGR to FDO 3.3.0 in MGOS 2.0 ...how to download

  hi!

Is there any url to download a compiled dll of ogr provider, who will
work with new MGOS 2.0 and FDO 3.3.0 ?

can any body put it into web?


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


RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu

2007-11-30 Thread Greg Boone
Please generate an FDO Ticket to track this issue so it can be resolved in an 
upcoming build/release.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jack Lee
Sent: Friday, November 30, 2007 1:09 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu

Hi,

The crypt library seems to be missing from PostGIS/Src/Makefile.am

You can try changing

   -lpq

to

  -lpq \
  -lcrypt


in Makefile.am and rebuild.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joanne Cook
Sent: Freitag, 30. November 2007 12:35
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu

Hi All,

I seem to be unable to answer mailing list messages in nabble at the moment, 
and only get the daily digest otherwise, so here goes:

1: Dave suggested there should be Provider.so files in the FDO/bin directory 
but I don't have that- only /usr/local/fdo-3.3.0/lib and they are all in there. 
Doing a search for one of the other providers seems to suggest that's the only 
location for all of them, which may be wrong?

2: Running ldd -r on libPostGISProvider.so gives me the following line that I 
don't get when I run any of the others (including ogr): undefined symbol: crypt 
(./libPostGISProvider.so)

3: Not sure how to use LD_LIBRARY_PATH, but running echo $LD_LIBRARY_PATH 
doesn't give me anything

Thanks for all the replies

Jo




Message: 40
Date: Fri, 30 Nov 2007 08:38:14 -0800
From: Jason Birch [EMAIL PROTECTED]
Subject: RE: [mapguide-users] Not much luck with ogr or postgis on
Ubuntu
To: MapGuide Users Mail List mapguide-users@lists.osgeo.org,
[EMAIL PROTECTED]
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain;   charset=US-ASCII


I ran into the same problem the last time I checked.  Perhaps we need to
put the PostGIS and OGR shared libraries into the include path before
running MapGuide or something?  I unfortunately don't know enough about
this stuff works on *nix to be able to figure out where to start.  Is
there something equivalent to depends.exe on windows?



Are the .so files for the drivers to talk to PostGIS or OGR in some directory 
other than the FDO/bin directory? If so then add the path to the 
LD_LIBRARY_PATH and try again. Otherwise copy the .so files into the FDO/bin 
folder.

At least that's how the other FDO providers work. The.so files need to be in 
the same folder or in the system path.

Dave

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Birch
Sent: Friday, November 30, 2007 9:38 AM
To: MapGuide Users Mail List; [EMAIL PROTECTED]
Subject: RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu


I ran into the same problem the last time I checked.  Perhaps we need to
put the PostGIS and OGR shared libraries into the include path before
running MapGuide or something?  I unfortunately don't know enough about
this stuff works on *nix to be able to figure out where to start.  Is
there something equivalent to depends.exe on windows?

I can't start my VM right now, but if you look in your FDO directory,
can you see whether the appropriate provider library files were built
for these?

Any FDO folks have any ideas about this?

Jason






--
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
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Problems with new fdo ogr build on Ubuntu 6.06

2007-10-26 Thread Greg Boone
I can update the makefiles and submit the change. 

NOTE: A change to link in the boost .a file should also be required, no?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Birch
Sent: Friday, October 26, 2007 2:08 PM
To: MapGuide Users Mail List; FDO Internals Mail List
Subject: RE: [mapguide-users] Problems with new fdo ogr build on Ubuntu
6.06

Thanks Jack, that change appears to have fixed the error with missing
Boost.

This discussion would probably be more on-topic over at fdo-users or
fdo-internals.  My fault for posting here :)

Jason
 

-Original Message-
From: Jack Lee
Subject: RE: [mapguide-users] Problems with new fdo ogr build on Ubuntu
6.06

For the file

Providers/PostGIS/Src/Provider/Makefile.am

try adding the line
-I../../../../Thirdparty/boost_1_32_0 \

after the line

  -I../../../../Utilities/Common/Inc \
___
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] RE: [fdo-users] FDO build_thirdparty

2007-07-04 Thread Greg Boone
Run the 'build' script under '...\Thirdparty\apache' and let me know
what the errors are.

   cd apache
   ./build

Greg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ray Holtz
Sent: Wednesday, July 04, 2007 12:14 PM
To: MapGuide Users Mail List; [EMAIL PROTECTED]
Subject: [fdo-users] FDO build_thirdparty

Hi all, Sorry for the doublepost on both lists, but I am almost pulling 
my hair out over this install.

I am trying to setup Mapguide 1.1 on an Ubuntu 6.06 LTS server. I have 
installed the aptinstaller fine.  I am working on the FDO now.  I get 
stuck with the build_thirdparty.sh script.  It ends with the following 
lines:

make[1]: Leaving directory 
`/usr/local/maptemp/OpenSource_FDO/Thirdparty/GDAL1.3/src/apps'
make[1]: Entering directory
`/usr/local/maptemp/OpenSource_FDO/Thirdparty'
make[2]: Entering directory
`/usr/local/maptemp/OpenSource_FDO/Thirdparty'
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ../mkinstalldirs /usr/local/fdo-3.2.0/lib
  /usr/bin/install -c -m 644 ./apache/xml-xalan/c/lib/libxalan-c.so.17.0

/usr/local/fdo-3.2.0/lib/apache/xml-xalan/c/lib/libxalan-c.so.17.0
/usr/bin/install: cannot create regular file 
`/usr/local/fdo-3.2.0/lib/apache/xml-xalan/c/lib/libxalan-c.so.17.0': No

such file or directory
  /usr/bin/install -c -m 644 
./apache/xml-xalan/c/lib/libxalanMsg.so.17.0 
/usr/local/fdo-3.2.0/lib/apache/xml-xalan/c/lib/libxalanMsg.so.17.0
/usr/bin/install: cannot create regular file 
`/usr/local/fdo-3.2.0/lib/apache/xml-xalan/c/lib/libxalanMsg.so.17.0': 
No such file or directory
  /usr/bin/install -c -m 644 
./apache/xml-xerces/c/lib/libxerces-c.so.25.0 
/usr/local/fdo-3.2.0/lib/apache/xml-xerces/c/lib/libxerces-c.so.25.0
/usr/bin/install: cannot create regular file 
`/usr/local/fdo-3.2.0/lib/apache/xml-xerces/c/lib/libxerces-c.so.25.0': 
No such file or directory
  /usr/bin/install -c -m 644 
./GDAL1.3/linux/lib/optimized/libgdal.so.1.9.0 
/usr/local/fdo-3.2.0/lib/GDAL1.3/linux/lib/optimized/libgdal.so.1.9.0
/usr/bin/install: cannot create regular file 
`/usr/local/fdo-3.2.0/lib/GDAL1.3/linux/lib/optimized/libgdal.so.1.9.0':

No such file or directory
make[2]: *** [install-thdlibDATA] Error 1
make[2]: Leaving directory
`/usr/local/maptemp/OpenSource_FDO/Thirdparty'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory
`/usr/local/maptemp/OpenSource_FDO/Thirdparty'
make: *** [install-recursive] Error 1


It is trying to do something with /usr/local/fdo-3.2.0/lib/apache/..

  but there is nothing under the /usr/local/fdo-3.2.0/lib directory.  it

is empty.  Then it fails with the makes.  Is there something that I am 
missing in doing these?
Thanks for your help!
Ray
___
fdo-users mailing list
[EMAIL PROTECTED]
http://lists.osgeo.org/mailman/listinfo/fdo-users

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