Re: [mapguide-users] Re: Kml +Google earth

2010-07-08 Thread Stefan Dalakov
It is interesting how do you imagine the best possible answer - do you 
expect someone to point out the problematic line from your code ?

I would suggest you check 2 options :

1. You have problem in your PHP code - i.e. it does not produce anything 
(no KML output). In this case you need to debug your code, and then if 
you are stuck with a MapGuide issue - we are here to help


or

2. The KML output your code sends to GE is not according to KML 
specification. Then it is up to you to crosscheck with the 
specification, but mapguide users have nothing to do with this.



You may try to check in browser the output of different modules - 
master.php and calles.php

Unfortunately your screenshot is unreadable and thus useless.
Are you sure include files are found and do not generate any 
path-related problems ?


Good luck
Stefan Dalakov

navya024 wrote:

Hi,
iam getting the error in master.php itself.


?php
include 'AppConstants.php';
include 'UtilityFunctions.php';

  $outString = '';

  $outString .= '?xml version=1.0 encoding=UTF-8?
kml xmlns=http://earth.google.com/kml/2.0;
  Folder
nameMapdata/name
visibility1/visibility
open1/open
NetworkLink
  nameMapdata/name
  visibility1/visibility
  open0/open
  refreshVisibility0/refreshVisibility
  flyToView1/flyToView
  Url
hrefhttp://localhost/mapguide/GoogleEarth/calles.php/href
  /Url
/NetworkLink
  /Folder
/kml
';

?
http://osgeo-org.1803224.n2.nabble.com/file/n5268601/error.bmp 
iam sending the screen shot .please guide me.


  

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


Re: [mapguide-users] How long will it take to generate tiles by MgCooker

2010-04-06 Thread Stefan Dalakov
I was fighting with this few days ago. It seems, that tiles are 
generated not for the extents of the base layer being tiled, but for the 
extents of the largest layer from the map. What I had was county map, 
not very detailed, with one municipality with full detail. I wanted to 
create tiles for this very detailed part (approx. 1/20 in both 
dimensions). And the surprising part was that empty tiles, which are 
400 times more than the useful ones, were not generated faster. I 
guess Daniel is facing the same problem.


Stefan Dalakov

Traian Stanev wrote:


It’s also a bit suspicious that it’s generating 400M tiles – that’s 
something like 20K tiles in each dimension. I’m not sure what extent 
your map covers, but that seems like it would be too detailed of a 
scale for anything but whole-world maps.


Traian

*From:* mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] *On Behalf Of *Daniel Du

*Sent:* Thursday, April 01, 2010 11:03 PM
*To:* MapGuide Users Mail List
*Subject:* RE: [mapguide-users] How long will it take to generate 
tiles by MgCooker


Yes, I think you are just hitting the point! J

maybe I need to set the scales to generalize some layers and try again.

cheers,

Daniel

*From:* mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] *On Behalf Of *Zac Spitzer

*Sent:* 2010年4月2日 10:55
*To:* MapGuide Users Mail List
*Subject:* Re: [mapguide-users] How long will it take to generate 
tiles by MgCooker


just raster data? is your data too detailed, ie you
can generalise you data to match the scales your
rendering...

you should be looking at using at least a dual quad core
server for that size of a map

how long does it take to render a map in the browser?

On 2 April 2010 13:49, Daniel Du daniel...@autodesk.com 
mailto:daniel...@autodesk.com wrote:


Hi all,

Anyone have generated tiles using MgCooker? How long did you take to 
complete it?


Here is mine:

It has been running for 12hrs, and generated 10,044 of 458,315,636

Remaining tile : 1218080:51:27 !

That’s horrible, will it take days, several weeks, or even months? ?

Am I missing something to improve performance?

===

Layers: 28 layers,

Scales: 3 (actually, I was planning to set it to 7, but it costs too 
much timeL)


Thread: 10

Server: Intel Pentium D CPU 3.0GHz *2

RAM 2G

Windows 7 Enterprise

MapGuide OpenSource 2.1 with Autodesk Raster FDO

Maestro 2.0

===

Regards,

Daniel


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




--
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
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
  

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


Re: [mapguide-users] Ajax Viewer and Digitizing - may be a bug

2010-01-15 Thread Stefan Dalakov

Hi Peter,
Sorry for the delayed reaction.
Unfortunately I didn't manage to find a solution. In fact, I have not 
tried very hard, because the workaround fitted OK with my workflow.


Regards : Stefan

psciga wrote:

Hi Stefan,

have you solved it? I have exactly the same Problem with the
DigitizeLineString()-function.

Regards,
Peter


S.Dalakov wrote:
  

Hi all,
I encountered a strange bug with the Ajax Viewer. I had a module for 
digitizing polygons, which was placed as InvokeURL command in the Task 
Pane. Now I transformed it to an InvokeScript command and it is started 
through the top toolbar as a part of a Flyout - drops down in a menu. 
The bug is that, when I click on this dropdown menu to activate the 
DigitizePolygon function, the first vertex of the polygon is 
automatically placed where I have clicked to activate the function - the 
point on the map that was behind the menu. My workaround in this 
situation is to fire an alert box, displaying a message, which clears 
the buffer and then everything goes like expected.
Has any body noticed such an effect / defect / bug? Is it possible to be 
a bug in my code ?

The behavior is the same in IE, FFox and Safari
It is MGOS 2.02


Stefan Dalakov



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





  

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


Re: [mapguide-users] MG Error Out of memory, bad allocation

2009-07-21 Thread Stefan Dalakov

Hi Jürgen
One of the options may be to merge together files.
I have an image, 32000x16000 tiled RGB tiff, 1.7GB in size which is 
served like a lightning by an old computer, not even designed to be a 
server, with 1.5 GB of RAM.

Software configuration - same as yours.
By merging rasters you can reduce the number of files almost 60 times, 
which means that you will have 15-20 files, roughly.
Of course, you know better, if your project allows this, but in general, 
MGOS seems to handle easier a small number of big files, rather than a 
big number of small files.



Best regards : Stefan Dalakov


juergen.konr...@bluewin.ch wrote:

Hi,

I have a problem with a rasterlayer (not tiled).
It is a layer using about 1000 TIFF-Files (RGB, 3000x3000 pixel, scale 1:1000).
The visibility of the layer is 1:100 to 1:5000.
If I load the map (sacle 1:2000) I get the error: Out of memory. bad allocation.
If I reduce the number of tiff-files in the folder (500) I get no error but the 
map is loading very, very slow.
If I change the format from tiff to jpg or ecw (all 1000 files) I get no error 
but the map is also very slow.
I get the same error with Autodesk Raster FDO and OSGEO Gdal 


MGOS 2.02 or MGOS 2.1.0 Beta
W2003 Server SP2
IIS 6.0
AjaxViewer (JSP)

is there any solution for this problem?

Jürgen




___
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 is displaying wrong coordinates

2009-07-14 Thread Stefan Dalakov

Hi Paulo,
are you using Ajax or Fusion ?
Sometime ago there was a bug concerning shift of coordinates in Ajax 
when Properties pane in Ajax is not switched ON. Chris Claydon provided 
patch for this, you can search the forum. I don't know if this is the 
case. Do you have other layers? Is this point shifted compared to them?


Stefan Dalakov

Paulo Azevedo wrote:


Hi all.

I’m having problems with MapGuide Open source displaying data from 
PostGis Database using OGR Provider or PostGis Provider.


In my database I use EPSG: 27492, and MapGuide is configured with 
coordinate system Datum73.ModPortgGrd (Datum73.ModPortgGrd), but the 
points are not displayed correctly.


Example: in my database I have a point with coordinates 
*-63949,495217; 15467,134032; 0* but on MapGuide it’s displayed in 
*-64008,282557; 15291.623095; 0*


* *

Any clue about what it’s happening in MapGuide?

Best regards,

Paulo Azevedo



___
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] Problem in displaying map

2009-07-14 Thread Stefan Dalakov

Annoying typo.
I meant
*** 3 or more files  instead of 2 ***

Stefan Dalakov

Stefan Dalakov wrote:

Sreejith,
Do you see any preview of layer and map ?
And in general, you should have 3 or more files  instead of 3 for this 
district data - district.dbf, district.shp, district.shx.


Stefan Dalakov

sreejith R wrote:

Hello,

I insatlled all softwares. I have two file district.shp and 
district.dbf. To display the map using this files, I completed the 
five steps that are dataconnection,layer,map,fusion application and 
layout.but I didn't get the display of map.Please tell me what are 
the problems ?


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


Re: [mapguide-users] After Installation, Services Missing

2009-07-11 Thread Stefan Dalakov

Hi Dennis,
I do not understand very well what is the problem. From where are they 
missing ? Do you expect to see them as services running under windows ? 
Or you have used web tier tests and you do not get the expected results ?
Under Windows services you should see only one service - MapGuide Server 
v.xxx
I have not dared to install mgos 2.1 yet, but I don't expect that it 
will differ very much from previous versions in respect of what you are 
asking about


Stefan Dalakov

Dennis Soper wrote:


Hi all,

I’ve installed MapGuide Open Source on a test machine. The following 
services are missing from the web-based configuration: Drawing, 
Mapping, and Rendering. I’ve loaded it on a Windows 2003 box, using 
IIS, and I’ve tried both the .NET and PHP environments.


How do I get these services?

Cheers,

Dennis

Dennis Soper

Systems Administrator

Facilities Services-- The University of Oregon

1276 University of Oregon

Eugene, OR 97403

phone: 541.346.2027 fax: 541.346.2299

email: dso...@uoregon.edu



___
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] .NET viewer sample: query tool

2009-05-14 Thread Stefan Dalakov
Check if the coordinates fall within the range for the coordinate system 
you have specified.
And I may be wrong, but some time ago, I remember something, that points 
coming from ODBC data source should be in Lat/Lon coordinates. This, I 
repeat again, is something that I am not quite sure if it is true.


Stefan Dalakov


nasp wrote:

Hi,
I specified a coordinate system with mapguide studioall my points
disappeared from the map, not moved in another place, just disappeared.

Also, obviously, query tool doesn't work.

There's something about coordinate system, MG 2.0.2 and FDO that I don't
understand, but I haven't focused the problem.

Regards,
Naspi


Jackie Ng wrote:
  

If you are using MapGuide Studio, the feature source editor allows you to
specify a coordinate system for your point geometry tables.

I don't know if Maestro has exposed this same capability.

- Jackie


nasp wrote:


The problem is for layer with FDO Provider: OSGeo.ODBC and it's ok for
SDF layers.

OSGeo.ODBC data connection has no spatial context information (SDF layer
connection has it!).
Do you know how can I provide spatial context information for ODBC
geometry?

Regards,
Naspi


Jackie Ng wrote:
  

If you look at the server error logs, do they reveal any more
information at the time of failure?

- Jackie


nasp wrote:


Thank you for your answer.

Mapguide version is 2.0.2 with FDO 3.4

The map has EPSG=3003

Any ideas?



Jackie Ng wrote:
  

Are you using the latest release of MapGuide?

Also, do your maps/layers/feature sources have defined coordinate
systems?

- Jackie


nasp wrote:


Hi,
I downloaded .NET sample application.
Everything works fine but not the query tool.
In query\classes\query.aspx, Execute() procedure, I got an error
(MgUnclassifiedException) at this line

centerPoint = (MgPoint)
centerPoint.Transform(csTransform);

Can someone help me, please?

Regards,
Naspi





  

  

  



  


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


Re: [mapguide-users] WebServerExtensions Installation

2009-05-13 Thread Stefan Dalakov

Thank you Jackie, I will give it a try

Stefan Dalakov

Jackie Ng wrote:

The installer is doing the following:

1) Installing to C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions
- If Apache, configures httpd.conf based on your installer preferences.
- If IIS, creates the virtual directories and sets up the script mappings
(php, aspx, jsp, fcgi) based on your installer preferences.
- If manual config, nothing else is done (I believe)

What you could do is install the web server extensions into a test machine.
Then grab all the files under WebServerExtensions, upload it to your remote
host and manually install and configure from there.

- Jackie


S.Dalakov wrote:
  

Hi all,
I want to (try to) install MGOS2.02 (WebServerExtensions) on a commercial
hosting, so my question is :
 Is it possible to configure WebServerExtensions manually - no provider
will let me run an executable ? What in fact is the installer doing
(except to copy files) ? 

Thank you in advance 
Stefan Dalakov






  


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


Re: [mapguide-users] select the location on map

2009-05-05 Thread Stefan Dalakov

Hi Susan,
this one for sure works :


head
script language=javascript
function MyOnLoad ()
{
document.myform.SESSION.value=parent.parent.mapFrame.GetSessionId();;
document.myform.MAPNAME.value=parent.parent.mapFrame.GetMapName() ;;
}
/script
/head
body onLoad=MyOnLoad()
form name=myform action=selectlocation.php method=get
Enter PanId input type=text name=PanId/brbr
input type=hidden name=SESSION value=/
input type=hidden name=MAPNAME value=/
input type=submit value=Submit /
/form
brbr
/body

If it doesn't work just check references to mapFrame - 
parent.parent.mapFrame or parent.mapFrame - depends from where you are 
calling it.
Setselection.php needs to get these values from the calling routine from 
client side - there is no way for setselection to guess the session id 
of the caller


Stefan Dalakov



susan Daniel wrote:

hi all..
  can i give this sessionId and mapname directly in 
selectlocation.php page.If so how???


thankaregards
susan

On Tue, May 5, 2009 at 11:10 AM, Zac Spitzer zac.spit...@gmail.com 
mailto:zac.spit...@gmail.com wrote:


that looks right

try using fiddler to monitor track what is being passed back up to
the server

r u using firefox with firebug?

you could also add an

alert(Getsession());

to make sure the session id is being returned


On Tue, May 5, 2009 at 3:35 PM, susan Daniel
daniel.sus...@gmail.com mailto:daniel.sus...@gmail.com wrote:
 hi..
  Did u mean like this

 form action=selectlocation.php method=GET
 Enter PanId input type=text name=PanId/brbr

 input type=hidden name=SESSION id=mg_session value=/ 
 script language=javascript
document.getElementById('mg_session').value=Getsession();
 /script


 input type=submit value=Submit /
 /form

 but still the error is occuring...

 the error is like this

 Invalid argument(s): [1] =  The session ID is invalid because
the session
 separator character was not found.Invalid argument(s): [1] = 
The session
 ID is invalid because the session separator character was not found.
 Exception occurred in method MgUserInformation.SetMgSessionId at
line 183 in
 file d:\buildforgeprojects\mapguide_open_source


 Do u know what is this session separator character

 thanksregards
 susan

 On Tue, May 5, 2009 at 10:44 AM, Zac Spitzer
zac.spit...@gmail.com mailto:zac.spit...@gmail.com wrote:

 you changed the order!

 what you have done is try to reference the hidden form field
before it
 exists

 z

 On Tue, May 5, 2009 at 3:02 PM, susan Daniel
daniel.sus...@gmail.com mailto:daniel.sus...@gmail.com
 wrote:
  hi zac...
 
  It is also not working..
 
  This is the code
 
 
  body
 
 
 
  script
 document.getElementById('mg_session').value=Getsession();
  /script
 
 
 
  form action=selectlocation.php method=get
  Enter PanId input type=text name=PanId/brbr
 
  input type=hidden name=SESSION id=mg_session value=/ 
 
  input type=submit value=Submit /
  /form
 
 
  and in selectlocation.php i'm having this code:
 
  ?php $ID= $_GET['PanId'];
 
 ?br /
 
body class=AppFrame onLoad=OnPageLoad()
 
  h1 class=AppHeadingSelect features/h1
 
 
 
  ?php
  include '../common/common.php';
 
  $args = ($_SERVER['REQUEST_METHOD'] == POST)? $_POST:
$_GET;
 
  $sessionId = $args['SESSION'];
  $mapName = $args['MAPNAME'];
 
 
  try
  {
 
// Initialize the Web Extensions and connect to the
Server using
// the Web Extensions session identifier stored in PHP
session
  state.
 
MgInitializeWebTier ($webconfigFilePath);
 
$userInfo = new MgUserInformation($sessionId  );
$siteConnection = new MgSiteConnection();
$siteConnection-Open($userInfo);
 
$map = new MgMap($siteConnection);
$map-Open( $mapName  );
 
// Get the geometry for the boundaries of District 1
 
$districtQuery = new MgFeatureQueryOptions();
$districtQuery-SetFilter(pan_id==$ID);
 
$layer = $map-GetLayers()-GetItem('Panchayat');
$featureReader = $layer-SelectFeatures($districtQuery);
$featureReader-ReadNext();
$districtGeometryData = $featureReader-
GetGeometry('Data');
 
// Convert the AGF binary data to MgGeometry.
 
$agfReaderWriter = new MgAgfReaderWriter();
$districtGeometry =
$agfReaderWriter-Read($districtGeometryData);
 
// Create a filter to select the desired features. Combine

Re: [mapguide-users] select the location on map

2009-04-24 Thread Stefan Dalakov
These javascript.functions never get executed. I checked now, I added 
some alerts  and they didn't show.


susan Daniel wrote:

HI..
I removed that brace but still the error is there


regards
susan

On Fri, Apr 24, 2009 at 2:35 PM, Jackie Ng jumpinjac...@gmail.com 
mailto:jumpinjac...@gmail.com wrote:



I see an extra brace (the very first one) in the javascript block
that could
be messing everything up.

- Jackie


SusanDaniel wrote:

 hi all
 In order to display a form in the task pane i've the
following
 code
 in ../mapviewerphp/window.php

 body
 script language=javascript
 {
 function getsession()
 {
 sessionId=parent.parent.mapframe.GetSessionId();
 }
 function getmapname()
 {
 mapname=parent.parent.mapframe.GetMapName();
 }
 /script


 form action=selectlocation.php method=get
 Enter PanId input type=text name=PanId/brbr

 input type=hiddenname=SESSION
value=javascript:getsession()/ 
 input type=hiddenname=MAPNAME
value=javascript:getmapname()/  
 input type=submit value=Submit /
 /form

 *and in the selectlocation .php i am having
 *
  /head
   ?php $ID= $_GET['PanId'];
 ?.br /

   body class=AppFrame onLoad=OnPageLoad()

 h1 class=AppHeadingSelect features/h1


 ?php
 include '../common/common.php';

 $args = ($_SERVER['REQUEST_METHOD'] == POST)? $_POST: $_GET;
 $sessionId = $args['SESSION'];
 $mapName = $args['MAPNAME'];

 try
 {

   // Initialize the Web Extensions and connect to the Server
using
   // the Web Extensions session identifier stored in PHP session
 state.

   MgInitializeWebTier ($webconfigFilePath);

   $userInfo = new MgUserInformation($sessionId);
   $siteConnection = new MgSiteConnection();
   $siteConnection-Open($userInfo);

   $map = new MgMap($siteConnection);
   $map-Open($mapName);

   // Get the geometry for the boundaries of District 1

   $districtQuery = new MgFeatureQueryOptions();
   $districtQuery-SetFilter(pan_id==$ID);

   $layer = $map-GetLayers()-GetItem('Panchayat');
   $featureReader = $layer-SelectFeatures($districtQuery);
   $featureReader-ReadNext();
   $districtGeometryData = $featureReader-
   GetGeometry('Data');

   // Convert the AGF binary data to MgGeometry.

   $agfReaderWriter = new MgAgfReaderWriter();
   $districtGeometry =
$agfReaderWriter-Read($districtGeometryData);

   // Create a filter to select the desired features. Combine
   // a basic filter and a spatial filter.

   $queryOptions = new MgFeatureQueryOptions();

   $queryOptions-SetSpatialFilter('SHPGEOM', $districtGeometry,
 MgFeatureSpatialOperations::Inside);

   // Get the features from the feature source,
   // turn it into a selection, then save the selection as XML.

   $layer = $map-GetLayers()-GetItem(0);
   $featureReader = $layer-SelectFeatures($queryOptions);

   $layer = $map-GetLayers()-GetItem(0);
   $selection = new MgSelection($map);
   $selection-AddFeatures($layer, $featureReader, 0);
   $selectionXml = $selection-ToXml();


 }
 catch (MgException $e)
 {
   echo $e-GetMessage();
   echo $e-GetDetails();
 }
 ?

   /body

   script language=javascript


 function OnPageLoad()
 {
   selectionXml = '?php echo $selectionXml; ?';
   parent.parent.SetSelectionXML(selectionXml);
 }

   /script

 /body
 /html



 *This code..But when i enter the panId in the form this error is
occuring
 *

   Invalid argument(s): [1] = javascript:getsession() The
session ID is
 invalid because the session separator character was not
found.Invalid
 argument(s): [1] = javascript:getsession() The session ID is
invalid
 because the session separator character was not found. Exception
occurred
 in
 method MgUserInformation.SetMgSessionId at line 183 in file


d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\common\mapguidecommon\System/UserInformation.cpp


 Any mistake in my coding?

 Help me plss

 regards
 susan

 On Wed, Apr 22, 2009 at 9:01 PM, Dave Wilson
 dave.wil...@autodesk.com mailto:dave.wil...@autodesk.comwrote:

  Did you check out the samples in the downloads area of Osgeo?



 http://mapguide.osgeo.org/download/releases/2.0.x-samples



 Dave



 

Re: [mapguide-users] select the location on map

2009-04-24 Thread Stefan Dalakov

You could use something like this (executed when window.php is loaded)

   document.myform.MAPNAME.value=parent.parent.mapFrame.GetMapName() ;

Stefan

susan Daniel wrote:

hi..all
   Then what i have to do?Any solution to pass these sessionId and 
mapname 


regards
susan

On Fri, Apr 24, 2009 at 3:24 PM, Stefan Dalakov s.dala...@mapware.net 
mailto:s.dala...@mapware.net wrote:


These javascript.functions never get executed. I checked now, I
added some alerts  and they didn't show.

susan Daniel wrote:

HI..
I removed that brace but still the error is there


regards
susan

On Fri, Apr 24, 2009 at 2:35 PM, Jackie Ng
jumpinjac...@gmail.com mailto:jumpinjac...@gmail.com wrote:


I see an extra brace (the very first one) in the javascript
block that could
be messing everything up.

- Jackie


SusanDaniel wrote:

 hi all
 In order to display a form in the task pane i've
the following
 code
 in ../mapviewerphp/window.php

 body
 script language=javascript
 {
 function getsession()
 {
 sessionId=parent.parent.mapframe.GetSessionId();
 }
 function getmapname()
 {
 mapname=parent.parent.mapframe.GetMapName();
 }
 /script


 form action=selectlocation.php method=get
 Enter PanId input type=text name=PanId/brbr

 input type=hiddenname=SESSION
value=javascript:getsession()/ 
 input type=hiddenname=MAPNAME
value=javascript:getmapname()/  
 input type=submit value=Submit /
 /form

 *and in the selectlocation .php i am having
 *
  /head
   ?php $ID= $_GET['PanId'];
 ?.br /

   body class=AppFrame onLoad=OnPageLoad()

 h1 class=AppHeadingSelect features/h1


 ?php
 include '../common/common.php';

 $args = ($_SERVER['REQUEST_METHOD'] == POST)? $_POST:
$_GET;
 $sessionId = $args['SESSION'];
 $mapName = $args['MAPNAME'];

 try
 {

   // Initialize the Web Extensions and connect to the
Server using
   // the Web Extensions session identifier stored in
PHP session
 state.

   MgInitializeWebTier ($webconfigFilePath);

   $userInfo = new MgUserInformation($sessionId);
   $siteConnection = new MgSiteConnection();
   $siteConnection-Open($userInfo);

   $map = new MgMap($siteConnection);
   $map-Open($mapName);

   // Get the geometry for the boundaries of District 1

   $districtQuery = new MgFeatureQueryOptions();
   $districtQuery-SetFilter(pan_id==$ID);

   $layer = $map-GetLayers()-GetItem('Panchayat');
   $featureReader = $layer-SelectFeatures($districtQuery);
   $featureReader-ReadNext();
   $districtGeometryData = $featureReader-
   GetGeometry('Data');

   // Convert the AGF binary data to MgGeometry.

   $agfReaderWriter = new MgAgfReaderWriter();
   $districtGeometry =
$agfReaderWriter-Read($districtGeometryData);

   // Create a filter to select the desired features.
Combine
   // a basic filter and a spatial filter.

   $queryOptions = new MgFeatureQueryOptions();

   $queryOptions-SetSpatialFilter('SHPGEOM',
$districtGeometry,
 MgFeatureSpatialOperations::Inside);

   // Get the features from the feature source,
   // turn it into a selection, then save the selection
as XML.

   $layer = $map-GetLayers()-GetItem(0);
   $featureReader = $layer-SelectFeatures($queryOptions);

   $layer = $map-GetLayers()-GetItem(0);
   $selection = new MgSelection($map);
   $selection-AddFeatures($layer, $featureReader, 0);
   $selectionXml = $selection-ToXml();


 }
 catch (MgException $e)
 {
   echo $e-GetMessage();
   echo $e-GetDetails();
 }
 ?

   /body

   script language=javascript


 function OnPageLoad()
 {
   selectionXml = '?php echo $selectionXml; ?';
   parent.parent.SetSelectionXML(selectionXml);
 }

   /script

 /body
 /html



 *This code..But when

Re: [mapguide-users] select the location on map

2009-04-21 Thread Stefan Dalakov

Hi Susan,
After you have displayed some rows, and they are clickable, on clicking 
on a row you should (on the server side) create a selection object, add 
the feature corresponding to this row  to the selection object and  send 
the selection to  the viewer.  The code for this you can find in Dev 
Guide - there is a chapter named Setting the Active Selection With the 
Web API - page 53. I don't think I can explain it better, than the guys 
who wrote this document.


Stefan Dalakov

susan Daniel wrote:

hi  alll.
Nobody having any idea regarding thisUsing invokeUrl I 
connected the mapguide with mysql  database so that now the table can 
be display in the taskpane..Then what i am trying to do is...on 
clicking each record on the the table the corresponding polygon on the 
map should be selected??

 Can i do this ??I dont know how to proceed.
If any one having any idea pls help me..

Thanks in advance

susan


On Mon, Apr 20, 2009 at 11:48 AM, susan Daniel 
daniel.sus...@gmail.com mailto:daniel.sus...@gmail.com wrote:


hi alll...
  I read the dev guide but didn't get any idea
regarding this.Hav anyone tried this before pls give me any hint
how to start this ...

thanks regards
susan


On Fri, Apr 17, 2009 at 8:18 PM, Dave Wilson
dave.wil...@autodesk.com mailto:dave.wil...@autodesk.com wrote:

Have you read through the developer’s guide? It has sample
code for selection and explains many concepts. It sounds like
you need to make either an invoke script or invoke url call
from a command in your Basic or Flexible Web Layout. You don’t
actually have to replace the gettingstarted.php. In the invoke
script or invoke url command allows you to specify the target
frame for the output of the script.

 


Regards,

Dave

 


*From:* mapguide-users-boun...@lists.osgeo.org
mailto:mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org
mailto:mapguide-users-boun...@lists.osgeo.org] *On Behalf Of
*susan Daniel
*Sent:* Friday, April 17, 2009 3:57 AM

*To:* MapGuide Users Mail List
*Subject:* Re: [mapguide-users] select the location on map

 


yeah...i know that..

On Fri, Apr 17, 2009 at 3:15 PM, Ivan Milicevic
ivan.milice...@supranet.hr
mailto:ivan.milice...@supranet.hr wrote:

Did you know how to create file that display's database table?
If you don't know that you must find help somewhere else
because I'm not a PHP guy.

 


*From:* mapguide-users-boun...@lists.osgeo.org
mailto:mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org
mailto:mapguide-users-boun...@lists.osgeo.org] *On Behalf Of
*susan Daniel
*Sent:* Friday, April 17, 2009 11:42 AM


*To:* MapGuide Users Mail List
*Subject:* Re: [mapguide-users] select the location on map

 


Hi..
No i dont have the file that displays database
table...Actually iam doing this prjct in php.but i know
javascript'

On Fri, Apr 17, 2009 at 3:02 PM, Ivan Milicevic
ivan.milice...@supranet.hr
mailto:ivan.milice...@supranet.hr wrote:

Ok, so you have file that display's data from your database
table? Or you don't have it at all? How familiar are you with
javascript?

 


*From:* mapguide-users-boun...@lists.osgeo.org
mailto:mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org
mailto:mapguide-users-boun...@lists.osgeo.org] *On Behalf Of
*susan Daniel
*Sent:* Friday, April 17, 2009 11:13 AM


*To:* MapGuide Users Mail List
*Subject:* Re: [mapguide-users] select the location on map

 


hi...
   My problem is that..
   I have a database table..Having colums  place ,id etc .If i
selected(clicking) a data in the table the corresponding
place(polygon) should be displayed(selected) on the map...My
map is a polygon map .each polygon having unique id.and the
same id is present in the db table alsoNow u got it?any
idea please help...

regards
susan

On Fri, Apr 17, 2009 at 2:24 PM, Ivan Milicevic
ivan.milice...@supranet.hr
mailto:ivan.milice...@supranet.hr wrote:

I'm not sure that I understand your problem. With this code
you can select any feature on map. Can you send a little bit
more information? I'm clues over there.

 


*From:* mapguide-users-boun...@lists.osgeo.org
mailto:mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org
mailto:mapguide-users

Re: [mapguide-users] Can't create layer using MySQL feature source

2009-04-10 Thread Stefan Dalakov

Manel,
I have used MapGuide Studio 2008 to create this feature source.
Perhaps Kenneth can answer if this is a bug, or there is something extra 
to be done in setting the feature source.

I have the same version of Maestro as yours.

Stefan Dalakov

Manel Gimeno wrote:

Thanks Stefan.
 
I copy and paste directly your XML (changing name, password,...) in 
Mapguide Maestro XML editor and it works fine.
 
But as you said the server name appears under Database while 
server and port fields remain empty in Mapguide Maestro.
 
Using directly Mapguide Maestro the XML generated is:
 
?xml version=1.0 encoding=utf-8?
FeatureSource xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xsi:noNamespaceSchemaLocation=FeatureSource-1.0.0.xsd

  ProviderOSGeo.MySQL/Provider
  Parameter
NameUsername/Name
Valueroot/Value
  /Parameter
  Parameter
NamePassword/Name
Valuepassword/Value
  /Parameter
  Parameter
NameService/Name
Valuedatab...@localhost:3306/Value
  /Parameter
  Parameter
NameDataStore/Name
Value /
  /Parameter
/FeatureSource 
 
It is quite different as your and it doesn't work. Maybe there is a 
bug in Maestro or I need to upgrade my version, I'm using Mapguide 
Maestro version 1.0.9.15919
 
Regards

Manel Gimeno

- Original Message -
*From:* Stefan Dalakov mailto:s.dala...@mapware.net
*To:* MapGuide Users Mail List
mailto:mapguide-users@lists.osgeo.org
*Sent:* Monday, April 06, 2009 8:03 PM
*Subject:* Re: [mapguide-users] Can't create layer using MySQL
feature source

Here is the FeatureSource

I find interesting thing here.
When I open this FeatureSource in MG Studio I see
my server name appearing under Service
In Maestro the same server name appears under Database, while
server
and port fields remain empty.
Do you have MG Studio ?
How did your data get in MySQL format ?
If you don't manage, mail me directly, not thru the list and I
will send
you the pwd.

Stefan Dalakov

?xml version=1.0 encoding=utf-8?
FeatureSource xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xsi:noNamespaceSchemaLocation=FeatureSource-1.0.0.xsd
  ProviderOSGeo.MySQL/Provider
  Parameter
NameUsername/Name
Value%MG_USERNAME%/Value
  /Parameter
  Parameter
NamePassword/Name
Value%MG_PASSWORD%/Value
  /Parameter
  Parameter
NameService/Name
Valuemysql2.winhostingcenter.com/Value
  /Parameter
  Parameter
NameDataStore/Name
Valuetechnop_mg/Value
  /Parameter
  SupplementalSpatialContextInfo
NameDefault/Name
CoordinateSystemLOCAL_CS[Non-Earth (Meter),LOCAL_DATUM[Local
Datum,0],UNIT[Meter,
1],AXIS[X,EAST],AXIS[Y,NORTH]]/CoordinateSystem
  /SupplementalSpatialContextInfo
  ConfigurationDocumentconfig.xml/ConfigurationDocument
/FeatureSource


Manel Gimeno wrote:
 Thanks Stefan.
 
 I think the main problem is in the connection to MySQL. Even

Mapguide
 Maestro says that there is no error reported I've tried to use the
 FeatureSource  to connect using MapAgent/Test connection and the
test
 doesn't work (it return false).
 
 Could you send me your FeatureSource XML to try to find where the

 problem is?
 
 Thanks in advance

 Manel Gimeno
 
 - Original Message -


 *From:* Stefan Dalakov mailto:s.dala...@mapware.net
 *To:* MapGuide Users Mail List
 mailto:mapguide-users@lists.osgeo.org
 *Sent:* Monday, April 06, 2009 4:48 PM
 *Subject:* Re: [mapguide-users] Can't create layer using MySQL
 feature source

 Hi Manel,
 Here is a layerDefinition that works for me.
 Have you specified Coordinate-System-Overrides ?

 Stefan Dalakov

 ?xml version=1.0 encoding=UTF-8 ?
 - # LayerDefinition
 xmlns:xsi=*http://www.w3.org/2001/XMLSchema-instance*;
 xsi:noNamespaceSchemaLocation=*LayerDefinition-1.1.0.xsd*
 version=*1.1.0*
 - # VectorLayerDefinition
   ResourceIdLibrary://mysql_ds.FeatureSource/ResourceId
   FeatureNameFdotechnop_mg:links/FeatureName
   FeatureNameTypeFeatureClass/FeatureNameType
 - # PropertyMapping
   NameLAYER/Name
   ValueLAYER/Value
   /PropertyMapping
 - # PropertyMapping
   NameLENGTH/Name
   ValueLENGTH/Value
   /PropertyMapping
   Geometryogc_geom/Geometry
 - # VectorScaleRange
 - # PointTypeStyle
   DisplayAsTextfalse/DisplayAsText
   AllowOverpostfalse/AllowOverpost
 - # PointRule
   LegendLabel /
   /PointRule
   /PointTypeStyle
 - # LineTypeStyle
 - # LineRule

Re: [mapguide-users] Converter sdf to *.sql

2009-04-08 Thread Stefan Dalakov

For what ?
There is a shp2mysql free software and it works

Stefan Dalakov

ajid wrote:

hai.. anyone know software? how to? convert sdf or shp/dbf to *.sql ?



-
http://n2.nabble.com/file/u115131/avatar_1500.gif 
  


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


Re: [mapguide-users] Can't create layer using MySQL feature source

2009-04-06 Thread Stefan Dalakov

Hi Manel,
Here is a layerDefinition that works for me.
Have you specified Coordinate-System-Overrides ?

Stefan Dalakov

?xml version=1.0 encoding=UTF-8 ?
- # LayerDefinition 
xmlns:xsi=*http://www.w3.org/2001/XMLSchema-instance*; 
xsi:noNamespaceSchemaLocation=*LayerDefinition-1.1.0.xsd* 
version=*1.1.0*

- # VectorLayerDefinition
 ResourceIdLibrary://mysql_ds.FeatureSource/ResourceId
 FeatureNameFdotechnop_mg:links/FeatureName
 FeatureNameTypeFeatureClass/FeatureNameType
- # PropertyMapping
 NameLAYER/Name
 ValueLAYER/Value
 /PropertyMapping
- # PropertyMapping
 NameLENGTH/Name
 ValueLENGTH/Value
 /PropertyMapping
 Geometryogc_geom/Geometry
- # VectorScaleRange
- # PointTypeStyle
 DisplayAsTextfalse/DisplayAsText
 AllowOverpostfalse/AllowOverpost
- # PointRule
 LegendLabel /
 /PointRule
 /PointTypeStyle
- # LineTypeStyle
- # LineRule
 LegendLabel'Main Pipe'/LegendLabel
 FilterLAYER = 'Main Pipe'/Filter
- # LineSymbolization2D
 LineStyleSolid/LineStyle
 Thickness2/Thickness
 ColorFF00/Color
 UnitPoints/Unit
 SizeContextDeviceUnits/SizeContext
 /LineSymbolization2D
 /LineRule
- # LineRule
 LegendLabel'Pipeline'/LegendLabel
 FilterLAYER = 'Pipeline'/Filter
- # LineSymbolization2D
 LineStyleSolid/LineStyle
 Thickness2/Thickness
 ColorFF80/Color
 UnitPoints/Unit
 SizeContextDeviceUnits/SizeContext
 /LineSymbolization2D
 /LineRule
- # LineRule
 LegendLabel /
- # LineSymbolization2D
 LineStyleSolid/LineStyle
 Thickness0.0/Thickness
 Colorff00/Color
 UnitCentimeters/Unit
 SizeContextDeviceUnits/SizeContext
 /LineSymbolization2D
 /LineRule
 /LineTypeStyle
- # AreaTypeStyle
- # AreaRule
 LegendLabel /
- # AreaSymbolization2D
- # Fill
 FillPatternSolid/FillPattern
 ForegroundColor/ForegroundColor
 BackgroundColorff00/BackgroundColor
 /Fill
- # Stroke
 LineStyleSolid/LineStyle
 Thickness0.0/Thickness
 Colorff00/Color
 UnitCentimeters/Unit
 SizeContextDeviceUnits/SizeContext
 /Stroke
 /AreaSymbolization2D
 /AreaRule
 /AreaTypeStyle
 /VectorScaleRange
 /VectorLayerDefinition
 /LayerDefinition


Manel Gimeno wrote:

Hi all,
 
I've created a MySQL FeatureSource in Mapguide 2.0 using Mapguide 
Maestro 1.0.9.15910. When I click in the test connection button no 
error is reported, so it seems the connection to MySQL works fine.
 
When I try to create a FeatureLayer using the MySQL FeatureSource 
previously defined the following error happens after selecting the 
FeatureSource as resource:
 
Failed to read schema from data source.
The operation gave the error message: Error en el servidor remoto: 
(559) MgConnectionFailedException.:

Cannot establish connection.
Exception occurred in method 
MgServerDescribeSchema::ExecuteDescribeSchema() at line 173 in file 
d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\services\feature\ServerDescribeSchema.cpp
 
Can anyone help me to solve this problem? (Maybe if you have an 
example of XML LayerDefinition using a MySQL FeatureSource...)
 
Thanks in advance

Manel Gimeno


___
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] Can't create layer using MySQL feature source

2009-04-06 Thread Stefan Dalakov

Here is the FeatureSource

I find interesting thing here.
When I open this FeatureSource in MG Studio I see
my server name appearing under Service
In Maestro the same server name appears under Database, while server 
and port fields remain empty.

Do you have MG Studio ?
How did your data get in MySQL format ?
If you don't manage, mail me directly, not thru the list and I will send 
you the pwd.


Stefan Dalakov

?xml version=1.0 encoding=utf-8?
FeatureSource xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xsi:noNamespaceSchemaLocation=FeatureSource-1.0.0.xsd

 ProviderOSGeo.MySQL/Provider
 Parameter
   NameUsername/Name
   Value%MG_USERNAME%/Value
 /Parameter
 Parameter
   NamePassword/Name
   Value%MG_PASSWORD%/Value
 /Parameter
 Parameter
   NameService/Name
   Valuemysql2.winhostingcenter.com/Value
 /Parameter
 Parameter
   NameDataStore/Name
   Valuetechnop_mg/Value
 /Parameter
 SupplementalSpatialContextInfo
   NameDefault/Name
   CoordinateSystemLOCAL_CS[Non-Earth (Meter),LOCAL_DATUM[Local 
Datum,0],UNIT[Meter, 
1],AXIS[X,EAST],AXIS[Y,NORTH]]/CoordinateSystem

 /SupplementalSpatialContextInfo
 ConfigurationDocumentconfig.xml/ConfigurationDocument
/FeatureSource


Manel Gimeno wrote:

Thanks Stefan.
 
I think the main problem is in the connection to MySQL. Even Mapguide 
Maestro says that there is no error reported I've tried to use the 
FeatureSource  to connect using MapAgent/Test connection and the test 
doesn't work (it return false).
 
Could you send me your FeatureSource XML to try to find where the 
problem is?
 
Thanks in advance

Manel Gimeno
 
- Original Message -


*From:* Stefan Dalakov mailto:s.dala...@mapware.net
*To:* MapGuide Users Mail List
mailto:mapguide-users@lists.osgeo.org
*Sent:* Monday, April 06, 2009 4:48 PM
*Subject:* Re: [mapguide-users] Can't create layer using MySQL
feature source

Hi Manel,
Here is a layerDefinition that works for me.
Have you specified Coordinate-System-Overrides ?

Stefan Dalakov

?xml version=1.0 encoding=UTF-8 ?
- # LayerDefinition
xmlns:xsi=*http://www.w3.org/2001/XMLSchema-instance*;
xsi:noNamespaceSchemaLocation=*LayerDefinition-1.1.0.xsd*
version=*1.1.0*
- # VectorLayerDefinition
  ResourceIdLibrary://mysql_ds.FeatureSource/ResourceId
  FeatureNameFdotechnop_mg:links/FeatureName
  FeatureNameTypeFeatureClass/FeatureNameType
- # PropertyMapping
  NameLAYER/Name
  ValueLAYER/Value
  /PropertyMapping
- # PropertyMapping
  NameLENGTH/Name
  ValueLENGTH/Value
  /PropertyMapping
  Geometryogc_geom/Geometry
- # VectorScaleRange
- # PointTypeStyle
  DisplayAsTextfalse/DisplayAsText
  AllowOverpostfalse/AllowOverpost
- # PointRule
  LegendLabel /
  /PointRule
  /PointTypeStyle
- # LineTypeStyle
- # LineRule
  LegendLabel'Main Pipe'/LegendLabel
  FilterLAYER = 'Main Pipe'/Filter
- # LineSymbolization2D
  LineStyleSolid/LineStyle
  Thickness2/Thickness
  ColorFF00/Color
  UnitPoints/Unit
  SizeContextDeviceUnits/SizeContext
  /LineSymbolization2D
  /LineRule
- # LineRule
  LegendLabel'Pipeline'/LegendLabel
  FilterLAYER = 'Pipeline'/Filter
- # LineSymbolization2D
  LineStyleSolid/LineStyle
  Thickness2/Thickness
  ColorFF80/Color
  UnitPoints/Unit
  SizeContextDeviceUnits/SizeContext
  /LineSymbolization2D
  /LineRule
- # LineRule
  LegendLabel /
- # LineSymbolization2D
  LineStyleSolid/LineStyle
  Thickness0.0/Thickness
  Colorff00/Color
  UnitCentimeters/Unit
  SizeContextDeviceUnits/SizeContext
  /LineSymbolization2D
  /LineRule
  /LineTypeStyle
- # AreaTypeStyle
- # AreaRule
  LegendLabel /
- # AreaSymbolization2D
- # Fill
  FillPatternSolid/FillPattern
  ForegroundColor/ForegroundColor
  BackgroundColorff00/BackgroundColor
  /Fill
- # Stroke
  LineStyleSolid/LineStyle
  Thickness0.0/Thickness
  Colorff00/Color
  UnitCentimeters/Unit
  SizeContextDeviceUnits/SizeContext
  /Stroke
  /AreaSymbolization2D
  /AreaRule
  /AreaTypeStyle
  /VectorScaleRange
  /VectorLayerDefinition
  /LayerDefinition


Manel Gimeno wrote:

Hi all,
 
I've created a MySQL FeatureSource in Mapguide 2.0 using Mapguide

Maestro 1.0.9.15910. When I click in the test connection button
no error is reported, so it seems the connection to MySQL works fine.
 
When I try to create a FeatureLayer using the MySQL FeatureSource

previously defined the following error happens after selecting
the FeatureSource as resource:
 
Failed to read schema from data source.

The operation gave the error message: Error en el servidor
remoto: (559) MgConnectionFailedException.:
Cannot establish

[mapguide-users] Raster files

2009-04-01 Thread Stefan Dalakov

Hi all,
I had several applications using raster files up to now, but they were 
all using just few images and I used to create a feature source and 
layer file for each of them, the data resource having a configuration 
file like the one below. Now I need to display more files - perhaps up 
to 200, and this approach seems insane. Can anyone help with a link to 
read, or a short instruction how to configure a feature source so that 
it reads the content of a folder let say.  Not necessarily a step by 
step instruction ;-) . And this is not a 1-st- of - April joke. ;-)


Stefan Dalakov

SchemaMapping xmlns=http://fdogrfp.osgeo.org/schemas; 
provider=OSGeo.Gdal.3.2 name=default

complexType name=defaultType
complexType name=RasterTypeType
RasterDefinition name=images
Location name=C:\Rakvag\
Feature name=rakvag_join.tif
Band name=RGB number=1
Image frame=1 name=rakvag_join.tif
Bounds
 MinX551199.75/MinX
 MinY7069200/MinY
 MaxX554400.5/MaxX
 MaxY7072800/MaxY
 /Bounds
 /Image
 /Band
 /Feature
 /Location
 /RasterDefinition
 /complexType
 /complexType
 /SchemaMapping

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


Re: [mapguide-users] Popup window

2009-04-01 Thread Stefan Dalakov

Have you tried this :
1. Place the links to be activated in a field
2. In studio or Maestro, in Layer definition, set this field against 
URL activated for feature.
Then in viewer when you place the pointer on top of the feature you will 
see Ctrl+click to open link ...the contents of the field...
No need to say that you may construct a more complex link in maestro or 
studio as expression including more fields or constants


Is this what you need ?

Stefan Dalakov

padmini godavarthi wrote:

Hi,
no seriously!!
i didnt know to invoke pop up window
i tried a lot but iam unable to do it.

Thanks 
Padmini.



I tought that was 1st April joke :)

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Zac Spitzer
Sent: Wednesday, April 01, 2009 8:16 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Popup window

YET AGAIN,

have you tried search the mailing archives.?

z

On Wed, Apr 1, 2009 at 5:07 PM, padmini godavarthi
godavarthi.padm...@gmail.com wrote:
  

Hi,
 i want to invoke popup a window while clicking the feature after selecting the 
feature.
is it done by invoke url? or invoke script ?
how is it possible???
plz if possible try to send me the sample code.
Thanks in advance


Regards,
Padmini.
--
View this message in context: 
http://n2.nabble.com/Popup-window-tp2567330p2567330.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] Popup window

2009-04-01 Thread Stefan Dalakov
I am still not quite sure what you are trying. I understand now that you 
want to select a parcel, retrieve data for it and open a window, using 
some of its parameters, or update them.
This can be found step by step in MG Developer's Guide (DevGuide.pdf, 
which you have with your installation) - page 45 - Active Selections.
There is a saying, that one month of efforts to do something , saves you 
half an hour of reading the documentation. In your case I think it is a 
bit worse - This topic appears for a long time and the reading will take 
not more than 15 min.


Stefan Dalakov


padmini godavarthi wrote:

Hi,
Thanku very much for ur reply.

really thanks once again because i could not find the path for this popup window


Actually my requirement is that i need to  save the owner image of that 
particular parcel (polygon) in the layer.
so i thought i put a owner icon  on taskbar while clicking that icon and 
selecting feature(parcel) on the layer
a pop up window will have to open

but really iam unable to find this 

is it could be done with invoke script/
by using invoke url iam able to get the my custom page in task pane.

But i want a pop up window

can u plz tell me the solution

Have you tried this :
1. Place the links to be activated in a field
2. In studio or Maestro, in Layer definition, set this field against 
URL activated for feature.
Then in viewer when you place the pointer on top of the feature you will 
see Ctrl+click to open link ...the contents of the field...
No need to say that you may construct a more complex link in maestro or 
studio as expression including more fields or constants


Is this what you need ?

Stefan Dalakov

padmini godavarthi wrote:
  

Hi,
no seriously!!
i didnt know to invoke pop up window
i tried a lot but iam unable to do it.

Thanks 
Padmini.



I tought that was 1st April joke :)

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Zac Spitzer
Sent: Wednesday, April 01, 2009 8:16 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Popup window

YET AGAIN,

have you tried search the mailing archives.?

z

On Wed, Apr 1, 2009 at 5:07 PM, padmini godavarthi
godavarthi.padm...@gmail.com wrote:
  


Hi,
 i want to invoke popup a window while clicking the feature after selecting the 
feature.
is it done by invoke url? or invoke script ?
how is it possible???
plz if possible try to send me the sample code.
Thanks in advance


Regards,
Padmini.
--
View this message in context: 
http://n2.nabble.com/Popup-window-tp2567330p2567330.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


  


  



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



  


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


[mapguide-users] MGOS and MySQL bug/problem

2009-03-19 Thread Stefan Dalakov

Hi all,
I have a strange situation here. I have a map using a layer with 
features stored in MySQL. If  I leave the window open and session 
expires I am not able to connect later. In error.log there is an entry 
saying MySQL server has gone away. The most strange thing is that in 
this situation I need to: open Studio, open the feature source for MySQL 
layer, where I most surprisingly find that the password is missing, fill 
in the password, save the feature source, and then it is operative 
again. At this moment the application contains almost nothing except the 
built-in function, so it is not probable, that my code influences the 
repository. I use MGOS 2.0 with basic layout.

Any ideas/suggestions ?
Stefan Dalakov
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] MGOS and MySQL bug/problem

2009-03-19 Thread Stefan Dalakov

Thank you Remigijus,
I will check if it will help. However I find it weird - that my password 
gets lost, and the feature source gets modified.


Stefan Dalakov

Remigijus Brazys wrote:

Hi Stefan,

We have the same problem. You have to Configure you server so that
Data connection timeout (seconds)  Data connection timer interval (seconds)

These confiures you will find in your mapguide administrator under Manage
servers-Configure Services under Feature Service frame.


Best regards, 
Remigijus Brazys 
GIS analyst, InfoEra

__
Phone.: +370 5 2788456
Fax.: +370 5 2784723
Mobile.: +370 656 10089
S.Zukausko str. 17
LT-08234, Vilnius, Lithuania  
E-mail: remigi...@infoera.lt

www.infoera.lt; www.gps.lt
-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Stefan Dalakov
Sent: Thursday, March 19, 2009 10:28 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] MGOS and MySQL bug/problem

Hi all,
I have a strange situation here. I have a map using a layer with 
features stored in MySQL. If  I leave the window open and session 
expires I am not able to connect later. In error.log there is an entry 
saying MySQL server has gone away. The most strange thing is that in 
this situation I need to: open Studio, open the feature source for MySQL 
layer, where I most surprisingly find that the password is missing, fill 
in the password, save the feature source, and then it is operative 
again. At this moment the application contains almost nothing except the 
built-in function, so it is not probable, that my code influences the 
repository. I use MGOS 2.0 with basic layout.

Any ideas/suggestions ?
Stefan Dalakov
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

__ NOD32 3947 (20090319) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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] PHP and MySQL problem

2009-03-12 Thread Stefan Dalakov

Hi all,
I have a problem with PHP and MySQL
My spatial data is in a MySQL database. I can access data and prepare a 
map. Data is displayed as expected. No problem at all. When I try to 
connect to the database, not using Mapguide API - I want to execute an 
ordinary query to retrieve data - my code dies silently at 
*mysql_connect* clause. The same piece of code works OK on another 
server without MGOS. I checked on 2 machines with MGOS installed and on 
2 commercial hosting providers. I guess it might be some setting in 
php.ini file but I have no idea what.

Any help/suggestion will be highly appreciated.

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


Re: [mapguide-users] PHP and MySQL problem

2009-03-12 Thread Stefan Dalakov

Resolved

Stefan Dalakov wrote:

Hi all,
I have a problem with PHP and MySQL
My spatial data is in a MySQL database. I can access data and prepare 
a map. Data is displayed as expected. No problem at all. When I try to 
connect to the database, not using Mapguide API - I want to execute an 
ordinary query to retrieve data - my code dies silently at 
*mysql_connect* clause. The same piece of code works OK on another 
server without MGOS. I checked on 2 machines with MGOS installed and 
on 2 commercial hosting providers. I guess it might be some setting in 
php.ini file but I have no idea what.

Any help/suggestion will be highly appreciated.

Stefan Dalakov


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


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


Re: [mapguide-users] PHP and MySQL problem

2009-03-12 Thread Stefan Dalakov

Stupid thing... mysql extension was disabled
In php.ini line
extension=php_mysql.dll
needs to be uncommented

Stefan Dalakov


Zac Spitzer wrote:

any pointers for anyone else having the same issue?

On Fri, Mar 13, 2009 at 1:48 AM, Stefan Dalakov s.dala...@mapware.net wrote:

Resolved

Stefan Dalakov wrote:

Hi all,
I have a problem with PHP and MySQL
My spatial data is in a MySQL database. I can access data and prepare a
map. Data is displayed as expected. No problem at all. When I try to connect
to the database, not using Mapguide API - I want to execute an ordinary
query to retrieve data - my code dies silently at *mysql_connect* clause.
The same piece of code works OK on another server without MGOS. I checked on
2 machines with MGOS installed and on 2 commercial hosting providers. I
guess it might be some setting in php.ini file but I have no idea what.
Any help/suggestion will be highly appreciated.

Stefan Dalakov


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


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





  


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


Re: [mapguide-users] Which WFS servers work with Mapguide

2009-03-11 Thread Stefan Dalakov

Gary,
have you followed steps described here 
https://trac.osgeo.org/fdo/wiki/FdoWmsNotes ?

And this service http://kart.fosen.net/webinnsyn/wms?theme1=Bygg
works with MGOS 1.2,  I have not tested it with MGOS 2.0

Stefan Dalakov


Gary Morin wrote:


Hi All

 

I'm having problems getting MGE 2009 consuming any WFS, I can get 
AutoCAD Map to consume them but not MGE.


 

Can you suggest WFS services and software you know works with 
MapGuide, so we can study how they differ from the ones that don't.


 


Thanks

 


Gary

 

 




___
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] Load AutoCAD Map 3D DWG file

2009-03-10 Thread Stefan Dalakov
If I understand you correct, you expect that Studio creates feature 
joins out of link templates in MAP3D. This seems a little brave 
expectation since it is not always possible - if your link templates 
were pointing for example to a local MS Access file how would they be 
translated ? I think you have to create these joins in Studio


Stefan Dalakov

Jackie Ng wrote:

I don't think Studio can load dwgs made with AutoCAD vertical products (eg.
Map 3D), it will just treat them as vanilla AutoCAD dwgs. I could be wrong
here.

- Jackie


mkaram84 wrote:
  

Hi
We have an AutoCAD Map 3D DWG file which its layers have blocks. The
blocks are linked to an Oracle Database 10g R2 by two link templates:
MG_ID and MG_Name.

When we try to load the DWG file into Mapguide Enterprise 2009 through
Autodesk MapGuide Studio 2009, the loading is done successfully with one
problem that I can't see the link templates in the Feature Data.
I tried to publish the DWG to MapGuide Enterprise 2009 from AutoCAD Map 3D
2009, and it has the same effect that i can't see the link templates in
the Feature Data.
I tried to export the Layers to SDF from Map 3D 2006 and I can
successfully export to SDF with the two link templates, but when I tried
to load this SDF into Studio 2009 it doesn't load any symbols or blocks
(just a Point Layer)

My problem here: I need to load the DWG Layers with its two link templates
and also the symbols (blocks) into MapGuide Studio 2009.

Your help will be appreciated
Thanks  Regards




  


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


Re: [mapguide-users] asp.net example of loading a webmapservice layer

2009-03-04 Thread Stefan Dalakov

Steps to setup a wms are very well described here:
https://trac.osgeo.org/fdo/wiki/FdoWmsNotes
I have copied a portion of the configuration document for the featuresource
You can use Maestro to attach a configuration document to your existing 
featuresource


Stefan Dalakov

stoff wrote:

Hi Stefan,

I only modify the Mapguide-Studio-generated-XML (look at my uploads above)
of layerdefinition and featuresource. Which XML-File have you mentioned and
how do you use it?
 I did it like this (without success):

GridLayerDefinition

ResourceIdLibrary://WMS/hessen_Ortho.FeatureSource/ResourceId
Opacity0.5/Opacity
FeatureNameWMS_Schema:DOP04F1/FeatureName
GeometryRaster/Geometry
GridScaleRange
ColorStyle
ColorRule
LegendLabel/
Color

ExplicitColorFF00/ExplicitColor
/Color
/ColorRule
ColorRule
LegendLabel/
Color

ExplicitColor00FF/ExplicitColor
/Color
/ColorRule
/ColorStyle
RebuildFactor1/RebuildFactor
/GridScaleRange
/GridLayerDefinition


  


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


Re: [mapguide-users] asp.net example of loading a webmapservice layer

2009-03-03 Thread Stefan Dalakov

First :
In my case it was enough to define it in the configuration file for the 
WMS datasource


 SchemaMapping provider=OSGeo.WMS.3.1 name=WMS 
xmlns=http://fdowms.osgeo.org/schemas;

   complexType name=ByggType
 RasterDefinition name=Image
   FormatPNG/Format
*Transparenttrue/Transparent
*BackgroundColor0xFF/BackgroundColor
   Timecurrent/Time
   Elevation0/Elevation
   SpatialContextEPSG:32632/SpatialContext
   Layer name=VERANDA
 Style/
   /Layer
   Layer name=TAKSPRANG
 Style/
   /Layer
.


Stefan Dalakov

stoff wrote:

Hi,

I have a new and an old problem :

First I am still looking for a solution about transparency 
Do I have to configure it in the layerdefinition.xml AND in the called URL(

... ?service=wmstransparent=true)?

Second problem: 


Loading of the wms layer works fine. But in the legend.aspx
BuildLayerDeifinitionData-Function there is an encoding-problem in the row
doc.LoadXML(layerDefString). He finds a char code 65279 as first Charakter
 strange, because loading of the layerdefinition works fine, and there
is no charakter like this in the xml-file ...
Is there a posibility to use explicitly UTF-8 Encoding within the mapguide
resource-classes?  



Best regards,

Christoph


  


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


Re: [mapguide-users] Connect to MS SQL Server - problems

2009-02-24 Thread Stefan Dalakov

Thank you, Jason.
SL King provider for SQL server does not recognize Map3D geometry 
columns, so I installed MS SQL server2008. Apart from the fact that 
installation of Server Management Studio did not install it correctly, I 
managed to transfer my 2005 database to 2008 - using FDO Bulk copy. Now 
MGOS is able to connect to data, geometry type of the data in tables is 
recognized  but I see nothing on screen.

The error log shows :

2009-02-24T15:26:46 Ajax Viewer127.0.0.1Administrator
Error: Failed to stylize layer: sql2008layer2
   An exception occurred in FDO component.
   RDBMS: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot 
call methods on image.

StackTrace:
 - MgMappingUtil.StylizeLayers line 786 file 
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\mapping\MappingUtil.cpp
Failed to stylize layer: sql2008layer2


An exception occurred in FDO component.

RDBMS: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot call 
methods on image.




Anyone has ideas ?

Stefan Dalakov






Jason Birch wrote:

The SQL Server 2005 provider that comes with Map 3D is proprietary, and
not available in MapGuide Open Source.  If you want to display this data
you will need to use MapGuide Enterprise.

If it's an option, I would suggest using the open source SQL Server 2008
provider.

Jason

-Original Message-
From: Stefan Dalakov
To: MapGuide Users Mail List
Subject: [mapguide-users] Connect to MS SQL Server

I have installed MS SQL Server Express Edition 2005 and have some tables

there, created by Map3D 2009, containing lines and points.
Which provider should I use to connect to this data as ODBC provider 
allows only point features?


___
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] Connect to MS SQL Server

2009-02-23 Thread Stefan Dalakov

Hi all,
I have installed MS SQL Server Express Edition 2005 and have some tables 
there, created by Map3D 2009, containing lines and points.
Which provider should I use to connect to this data as ODBC provider 
allows only point features?
I saw SL-king have a provider but the latest release there is for MGOS 
1.2 (FDO 3.2.2) and I would like to use it with MGOS 2.0 - I have both 
installations, but I would use 1.2 only if all other options fail?


Any help will be appreciated

Stefan Dalakov

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


Re: [mapguide-users] Integration with Google Maps

2009-02-18 Thread Stefan Dalakov
If you are serving it with MGOS, and if the problem is bandwidth or 
loading time you can switch to kmz format, as Jackie says. If you have 
it already produced, then you can save as kmz within GE, but I guess the 
problem will be the complexity - GE has difficulty handling big files, 
at least on my machine, so try optimizing the source data. MGOS serves 
not the whole file but a viewport so you will not have this problem if 
you use MGOS.
I have not ran into a function of software I use, which allows 
processing(simplifying) of an already created  KML.


Stefan Dalakov

Jackie Ng wrote:

MapGuide can serve compressed kml (kmz), which is many orders of magnitude
smaller in size.

- Jackie


Sergio Nistal Calvo wrote:
  

Hi,

 


I have a kml file format, but its size is greater than 10 MB. How can I
reduce its size or simplify in order to upload to Google Maps? I've seen
online a post that says you can simplify it with Manifold GIS, but the
program is not free.

 


Thanks.

 

 


_
¿Eres un cotilla? Disfruta de todas las novedades en MSN Corazón
http://entretenimiento.es.msn.com/corazon/
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users





  


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


[mapguide-users] Raster - best practices

2009-02-17 Thread Stefan Dalakov

Hi all,
I have read in Best Practices Wiki  about optimizing raster 
performance, where it is advised to create an alias for raster files. I 
have raster datasources, but instead of setting an alias I have used in  
my configuration files portion like this :

Location name=C:\Rakvag\
Feature name=rakvag_join.tif
Band name=RGB number=1
Image frame=1 name=rakvag_join.tif
and it works.
So the question is : Does it make any performance difference and if yes, 
how should the configuration file look like?

And another question :
About image pyramids - I am using tiff files. Is it better for 
performance to have all previews in a single file with several image 
frames or have them separated into different files


Thanks in advance : Stefan Dalakov

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


Re: [mapguide-users] Regarding Linking of Layers with Map at run time

2009-02-13 Thread Stefan Dalakov

Try
MgResourceIdentifier mapName = new MgResourceIdentifier(Session: + 
sessionId + //Sheboygan.MapDefinition);



Stefan Dalakov

ravinder.si...@birlasoft.com wrote:


Hi All,

 

I have created the map definition in maestro and also created a web 
layout, and I have hundreds of Maps, and each map will have a single 
layer, but I don't want to create the hundreds of maps for each single 
layer. For that purpose I though I will just make a single map and 
will associate the layer at run time to that map. So I wrote the 
following set of code for Sheboygan sample


 


But when I reach to map.Save(resourceSrvc, mapName)

 


it gives me the error

 


MgXmlParserException {An exception occurred in the XML parser.}

 


And also I tried with Map.Open and then the following error comes

 

Resource was not found: 
Session:b275c3b6---8000-001a4bb4a756_en_7F010AFC0AFB0AFA//Samples/Sheboygan/Sheboygan.MapDefinition


 


I have written the following code

 

MgUserInformation userInfo = new MgUserInformation(defaultUser, 
defaultPassword);


  MgSite site = new MgSite();

  site.Open(userInfo);

  sessionId = site.CreateSession();

MgUserInformation userInfo_new = new MgUserInformation(sessionId);

  MgSiteConnection siteConnection = new MgSiteConnection();

  siteConnection.Open(userInfo_new);

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



MgResourceIdentifier mapName = new MgResourceIdentifier(Session: + 
sessionId + //Samples/Sheboygan/Sheboygan.MapDefinition);


  MgMap map = new MgMap();

  map.Open(resourceSrvc, mapName); // Here the problem comes

  map.Save(resourceSrvc, mapName); // Here the problem comes

 


I am using .net aspx with map guide 2.0

 


*Thanks  Regards,*

Ravinder Singh

 


*
This message and any attachments are solely for the intended 
recipient and may contain Birlasoft confidential or privileged 
information. If you are not the intended recipient,any 
disclosure,copying, use, or distribution of the information included 
in this message and any attachments is
prohibited. If you have received this communication in error, please 
notify us by reply e-mail at (administra...@birlasoft.com) and 
permanently delete this message and any attachments. Thank you.

*



___
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] Connecting to WMS

2009-02-06 Thread Stefan Dalakov
Kenneth, I missed somehow the problem, described by Tom, but I have to 
say that Gunter was absolutely right and helpful. I moved the project to 
MGOS 1.2 (luckily I have both versions installed) and now it works as 
expected.

Thank you !

Stefan



Kenneth Skovhede, GEOGRAF A/S wrote:
If the problem is as Tom describes, it is likely because Studio uses 
the CSMap coordinate system,

and MGOS uses Proj.4.

If you setup an override using Studio, it is invalid for some 
coordinate systems, because they are named

slightly different in Proj.4.

Try using Maestro to setup the override, as it uses the server 
coordinate system, regardless of brand what it is.

Regards, Kenneth Skovhede, GEOGRAF A/S
  



Gunter Becker skrev:

Hi,

please have a look at  http://trac.osgeo.org/mapguide/ticket/600 trac ticket
600 .
I think that is the same problem. 


Gunter


Stefan Dalakov wrote:
  

Hi Kenneth,
I explored the error log.
The problem is that coordinate systems do not match BUT :

1. The error log says
/The coordinate system (*EPSG:32633*) of layer RissaWMSLayer1 cannot be 
different than the coordinate system (*EPSG:32632*) of the map
/2. The wms layer is configured to use /*EPSG:32632 */- in my config.xml 
it is written

/  RasterDefinition name=Image
FormatPNG/Format
Transparenttrue/Transparent
BackgroundColor0xFF/BackgroundColor
Timecurrent/Time
Elevation0/Elevation
SpatialContext*EPSG:32632*/SpatialContext
Layer name=VERANDA
...
/3. The service supports this coordinate system - in GetCapabilities 
document I have


SRSEPSG:32633/SRS
BoundingBox SRS=EPSG:32633 minx=218329.98786561 
miny=7160648.90075887 maxx=305197.974972341 maxy=7041546.39019898/

*SRSEPSG:32632/SRS
BoundingBox SRS=**EPSG:32632 minx=506720 miny=7147644 
maxx=604333 maxy=7037305/

*SRSEPSG:32634/SRS
BoundingBox SRS=EPSG:32634 minx=-68103.0343048812 
miny=7200948.9760428 maxx=7352.92691530631 maxy=7073836.91252369/

SRSEPSG:9804/SRS
BoundingBox SRS=EPSG:9804 minx=1017422.41132931 
miny=9427477.01214373 maxx=1234782.60719126 maxy=9172903.66920839/

-

So, I want the map and WMS layer to be in coordinate system *32632*, the 
Feature source is configured to use this coordinate system, the service 
supports it, but still the server sends the output in *32633.*

Can you spot my mistake ?

Best regards : Stefan Dalakov
/


/Kenneth Skovhede, GEOGRAF A/S wrote:

Since a WMS layer is a raster layer, MapGuide requires that the 
Coordinate System of the layer is EXACTLY the same as for the map.


This means that the Coordinate System Override on the layer must match 
the map's Coordinate System exactly.


To see if there are any errors reported, look in the error log:
C:\Program Files\MapGuideOpenSource2.0\Server\Logs\Error.log
Regards, Kenneth Skovhede, GEOGRAF A/S
  



Stefan Dalakov skrev:
  

Hi all,
I am trying to add a WMS layer to my map.
I followed the procedure described here : 
https://trac.osgeo.org/fdo/wiki/FdoWmsNotes

to create a feature source.
When I open the feature source in Studio the connection tests OK.
Clicking the *Refresh* button generates an error originating from 
displayschema.php at line :
/document.getElementById(Geom_+RissaWMS).previousSibling.firstChild.src 
= ./images/collapse_pane.png;
/for each layer in the WMS feature source which is not critical 
(critical for Studio)
*View Data *link then reports BBOX parameter missing, which I assume 
is normal


I create a Layer afterwards, based on this Feature Source. The layer 
seems ok - refreshes OK, nothing on screen . This I also assume 
normal as  the layers (as described in the  GetCapabilities 
document)  are  limited to scale ranges  up to 1:5000.


I add this layer to an existing map, with matching coordinate system 
(EPSG:32632 of the WMS Feature Source and UTM-WGS84 / Zone 32 North 
of the map).
The WMS layer is not shown on the preview in Studio - perhaps this is 
also normal - my other raster layers are not previewed either.


But when I don't see the layer data in browser I am really stressed.

And my biggest stress is based on the fact that I do not know how to 
debug this situation


Any help will be highly appreciated


Thank you in advance : Stefan Dalakov





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




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

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

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

2009-02-06 Thread Stefan Dalakov
For sure you can modify SHP files with Mapguide API - I have application 
which adds and deletes features.
I have not tried to create a SHP file, but I don't think it is impossible 


Stefan Dalakov

Rodolfo Moreno wrote:

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

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

Cheers,

-
Rodolfo Moreno
CivilEng

  


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


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

2009-02-06 Thread Stefan Dalakov

Rodolfo,
I don't dare to oppose Andy, I believe there is a solid justification 
behind his statements, but note that:
1. This post concerns the previous versions of MGOS and FDO (I do not 
say that it makes difference, in fact I am not aware of changes from FDO 
3.3.0 to 3.3.1)
2. Since Mapguide connects to data in an uniform manner - thru FDO,  and 
you are able to accomplish your task with SDF, then it depends only on 
capabilities of the FDO provider if you will succeed with SHP or any 
other format

I am sorry, if I have not been helpful to you

Ivan ,
I have used as a template the redlining module from PHPSAMPLES package.
Here is part of the code :

.
   $map = new MgMap();
   $map-Open($resourceService, $mapName);
   $mylayers = $map-GetLayers() ;
   $mylayer = $mylayers-GetItem ($layerName);
   $ftrclassname = $mylayer-GetFeatureClassName();
   $batchPropertyCollection = new MgBatchPropertyCollection();
   $propertyCollection = MakePoly($use,$plabel,$owner, $polydef);
   $batchPropertyCollection-Add($propertyCollection);
   $cmd = new MgInsertFeatures( $ftrclassname, $batchPropertyCollection);
   $featureCommandCollection = new MgFeatureCommandCollection();
   $featureCommandCollection-Add($cmd);
   $featureService-UpdateFeatures 
($myResourceID,$featureCommandCollection,false);

...

 function MakePoly($puse,$pplabel,$powner,$polystring)
 {
   $propertyCollection = new MgPropertyCollection();
   $ownerProperty = new MgStringProperty(Owner, $powner);
   $propertyCollection-Add($ownerProperty);
   $useProperty = new MgStringProperty(Purpose, $puse);
   $propertyCollection-Add($useProperty);
   $labelProperty = new MgStringProperty(Label, $pplabel);
   $propertyCollection-Add($labelProperty);
   $wktReaderWriter = new MgWktReaderWriter();
   $agfReaderWriter = new MgAgfReaderWriter();
   $agftext = $polystring ;
   $geometry = $wktReaderWriter-Read( $agftext);
   $geometryByteReader = $agfReaderWriter-Write($geometry);
   $geometryProperty = new MgGeometryProperty(Geometry, 
$geometryByteReader);

   $propertyCollection-Add($geometryProperty);
   return $propertyCollection;
 }

The coordinate data in $polystring is formatted according to the grammar 
described in

http://mapguide.osgeo.org/files/mapguide/docs/2.0/da/dc0/group___agf_text.htm

Best regards : Stefan


Rodolfo Moreno wrote:

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


Ivan Milicevic wrote:

Hello,

Can you post some sample code for that? 


-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Stefan
Dalakov
Sent: Friday, February 06, 2009 6:20 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] how to use FDO api into MAPGUIDE
applications

For sure you can modify SHP files with Mapguide API - I have application

which adds and deletes features.
I have not tried to create a SHP file, but I don't think it is
impossible 


Stefan Dalakov

Rodolfo Moreno wrote:

I have read that only SDFs can be created and altered with mapguide

API,

which is why I need to use FDO api in my mapguide applications in

order to

create and alter SHPs.

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

Cheers,

-
Rodolfo Moreno
CivilEng

  

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





-
Rodolfo Moreno
CivilEng



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


Re: [mapguide-users] Connecting to WMS

2009-02-05 Thread Stefan Dalakov

Hi Kenneth,
I explored the error log.
The problem is that coordinate systems do not match BUT :

1. The error log says
/The coordinate system (*EPSG:32633*) of layer RissaWMSLayer1 cannot be 
different than the coordinate system (*EPSG:32632*) of the map
/2. The wms layer is configured to use /*EPSG:32632 */- in my config.xml 
it is written

/  RasterDefinition name=Image
   FormatPNG/Format
   Transparenttrue/Transparent
   BackgroundColor0xFF/BackgroundColor
   Timecurrent/Time
   Elevation0/Elevation
   SpatialContext*EPSG:32632*/SpatialContext
   Layer name=VERANDA
...
/3. The service supports this coordinate system - in GetCapabilities 
document I have


SRSEPSG:32633/SRS
BoundingBox SRS=EPSG:32633 minx=218329.98786561 
miny=7160648.90075887 maxx=305197.974972341 maxy=7041546.39019898/

*SRSEPSG:32632/SRS
BoundingBox SRS=**EPSG:32632 minx=506720 miny=7147644 
maxx=604333 maxy=7037305/

*SRSEPSG:32634/SRS
BoundingBox SRS=EPSG:32634 minx=-68103.0343048812 
miny=7200948.9760428 maxx=7352.92691530631 maxy=7073836.91252369/

SRSEPSG:9804/SRS
BoundingBox SRS=EPSG:9804 minx=1017422.41132931 
miny=9427477.01214373 maxx=1234782.60719126 maxy=9172903.66920839/

-

So, I want the map and WMS layer to be in coordinate system *32632*, the 
Feature source is configured to use this coordinate system, the service 
supports it, but still the server sends the output in *32633.*

Can you spot my mistake ?

Best regards : Stefan Dalakov
/


/Kenneth Skovhede, GEOGRAF A/S wrote:
Since a WMS layer is a raster layer, MapGuide requires that the 
Coordinate System of the layer is EXACTLY the same as for the map.


This means that the Coordinate System Override on the layer must match 
the map's Coordinate System exactly.


To see if there are any errors reported, look in the error log:
C:\Program Files\MapGuideOpenSource2.0\Server\Logs\Error.log
Regards, Kenneth Skovhede, GEOGRAF A/S
  



Stefan Dalakov skrev:

Hi all,
I am trying to add a WMS layer to my map.
I followed the procedure described here : 
https://trac.osgeo.org/fdo/wiki/FdoWmsNotes

to create a feature source.
When I open the feature source in Studio the connection tests OK.
Clicking the *Refresh* button generates an error originating from 
displayschema.php at line :
/document.getElementById(Geom_+RissaWMS).previousSibling.firstChild.src 
= ./images/collapse_pane.png;
/for each layer in the WMS feature source which is not critical 
(critical for Studio)
*View Data *link then reports BBOX parameter missing, which I assume 
is normal


I create a Layer afterwards, based on this Feature Source. The layer 
seems ok - refreshes OK, nothing on screen . This I also assume 
normal as  the layers (as described in the  GetCapabilities 
document)  are  limited to scale ranges  up to 1:5000.


I add this layer to an existing map, with matching coordinate system 
(EPSG:32632 of the WMS Feature Source and UTM-WGS84 / Zone 32 North 
of the map).
The WMS layer is not shown on the preview in Studio - perhaps this is 
also normal - my other raster layers are not previewed either.


But when I don't see the layer data in browser I am really stressed.

And my biggest stress is based on the fact that I do not know how to 
debug this situation


Any help will be highly appreciated


Thank you in advance : Stefan Dalakov





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



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


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


Re: [mapguide-users] Integration with Google Earth

2009-02-04 Thread Stefan Dalakov

Hi Rodolfo,
we are going a bit aside here from MGOS. I use  ArcMap 9.3 and the tool 
is located in ArcToolBox-ConversionTools-ToKML-Layer to KML


Stefan Dalakov


Rodolfo Moreno wrote:

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

Thanks in advance,



Stefan Dalakov wrote:
  

Hi,
If you save that file -mapagent.fcgi in fact you will save the output of 
this module, i.e. the requested kml/kmz file. However it might be 
windowed this kml file - it will contain part of the layer and will try 
to open it dynamically when you move around in Google Earth, but this 
will for sure contain the kml file.
The simplest perhaps will be to send me these files. You can zip and 
send to my e-mail - I will use ArcMap to convert - it takes a couple of 
minutes.Please add some info about coordinate system. ArcMap is an ESRI 
product, and is not free. AT ALL!


Stefan Dalakov

Sergio Nistal Calvo wrote:


Hi again,
 
I tried with web tier test page but it opens a window with a dialog 
box to download the file mapagent.fcgi (I suppose that it will be 
for php or something). Where can I download the ArcMap? (files to 
convert are cyl_mun_25.dbf, cyl_mun_25.idx, cyl_mun_25.shp and 
cyl_mun_25.shx (municipal boundaries), espacios.dbf, espacios.idx, 
espacios.shp, espacios.shx, espacios.sbn and espacios.sbx (natural 
areas) and vias.dbf, vias.idx, vias.shp and vias.shx (roads), in total 
17.4 MB).
 
Thanks.





Date: Tue, 3 Feb 2009 00:07:36 +0200
From: s.dala...@mapware.net
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Integration with Google Earth

Hi,

Have you tried with ArcMap ? Or perhaps you could try to convert a 
mapguide layer to KML using web tier test page - 
http://localhost:8008/mapguide/mapagent/index.html ?
I have converted several files with both methods and it works. It was 
some time ago, but I remember there was a problem in transformation if 
the coordinate system of the layer is not Decmal degrees (lat/lon) on 
WGS 84
If it is a single file and you need just the KML output, I can try 
converting it for you


Stefan Dalakov


Sergio Nistal Calvo wrote:

Hi,
 
I´m trying to convert some data in shp format to kml format with

Shp2kml program and I have two problems: 1 - one of the data, I
can´t convert because the attribute is too long,  100 characters
(240), 2 - opening the other data with Google Earth, I get the
map upside down, as if seen with a mirror, and displaced a few
meters/kilometers on the right. The coordinate system of the data
is LOCAL_CS [Non-Earth (Meter), LOCAL_DATUM [Local Datum, 0],
UNIT [Meter, 1], AXIS [X, EAST], AXIS [ Y, NORTH]], but I
can´t get it shp2kml so I leave the default WGS 1984 Global
Definition and I put projected UTM (meters), Northern
Hemisphere, UTM Zone 32.
 
Any help is appreciated.
 
Thanks.


   


El doble de diversión: Con Windows Live Messenger comparte fotos
mientras hablas.
http://www.microsoft.com/windows/windowslive/messenger.aspx

   



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





Con el nuevo Windows Live lo tendrás todo al alcance de tu mano 
http://home.live.com/



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

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






-
Rodolfo Moreno
CivilEng

  


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


[mapguide-users] Connecting to WMS

2009-02-04 Thread Stefan Dalakov

Hi all,
I am trying to add a WMS layer to my map.
I followed the procedure described here : 
https://trac.osgeo.org/fdo/wiki/FdoWmsNotes

to create a feature source.
When I open the feature source in Studio the connection tests OK.
Clicking the *Refresh* button generates an error originating from 
displayschema.php at line :
/document.getElementById(Geom_+RissaWMS).previousSibling.firstChild.src 
= ./images/collapse_pane.png;
/for each layer in the WMS feature source which is not critical 
(critical for Studio)
*View Data *link then reports BBOX parameter missing, which I assume is 
normal


I create a Layer afterwards, based on this Feature Source. The layer 
seems ok - refreshes OK, nothing on screen . This I also assume normal 
as  the layers (as described in the  GetCapabilities document)  are  
limited to scale ranges  up to 1:5000.


I add this layer to an existing map, with matching coordinate system 
(EPSG:32632 of the WMS Feature Source and UTM-WGS84 / Zone 32 North of 
the map).
The WMS layer is not shown on the preview in Studio - perhaps this is 
also normal - my other raster layers are not previewed either.


But when I don't see the layer data in browser I am really stressed.

And my biggest stress is based on the fact that I do not know how to 
debug this situation


Any help will be highly appreciated


Thank you in advance : Stefan Dalakov



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


Re: [mapguide-users] Integration with Google Earth

2009-02-03 Thread Stefan Dalakov

Hi,
If you save that file -mapagent.fcgi in fact you will save the output of 
this module, i.e. the requested kml/kmz file. However it might be 
windowed this kml file - it will contain part of the layer and will try 
to open it dynamically when you move around in Google Earth, but this 
will for sure contain the kml file.
The simplest perhaps will be to send me these files. You can zip and 
send to my e-mail - I will use ArcMap to convert - it takes a couple of 
minutes.Please add some info about coordinate system. ArcMap is an ESRI 
product, and is not free. AT ALL!


Stefan Dalakov

Sergio Nistal Calvo wrote:

Hi again,
 
I tried with web tier test page but it opens a window with a dialog 
box to download the file mapagent.fcgi (I suppose that it will be 
for php or something). Where can I download the ArcMap? (files to 
convert are cyl_mun_25.dbf, cyl_mun_25.idx, cyl_mun_25.shp and 
cyl_mun_25.shx (municipal boundaries), espacios.dbf, espacios.idx, 
espacios.shp, espacios.shx, espacios.sbn and espacios.sbx (natural 
areas) and vias.dbf, vias.idx, vias.shp and vias.shx (roads), in total 
17.4 MB).
 
Thanks.





Date: Tue, 3 Feb 2009 00:07:36 +0200
From: s.dala...@mapware.net
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Integration with Google Earth

Hi,

Have you tried with ArcMap ? Or perhaps you could try to convert a 
mapguide layer to KML using web tier test page - 
http://localhost:8008/mapguide/mapagent/index.html ?
I have converted several files with both methods and it works. It was 
some time ago, but I remember there was a problem in transformation if 
the coordinate system of the layer is not Decmal degrees (lat/lon) on 
WGS 84
If it is a single file and you need just the KML output, I can try 
converting it for you


Stefan Dalakov


Sergio Nistal Calvo wrote:

Hi,
 
I´m trying to convert some data in shp format to kml format with

Shp2kml program and I have two problems: 1 - one of the data, I
can´t convert because the attribute is too long,  100 characters
(240), 2 - opening the other data with Google Earth, I get the
map upside down, as if seen with a mirror, and displaced a few
meters/kilometers on the right. The coordinate system of the data
is LOCAL_CS [Non-Earth (Meter), LOCAL_DATUM [Local Datum, 0],
UNIT [Meter, 1], AXIS [X, EAST], AXIS [ Y, NORTH]], but I
can´t get it shp2kml so I leave the default WGS 1984 Global
Definition and I put projected UTM (meters), Northern
Hemisphere, UTM Zone 32.
 
Any help is appreciated.
 
Thanks.



El doble de diversión: Con Windows Live Messenger comparte fotos
mientras hablas.
http://www.microsoft.com/windows/windowslive/messenger.aspx



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





Con el nuevo Windows Live lo tendrás todo al alcance de tu mano 
http://home.live.com/



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


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


Re: [mapguide-users] Integration with Google Earth

2009-02-02 Thread Stefan Dalakov

Hi,

Have you tried with ArcMap ? Or perhaps you could try to convert a 
mapguide layer to KML using web tier test page - 
http://localhost:8008/mapguide/mapagent/index.html ?
I have converted several files with both methods and it works. It was 
some time ago, but I remember there was a problem in transformation if 
the coordinate system of the layer is not Decmal degrees (lat/lon) on WGS 84
If it is a single file and you need just the KML output, I can try 
converting it for you


Stefan Dalakov


Sergio Nistal Calvo wrote:

Hi,
 
I´m trying to convert some data in shp format to kml format with 
Shp2kml program and I have two problems: 1 - one of the data, I 
can´t convert because the attribute is too long,  100 characters 
(240), 2 - opening the other data with Google Earth, I get the map 
upside down, as if seen with a mirror, and displaced a few 
meters/kilometers on the right. The coordinate system of the data is 
LOCAL_CS [Non-Earth (Meter), LOCAL_DATUM [Local Datum, 0], UNIT 
[Meter, 1], AXIS [X, EAST], AXIS [ Y, NORTH]], but I can´t get 
it shp2kml so I leave the default WGS 1984 Global Definition and I 
put projected UTM (meters), Northern Hemisphere, UTM Zone 32.
 
Any help is appreciated.
 
Thanks.



El doble de diversión: Con Windows Live Messenger comparte fotos 
mientras hablas. 
http://www.microsoft.com/windows/windowslive/messenger.aspx



___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
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] anyone using gmail not receiving all the list emails

2009-02-02 Thread Stefan Dalakov
Same with me, I am not on gmail,  as you can see, and I didn't get only 
the last post to which Jackie replied


Zac Spitzer wrote:

I have noticed the last couple of replies from Jackie were to posts
that didn't arrive in my gmail?

looking on nabble i can see the posts...
http://n2.nabble.com/MapGuide-Users-f1803227.html

anyone else seeing this?

  


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


[mapguide-users] Ajax Viewer and Digitizing - may be a bug

2009-01-26 Thread Stefan Dalakov

Hi all,
I encountered a strange bug with the Ajax Viewer. I had a module for 
digitizing polygons, which was placed as InvokeURL command in the Task 
Pane. Now I transformed it to an InvokeScript command and it is started 
through the top toolbar as a part of a Flyout - drops down in a menu. 
The bug is that, when I click on this dropdown menu to activate the 
DigitizePolygon function, the first vertex of the polygon is 
automatically placed where I have clicked to activate the function - the 
point on the map that was behind the menu. My workaround in this 
situation is to fire an alert box, displaying a message, which clears 
the buffer and then everything goes like expected.
Has any body noticed such an effect / defect / bug? Is it possible to be 
a bug in my code ?

The behavior is the same in IE, FFox and Safari
It is MGOS 2.02


Stefan Dalakov



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


Re: [mapguide-users] Adding customized line types

2009-01-23 Thread Stefan Dalakov
Hi, I think you can use this link as a departure point for creating 
custom line styles


http://trac.osgeo.org/mapguide/wiki/MapGuideRfc14

And I am not sure I understand the second part of this message. Do you 
mean object data in Map 3D terms?

Could you explain more ?

Best regards : Stefan Dalakov

r...@rayholtz.com wrote:
I'm resending this in the hopes that maybe the person that might have 
this knowledge missed it the first time around.

Thanks!

 Original Message 
Subject: [mapguide-users] Adding customized line types
From: r...@rayholtz.com
Date: Wed, January 21, 2009 5:21 pm
To: mapguide-users@lists.osgeo.org

Hi, we have Mapguide OpenSource 1.2 running on Ubuntu 7.04, and
using Mapguide Studio 2008, and AutoCad Map 3D 2008.
We have a defined line type file in Map 3D, that we need to
import/install/get working within Mapguide Studio and MGOS.
Furthermore, we have blocks in Map 3D created for manhole covers
that we want to be endpoints for these lines.  The manhole cover
has been scanned in as a jpg. we are unable to attach object data
to it.  How do we export the manhole cover from Map 3D into
MapGuide Studio/MGOS so we can attach object data to it?
 
Thanks much for the infininate wisdom of this list!!!

Ray

___
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] Precision problem viewing map

2009-01-23 Thread Stefan Dalakov

Great, Chris !
Now it works like a charm. No problem at all - works correctly as a 
single page and also iframed.


Stefan Dalakov

Chris Claydon wrote:

Hi Stefan,

I just submitted a change to the trunk version of ajaxmappane.templ that should 
resolve this issue. Take a look at the submission:

http://trac.osgeo.org/mapguide/changeset/3557

You should be able to make the same simple changes to your own version of this 
file (located in www/viewerfiles) to fix the problem without re-installing 
anything.

Let me know if this works for you!

Chris.

-Original Message-
From: Chris Claydon
Sent: Monday, January 12, 2009 9:44 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Precision problem viewing map

I tried digitizing a rectangle, and the result was that it was offset only in 
the y axis. I believe this corresponds to the small space that you have between 
the top of the map frame and the top of the map itself. I've seen bugs reported 
about this gap before, but I'm not sure if they've been resolved.

Chris.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Stefan Dalakov
Sent: Monday, January 12, 2009 4:12 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Precision problem viewing map

Hi all,
I am facing a strange and unexpected problem regarding precision of map
and coordinates display. I see that my data is not displayed on the
exact place - there is a shift in Y coordinate. I have a raster layer
with bounding rectangle
Xmin=..., Ymin=7070400, Xmax= Ymax=7071600. But when I move the
mouse pointer at the lower left corner I see Y=7070320 (at scale 1:2000
let say) or similar value, and the difference depends on the scale. If I
zoom down, the difference changes, and at scales close to 1:50 it is ok.
The situation is similar at the upper right corner. I observe exactly
the same effect with all other layers.
I wouldn't care too much about this - even if there is a shift, all
layers are shifted equally, but when I digitize a polygon it is also
shifted. Imagine I digitize a polygon to follow a feature on the raster
image, coordinates are recorded , the feature is added to data source,
but when it is added, due to this shift it appears not where it has been
digitized, but shifted.
I guess you did not understand anything of this, but you can visit

http://www.bgmapguide.com:8008/mapguide/rakvag/main.php

click on draw a new suggestion and try to digitize 2 adjacent polygons
- you will see them overlap
Please be gentle to the server - it is an old tired horse.
And to save some time - all layers and the map are in the same
coordinate system.
This effect is not depending on the browser (tested with FFox 2  3,
Safari and IE) and is not depending on the screen resolution


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


  


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


[mapguide-users] Fusion and Digitizing

2009-01-23 Thread Stefan Dalakov

Hi all,
From what I read here, should I conclude that digitizing functions in 
Fusion are not yet fully supported ?
I need to digitize a polygon on the map and save it permanently. I have 
this working with AJAX viewer, but would like to port it to Fusion

Has anyone succeeded to  do this ?

Stefan Dalakov


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


Re: [mapguide-users] Mapguide raster problem

2009-01-19 Thread Stefan Dalakov
I use latest MGOS with Apache on Win Server 2003 (as I have 1.2 running 
on the same server on IIS), and I use 150 Mb tiff. No problems so far on 
both. Have you tested with tiff files ?


Regards : Stefan Dalakov

marius.360 wrote:

Hi all,

I posted a message a while ago regarding MGOS being very unstable and
crashing a lot. Since then I have removed the raster layer from the map and
it has improved a lot, not crashing once since then (about 4 days). The
layer was displaying quite large MrSid files, +- 150mb each, with about 50
files. This is quite a big problem, as the rasters are cricital in the map. 
Does anyone know of a workaround for this raster problem, or if it will work

if I convert my raster to some other format? I read about tiling but that
doesn't sound any better. I am using the latest version of MGOS on Windows
Server 2003 with .net and IIS6 setup. Any help will be appreciated!

Kind Regards,

Marius
  


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


Re: [mapguide-users] Selecting polygon

2009-01-17 Thread Stefan Dalakov

Hi,
you have to create selection object on the server side and then send it 
as an XML to the viewer
Here is part of the code (in php) that I have used - taken mostly from 
developers guide and samples.
You can find everything there. It is not .net, but I think you can get 
the idea


?php
..
   $selection = new MgSelection($map);
   $queryOptions = new MgFeatureQueryOptions();
   $queryOptions-SetFilter();   - Your parcel id should be 
used in setting $queryOptions

   $featureReader = $layer-SelectFeatures($queryOptions);
   $selection-AddFeatures($layer, $featureReader, 0);
   $selectionXml = $selection-ToXml();
?
body class=AppFrame onLoad=OnPageLoad()
/body
script language=javascript
function OnPageLoad()
{
selectionXml = '?php echo $selectionXml; ?';
parent.parent.SetSelectionXML(selectionXml);
}
/script


Hope this will help. Most of these basic tasks are described in 
developer's guide


Regards : Stefan Dalakov


padmini godavarthi wrote:


  Hi,
iam using mapguide opensource 2.0(with .net 2.0 +IIS 5.1). i have a polygon
layer loaded on the map.
Now i want to select a particular polygon (for ex: parcel_id=222) on the map
programmetically and i want to change the color of polygon . 


i know that in maestro if i check features on layer are selectable then the
polygon will be selected 


but i want  to identify the polygon programmetically.


1) How is it possible?

can any body plz help me so that it will be helpful to me.



Thanks and Regards,
Padmini.

  


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


[mapguide-users] Precision problem viewing map

2009-01-12 Thread Stefan Dalakov

Hi all,
I am facing a strange and unexpected problem regarding precision of map 
and coordinates display. I see that my data is not displayed on the 
exact place - there is a shift in Y coordinate. I have a raster layer 
with bounding rectangle
Xmin=..., Ymin=7070400, Xmax= Ymax=7071600. But when I move the 
mouse pointer at the lower left corner I see Y=7070320 (at scale 1:2000 
let say) or similar value, and the difference depends on the scale. If I 
zoom down, the difference changes, and at scales close to 1:50 it is ok. 
The situation is similar at the upper right corner. I observe exactly 
the same effect with all other layers.
I wouldn't care too much about this - even if there is a shift, all 
layers are shifted equally, but when I digitize a polygon it is also 
shifted. Imagine I digitize a polygon to follow a feature on the raster 
image, coordinates are recorded , the feature is added to data source, 
but when it is added, due to this shift it appears not where it has been 
digitized, but shifted.

I guess you did not understand anything of this, but you can visit

http://www.bgmapguide.com:8008/mapguide/rakvag/main.php

click on draw a new suggestion and try to digitize 2 adjacent polygons 
- you will see them overlap

Please be gentle to the server - it is an old tired horse.
And to save some time - all layers and the map are in the same 
coordinate system.
This effect is not depending on the browser (tested with FFox 2  3, 
Safari and IE) and is not depending on the screen resolution



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


Re: [mapguide-users] Precision problem viewing map

2009-01-12 Thread Stefan Dalakov

Thank you!
And also, if it is interesting for someone, when I iframe this page, 
there is no problem


Stefan

Gunter Becker wrote:

Hi Stefan,

it is a bug in AjaxViewer. You have a weblayout with properties pane
disabled. Enable it and the map is
at the right position. There is also a ticket on track: 
http://trac.osgeo.org/mapguide/ticket/593
http://trac.osgeo.org/mapguide/ticket/593 


Gunter
  


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


Re: [mapguide-users] Permanent changes in data - Solved

2008-12-02 Thread Stefan Dalakov
I solved it. The problem was that MG Studio shows that the ID field is 
of type Double. In the DBF file (as this is a shp Feature source) the 
ID field is declared as N,11,0
So I substituted *MgDoubleProperty *with* **MgInt32Property* and it 
works now.


Stefan Dalakov


Kenneth Skovhede, GEOGRAF A/S wrote:
Could it be that ID is the primary key, and if you insert two 
features with ID 11,
it breaks? Or that the ID is auto-assigned, and thus not assignable 
from MapGuide/FDO?


btw, things tend to work better with MapGuide if your primary key is 
an integer.

Regards, Kenneth Skovhede, GEOGRAF A/S
  



Stefan Dalakov skrev:

It is something stupid, but I cannot spot it...
Everything works if I omit the bold part of the code :

  function MakeLine($name, $x0, $y0 , $x1, $y1)
  {
$propertyCollection = new MgPropertyCollection();
*$cntr = (double) 11.0 ;
$idProperty = new MgDoubleProperty(ID,$cntr);
$propertyCollection-Add($idProperty);
*$owner = Aaa ;
$ownerProperty = new MgStringProperty(Owner, $owner);
$propertyCollection-Add($ownerProperty);
$nameProperty = new MgStringProperty(Purpose, $name);
$propertyCollection-Add($nameProperty);
$wktReaderWriter = new MgWktReaderWriter();
$agfReaderWriter = new MgAgfReaderWriter();
$agftext = LINESTRING XY ($x0 $y0, $x1 $y1) ;
$geometry = $wktReaderWriter-Read( $agftext);
$geometryByteReader = $agfReaderWriter-Write($geometry);
$geometryProperty = new MgGeometryProperty(Geometry, 
$geometryByteReader);

$propertyCollection-Add($geometryProperty);
return $propertyCollection;
  }

MG Studio says this property is Double

Stefan Dalakov


Kenneth Skovhede, GEOGRAF A/S wrote:

You could be affected by this bug:
http://trac.osgeo.org/mapguide/ticket/649

Otherwise, try to post a section of the code,
maybe someone will spot something obvious.

Regards, Kenneth Skovhede, GEOGRAF A/S



Stefan Dalakov skrev:

Hi all,
I am trying to add a feature (permanently) to a data source.
I am using MGOS 1.2 and tried Sheboygan samples, where this part is 
not working, I have not explored the reason yet.
My idea is to digitize a feature ( a line ) and add it permanently 
to an existing layer on the map.
I wrote some code, and everything seems OK, no errors,  but at the 
end I have no feature added.

Can someone help with a piece of code ?

Thanks in advance
Stefan Dalakov
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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





___
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] Permanent changes in data

2008-12-02 Thread Stefan Dalakov

It is something stupid, but I cannot spot it...
Everything works if I omit the bold part of the code :

 function MakeLine($name, $x0, $y0 , $x1, $y1)
 {
   $propertyCollection = new MgPropertyCollection();
*$cntr = (double) 11.0 ;
   $idProperty = new MgDoubleProperty(ID,$cntr);
   $propertyCollection-Add($idProperty);
*$owner = Aaa ;
   $ownerProperty = new MgStringProperty(Owner, $owner);
   $propertyCollection-Add($ownerProperty);
   $nameProperty = new MgStringProperty(Purpose, $name);
   $propertyCollection-Add($nameProperty);
   $wktReaderWriter = new MgWktReaderWriter();
   $agfReaderWriter = new MgAgfReaderWriter();
   $agftext = LINESTRING XY ($x0 $y0, $x1 $y1) ;
   $geometry = $wktReaderWriter-Read( $agftext);
   $geometryByteReader = $agfReaderWriter-Write($geometry);
   $geometryProperty = new MgGeometryProperty(Geometry, 
$geometryByteReader);

   $propertyCollection-Add($geometryProperty);
   return $propertyCollection;
 }

MG Studio says this property is Double

Stefan Dalakov


Kenneth Skovhede, GEOGRAF A/S wrote:

You could be affected by this bug:
http://trac.osgeo.org/mapguide/ticket/649

Otherwise, try to post a section of the code,
maybe someone will spot something obvious.

Regards, Kenneth Skovhede, GEOGRAF A/S



Stefan Dalakov skrev:

Hi all,
I am trying to add a feature (permanently) to a data source.
I am using MGOS 1.2 and tried Sheboygan samples, where this part is 
not working, I have not explored the reason yet.
My idea is to digitize a feature ( a line ) and add it permanently to 
an existing layer on the map.
I wrote some code, and everything seems OK, no errors,  but at the 
end I have no feature added.

Can someone help with a piece of code ?

Thanks in advance
Stefan Dalakov
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

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



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


Re: [mapguide-users] Cyrillic alphabet/Encoding problem

2008-10-24 Thread Stefan Dalakov
I would suggest that the data in the SHP file is encoded using the 
so-called DOS-cyrillic code page. I do not remember now the exact 
code-page name, but I can come back to this later. At least this works 
in my case.
Have a look at http://www.bgmapguide.com/mapguide/rila/rila.php , it is 
using mgos 1.2 but I don't think this makes any difference.


Stefan Dalakov

milko_velichkov wrote:

Unfortunately that's doesn't work in my case :(
http://www.nabble.com/file/p20144623/t.jpeg  



Traian Stanev wrote:
  

Yes, SHP files and encodings is trouble... You can try to force the
encoding to UTF-8 by adding a .CPG file alongside your SHP file (with the
same filename as the .SHP). The contents should be a single line of text,
saying UTF-8, without the quotes. This will hint the FDO provider for
SHP files to use that encoding. No guarantee that would fix it though...

Another thing you can do to identify the cause of the problem is try to
use a constant Cyrillic string as a label for your geometry. If that shows
up fine in MapGuide, then the problem is upstream (in the FDO provider),
otherwise it's a problem in the MapGuide code.


Traian





-Original Message-
From: [EMAIL PROTECTED] [mailto:mapguide-users-
[EMAIL PROTECTED] On Behalf Of milko_velichkov
Sent: Thursday, October 23, 2008 1:32 AM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Cyrillic alphabet/Encoding problem


Under Selection tab, when I have attribute information in Cyrillic
from a
SHP data source, they appear like маймуница :). Same with all labels
within
the Map window. Encoding used by default is UTF-8 (I don't have an idea
how
to change it within the MapGuide environment).

Milko


Traian Stanev wrote:
  

What exactly is the problem you are seeing? Also, are you using


Unicode or
  

some other encoding for the Cyrillic in your data source?


Traian





-Original Message-
From: [EMAIL PROTECTED] [mailto:mapguide-users-
[EMAIL PROTECTED] On Behalf Of milko_velichkov
Sent: Wednesday, October 22, 2008 4:26 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Cyrillic alphabet/Encoding problem


Hi,
Did anyone else has a problem with the visualization/encoding of
Cyrillic
letters when selecting features from within MapGuide?
--
View this message in context: http://www.nabble.com/Cyrillic-
  

alphabet-
  

Encoding-problem-tp20104783p20104783.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




--
View this message in context: http://www.nabble.com/Cyrillic-alphabet-
Encoding-problem-tp20104783p20124621.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] visible layer limitation

2008-06-08 Thread Stefan Dalakov
I have noticed same effect, but in my case it depended on the number of 
features displayed. This was commented some time ago, but no one has 
mentioned any solution or work-around , or even exact values if it is a 
known limitation.


Stefan Dalakov

mehdisadegh wrote:

Hi

i make map which consists more than 50 layers and all of them are visible,
when i try to select features in web layout it is not possible at all but
when i reduce the number of visible layers i can do whatever i want, i
wonder is there any limitation in number of visible layer in mapguide open
source?

  


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


Re: [mapguide-users] MG studio 2007 can't cooperate with MG opensource 1.2.0 ? Update of Autodesk.MapGuide.Studio.Site.dll is not enough?

2007-09-09 Thread Stefan Dalakov

About dete.exe
Some time ago there were problems with Mapguide(6.5) and Civil 3D. Also 
had problem like yours with Mapguide OS running on a machine with Map 3D 
2008. I guess it is due to the sequence of installations - I think you 
should install Map 3D(or the product from which Dete is) first and then 
Mapguide.


Carl wrote:

I found also the error copying the fdo files. I reinstalled the MG studio and
patchit accordingly, and copy the client library of ArcSDE92 to FDO
directory. 
Now the studio can load most types of data files except DWG (It seems

something is wrong with Autodesk Dete.exe. I looked from website of
autodesk, but not get to a solution). A new problem is : I can't connect to
arcsde92 installed on local machine. Then i try to connect arcsde92 on
another machine. Ok. it works. but no featureclass inside the ArcSDE server
can be listed out. so no real featuresource can be made. In conclude, there
are two strange phenomena : one is about autodesk dete.exe, and another is
about the ArcSDE 9.2.

Regards. SHE


Kenneth, GEOGRAF A/S wrote:
  

You should NOT copy any of the FDO files into the studio folders.
The FDO folder in the Studio installation is only used with som internal 
studio operations, and has no effect on the server's FDO capabilities.
You must modify the providers.xml file that is located in the mapguide 
folder (C:\program files\mapguideopensource\server\bin\fdo)

After modifying the file, you must restart the mapguide service.
Studio caches the providers, so you must restart studio as well.

In your case, I would recommend uninstalling Studio, and repeating the 
install/patch procedure.


Regards, Kenneth, GEOGRAF A/S




Carl skrev:


I just had installed MG opensource 1.2, and patched autodesk mg studio
2007
accordingly (Initial Installation + SP1 + SP1a +
Autodesk.MapGuide.Studio.Site.dll Patch). I also copied all files located
in
the bin/fdo of mg Opensource 1.2 server to FDO directory of studio 2007
and
modified the providers.xml. But when new a load procedure or a data
connection, the shown list are still the previous items, no any provider
in
the providers.xml is listed.
Now the studio can only deal with previously existing data, layer and
layout. once to load or connect new data source, the problem would be
popup,
'Unable to complete request to site','An exception occurred in FDO
component. Failed to open ArcSDE connection. ', and so on,  Except that
DWF
can be loaded.

The studio can worked very well with the MG OS 1.1 before, is it not
compatible with MG OS 1.2 ? or it need much more patches?

please help me. thank you very much. Now I am urgently waiting to dealing
with new map data.
  
  

___
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] Problem installing MGOS 1.2

2007-06-28 Thread Stefan Dalakov

Hi,
I am posting this back, as some one else might suffer from the same. 
Traian was right.
So, to make the long story short, the MGOS 1.1 uninstall process leaves 
too many registry entries after itself, which somehow confuses MGOS 
1.2. As a result, strange false errors appear. I've seen also a 
connection problem message. The problem is resolved by using a tool 
which ensures complete uninstall - there are many like this around. 
After that everything works fine.


Regards : Stefan

Traian Stanev wrote:

I think this is a false error, I see depends.exe complain about that
file all the time when it's not really a problem. It must be something
else that is causing your problem.

Traian


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stefan
Dalakov
Sent: Tuesday, June 26, 2007 10:12 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Problem installing MGOS 1.2

Dependency walker reports about DWMAPI.DLL missing.
Where can I get this file from ?

Regards : Stefan


Kenneth, GEOGRAF A/S wrote:
  
I have seen the message The specified module could not be found in 
other situations.

It is usually a problem with a missing Dll.
You can use a tool called Dependency Walker to troubleshoot problems



  

(drag the file in question into DW).

You description makes me belive that the problem is either with 
fcgi_isapi.dll or mapagent.exe, both in the WebTier folder.


You can also try uninstall and then remove the entire 
MapGuideOpenSource folder (remember to back up any repositiories 
first!).

A fresh install should make everything work out fine.

Regards, Kenneth, GEOGRAF A/S



Stefan Dalakov skrev:


Hi all,
I wanted to move to MGOS 1.2 after using MGOS 1.1 for some time.
I removed ( reinstalled ) the previous installation but I can't make 
this work. Tried installing again and again for 10-15 times but no 
success.


I can access mapadmin module - it works ok, and reports that the 
server is ON. The installation module did not create php association 
but I fixed this.

When I send requests like

  

http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=ENUMERATERESO
URCESVERSION=1.0.0LOCALE=enRESOURCEID=Library://TYPE=DEPTH=-1 
  

I get message The specified module could not be found

If I open http://localhost/mapguide/mapagent/index.html - Web Tier 
Tests it fails everywhere (same message), except for the Server 
admin services


I checked the .fcgi association about 15 times - it seems OK.
Mapguide Studio also reports fail due to unknown reason

I am running WIN XP SP2, with IIS, using PHP as dev. environment.

Any suggestions ?

Thanks in advance

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

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




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


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

  


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


[mapguide-users] Problem installing MGOS 1.2

2007-06-26 Thread Stefan Dalakov

Hi all,
I wanted to move to MGOS 1.2 after using MGOS 1.1 for some time.
I removed ( reinstalled ) the previous installation but I can't make 
this work. Tried installing again and again for 10-15 times but no success.


I can access mapadmin module - it works ok, and reports that the server 
is ON. The installation module did not create php association but I 
fixed this.

When I send requests like
http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=ENUMERATERESOURCESVERSION=1.0.0LOCALE=enRESOURCEID=Library://TYPE=DEPTH=-1
I get message The specified module could not be found

If I open http://localhost/mapguide/mapagent/index.html - Web Tier Tests 
it fails everywhere (same message), except for the Server admin services


I checked the .fcgi association about 15 times - it seems OK.
Mapguide Studio also reports fail due to unknown reason

I am running WIN XP SP2, with IIS, using PHP as dev. environment.

Any suggestions ?

Thanks in advance

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