RE: [mapguide-users] Uploading Shapefile to Map for Immediate DisplayProblem

2008-12-02 Thread Greenhough, Jamie
Hey Kevin, I checked out your site. I am working on very similar
functionality. My users need to be able to ADD, DELETE, and EDIT
(stylize) layers.

I used the Maestro API to implement the ADD functionality. See one of my
previous messages for the code snippet here:
http://www.nabble.com/DWGLoadProcedure-td20016401.html

I also made a layerdefinition factory to create the XML necessary for
creating the .LayerDefintion.

For the layer to show up immediately, after the save, you need to invoke
the Refresh() method from the viewerFrame. I haven't had any luck
calling this method from a ASP user control yet. :(

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of kevin_t
Sent: Tuesday, December 02, 2008 1:06 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Uploading Shapefile to Map for Immediate
DisplayProblem


I like to set it up so that people can upload shapefiles from their
computer
to my mapguide map and have it immediately add it as a layer to my map
and
show up on screen immediately.  Does anybody know how to implement this
functionality?  Or know where to download one that works?

I have inherited customization in PHP code that does this but it's not
working and I am unable to fix it.

The map is located at:
http://204.244.79.12/mapguide2009/uploadshp/canada_frameset.php
Under Tasks on the right > Upload Shapefile

Any help or suggestions will be greatly appreciated.
-- 
View this message in context:
http://n2.nabble.com/Uploading-Shapefile-to-Map-for-Immediate-Display-Pr
oblem-tp1605726p1605726.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] XML Parser error for Feature Sources

2008-12-02 Thread Greenhough, Jamie
Thanks for the tip about Maestro chm file. I had the same problems until
I 'Unblocked' the file just now.!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of cagray
Sent: Tuesday, December 02, 2008 1:29 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] XML Parser error for Feature Sources


Thats works great.

I had written a web app which allows a user to completely customise the
appearances of layers. Behind the scenes it just edits the xml but I
suspect
the MaestroAPI could do this all for me without me touching the xml. I
need
to look into it more as I need to be able to save to both session and
library and always show the updates on a live map however the MaestroAPI
looks ideal.  

The help chm file, I can download fine but when I do, any links I try
and
open just come up with 'The address is not valid'. However turns out
this is
an intended security feature of IE. Basically to fix it all you have to
do
is right click on the chm file, go to properties and then click Unblock
and
it works. (Just in case anyone else has had the same issue)

Thanks for all your help!
Colin


Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> You have to initialize the parameter collection manually:
> fs.Parameter = new MaestroAPI.NameValuePairTypeCollection();
> (I forgot to mention that).
> 
> I just tried to download MaestroAPI.chm, and the link works for me:
>
http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/MaestroAPI/Do
cumentation/Msdn-Chm/MaestroAPI.chm?format=raw
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> cagray skrev:
>> I tried your example and I always get an error of:
>>
>> Object reference not set to an instance of an object.
>>
>> when I do:
>>
>>  fs.Parameter["DefaultFilePath"] = "C:\my.shp";
>>
>> or other similar attempts for other providers. If I take this line
out it
>> creates the resource no problem. Do you know why this would happen?
>>
>> Also I tried to download the help (MaestroAPI.chm) off the website
but
>> none
>> of the help links work. Have I done something daft? 
>>
>> Any help is appreciated.
>> Colin
>>
>>
>> Kenneth Skovhede, GEOGRAF A/S wrote:
>>   
>>> Yes, you can do just that.
>>> Look in the Maestro source code to see how it's done.
>>> The files "ResourceEditors/ResourceEditorBase.cs"  and 
>>> "ResourceEditors/ResourceEditorGeneric.cs" shows it.
>>> Some more customized versions are avalible in eg
>>> "FeatureSourceEditorSDF.cs"
>>>
>>> Basically you can do:
>>> MaestroAPI.ServerConnectionI con; //You must initialize this,
see 
>>> the developer docs
>>> MaestroAPI.FeatureSource fs = new MaestroAPI.FeatureSource();
>>> fs.Provider = "OSGeo.SHP.3.1";
>>> fs.Parameter["DefaultFilePath"] = "C:\my.shp";
>>> con.SaveResourceAs(fs, new MaestroAPI.ResourceIdentifier("my
fs", 
>>> OSGeo.MapGuide.MaestroAPI.ResourceTypes.FeatureSource));
>>>
>>>
>>> As for your actual problem, does the server error log show anything?
>>> C:\program files\Mapguideopensource2.0\server\logs\error.log
>>>
>>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>>
>>>
>>>
>>> cagray skrev:
>>> 
 Thanks for the reply. Unfortunately that did not solve my problem
and I
 got
 the same error. Is there anything else I could try?

 I was not aware you could do this without generating/manipulating
the
 xml.
 My web tool has to fully control setting up data sources. So the
user
 selects a provider and then fills in the connection details. I then
 need
 to
 create a new data source from this to be stored in mapguide. Can
you do
 this
 using the Meastro API alone? 


 Kenneth Skovhede, GEOGRAF A/S wrote:
   
   
> I believe the problem is the .Net UTF-8 Encoder prefixes an UTF-8
BOM,
> which causes problems in the Xml parser:
> http://trac.osgeo.org/mapguide/ticket/233
>
> You can try to create the UTF-8 encoder with:
>
> UTF8Encoding utf8 = new UTF8Encoding(false);
>
>
> And see if the problem goes away.
> Alternatively you can use the MaestroAPI instead of messing with
the
> raw 
> Xml:
> http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI
>
> Regards, Kenneth Skovhede, GEOGRAF A/S
>
>
> 
> 
>>> ___
>>> mapguide-users mailing list
>>> mapguide-users@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>>
>>> 
>>
>>   
> 
> ___
> mapguide-users mailing list
> mapguide-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context:
http://www.nabble.com/XML-Parser-error-for-Feature-Sources-tp20770245p20
787959.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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

[mapguide-users] Theme example in .NET

2008-12-01 Thread Greenhough, Jamie
I'm starting to look at the phpgenerictasks example. From here...
http://data.mapguide.com/mapguide/gt/index.php (for some reason the
theme example is broken). Anyways... I have seen it working before, and
I need to replicate this example/functionality.

 

The sample code is PHP, before I try to tackle this task, does anyone
have experience trying to convert this code to .NET? Caveats? Advice?

 

If I have any success I will upload my .net code back to the community.

 

Thanks!



Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Getting FeatureSource className without Layer

2008-11-10 Thread Greenhough, Jamie
Hello everyone! I'm trying to find out the className of a FeatureSource
without referencing a layer. Here's the code I'm using so far:

 

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

String configPath = realPath + "..\\webconfig.ini";

MapGuideApi.MgInitializeWebTier(configPath);

 

// Connect to the site.

MgUserInformation userInfo = new
MgUserInformation(sessionId);

MgSiteConnection siteConnection = new MgSiteConnection();

siteConnection.Open(userInfo);

 

// Create Resource and Feature Service

MgFeatureService featureService =
(MgFeatureService)siteConnection.CreateService(MgServiceType.FeatureServ
ice);

 

// Specify the FeatureSource to used for creating the new
layer

MgResourceIdentifier resId = new
MgResourceIdentifier("Library://Samples/Sheboygan/Data/Trees.FeatureSour
ce");

 

MgFeatureReader featureReader =
featureService.SelectFeatures(resId, "Schema:Trees", null);

 

So the value I need is "Schema:Trees" but I don't want to hardcode this
value. I can access the Class Name if I get it from a layer, but I'm
trying to add a LayerDefinition to the repository, and I don't have a
layer to reference yet. It looks like SchemaName:ClassName. Any
suggests?



Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] FeatureSource. PointTypeStyle? LineTypeStyle?

2008-11-07 Thread Greenhough, Jamie
Thanks Kenneth. I have just begun using the Maestro API. Thanks again
for all your work on this.

 

Using this API to access the layer properties does sound easier than
using a layerfactory to generate the LayerDefinition XML.

 

So I think I will need to create the VectorLayerDefinition,
VectorScaleRange, PointTypeStyle, PointSymbolization2DType,
MarkSymbolType, PointTypeStyleType, and FillType. Then put all these
pieces together into a LayerDefinition.

 

Am I missing something? Do you have any maestro code snippets that will
jumpstart my dev on this?

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Skovhede, GEOGRAF A/S
Sent: Friday, November 07, 2008 1:59 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] FeatureSource. PointTypeStyle?
LineTypeStyle?

 

And some providers return the wrong results.
Rather than using the layerfactory method, have you tried the
MaestroAPI:
http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI

Using the MaestroAPI, you can access the "PointTypeStyle" (and all other
properties),
 as a class rather than Xml.



Regards, Kenneth Skovhede, GEOGRAF A/S



Jackie C. Ng skrev: 

Look at the class definition of the feature source it (the layer) is
referencing. More specifically, look at the geometry property and see
what
geometry types it supports. This will correspond with what styles you
can
have in your layer.
 
- Jackie
 
 
Greenhough, Jamie wrote:
  

I'm trying to programmatically add shape files as a
FeatureSource, and
then use a .NET layer factory (ported from PHP) to add a
LayerDefinition
to the MapGuide repository.
 
 
 
I can add the shape files and create a MapGuide FeatureSource
just
great.
 
 
 
I'm stuck with how to determine if the FeatureSource contains
Line or
Point data. Specifically the  and
 nodes
in the LayerDefinition.xml.
 
 
 
Does anyone have experience with this?
 
 
 
Thanks!
 
 
 
Jamie Greenhough | IT Consultant
Sierra Systems
 
 
 
 
 
Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is
intended
only for the party to whom it is addressed and may contain
information
that is confidential or privileged.  Sierra Systems Group Inc.
and its
affiliates accept no responsibility for any loss or damage
suffered by any
person resulting from any unauthorized use of or reliance upon
this Email. 
If you are not the intended recipient, you are hereby notified
that any
dissemination, copying or other use of this Email is prohibited.
Please
notify us of the error in communication by return email and
destroy all
copies of this Email.  Thank you.
 
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
 
 


 
 
-
http://themapguyde.blogspot.com
 
http://www.linkedin.com/in/jackieng
  


Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] FeatureSource. PointTypeStyle? LineTypeStyle?

2008-11-06 Thread Greenhough, Jamie
I'm trying to programmatically add shape files as a FeatureSource, and
then use a .NET layer factory (ported from PHP) to add a LayerDefinition
to the MapGuide repository.

 

I can add the shape files and create a MapGuide FeatureSource just
great.

 

I'm stuck with how to determine if the FeatureSource contains Line or
Point data. Specifically the  and  nodes
in the LayerDefinition.xml.

 

Does anyone have experience with this?

 

Thanks!

 

Jamie Greenhough | IT Consultant
Sierra Systems

 



Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Importing DWG

2008-11-05 Thread Greenhough, Jamie
MapGuide Studio can do a Load Procedure to import a .DWG file.

 

I am still looking for a way to do it via open source...

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carmelo
Saffioti
Sent: Wednesday, November 05, 2008 4:43 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Importing DWG

 

H everybody,

I have a planimetry DWG cad file of an unmapped zone. Is there any way
to import or use it within MapGuide?

 

 

Thank you

Carmelo



Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Connecting MGOS 2.0.2 to Mapguide Studio

2008-10-31 Thread Greenhough, Jamie
Start up Studio,

Site: http://127.0.0.1/mapguide (use the ip address of your mapguide
server)
Username: Administrator
Password: admin

Once connected, look in the repository for the \Samples\Sheboygan
example.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of bobanddoug
Sent: Friday, October 31, 2008 10:52 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Connecting MGOS 2.0.2 to Mapguide Studio


Can someone give me a full run down of how I connect to my MGOS 2.0.2
project
with Mapguide Studio 2009 please?
-- 
View this message in context:
http://www.nabble.com/Connecting-MGOS-2.0.2-to-Mapguide-Studio-tp2025545
8p20255458.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] DWGLoadProcedure

2008-10-24 Thread Greenhough, Jamie
Thanks Kenneth(!!),

 

I've implemented your code snippet, and it now looks like this:

 

string username = "Author1";

string password = "Author1";

string locale = "EN";

string url = "http://mapguideserver/MapGuide";;

System.Uri uri = new System.Uri(url);

 

ServerConnectionI con = new HttpServerConnection(uri, username,
password, locale, false);

FeatureSource fs = new FeatureSource();

fs.Provider = "OSGeo.SHP.3.3";

fs.Parameter = new NameValuePairTypeCollection();

fs.Parameter["DefaultFileLocation"] =
"%MG_DATA_FILE_PATH%ShapeFile.SHP";

string resId = "Library://MYNEWTESTSHAPE.FeatureSource";

con.SaveResourceAs(fs, resId);

using (System.IO.FileStream fss =
System.IO.File.OpenRead("C:\\Hydrant.shp"))

con.SetResourceData(resId, "ShapeFile.SHP",
ResourceDataType.File, fss);

 

... and that works. 

 

Now I'm looking at and thinking about how to:

o   Convert to SDF feature source.

o   Set the coordinate system.

o   Import/save the attribute data from *.dbf file.


So I'm looking for more direction/information on uploading shp files to
a managed mapguide server. Anyone?

 

Thanks

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Skovhede, GEOGRAF A/S
Sent: Friday, October 17, 2008 1:00 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] DWGLoadProcedure

 

As DWG is a proprietary format, I belive it will be difficult to do this
with only open-source software.
Supposedly, you can use FME to do it, and I think there is some
organisation that has a 'open-source' like library for reading DWG data.

There are no methods for dealing with DWG in Maestro or the Maestro API,
for the above reasons.

As for SHP, it is fairly easy to do this:
IServerConnection con = new HttpServerConnection(url, username,
password, locale, false);
FeatureSource fs = new FeatureSource();
fs.Provider = "OSGeo.SHP.3.3"; //Adjust if you are not using FDO 3.3
fs.Parameter = new NameValueCollection();
fs.Parameter["DefaultFileLocation"] =
"%MG_DATA_FILE_PATH%ShapeFile.SHP"; //Can use absolute path here
string resId = "Library://MyShpFile.FeatureSource";
con.SaveResourceAs(fs, resId);
using(System.IO.FileStream fs =
System.IO.File.OpenRead("C:\\myshapefile.shp"))
con.SetResourceData(resId, "ShapeFile.SHP", ResourceDataType.File,
fs);

The above code will create a managed copy of your shape data.
If you want an unmanaged copy, just change "DefaultFileLocation" to the
absolute path, and remove the "SetResourceData" call.




Regards, Kenneth Skovhede, GEOGRAF A/S



Greenhough, Jamie skrev: 

Hello again MapGuide coders ;)

 

I want to programmatically load .dwg/.shp files to a managed MapGuide
environment. 

 

I think this can be accomplished with the MapGuide Studio API... but are
there any other ways to get this data into the MapGuide server? I'm
trying to stay open source. Are there any methods in the Maestro API to
accomplish this?

Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is
intended only for the party to whom it is addressed and may contain
information that is confidential or privileged. Sierra Systems Group
Inc. and its affiliates accept no responsibility for any loss or damage
suffered by any person resulting from any unauthorized use of or
reliance upon this Email. If you are not the intended recipient, you are
hereby notified that any dissemination, copying or other use of this
Email is prohibited. Please notify us of the error in communication by
return email and destroy all copies of this Email. Thank you.

 






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


Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] DWGLoadProcedure

2008-10-16 Thread Greenhough, Jamie
Hello again MapGuide coders ;)

 

I want to programmatically load .dwg/.shp files to a managed MapGuide
environment. 

 

I think this can be accomplished with the MapGuide Studio API... but are
there any other ways to get this data into the MapGuide server? I'm
trying to stay open source. Are there any methods in the Maestro API to
accomplish this?



Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] SQL Import Spatial Data

2008-10-09 Thread Greenhough, Jamie
Does anyone have experience with importing spatial data to SQL 2008?
Specifically SHP/DWG -> SQL.

 

We are exploring the development effort and performance of using
unmanaged SHP/DWG files with alias' vs. importing these files into
SQL2008 and using FDO.

 

Any input is appreciated, thanks.

 



Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] mozilla firefox

2008-10-09 Thread Greenhough, Jamie
What version of MGOS are you using? What version of firefox?

 

Check this TRAC ticket: http://trac.osgeo.org/mapguide/ticket/378

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, October 09, 2008 6:15 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] mozilla firefox 

 

Hi all ,I tried to run MG layout web page with firefox it doesn't work,
So kindly any body know how can I run MG web page layout with mozilla
firefox .??



Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Javascript access

2008-10-02 Thread Greenhough, Jamie
Thanks Mark.


I am able to access the object + method now.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, October 02, 2008 4:27 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Javascript access

 

Hmnn.  I can't seem to make the function GetFormFrame() to work
either.

However, top.viewerFrame.formFrame gives me the formFrame object.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Greenhough,
Jamie
Sent: Thursday, October 02, 2008 1:50 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Javascript access

 

I want to do something like this...

 

var formframe =
document.getElementById("viewerFrame").contentWindow.GetFormFrame();

formframe.Submit("../assetManage.aspx", null, "taskPaneFrame");

 

but I am getting Object Required error on first line.
.contentWindow.GetFormFrame() is the problem. I can locate/identify my
viewerFrame iframe object.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, October 02, 2008 2:39 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Javascript access

 

Could you post the javascript you have so far?

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Greenhough,
Jamie
Sent: Thursday, October 02, 2008 1:06 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] Javascript access

 

I have 2 iframes on my page. 1 containing the mapguide mapviewer,
another iframe containing a page with additional feature details.

 









 

I want to call the viewerFrame.formFrame.Submit() method. I am trying to
call it from Javascript located on a page in the assetFrame.

 

Can anyone tell me how to access the Submit() method in this scenario?



Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Javascript access

2008-10-02 Thread Greenhough, Jamie
I want to do something like this...

 

var formframe =
document.getElementById("viewerFrame").contentWindow.GetFormFrame();

formframe.Submit("../assetManage.aspx", null, "taskPaneFrame");

 

but I am getting Object Required error on first line.
.contentWindow.GetFormFrame() is the problem. I can locate/identify my
viewerFrame iframe object.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, October 02, 2008 2:39 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Javascript access

 

Could you post the javascript you have so far?

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Greenhough,
Jamie
Sent: Thursday, October 02, 2008 1:06 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] Javascript access

 

I have 2 iframes on my page. 1 containing the mapguide mapviewer,
another iframe containing a page with additional feature details.

 









 

I want to call the viewerFrame.formFrame.Submit() method. I am trying to
call it from Javascript located on a page in the assetFrame.

 

Can anyone tell me how to access the Submit() method in this scenario?

Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is
intended only for the party to whom it is addressed and may contain
information that is confidential or privileged. Sierra Systems Group
Inc. and its affiliates accept no responsibility for any loss or damage
suffered by any person resulting from any unauthorized use of or
reliance upon this Email. If you are not the intended recipient, you are
hereby notified that any dissemination, copying or other use of this
Email is prohibited. Please notify us of the error in communication by
return email and destroy all copies of this Email. Thank you.



Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Javascript access

2008-10-02 Thread Greenhough, Jamie
I have 2 iframes on my page. 1 containing the mapguide mapviewer,
another iframe containing a page with additional feature details.

 









 

I want to call the viewerFrame.formFrame.Submit() method. I am trying to
call it from Javascript located on a page in the assetFrame.

 

Can anyone tell me how to access the Submit() method in this scenario?



Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Mapguide Integration

2008-09-26 Thread Greenhough, Jamie
Thanks for the responses.!

 

Darrin, that was the jump off I needed. We were having issues with cross
site scripting problems. Having the web extensions installed on dev
machines, and using local IIS debugging in visual studio, so far, is
solving most of our issues.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Darrin
Maidlow
Sent: Wednesday, September 24, 2008 5:46 PM
To: 'MapGuide Users Mail List'
Cc: Sinelnikov, Andrei
Subject: RE: [mapguide-users] Mapguide Integration

 

Hi Jamie,

 

I believe I have done something similar to what you're wanting to do.
My application has  a header containing extensive amounts of application
logic which can interact with the mapguide viewer, and server API as
needed.  Here is some javascript that should return what you're looking
for. 

 

return
document.getElementById("iFrameID").contentWindow.GetMapFrame();

 

Now depending on where the iframe is located it can get a bit more
tricky.  Putting an iframe within a user control, or another .net
container (master controls, placeholders, panels etc) will prefix the ID
of the iframe with stuff in the rendered HTML.  For example a user
control called MyControl that contains an iframe with an ID of MyIframe
would render out as MyControl_MyIframe.  To work around this, you need
to setup the iframe with a runat="server" tag, and spit out a global
javascript variable that contains MyIframe.ClientID from the codebehind.
The updated javascript would look more like:

 

return
document.getElementById(globalVarWithClientID).contentWindow.GetMapFrame
();

 

Also - remember that the Mapguide web tier will need to be installed on
local development machines, and the server will need to be referenced
through the local web tier to prevent cross site scripting problems.

 

Hope that helps.

 

darrin

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Greenhough,
Jamie
Sent: Wednesday, September 24, 2008 12:57 PM
To: mapguide-users@lists.osgeo.org
Cc: Sinelnikov, Andrei
Subject: [mapguide-users] Mapguide Integration

 

Hello, I hopefully someone can help me out...

 

I have been struggling to integrate MapGuide into a custom .NET web
based application we are developing. 

 

I setup MapGuide on an external server, the dotnetsamples run great and
the MapGuide server appears to be working ok. Great. All of the dev
examples reference the dotnetviewer relatively
(../mapguide/mapviewernet), I am referencing via
http://mapguideserver/mapguide/mapviewernet.

 

We are using MapGuide inside of an iframe. Our application consists of
master pages, user controls, and other .net3.5 goodness.

 

The problem I am facing, is that I don't know how to reference the
viewerAPI outside of the MapGuide frames.

 

I can use InvokeScript and pass SelectionXML to another page in another
frame. But this is not really what we want to do. We want to use code
outside of the iframe to manipulate the ViewerAPI and MapGuideAPI inside
of the iframe.

 

Does anyone have experience with manipulating MapGuide from outside of
an iframe? How about setting up a robust web application with MapGuide
in the middle?

 

Thanks for reading, looking for direction,

Jamie Greenhough

Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is
intended only for the party to whom it is addressed and may contain
information that is confidential or privileged. Sierra Systems Group
Inc. and its affiliates accept no responsibility for any loss or damage
suffered by any person resulting from any unauthorized use of or
reliance upon this Email. If you are not the intended recipient, you are
hereby notified that any dissemination, copying or other use of this
Email is prohibited. Please notify us of the error in communication by
return email and destroy all copies of this Email. Thank you.



Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Mapguide Integration

2008-09-24 Thread Greenhough, Jamie
Hello, I hopefully someone can help me out...

 

I have been struggling to integrate MapGuide into a custom .NET web
based application we are developing. 

 

I setup MapGuide on an external server, the dotnetsamples run great and
the MapGuide server appears to be working ok. Great. All of the dev
examples reference the dotnetviewer relatively
(../mapguide/mapviewernet), I am referencing via
http://mapguideserver/mapguide/mapviewernet.

 

We are using MapGuide inside of an iframe. Our application consists of
master pages, user controls, and other .net3.5 goodness.

 

The problem I am facing, is that I don't know how to reference the
viewerAPI outside of the MapGuide frames.

 

I can use InvokeScript and pass SelectionXML to another page in another
frame. But this is not really what we want to do. We want to use code
outside of the iframe to manipulate the ViewerAPI and MapGuideAPI inside
of the iframe.

 

Does anyone have experience with manipulating MapGuide from outside of
an iframe? How about setting up a robust web application with MapGuide
in the middle?

 

Thanks for reading, looking for direction,

Jamie Greenhough



Notice Regarding Confidentiality
This email, including any and all attachments, (this "Email") is intended only 
for the party to whom it is addressed and may contain information that is 
confidential or privileged.  Sierra Systems Group Inc. and its affiliates 
accept no responsibility for any loss or damage suffered by any person 
resulting from any unauthorized use of or reliance upon this Email.  If you are 
not the intended recipient, you are hereby notified that any dissemination, 
copying or other use of this Email is prohibited.  Please notify us of the 
error in communication by return email and destroy all copies of this Email.  
Thank you.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users