Re: [mapguide-users] how to start working with map guide

2009-07-06 Thread Zac Spitzer
there are a heap of useful links available here

http://ennoble.dreamhosters.com/mapguide-central/

there is a learning curve required to understand MapGuide,
please research any further questions you might have
before asking the list.

Generally speaking as a list/community we are happy to help, but we
do expect people to search around and look for the answers first..

z

On Tue, Jul 7, 2009 at 4:50 PM, Kenneth Skovhede, GEOGRAF
A/S wrote:
> There is a basic (incomplete) Maestro guide here:
> http://trac.osgeo.org/mapguide/wiki/maestro/UserGuide
>
> Also, the MapGuide Developer Guide will explain most of what you need to
> know:
> http://mapguide.osgeo.org/2.0/documentation.html
>
> Regards, Kenneth Skovhede, GEOGRAF A/S
>
>
> sreejith R skrev:
>
> hello,
> I installed map server 2.0.2,map web server extension 2.0.2,dotnetfx.exe and
> maestro 1.0.9.
> how will i start my work after this.Please give me each and every step of
> operation required for creating a new application. I am new to this
> technology.So needs your help.
>
> --
> Sreejith.R
>
> 
> ___
> 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
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] how to start working with map guide

2009-07-06 Thread Kenneth Skovhede, GEOGRAF A/S

There is a basic (incomplete) Maestro guide here:
http://trac.osgeo.org/mapguide/wiki/maestro/UserGuide

Also, the MapGuide Developer Guide will explain most of what you need to 
know:

http://mapguide.osgeo.org/2.0/documentation.html

Regards, Kenneth Skovhede, GEOGRAF A/S



sreejith R skrev:

hello,
I installed map server 2.0.2,map web server extension 
2.0.2,dotnetfx.exe and maestro 1.0.9.
how will i start my work after this.Please give me each and every step 
of operation required for creating a new application. I am new to this 
technology.So needs your help.


--
Sreejith.R


___
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] how to start working with map guide

2009-07-06 Thread sreejith R
hello,
I installed map server 2.0.2,map web server extension 2.0.2,dotnetfx.exe and
maestro 1.0.9.
how will i start my work after this.Please give me each and every step of
operation required for creating a new application. I am new to this
technology.So needs your help.

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


[mapguide-users] Selecting and Zooming to Features - AJAX Viewer

2009-07-06 Thread Praveen Rajendra Babu
Hi,
Trying to figure out the best way to zoom and select features. This is w.r.to 
AJAX Viewer.
What I do right now in sequence is:

* Get the selection XML using MapGuide Web API

* Call the function mapFrame.SetSelectionXML(...) with the selection XML

* Call the function mapFrame.ExecuteMapAction(10)

When doing this, there is a delay between the selection/highlighting of 
features on the map and then zooming to the features.
Sometimes the delay between highlighting and zooming is minor and many times it 
is easily noticeable and this seems to be a bit "not-nice",
in a very polite sense!
   Wondering, am I doing things the right way? Is there any better way to 
highlight and zoom features?
Does Fusion come better in this basic set of activities?

Thanks for your time.

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


Re: [mapguide-users] Feature Vertices

2009-07-06 Thread Tom Lazo

Thanks, 

I'll try that.

I'll notice you when it's finished.

Stygy/ Tom



Jackie Ng wrote:
> 
> Given a MgFeatureReader that contains your feature(s):
> 
> - Call its GetGeometry() method to get a byte reader
> - Convert this byte reader to a MgGeometry object by using a
> MgAgfReaderWriter object.
> - Call GetGeometryType() on the MgGeometry to determine what type of
> geometry it actually is.
> - Depending on the type, cast the MgGeometry to that given type (if not
> using PHP) and consult the relevant APIs for that derived geometry type.
> Basically you want to take note of any class methods that return MgPoint,
> MgCoordinate or MgCoordinateIterator objects.
> 
> Hope that helps.
> 
> - Jackie
> 
> 
> Tom Lazo wrote:
>> 
>> Hi all!,
>> 
>> Anyone knows how could i get the coordinates of the vertices of a
>> feature, Is there any function that do that?. Thanks.
>> 
>> Stygy / Tom
>> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Feature-Vertices-tp3205810p3213363.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] permissions to users in the admin site

2009-07-06 Thread Kenneth Skovhede, GEOGRAF A/S

You can set permissions on items using a tool such as Maestro or Studio.
I would not recommend doing so, as it is very difficult to do so.

To display a map, the user must have read access to:
* The weblayout
* The mapdefinition
* Every layer in the map
* Every featuresource referenced by the map layers

Denied access will prevent the map from displaying at all.

On top of this, the entire path to the resource must grant access.
Eg.: Library://Folder1/Folder2/Resource.Extension

The user must be granted read access to Folder1 AND Folder2 AND Resource.
If you deny access to say Folder1, access to Folder2 and Resource is denied,
regardless of what access you set on them explicitly.

Regards, Kenneth Skovhede, GEOGRAF A/S



T.kiran kumar reddy skrev:

Hi to every one,

   when i entered into administrator login(
http://localhost/mapguide/mapadmin/login.php )there we can create some users
with different permissons (administator or map author). if we create a user
with map author permissions only what are the things he can get ? what are
the uses if we create with mapauthor only? is there any method to restrict 
user to use perticular specified packages only not all in the server

packages .If any body kows about these questions please help me
  

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


Re: [mapguide-users] Modify layout with anonymous user

2009-07-06 Thread Kenneth Skovhede, GEOGRAF A/S

Something like this would do it with MaestroAPI (untested):

   MaestroAPI.ServerConnectionI con; //Needs initialization

   //Read the current resources
   MaestroAPI.WebLayout layout = con.GetWebLayout("???.WebLayout");
   MaestroAPI.MapDefinition map = 
con.GetMapDefinition(layout.Map.ResourceId);


   //Create the temp layer
   MaestroAPI.MapLayerType layer = new 
OSGeo.MapGuide.MaestroAPI.MapLayerType();

   layer.ResourceId = "???.LayerDefinition";
   layer.Name = "Temporary layer";

   //Add it to the map
   map.Layers.Add(layer);

   //Generate a session based temporary id (will become 
Session://Random Map Identifier.MapDefinition)
   string tempMapId = new MaestroAPI.ResourceIdentifier("Random 
Map Identifier", MaestroAPI.ResourceTypes.MapDefinition, con.SessionID);
  
   //Save the modified map in the session repo

   con.SaveResourceAs(map, tempMapId);

   //Modify the layout to point at the temp map
   layout.Map.ResourceId = tempMapId;

   //Generate a session based temporary id, and save the 
modified layout (will become Session://Random WebLayot 
Identifier.WebLayout)
   string tempLayoutId = new 
MaestroAPI.ResourceIdentifier("Random WebLayout Identifier", 
MaestroAPI.ResourceTypes.WebLayout, con.SessionID);

   con.SaveResourceAs(layout, tempLayoutId);

   //Open the viewer with the modified weblayout, that uses the 
modified map
   Response.Redirect("/mapguide/mapviewerajax/?session=" + 
Server.UrlEncode(con.SessionID) + "&layout=" + 
Server.UrlEncode(tempLayoutId));


You can rewrite the property access with the corresponding xml changes,
and the GetResource/SaveResource with the corresponding function calls 
to the

MapGuide API, if you don't want to use Maestro.

Instead of the "Random ... Identifier" strings, you should use 
Guid.NewGuid().ToString().


Regards, Kenneth Skovhede, GEOGRAF A/S



euskalmap skrev:

Hi,
thanks for your information but how do you make toYou have to create a
temporary WebLayout AND a temporary MapDefinition and then make the
temporary WebLayout point to the temporary MapDefinition.
Have you an example of code?
Thnaks

Kenneth Skovhede, GEOGRAF A/S wrote:
  

If you save to "Library://" the data will be modified permanently.
Normally the "Anonymous" user is not allowed to save to "Library://".

If you save to "Session://" the changes will only be visible to
the current user. You must take care not to mix sessionid's.

I think you are trying to use the WebLayout from Library, that will not 
work.

You have to create a temporary WebLayout AND a temporary MapDefinition.

Then make the temporary WebLayout point to the temporary MapDefinition.
(I think your code does this)
Then save both WebLayout and MapDefinition in "Session://".
When you redirect, you should point to the temporary WebLayout.
As you pass in the sessionId, the viewer should be able to read it 
correctly.


Regards, Kenneth Skovhede, GEOGRAF A/S




euskalmap skrev:


Hi,
I refresh my post! If you have an idea !!!

Sorry, I wanted to say that my c# code change the mapdefinitin in the
layout
for the current session;
if i use administrator user, it seems to me that my repositories is
modified
in maestro, no and i will not ?
For (Sample 1) my code is  http://patxi.mayol.free.fr/ag_default3.aspx
here 
For (Sample 2) my xml file is  http://patxi.mayol.free.fr/test_after.xml
here 
Thanks 


Kenneth Skovhede, GEOGRAF A/S wrote:
  
  
You mention "layout resource", but the message states a MapDefinition is 
saved?
Anonymous can only save to the same session, only Administrator can save 
across

sessions.

As for the parse error, your document is likely invalid.

For (Sample 1), can you post the related code?
For (Sample 2), can you post a binary copy of the document you are 
trying to save?


Regards, Kenneth Skovhede, GEOGRAF A/S



euskalmap skrev:



Hi,
I modify, by c# script, the name of the layout resource; i use the
MgUserInformation function with Anonymous user without password. 
sample1 : In mapguide administrator this user have no role => so when i

load
the page i have this message : 
Permission denied to resource:
Session:98d50e40---8000-0016d44491c1_en_7F010AFC0AFB0AFA//Map_40312.MapDefinition 
sample 2 : if i add the role Adminstrator and Map Author of the

Anonymous
user, i have this message :
An exception occurred in DB XML component. Error: XML Indexer: Fatal
Parse
error in document at line, 1, char 1. Parser message: Invalid document
structure 


I understand anything ! Have you an idea ?

Thanks
  
  
  

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




  
  

___
mapguide-users mailing list
ma

Re: [mapguide-users] Can you connect to mapguide across a network?

2009-07-06 Thread JamesDudden

I figured it out.

I needed to add an exception to Windows firewall to allow other computers on
the network through on port 80.

-
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: 
http://n2.nabble.com/Can-you-connect-to-mapguide-across-a-network--tp3212174p3212253.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] Can you connect to mapguide across a network?

2009-07-06 Thread JamesDudden

Hi,
I have set up and been using Mapguide for a few months now using: MG2,
Studio09, Xp, ASP.NET, IIS 5

The computer is on a small local network. Is it possible to view my Mapguide
application and map admin from a different computer on the network?

I have tried using the computers name and ip address as follows:

http://192.168.1.3/mapguide/mapadmin/login.php
http://dell3100/mapguide/mapadmin/login.php

Both of these give the same error:

Internet Explorer cannot display the webpage 
   
Most likely causes:
You are not connected to the Internet. 
The website is encountering problems. 
There might be a typing error in the address. 

Is there something I need to do in IIS? 
Or is this just not possible?

Any help, advice or comments are welcomed.

Regards

JD


-
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: 
http://n2.nabble.com/Can-you-connect-to-mapguide-across-a-network--tp3212174p3212174.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] Modify layout with anonymous user

2009-07-06 Thread euskalmap

Hi,
thanks for your information but how do you make toYou have to create a
temporary WebLayout AND a temporary MapDefinition and then make the
temporary WebLayout point to the temporary MapDefinition.
Have you an example of code?
Thnaks

Kenneth Skovhede, GEOGRAF A/S wrote:
> 
> If you save to "Library://" the data will be modified permanently.
> Normally the "Anonymous" user is not allowed to save to "Library://".
> 
> If you save to "Session://" the changes will only be visible to
> the current user. You must take care not to mix sessionid's.
> 
> I think you are trying to use the WebLayout from Library, that will not 
> work.
> You have to create a temporary WebLayout AND a temporary MapDefinition.
> 
> Then make the temporary WebLayout point to the temporary MapDefinition.
> (I think your code does this)
> Then save both WebLayout and MapDefinition in "Session://".
> When you redirect, you should point to the temporary WebLayout.
> As you pass in the sessionId, the viewer should be able to read it 
> correctly.
> 
> Regards, Kenneth Skovhede, GEOGRAF A/S
> 
> 
> 
> 
> euskalmap skrev:
>> Hi,
>> I refresh my post! If you have an idea !!!
>>
>> Sorry, I wanted to say that my c# code change the mapdefinitin in the
>> layout
>> for the current session;
>> if i use administrator user, it seems to me that my repositories is
>> modified
>> in maestro, no and i will not ?
>> For (Sample 1) my code is  http://patxi.mayol.free.fr/ag_default3.aspx
>> here 
>> For (Sample 2) my xml file is  http://patxi.mayol.free.fr/test_after.xml
>> here 
>> Thanks 
>>
>> Kenneth Skovhede, GEOGRAF A/S wrote:
>>   
>>> You mention "layout resource", but the message states a MapDefinition is 
>>> saved?
>>> Anonymous can only save to the same session, only Administrator can save 
>>> across
>>> sessions.
>>>
>>> As for the parse error, your document is likely invalid.
>>>
>>> For (Sample 1), can you post the related code?
>>> For (Sample 2), can you post a binary copy of the document you are 
>>> trying to save?
>>>
>>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>>
>>>
>>>
>>> euskalmap skrev:
>>> 
 Hi,
 I modify, by c# script, the name of the layout resource; i use the
 MgUserInformation function with Anonymous user without password. 
 sample1 : In mapguide administrator this user have no role => so when i
 load
 the page i have this message : 
 Permission denied to resource:
 Session:98d50e40---8000-0016d44491c1_en_7F010AFC0AFB0AFA//Map_40312.MapDefinition
  
 sample 2 : if i add the role Adminstrator and Map Author of the
 Anonymous
 user, i have this message :
 An exception occurred in DB XML component. Error: XML Indexer: Fatal
 Parse
 error in document at line, 1, char 1. Parser message: Invalid document
 structure 

 I understand anything ! Have you an idea ?

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

-- 
View this message in context: 
http://n2.nabble.com/Modify-layout-with-anonymous-user-tp3092823p3212013.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] creating package problem

2009-07-06 Thread Kenneth Skovhede, GEOGRAF A/S

Does the map have extent set?

I think you mean something else than "package".

A package in MapGuide is a copy of a folder, compressed as a zip file,
and stored outside MapGuide as a regular file.
Creating a package does not affect how MapGuide operates.

When you write "after creating package", what do you mean?

Regards, Kenneth Skovhede, GEOGRAF A/S



padmini godavarthi skrev:

Hi kenneth,
after creating package i just pressed "Show In Browser" button in layout
template
i got the map like 

http://n2.nabble.com/file/n3173735/template.jpeg 



i got an error msg in the log file



Regards,
Padmini.




Kenneth Skovhede, GEOGRAF A/S wrote:
  

You should get an error message when you
start the viewer also.

Regards, Kenneth Skovhede, GEOGRAF A/S




padmini godavarthi skrev:


Hi,
when i clicked on this map i got the error msg that



"<2009-06-29T15:36:01>   Administrator
 Error: Invalid argument(s):
The value cannot be less than or equal to zero.
 StackTrace:
  - MgRenderingServiceHandler.ProcessOperation line 83 file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\rendering\RenderingServiceHandler.cpp
  - MgOpQueryFeatures.Execute line 125 file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\rendering\OpQueryFeatures.cpp
  - MgServerRenderingService.QueryFeatures line 652 file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\rendering\ServerRenderingService.cpp
  - MgServerRenderingService.RenderForSelection line 1041 file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\rendering\ServerRenderingService.cpp
Invalid argument(s):
The value cannot be less than or equal to zero."



Regards,
Padmini G.


Kenneth Skovhede, GEOGRAF A/S wrote:
  
  

What are the messages in the error log file?

Regards, Kenneth Skovhede, GEOGRAF A/S




padmini godavarthi skrev:



  Hi,
iam using mapguide opensource 2.0 (with .net 2.0 +IIS 5.1).
and iam using mapguide maestro for creating packages.
it works fine (loading package on ajax viewer).

suddenly i got a problem from the last 2 days.the map is not showing on
the
browser...


http://n2.nabble.com/file/n3173532/template.jpeg 

i didn't get the problem. 
why it happens???///


can anybody helps me in this situation...?

Regards,
Padmini G.







  
  
  

___
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] Generalize the data by percentage. How does it work?

2009-07-06 Thread Jackie Ng

You are pretty much correct, the load procedure will reduce the vertex count
by the specified percentage. How it does the generalization I have no idea.

Though I believe that number is the percentage you want to reduce, not the
total percentage you are after. So if you had 5 points along the line, 20%
generalization would remove 1 point on that line.

- Jackie


Jonathan W wrote:
> 
> I have several very large polyline shapefiles that I wish to put into my
> Mapguide site.  I would like a faster preformance for my site by
> generalizing these files (reducing file sizes).  Could someone please
> direct me to the help file or tell me what the "Generalize the data by
> this percentage" in the load procedure actually does.  Does it remove
> vertices? Would 20% remove 4 out of 5 points along the line?
> 
> Thank you
> Jonathan
>  
> 

-- 
View this message in context: 
http://n2.nabble.com/Generalize-the-data-by-percentage.--How-does-it-work--tp3182874p3211490.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] Generalize the data by percentage. How does it work?

2009-07-06 Thread Kenneth Skovhede, GEOGRAF A/S

You should ask where you purchased Studio if you
want information specific to Studio.
There exists a Studio forum somewhere on the Autodesk website.

Commonly, you can only generalize point or polygon data,
where an algorithm will remove points that are "close" or
"on the same line", thus producing a lighter geometry.

Regards, Kenneth Skovhede, GEOGRAF A/S



Jonathan W skrev:
Yes Mapguide Studio version has the option.  I do not believe Maestro does. 


My question thou is what it technically does.  You have the option when you
add point data to generalize that as well.  How can you generalize point
data any further?

Jonathan


Warren Medernach-2 wrote:
  

Hi Jonathan,
If you have MapGuide Studio, in the Load Procedure dialog, there is an
option to generalize data.
I'm not sure if Maestro has this option or not, you might want to check?

Warren M

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jonathan W
Sent: Tuesday, June 30, 2009 8:42 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Generalize the data by percentage. How does it
work?


I have several very large polyline shapefiles that I wish to put into my
Mapguide site.  I would like a faster preformance for my site by
generalizing these files (reducing file sizes).  Could someone please
direct
me to the help file or tell me what the "Generalize the data by this
percentage" in the load procedure actually does.  Does it remove
vertices?
Would 20% remove 4 out of 5 points along the line?

Thank you
Jonathan
 
--

View this message in context:
http://n2.nabble.com/Generalize-the-data-by-percentage.--How-does-it-wor
k--tp3182874p3182874.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] Feature Vertices

2009-07-06 Thread Jackie Ng

Given a MgFeatureReader that contains your feature(s):

- Call its GetGeometry() method to get a byte reader
- Convert this byte reader to a MgGeometry object by using a
MgAgfReaderWriter object.
- Call GetGeometryType() on the MgGeometry to determine what type of
geometry it actually is.
- Depending on the type, cast the MgGeometry to that given type (if not
using PHP) and consult the relevant APIs for that derived geometry type.
Basically you want to take note of any class methods that return MgPoint,
MgCoordinate or MgCoordinateIterator objects.

Hope that helps.

- Jackie


Tom Lazo wrote:
> 
> Hi all!,
> 
> Anyone knows how could i get the coordinates of the vertices of a feature,
> Is there any function that do that?. Thanks.
> 
> Stygy / Tom
> 

-- 
View this message in context: 
http://n2.nabble.com/Feature-Vertices-tp3205810p3211474.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] Spatial Context for ODBC data connection

2009-07-06 Thread Kenneth Skovhede, GEOGRAF A/S

The ODBC provider is a bit different from the other providers.
The  seems to be ignored completely,
and the SpatialContext is always empty, even when the provider works.

For backwards compatibility, Maestro will try to read the 
SupplementalSpatialContextInfo,

and set the coordinate system "the ODBC provider way" instead.
This is what fails in your case.

Try removing the SupplementalSpatialContextInfo tag in the xml, and then 
set the coordinate system using the GUI,

and it should work correctly.

Regards, Kenneth Skovhede, GEOGRAF A/S



sekko970 skrev:

Dear Kenneth,
using the last preview version of Maestro, when we set the coordinate system
override for ODBC data connection, the following error appears:

System.Net.WebException: Errore del server remoto: (559)
MgCoordinateSystemConversionFailedException.
   in System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest&
request)
   in System.Net.WebClient.DownloadData(Uri address)
   in System.Net.WebClient.DownloadData(String address)
   in
OSGeo.MapGuide.MaestroAPI.HttpCoordinateSystem.ConvertWktToCoordinateSystemCode(String
wkt)
   in
OSGeo.MapGuide.Maestro.ResourceEditors.FeatureSourceEditorODBC.Save(String
savename)
   in
OSGeo.MapGuide.Maestro.ResourceEditors.FeatureSourceEditorODBC.ValidateResource(Boolean
recurse)
   in
OSGeo.MapGuide.Maestro.ResourceEditors.FeatureSourceEditorBase.ValidateResource(Boolean
recurse)
   in OSGeo.MapGuide.Maestro.EditorInterface.Save(String resid)
   in OSGeo.MapGuide.Maestro.FormMain.SaveResource()
   in OSGeo.MapGuide.Maestro.FormMain.SaveResourceButton_Click(Object
sender, EventArgs e)
   in System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   in System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
   in System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   in System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   in System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e,
ToolStripItemEventType met)
   in System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e,
ToolStripItemEventType met)
   in System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   in System.Windows.Forms.ToolStrip.WndProc(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)



As you can see in following xml editor substring, with our current Maestro
version (1.0.9.15910), we save the coordinate system override for ODBC data
connection without any problem:

  
Default
PROJCS["Monte Mario / Italy zone 1",GEOGCS["Monte
Mario",DATUM["Monte_Mario",SPHEROID["International
1924",6378388,297,AUTHORITY["EPSG","7022"]],AUTHORITY["EPSG","6265"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4265"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",9],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",150],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","3003"]]
  


but the spatial context info is still empty:


http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xsi:noNamespaceSchemaLocation="FdoSpatialContextList-1.0.0.xsd">
  



Can you help me?
Fabio

---


nasp wrote:
  

Thank you very much.
I'm going to download last preview version of Maestro. 
I will post results after testing my application.


Regards, 
Naspi



Kenneth Skovhede, GEOGRAF A/S wrote:


I you are using Maestro, you must use the latest preview version.
ODBC handles projection a little different than the
other providers, and this has been adressed recently.

Regards, Kenneth Skovhede, GEOGRAF A/S



nasp skrev:
  

Hi,
I don't know how to set spatial context in my ODBC data connection to
SQL
server.

For this reason I can't set coordinate system overrides. 
As a conseguences I can't make a buffer for a point resource belonging

to
ODBC data connection.

Please, could someone help me?

Regards, Naspi
  


___
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] King.Oracle error when USER is schema owner, SQL command not properly ended, (was: Maestro - DataConnection error when selecting override)

2009-07-06 Thread Kenneth Skovhede, GEOGRAF A/S

Hi Djonio.

I think this is a King.Oracle problem, so I changed the title, which will
hopefully attract the attention of the right people.

Regards, Kenneth Skovhede, GEOGRAF A/S



djonio skrev:

Version: 1.0.9.39693
KingOra 8.7
MGOS 2.0.2

When attempting to create a DataConnection I get the following error when
attempting to set a Coordinate System Override:
---
Maestro
---
Failed to retrive coordinate info: The remote server returned an error:
(559) MgFdoException.: 
An exception occurred in FDO component.

ORA-00933: SQL command not properly ended

Exception occurred in method MgServerGetSpatialContexts.GetSpatialContexts
at line 129 in file
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\feature\ServerGetSpatialContexts.cpp

Seems that I do not have a problem when the USER for the connection is the
schema owner. 
Would you be so kind as to offer an alternative when the USER is NOT the

schema owner? or Where have I screwed up?

I do in fact get this same error using Mapguide Studio 2009.

http://n2.nabble.com/file/n3188552/error_msg.jpg 
r,

dennis
  

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


Re: [mapguide-users] Geometric join without spatial support

2009-07-06 Thread Jackie Ng

MapGuide does not support feature joins on geometric components.

- Jackie


dorshemer wrote:
> 
> Hello,
> 
> I'm trying to perform a geometric join between two tables without using
> any spatial DB support.
> I have an oracle table representing points on a map with X and Y fields,
> and a polygon SHP layer imported into MG. I would like to connect all the
> point from the first table with the polygons they are contained in,
> without Oracle Spatial support or writing new code.
> 
> Is it even possible?
> 

-- 
View this message in context: 
http://n2.nabble.com/Geometric-join-without-spatial-support-tp3208010p3210886.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