[mapguide-users] Get Layers Coordinate System

2010-11-17 Thread Mark Pendergraft

I have a map with layers from several different coordinate systems.  When I
query the geometry from the layers with a different coordinate system, is
there a quick and easy way to find out what their coordinate system is?

I was looking at featureService.GetSpatialContexts()

am I going in the right direction here?

-Mark P.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Get-Layers-Coordinate-System-tp5749403p5749403.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Any coord. system to WGS84 (Google Earth). What's wrong?

2010-03-31 Thread Mark Pendergraft

I think the problem here is the $coordSys1 and $coordSys2.  I have a similar
snippet of code that converts WAHP-NF into LL84 and I think the
MGCoordinateSystemTransform() method is looking for the WKT coordinate
system and not the CS names.

Try using MGcoordinateFactory-ConvertCoordinateSystemCodeToWkt()
Also, the two codes you have won't work.  I believe WGS 84 in CS code is
LL84 and i'm not sure about the other but i suspect it may be ED50/ES.LL

of course you could always supply the WKT yourself.

Alternatively, have you explored the MgCoordinateSystem-ConvertToLonLat() 
?
the code looks like this in VB, you can convert to PHP

' basic initialization needs to be done every time
Dim s_basePath As String =
System.Web.HttpContext.Current.Request.ServerVariables(APPL_PHYSICAL_PATH)
MapGuideApi.MgInitializeWebTier(s_basePath + ../webconfig.ini)

' Get the user information using the session id,
' and set up a connection to the site server. 
Dim UserInfo As New MgUserInformation(sessionId)
Dim siteconnection As New MgSiteConnection
siteconnection.Open(UserInfo)

' Get an instance of the required service(s).
Dim ResourceService As MgResourceService =
siteconnection.CreateService(MgServiceType.ResourceService)


Dim Map As New MgMap(siteconnection)
Map.Open(ResourceService, mapName)

Dim coordFact As New MgCoordinateSystemFactory
Dim mapCoordSys As MgCoordinateSystem =
coordFact.Create(Map.GetMapSRS)
Dim geomFact As New MgGeometryFactory
Dim mapCoord As MgCoordinate = geomFact.CreateCoordinateXY(x, y)
Dim LLcoord As MgCoordinate =
mapCoordSys.ConvertToLonLat(mapCoord)
-- 
View this message in context: 
http://n2.nabble.com/Any-coord-system-to-WGS84-Google-Earth-tp1811461p4831992.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: re: google mapintegration with mapguide

2010-03-30 Thread Mark Pendergraft

I filed a ticket in the fusion trac for this and it was closed because the
latest trunk version could not reproduce it.  I haven't had time to test it
myself, but you might try downloading the latest version and see if that
fixes your problem.

-Mark P.
-- 
View this message in context: 
http://n2.nabble.com/re-google-mapintegration-with-mapguide-tp3049773p4825273.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] RE: Unable to view-Mark

2010-02-25 Thread Mark Pendergraft

1) Flexible layouts support any coordinate system you can define with proj4js
and EPSG.  My current flexible layout is in Washington State Planes - North
Zone US Foot HPGN. (which is not a lat/long coord. sys.)

2) Yes.  download the trunk version.  Think of it this way.  The version of
Fusion that you have is probably 70% complete.  The trunk version is closer
to 90%.  While I'm just generalizing, you get the idea.  I am using MGOS
2.1, with a checked out copy of the Fusion trunk, and I was able to display
a map using the coordinate system (which i copied directly from your map
resource) with zero issues.

-Mark
-- 
View this message in context: 
http://n2.nabble.com/Unable-to-view-Mark-tp4623889p4632871.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] RE: Unable to view-Mark

2010-02-24 Thread Mark Pendergraft

Padmini,
First off, Ivan did give you the answer you were looking for.  The Let me
google that for you link returned several pages which i found very helpful
on what subversion and the trunk are.  You should go back and revisit it if
you have questions about it.

I think the issue here is that you have loaded a 'custom' projection into
your Map resource.  Using your definition, and the EPSG code i provided, I
had the same issue as you.  The map was tiny.  I realize that UTM Nad 83
Zone 11 is a pretty standard projection, but i think you have defined it in
a way that MapGuide thinks it's a custom projection.  However i was able to
fix it by doing the following:

Open MapGuide Studio.
Open your map resource.
Click the button to the right of Coordinate System.
pull down the categories bar to UTM, NAD83 Datum
In the available coordinate systems, select the code UTM83-11
press ok
save your map resource.

you could also do the same in Maestro:
Open Maestro
Open your map resource
Click the button to the right of Coordinate System.
Select Type EPSG code and type 26911.
press validate.
press ok.
save your map resource.

-Mark
-- 
View this message in context: 
http://n2.nabble.com/Unable-to-view-Mark-tp4623889p4626559.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] RE: Unable to view-Mark

2010-02-24 Thread Mark Pendergraft

On further investigation, your projection did work.  I had the wrong map
extents in my map resource.  When I changed the coordinate system in Studio
the 2nd time around, it automatically adjusted the extents of your map to
reflect the change.  (which is something i think would be great to have in
Maestro too)

I would think at this point the next step would be to get the trunk version
and see if that helps.
-Mark
-- 
View this message in context: 
http://n2.nabble.com/Unable-to-view-Mark-tp4623889p4626599.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Problem with Studio 2010 +Flexible layouts Error

2010-02-23 Thread Mark Pendergraft

As was pointed out in the link i posted, you need to change the projection of
your map in the Application Definition.  Under the Extension element, you
need to add a ProjectionCode and a ProjectionDef node.

I believe the ProjectionCode you want is:
EPSG:26911

the ProjectionDef would be:
+proj=utm +zone=11 +ellps=GRS80 +datum=NAD83 +units=m +no_defs

So your map definition should be something like the following:

MapSet 
 MapGroup id=layer 
   Map 
 TypeMapGuide/Type 
 SingleTiletrue/SingleTile 
 Extension 
 ProjectionCodeEPSG:26911/ProjectionCode
  ProjectionDef+proj=utm +zone=11 +ellps=GRS80 +datum=NAD83
+units=m +no_defs/ProjectionDef
  ResourceIdLibrary://MFS/Maps/MGA.MapDefinition/ResourceId
   ResourceIdLibrary://state/layer.MapDefinition/ResourceId 
   SelectionAsOverlaytrue/SelectionAsOverlay 
   SelectionColor0xFFA0/SelectionColor 
 /Extension 
   /Map 
   Extension / 
 /MapGroup 
  /MapSet 


-Mark
-- 
View this message in context: 
http://n2.nabble.com/Problem-with-Studio-2010-Flexible-layouts-Error-tp4596619p4619931.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Problem with Studio 2010 +Flexible layouts Error

2010-02-23 Thread Mark Pendergraft

In order to have a fusion template show up in mapguide studio, you need to do
the following:

1) copy the slate template in your templates directory and rename it test
2) in the templates directory, create a file named test.xml
3) in a web browser, open your new template and capture a screen shot. 
paste that screen shot into paint (or similar program) and save it as a png
file in the test folder you made in step 1, as preview.png
4) open the test.xml file and copy the following xml into it (you made need
to change the paths to make it work correctly)

TemplateInfo
NameTest Layout/Name
LocationUrlfusion/templates/mapguide/test/index.html/LocationUrl
DescriptionTest template/Description
PreviewImageUrlfusion/templates/mapguide/test/preview.png/PreviewImageUrl
/TemplateInfo

5) Close down MapGuide Studio if you have it open.  Re-open it.  You should
see your new template.

I've uploaded a screenshot of MapGuide Studio after having followed the
steps listed above.  I added the Standard template that is currently in the
trunk version of Fusion to Studio.

-Mark http://n2.nabble.com/file/n4620098/studio.png 
-- 
View this message in context: 
http://n2.nabble.com/Problem-with-Studio-2010-Flexible-layouts-Error-tp4596619p4620098.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] RE: Problem with Studio 2010 +Flexible layouts Error

2010-02-23 Thread Mark Pendergraft

I realize that the terminology here is confusing.

There are two MapDefinition terms here.  One is the actual resource,
which is what you have posted below.  The resource is the file referred
to in Library://state/layer.MapDefinition.  There is also a
MapDefinition node in the ApplicationDefinition.xml file found in the
template directory.

 

What you need to do is browse to the ApplicationDefinition.xml in the
slate template folder.  Probably C:\Program
Files\OsGeo\MapGuide\Web\www\fusion\templates\mapguide\slate\Application
Definition.xml.

 

Find the MapSet node and make it look like this:

 

  MapSet xsi:type=MapSetType

MapGroup id=layer xsi:type=MapType

  Map xsi:type=MapGuideLayerType

TypeMapGuide/Type

SingleTiletrue/SingleTile

Extension

   ProjectionCodeEPSG:26911/ProjectionCode 
   ProjectionDef+proj=utm +zone=11 +ellps=GRS80 +datum=NAD83
+units=m +no_defs/ProjectionDef 
   ResourceIdLibrary://state/layer.MapDefinition/ResourceId 

  ImageFormatPNG8/ImageFormat

  SelectionAsOverlaytrue/SelectionAsOverlay

  SelectionFormatPNG/SelectionFormat

  SelectionColor0xFFFF/SelectionColor

/Extension

  /Map

/MapGroup

  

  /MapSet

 

 

Hopefully that helps.

 

-Mark P.

 

 

From: padmini godavarthi [via OSGeo.org]
[mailto:ml-node+4623694-476912507-74...@n2.nabble.com] 
Sent: Tuesday, February 23, 2010 8:34 PM
To: Mark Pendergraft
Subject: Re: Problem with Studio 2010 +Flexible layouts Error

 

Hi Mark, 
First of all thank you very much for your patience and help. 

But in my mapdefinition the projection system is
handled.. 

?xml version=1.0 encoding=UTF-8? 

MapDefinition xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLocation=MapDefinition-1.0.0.xsd 
 NameNew Map/Name 
 
CoordinateSystemPROJCS[NAD_1983_UTM_Zone_11N,GEOGCS[GCS_North_Ameri
can_1983,DATUM[D_North_American_1983,SPHEROID[GRS_1980,6378137.0,29
8.257222101]],PRIMEM[Greenwich,0.0],UNIT[Degree,0.0174532925199433]]
,PROJECTION[Transverse_Mercator],PARAMETER[False_Easting,50.0],P
ARAMETER[False_Northing,0.0],PARAMETER[Central_Meridian,-117.0],PARA
METER[Scale_Factor,0.9996],PARAMETER[Latitude_Of_Origin,0.0],UNIT[M
eter,1.0]]/CoordinateSystem 
 Extents 
  MinX271673.8130436262/MinX 
  MaxX512056.71341944818/MaxX 
  MinY3750970.4455238734/MinY 
  MaxY3858924.9056628617/MaxY 
 /Extents 
 BackgroundColor/BackgroundColor 
 MapLayer 
  Namelayer1/Name 
  ResourceIdLibrary://flexsample1/layer1.LayerDefinition/ResourceId 
  Selectabletrue/Selectable 
  ShowInLegendtrue/ShowInLegend 
  LegendLabellayer1/LegendLabel 
  ExpandInLegendtrue/ExpandInLegend 
  Visibletrue/Visible 
  Group/Group 
 /MapLayer 
/MapDefinition 

where the application definition.xml(iam using slate temple .is it in
slate templete folder??) is exactly located  to modify the projection
system .. 

Regards, 
Padmini G. 





View message @
http://n2.nabble.com/Problem-with-Studio-2010-Flexible-layouts-Error-tp4
596619p4623694.html 
To unsubscribe from Re: Problem with Studio 2010 +Flexible layouts
Error, click here
 (link removed) 
pbG1hbi5jb218NDYxOTkzMXw0NzQwNDE0Njk= . 

 


-- 
View this message in context: 
http://n2.nabble.com/Problem-with-Studio-2010-Flexible-layouts-Error-tp4596619p4623747.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] RE: Problem with Studio 2010 +Flexible layouts Error

2010-02-23 Thread Mark Pendergraft

You have to set the projection in the applicationdefinition.xml.
MapGuide uses WKT in order to deal with projections.  Fusion is now
based around OpenLayers which uses Proj4js to handle projections.  So
you need to set the projection in both the MapDefinition (which you have
already done in MapGuide Studio) as well as in the Map element in the
ApplicationDefinition.xml file.  The ApplicationDefinition.xml file
resides in the same folder as the index.html file that you are browsing
to in your web browser.

 

Change your applicationdefinition.xml file in the folder you just
created to reflect the markups below:


?xml version=1.0? 
ApplicationDefinition
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xsi:noNamespaceSchemaLocation=ApplicationDefinition-1.0.0.xsd 
 
TemplateUrlfusion/templates/mapguide/padmini/index.html/TemplateUrl 
  MapSet 
MapGroup id=map 
  Map 
TypeMapGuide/Type 
SingleTiletrue/SingleTile 
Extension 

ProjectionCodeEPSG:26911/ProjectionCode 
   ProjectionDef+proj=utm +zone=11 +ellps=GRS80 +datum=NAD83
+units=m +no_defs/ProjectionDef
 
ResourceIdLibrary://flexisample/map.MapDefinition/ResourceId 
  SelectionAsOverlaytrue/SelectionAsOverlay 
  SelectionColor0xFFA0/SelectionColor 
/Extension 
  /Map 
  Extension / 
/MapGroup 
  /MapSet


-- 
View this message in context: 
http://n2.nabble.com/Problem-with-Studio-2010-Flexible-layouts-Error-tp4596619p4623862.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Re: Unable to view-Mark

2010-02-23 Thread Mark Pendergraft

You have to set the projection in the applicationdefinition.xml.  MapGuide
uses WKT in order to deal with projections.  Fusion is now based around
OpenLayers which uses Proj4js to handle projections.  So you need to set the
projection in both the MapDefinition (which you have already done in
MapGuide Studio) as well as in the Map element in the
ApplicationDefinition.xml file.  The ApplicationDefinition.xml file resides
in the same folder as the index.html file that you are browsing to in your
web browser.

Change your applicationdefinition.xml file in the folder you just created to
reflect the markups below:

?xml version=1.0? 
ApplicationDefinition xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xsi:noNamespaceSchemaLocation=ApplicationDefinition-1.0.0.xsd 
  TemplateUrlfusion/templates/mapguide/padmini/index.html/TemplateUrl 
  MapSet 
MapGroup id=map 
  Map 
TypeMapGuide/Type 
SingleTiletrue/SingleTile 
Extension 
ProjectionCodeEPSG:26911/ProjectionCode 
   ProjectionDef+proj=utm +zone=11 +ellps=GRS80 +datum=NAD83
+units=m +no_defs/ProjectionDef
  ResourceIdLibrary://flexisample/map.MapDefinition/ResourceId 
  SelectionAsOverlaytrue/SelectionAsOverlay 
  SelectionColor0xFFA0/SelectionColor 
/Extension 
  /Map 
  Extension / 
/MapGroup 
  /MapSet

-- 
View this message in context: 
http://n2.nabble.com/Unable-to-view-Mark-tp4623889p4623895.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] RE: Unable to view-Mark

2010-02-23 Thread Mark Pendergraft

I'm guessing you need to download the trunk version of Fusion via SVN.
There have been a lot of improvements (in my opinion) since the release
of MGOS 2.1.

 

-Mark

 

From: padmini godavarthi [via OSGeo.org]
[mailto:ml-node+4623972-942910135-74...@n2.nabble.com] 
Sent: Tuesday, February 23, 2010 10:10 PM
To: Mark Pendergraft
Subject: Re: Unable to view-Mark

 

Hi mark, 
i have changed the ApplicationDefinition.xml as per your
suggestionsbut the problem is same... 


?xml version=1.0? 
ApplicationDefinition xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=
http://www.w3.org/2001/XMLSchema;
xsi:noNamespaceSchemaLocation=ApplicationDefinition-1.0.0.xsd 
 
TemplateUrlfusion/templates/mapguide/padmini/index.html/TemplateUrl 
  MapSet 
MapGroup id=map 
  Map 
TypeMapGuide/Type 
SingleTiletrue/SingleTile 
Extension 
 ProjectionCodeEPSG:26911/ProjectionCode 
ProjectionDef+proj=utm +zone=11 +ellps=GRS80 +datum=NAD83
+units=m +no_defs/ProjectionDef 
 
ResourceIdLibrary://flexisample1/map1.MapDefinition/ResourceId 
  SelectionAsOverlaytrue/SelectionAsOverlay 
  SelectionColor0xFFA0/SelectionColor 
/Extension 
  /Map 
  Extension / 
/MapGroup 
  /MapSet 
  WidgetSet 


my data is zoomed  out (almost as a single point) in the browser. 

After zooming In iam able to see the map...but the feature is not
selecting. 

In feature resource also  the coordinate system is 


UTM83-11 (UTM with NAD83 datum, Zone 11, Meter; Central Meridian 117d W)


In Map definition also 

UTM83-11 (UTM with NAD83 datum, Zone 11, Meter; Central Meridian 117d W)


In Application Definition also 


UTM83-11 (UTM with NAD83 datum, Zone 11, Meter; Central Meridian 117d W)


then what might be the problem??? 

 

plz see the screen shot once... 



View message @ 
http://n2.nabble.com/Unable-to-view-Mark-tp4623889p4623972.html 
To unsubscribe from Re: Unable to view-Mark, click here
 (link removed) 
pbG1hbi5jb218NDYyMzg5NXw0NzQwNDE0Njk= . 

 


 
-- 
View this message in context: 
http://n2.nabble.com/Unable-to-view-Mark-tp4623889p4624055.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] RE: Unable to view-Mark

2010-02-23 Thread Mark Pendergraft
The trunk version of Fusion is the most current version.  The developers
use a program called subversion (or svn) to check out parts of the
code so that they can change it and then check it back in.  The version
of Fusion that shipped with MGOS is the 2.0 beta version.  It was last
compiled in October of 2009.  Since Fusion 2.0 is still in beta, you are
going to want to get the latest version.  If you are having any sort of
problem with it, the first thing the developers will probably tell you
is to download the latest version to see if that fixes the issue.

See the post here on how to do it:
http://n2.nabble.com/how-to-download-the-latest-SVN-version-td3997693.ht
ml

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of padmini
godavarthi
Sent: Tuesday, February 23, 2010 11:05 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] RE: Unable to view-Mark


Hi
can u explian me what is this the trunk version of Fusion via SVN?and
how it
is related to my problem??


regards,
padmini G.
-- 
View this message in context:
http://n2.nabble.com/Unable-to-view-Mark-tp4623889p4624087.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] Re: Problem with Studio 2010 +Flexible layouts Error

2010-02-22 Thread Mark Pendergraft

The coordinate system issue can be resolved by setting the projection of your
map in the MapGroup element of the ApplicationDefinition.  See the link for
an example.
http://n2.nabble.com/Scale-and-Unit-problems-with-state-plane-coord-sys-td4499208.html#a4499208

If you are having issues with Fusion, you could download a copy of the trunk
using SVN, which is described here:
http://n2.nabble.com/how-to-download-the-latest-SVN-version-td3997693.html

And lastly, you could open up Fusion.js, scroll down to line 1196 and see if
you can figure out what is breaking the javascript.

Good luck, let us know what you come up with.

-Mark P.

-- 
View this message in context: 
http://n2.nabble.com/Problem-with-Studio-2010-Flexible-layouts-Error-tp4596619p4613936.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Should I give up?

2009-12-09 Thread Mark Pendergraft

Kenneth,
I attempted to add the NASA site
(http://wms.jpl.nasa.gov/wms.cgi?service=wmsversion-1.1.1) as a WMS and
yes, I was able to save the Feature Source by pressing YES on the error
dialog, and yes i'm unable create a layer with Raster geometry.  All this
using 2.1 and the Maestro Preview.
Thanks for your help.

-Mark P.




Kenneth Skovhede, GEOGRAF A/S wrote:
 
 I have commented on the issue created (or attempted to, since trac is 
 not responding):
 
 
 The many messages are reported in issue #1149.
 The dialog is actually a message like:
 Errors detected, save anyway?
 
 So, you can just press enter, and it should save just fine.
 
 The error message is a defect in MapGuide (issue #1061), which should 
 have been fixed in 2.1 release.
 
 
 The reason you are not seeing the the messagebox in the older version of 
 Maestro is because
 the resource validator was not implemented then. I recommend sticking to 
 the preview, as it
 has multiple bugfixes, and you can get around your current issue by 
 pressing .
 
 For your next issue, the featuresource is a WMS type, which means that
 the output is a raster type. For some reason the layer editor displays
 the vector layer editor. Since there is no vector data, you cannot 
 select a geometry column.
 
 I have no idea why the WMS featuresource would be interpreted as a 
 vector featuresource,
 but if the featuresource you are using is the nasa one, I can test it 
 and hopefully fix it in a few days.
 
 Regards, Kenneth Skovhede, GEOGRAF A/S
 
 
 
 Jason Birch skrev:
 Can you please file that as a bug against the Maestro component in the
 MapGuide Trac so that it can be easily addressed by Kenneth?  Please
 include details such as the WMS site you were connecting to and the
 error message received.

 I still heartily recommend using the current Maestro test build for
 those who aren't affected by this bug. The theming and expression
 editor enhancements alone make it more than worthwhile as long as
 there are no showstoppers for your use case.t

 On 2009-12-08, Neil_w  wrote:
   
 Installing the current version of Maestro solves the WMS connection
 problem.
 What an aggravation that was!

 I'm still not able to view a feature from the service though. None of
 the
 feature classes have any Geometry. Please note the screen capture again.
 Are
 you getting anything?

 http://screencast.com/t/OTcyMDA0Y

 --
 View this message in context:
 http://n2.nabble.com/Should-I-give-up-tp4128103p4133885.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
 
 
http://n2.nabble.com/file/n4141498/Maestro%2BLayer%2BError.png 
-- 
View this message in context: 
http://n2.nabble.com/Should-I-give-up-tp4128103p4141498.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Should I give up?

2009-12-08 Thread Mark Pendergraft

I can't speak for your install, but I was able to connect to the WMS provider
you used in your screencast in Maestro ver. 1.0.9.15910 with MGOS 2.1.  I
would uninstall the beta of Maestro and install the previous version and see
if that works.

-Mark P.


Neil_w wrote:
 
 I'm running Maestro 1.1.0.4358. I believe it is beta but it was highly
 touted by Jason Birch in one of his posts so I assumed it was stable.
 Should I go back to another version?
 
 The only other thing I can think of that might be causing problems is I
 downloaded an updated set of FDO providers from the Open Source website
 after installing Mapguide. I renamed the old FDO folder and added the
 updated folder to the Server folder.
 
 Perhaps all my troubles are due to a corrupt installation. That would
 certainly make life miserable for a new user.
 
 Can anyone verify whether I have a bad install or if it is the beta
 software?
 
 I have Map 2010 (Civil3D 2010).
 

-- 
View this message in context: 
http://n2.nabble.com/Should-I-give-up-tp4128103p4133772.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] MGOS 2.1 - One(1) good Two(2) bad

2009-12-08 Thread Mark Pendergraft

Neil,

I was unable to get WMS to work in Maestro.  I was able to get it to work in
Map Guide 2009, but only in the layer preview, not in the actual MGOS
viewer.  I have uninstalled MGOS and Maestro and I'm about to reinstall the
current versions to see if that helps.  I'll let you know.

Also, I also have Civil 3D, and I looked in my subscription account, and was
not able to find MapGuide Studio there.

-Mark P.



Neil_w wrote:
 
 Getting back on the Mapguide Studio question, I have not found any
 download options for the latest version in my subscription service, nor
 has my reseller found anything. Autodesk's website says it is only
 availalble to Enterprise subscribers. Could that be what you saw Dennis?
 
 There is a download link to an old 2006 preview release but I wouldn't be
 interested in that.
 
 

-- 
View this message in context: 
http://n2.nabble.com/MGOS-2-1-One-1-good-Two-2-bad-tp4114766p4136046.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Should I give up?

2009-12-07 Thread Mark Pendergraft

Neil,
Perhaps an explanation of your end goals is in order.  What do you aim to
achieve?  After all, AutoCAD Map and Civil 3D can connect to WMS, and Raster
Images.  If you are trying to display drawings with these layers in the
background, then you don't really need MapGuide.  If you need to create a
website with this information, then MGOS is the way to go.

-Mark P.


Kori Maleski wrote:
 
 

 I appreciate the encouragement but I have spent lots of time researching.
 That is why I am getting discouraged. For all the time I have invested I
 have made little progress. Without a step by step instuction guide for
 creating maps it is more a trial and error process to get anywhere, with
 long diversions to help forums seeking guidance when things don't wok.

 I looked at the Mapguide guide for developers link you posted. Without
 delving into it in detail it appears to be oriented to developing maps
 using
 programming, which I am not able to do. I am limited to Maestro or some
 other authoring software that does not require programming. That is why I
 was interested in Fusion but I don't yet understand whether it would help
 me
 author maps without programming. From one post it appeared that it could
 load DWG files without converting them. If I have to go through a
 conversion
 process to load a every DWG then Mapguide is probably not a good solution
 for us and I won't want to put a lot of time into it. Again I need
 guidance
 on this.

 As I mentioned, I was able to connect to a couple of WMS services but I
 could not figure out how to display any layers from them. Saving the
 resource resulted in errors. I didn't know what they mean which lead to
 another excursion to the forum. When I try to create a layer from the
 connected WMS, there is no geometry for them available, so nothing
 displays.

 We really could use a step by step guide for building maps, not just a
 sample map with no guide on what the various components are. It took me a
 while to figure out what the .ASP, .JSP. and .php layouts were. I had to
 figure out on my own how to use a Flexible layout and add a query widget.
 Again, no instruction whatsoever.

 If anyone can direct me to some step by step guides or tutorials it might
 get me back in the saddle.

 --

-- 
View this message in context: 
http://n2.nabble.com/Should-I-give-up-tp4128103p4128808.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Should I give up?

2009-12-07 Thread Mark Pendergraft

Neil,

What you are talking about is very doable, and much of it is fairly easy. 
You have an excellent resource at hand which i think you aren't using
though, and that is Map 3D.  Map 3D has help files to explain how to connect
to WMS and to Raster files.  Open a new drawing, and try connecting to both
types in Map and see if you can get them to work there.  Map also has help
files for all the connection types with a step-by-step guide.  The steps to
connect are generally the same.  If you are having problems connecting in
Map, then you will know something is up.

You CAN load multiple drawings using MapGuide Studio.  Another idea would be
to xref any desired drawings into a blank drawing, then bind and explode the
xrefs, then use the Export to SDF or Publish to MapGuide Feature.

I understand your frustation, when I first started out I was really confused
about how this was all supposed to work. And I too was wooed by a fancy
Autodesk presentation.  ;)  It's best to take it one step at a time.  And
the first step I would take is making sure your MapGuide installation is
running correctly by using it to view the sample data.  Then I would focus
on connecting to WMS and Raster in Map 3D.  Then worry about exporting
drawings to your map.

-Mark P.


Neil_w wrote:
 
 Mark,
 
 The objective is to serve GIS data to in-house staff who either do not
 have Map or who do not know how to use it. I would like to mix in-house
 data with published resources and services. Some of our data is in DWG
 form (contour maps, etc.). Also I would like to overlay project drawings
 onto WMS maps if possible. I can do all of this in ArcGIS and Map but I
 want to make those maps available to staff rather than having to build
 their maps then print or email them in some digital form.
 
 This endeavor was inspired by a presentation I attended which touted the
 ease of distributing GIS via MGOS at minimal cost. Having a distributed
 GIS was not a goal set by the company so there is no budget for it. I
 undertook this task with the hope that we could get a prototype system
 started and evolve it once the company saw it's benefit. Until I get it to
 that stage there will be little if any investment by the company.
 
 I'll be digging into the other posts when time permits.
 
 Thanks
 

-- 
View this message in context: 
http://n2.nabble.com/Should-I-give-up-tp4128103p4129788.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] tooltip in fusion

2009-03-24 Thread Mark Pendergraft
What version of Fusion are you using?

 

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of susan
Daniel
Sent: Monday, March 23, 2009 10:14 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] tooltip in fusion

 

hi.
   thank u jackie for ur replay. It is still not working.but it is
displaying in weblayout.any idea?

thanx regards

susan

On Tue, Mar 24, 2009 at 5:19 AM, Jackie Ng jumpinjac...@gmail.com
wrote:


The tooltip can be any HTML content, so it should work.
brbrPlease note that line breaks are singular tags, (ie lt;brgt;
or lt;br/gt;, not lt;brgt;lt;/brgt; )
brbr- Jackie
brbrblockquote class=quote light-black dark-border-colordiv
class=quote light-border-color
div class=quote-author style=font-weight: bold;SusanDaniel
wrote:/div
div class=quote-message shrinkable-quotehi jackie..
brnbsp;actually i dn't get ur question .In the layer definition i
gave like this
brlt;brgt;ctrl+click to open windowlt;/brgt; .Is it right?
brbr2009/3/23 Jackie Ng lt;jumpinjac...@gmail.com
mailto:lt%3bjumpinjac...@gmail.com gt;
brbrgt;
brgt; I mean what is the value you have for your tooltip?
brgt;
brgt; - Jackie
brgt;
brgt;
brgt; SusanDaniel wrote:
brgt; gt;
brgt; gt; hi...
brgt; gt; nbsp; nbsp;my tooltip is a text.And i am using mapguide
2.0.1 and maestro 1.0.9..
brgt; gt;
brgt; gt; On Mon, Mar 23, 2009 at 10:46 AM, Jackie Ng
lt;jumpinjac...@gmail.com mailto:lt%3bjumpinjac...@gmail.com gt;
brgt; gt; wrote:
brgt; gt;
brgt; gt;gt;
brgt; gt;gt; Hi Susan,
brgt; gt;gt;
brgt; gt;gt; What does your tooltip look like and what version of
MapGuide are you
brgt; gt;gt; currently using?
brgt; gt;gt;
brgt; gt;gt; - Jackie
brgt; gt;gt;
brgt; gt;gt;
brgt; gt;gt; SusanDaniel wrote:
brgt; gt;gt; gt;
brgt; gt;gt; gt; hi all
brgt; gt;gt; gt; nbsp; nbsp; nbsp; nbsp; my platform is
mapguide maestro .my problem is that i can't
brgt; gt;gt; gt; display
brgt; gt;gt; gt; the tool tip in fusion .Can i display it in
fusion ?Any one having any
brgt; gt;gt; gt; idea
brgt; gt;gt; gt; ?plss help me..
brgt; gt;gt; gt;
brgt; gt;gt; gt; --
brgt; gt;gt; gt; thanksregards
brgt; gt;gt; gt; nbsp;susan
brgt; gt;gt; gt;
brgt; gt;gt; gt; ___
brgt; gt;gt; gt; mapguide-users mailing list
brgt; gt;gt; gt; mapguide-users@lists.osgeo.org
brgt; gt;gt; gt; a
href=http://lists.osgeo.org/mailman/listinfo/mapguide-users;
target=_top
rel=nofollowhttp://lists.osgeo.org/mailman/listinfo/mapguide-users/a
brgt; gt;gt; gt;
brgt; gt;gt; gt;
brgt; gt;gt;
brgt; gt;gt; --
brgt; gt;gt; View this message in context:
brgt; gt;gt; a
href=http://n2.nabble.com/tooltip-in-fusion-tp2519517p2519530.html;
target=_top
rel=nofollowhttp://n2.nabble.com/tooltip-in-fusion-tp2519517p2519530.
html/abrgt; gt;gt; Sent from the MapGuide Users mailing list
archive at Nabble.com.
brgt; gt;gt;
brgt; gt;gt; ___
brgt; gt;gt; mapguide-users mailing list
brgt; gt;gt; mapguide-users@lists.osgeo.org
brgt; gt;gt; a
href=http://lists.osgeo.org/mailman/listinfo/mapguide-users;
target=_top
rel=nofollowhttp://lists.osgeo.org/mailman/listinfo/mapguide-users/a
brgt; gt;gt;
brgt; gt;
brgt; gt;
brgt; gt;
brgt; gt; --
brgt; gt; thanksregards
brgt; gt; nbsp;susan
brgt; gt;
brgt; gt; ___
brgt; gt; mapguide-users mailing list
brgt; gt; mapguide-users@lists.osgeo.org
brgt; gt; a
href=http://lists.osgeo.org/mailman/listinfo/mapguide-users;
target=_top
rel=nofollowhttp://lists.osgeo.org/mailman/listinfo/mapguide-users/a
brgt; gt;
brgt; gt;
brgt;
brgt; --
brgt; View this message in context:
brgt; a
href=http://n2.nabble.com/tooltip-in-fusion-tp2519517p2519675.html;
target=_top
rel=nofollowhttp://n2.nabble.com/tooltip-in-fusion-tp2519517p2519675.
html/abrgt; Sent from the MapGuide Users mailing list archive at
Nabble.com.
brgt;
brgt; ___
brgt; mapguide-users mailing list
brgt; mapguide-users@lists.osgeo.org
brgt; a
href=http://lists.osgeo.org/mailman/listinfo/mapguide-users;
target=_top
rel=nofollowhttp://lists.osgeo.org/mailman/listinfo/mapguide-users/a
brgt;
brbrbrbr--
brthanksregards
brnbsp;susan
brbr___
brmapguide-users mailing list
brmapguide-users@lists.osgeo.org
bra href=http://lists.osgeo.org/mailman/listinfo/mapguide-users;
target=_top
rel=nofollowhttp://lists.osgeo.org/mailman/listinfo/mapguide-users/a
/div
/div/blockquote

--
View this message in context:
http://n2.nabble.com/tooltip-in-fusion-tp2519517p2524050.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




-- 
thanksregards
 susan

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org

RE: [mapguide-users] window open

2009-03-03 Thread Mark Pendergraft
How are the points uniquely identified?  Could you send a copy of your
SDF file, or write out the schema for your feature?
-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
Sent: Monday, March 02, 2009 8:02 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] window open


hi all.
thank u mark u r absolutely correct a new window opened.now i have
to
get the  info corresponds to each point in the layer from the database.I
connect it with database but while clicking on each point the same
information is displaying.

Anybody having any idea regarding this...
plss help me

thanks and regards
dyuti

Mark Pendergraft wrote:
 
 The link feature points to a local path, so your url needs to be
local.
 Just to illustrate that it works, try a full link like this 
 http://mapguide.osgeo.org/ click here 
 
 I think in the end, your link will be something like this
 ../../open.php
 
 -Mark
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
 Sent: Wednesday, February 25, 2009 3:00 AM
 To: mapguide-users@lists.osgeo.org
 Subject: RE: [mapguide-users] window open
 
 
 hi ..
 thank u mark..
  i think this will be easy for me rather than the previous one.I tried
 that
 but nothing happens.Can u please give more info about that?Shall i
make
 any
 changes in www/fusion/widget/maptip.js .
 
 Mark Pendergraft wrote:
 
 Somebody please correct me if I'm wrong, but I just downloaded
Maestro
 and it appears that you can provide a link to display in the maptip.
 
 Open the layer in Maestro, and on the right you will see a box named
 Link.  Use an expression similar to this one:
 Concat(
Concat('
 http://www5.kingcounty.gov/kcgisreports/property_report.aspx?PIN='
 ,  PIN),  ' View Property Report for Parcel' 
 )
 
 To create a link in the maptip.  This expression strings together a
 url
 with a variable PIN which is the Parcel Identification Number.
 
 -Mark
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
 Sent: Monday, February 23, 2009 9:22 PM
 To: mapguide-users@lists.osgeo.org
 Subject: RE: [mapguide-users] window open
 
 
 hi
 thank u mark.
 i chose this route because i'm using mapguide maestro.can i use
popup
 maptip with a link to window in maestro? someone told me it can be
 used
 
 with studio only.
 
 thanx regards
 dyuti
 
 Mark Pendergraft wrote:
 
 What you have looks pretty good, except that you will need to create
 a
 box that covers your point for the mgPolygon.
 
 First you need to create a MgCoordinateCollection to populate a
 MgLinearRing, then you use
 $geometryFactory-CreatePolygon(mgLinearRing,
 nothing);
 
 Take a look at this function.  It uses MgGeometryFactory, and a
 MgPoint
 to create a box that surrounds the point supplied.  The function
 returns
 a MgPolygon
 
 Private Function GetBoundingBox(ByVal geomFact As
 MgGeometryFactory,
 ByVal point As MgPoint) As MgPolygon
 
 Dim pgon As MgPolygon
 Dim coordColl As New MgCoordinateCollection

 coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 - 5, point.Coordinate.GetY + 5))

 coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 + 5, point.Coordinate.GetY + 5))

 coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 + 5, point.Coordinate.GetY - 5))

 coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 - 5, point.Coordinate.GetY - 5))

 coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 - 5, point.Coordinate.GetY + 5))
 
 Dim linRing As MgLinearRing =
 geomFact.CreateLinearRing(coordColl)
 pgon = geomFact.CreatePolygon(linRing, Nothing)
 
 Return pgon
 
 End Function
 
 You can create a MgPoint by doing the following:
 
 Dim geomFact As New MgGeometryFactory
 Dim coord As MgCoordinate =
 geomFact.CreateCoordinateXY(X,
 Y)
 
 ' create the actual mggeometry
 Dim point As MgPoint = geomFact.CreatePoint(coord)
 
 
 The LayerResourceId  schema can be obtained like so:
 
 ' get the layer to search
 Dim layer as MgLayer =
 Map.GetLayers().GetItem(your_layer_name_here)
 
 ' Get the layer resource identifier
 Dim LayerResId As New
 MgResourceIdentifier(layer.GetFeatureSourceId())
 
  ' get the layer default schema
  Dim layerSchema as string =
 layer.GetFeatureClassName
 
 
 As a side note.  Everytime you assign a value to the
MgFeatureReader,
 you will need to close it immediately afterwards.  This has screwed
 me
 a
 few times.
 
 After you get the point, you can use the MgFeatureReader to
 getString(),
 or getInteger(), etc

RE: [mapguide-users] window open

2009-02-25 Thread Mark Pendergraft
The link feature points to a local path, so your url needs to be local.
Just to illustrate that it works, try a full link like this a
href='http://mapguide.osgeo.org/'click here/a

I think in the end, your link will be something like this
../../open.php

-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
Sent: Wednesday, February 25, 2009 3:00 AM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] window open


hi ..
thank u mark..
 i think this will be easy for me rather than the previous one.I tried
that
but nothing happens.Can u please give more info about that?Shall i make
any
changes in www/fusion/widget/maptip.js .

Mark Pendergraft wrote:
 
 Somebody please correct me if I'm wrong, but I just downloaded Maestro
 and it appears that you can provide a link to display in the maptip.
 
 Open the layer in Maestro, and on the right you will see a box named
 Link.  Use an expression similar to this one:
 Concat(
Concat('
 http://www5.kingcounty.gov/kcgisreports/property_report.aspx?PIN='
,  PIN),  ' View Property Report for Parcel' 
 )
 
 To create a link in the maptip.  This expression strings together a
url
 with a variable PIN which is the Parcel Identification Number.
 
 -Mark
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
 Sent: Monday, February 23, 2009 9:22 PM
 To: mapguide-users@lists.osgeo.org
 Subject: RE: [mapguide-users] window open
 
 
 hi
 thank u mark.
 i chose this route because i'm using mapguide maestro.can i use popup
 maptip with a link to window in maestro? someone told me it can be
used
 
 with studio only.
 
 thanx regards
 dyuti
 
 Mark Pendergraft wrote:
 
 What you have looks pretty good, except that you will need to create
a
 box that covers your point for the mgPolygon.
 
 First you need to create a MgCoordinateCollection to populate a
 MgLinearRing, then you use
 $geometryFactory-CreatePolygon(mgLinearRing,
 nothing);
 
 Take a look at this function.  It uses MgGeometryFactory, and a
 MgPoint
 to create a box that surrounds the point supplied.  The function
 returns
 a MgPolygon
 
 Private Function GetBoundingBox(ByVal geomFact As
 MgGeometryFactory,
 ByVal point As MgPoint) As MgPolygon
 
 Dim pgon As MgPolygon
 Dim coordColl As New MgCoordinateCollection

 coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 - 5, point.Coordinate.GetY + 5))

 coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 + 5, point.Coordinate.GetY + 5))

 coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 + 5, point.Coordinate.GetY - 5))

 coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 - 5, point.Coordinate.GetY - 5))

 coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 - 5, point.Coordinate.GetY + 5))
 
 Dim linRing As MgLinearRing =
 geomFact.CreateLinearRing(coordColl)
 pgon = geomFact.CreatePolygon(linRing, Nothing)
 
 Return pgon
 
 End Function
 
 You can create a MgPoint by doing the following:
 
 Dim geomFact As New MgGeometryFactory
 Dim coord As MgCoordinate =
geomFact.CreateCoordinateXY(X,
 Y)
 
 ' create the actual mggeometry
 Dim point As MgPoint = geomFact.CreatePoint(coord)
 
 
 The LayerResourceId  schema can be obtained like so:
 
 ' get the layer to search
 Dim layer as MgLayer =
 Map.GetLayers().GetItem(your_layer_name_here)
 
 ' Get the layer resource identifier
 Dim LayerResId As New
 MgResourceIdentifier(layer.GetFeatureSourceId())
 
   ' get the layer default schema
   Dim layerSchema as string =
 layer.GetFeatureClassName
 
 
 As a side note.  Everytime you assign a value to the MgFeatureReader,
 you will need to close it immediately afterwards.  This has screwed
me
 a
 few times.
 
 After you get the point, you can use the MgFeatureReader to
 getString(),
 or getInteger(), etc to obtain the values that you need to pass
to
 your pop-up window.
 
 Out of curiosity, why did you choose to go this route instead of the
 pop-up MapTip with a link to your new window?  The only reason I have
 code like this in my map is so I can zoom to a point returned from
 Google Maps when the user enters an address into a search field.  I
 much
 prefer the simplicity of letting MapGuide do the grunt work.  ;)
 -Mark
 
 
 
 
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
 Sent: Thursday, February 19, 2009 11:03 PM
 To: mapguide-users@lists.osgeo.org
 Subject: RE: [mapguide-users] window open
 
 
 hi
 
   thank u very much mark..
  But i've still doubts

RE: [mapguide-users] window open

2009-02-24 Thread Mark Pendergraft
Somebody please correct me if I'm wrong, but I just downloaded Maestro
and it appears that you can provide a link to display in the maptip.

Open the layer in Maestro, and on the right you will see a box named
Link.  Use an expression similar to this one:
Concat(
   Concat('a
href=http://www5.kingcounty.gov/kcgisreports/property_report.aspx?PIN='
,  PIN),  'View Property Report for Parcel' 
)

To create a link in the maptip.  This expression strings together a url
with a variable PIN which is the Parcel Identification Number.

-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
Sent: Monday, February 23, 2009 9:22 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] window open


hi
thank u mark.
i chose this route because i'm using mapguide maestro.can i use popup
maptip with a link to window in maestro? someone told me it can be used

with studio only.

thanx regards
dyuti

Mark Pendergraft wrote:
 
 What you have looks pretty good, except that you will need to create a
 box that covers your point for the mgPolygon.
 
 First you need to create a MgCoordinateCollection to populate a
 MgLinearRing, then you use
$geometryFactory-CreatePolygon(mgLinearRing,
 nothing);
 
 Take a look at this function.  It uses MgGeometryFactory, and a
MgPoint
 to create a box that surrounds the point supplied.  The function
returns
 a MgPolygon
 
 Private Function GetBoundingBox(ByVal geomFact As
MgGeometryFactory,
 ByVal point As MgPoint) As MgPolygon
 
 Dim pgon As MgPolygon
 Dim coordColl As New MgCoordinateCollection

coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 - 5, point.Coordinate.GetY + 5))

coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 + 5, point.Coordinate.GetY + 5))

coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 + 5, point.Coordinate.GetY - 5))

coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 - 5, point.Coordinate.GetY - 5))

coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
 - 5, point.Coordinate.GetY + 5))
 
 Dim linRing As MgLinearRing =
 geomFact.CreateLinearRing(coordColl)
 pgon = geomFact.CreatePolygon(linRing, Nothing)
 
 Return pgon
 
 End Function
 
 You can create a MgPoint by doing the following:
 
 Dim geomFact As New MgGeometryFactory
 Dim coord As MgCoordinate = geomFact.CreateCoordinateXY(X,
 Y)
 
 ' create the actual mggeometry
 Dim point As MgPoint = geomFact.CreatePoint(coord)
 
 
 The LayerResourceId  schema can be obtained like so:
 
 ' get the layer to search
 Dim layer as MgLayer =
 Map.GetLayers().GetItem(your_layer_name_here)
 
 ' Get the layer resource identifier
 Dim LayerResId As New
 MgResourceIdentifier(layer.GetFeatureSourceId())
 
' get the layer default schema
Dim layerSchema as string =
 layer.GetFeatureClassName
 
 
 As a side note.  Everytime you assign a value to the MgFeatureReader,
 you will need to close it immediately afterwards.  This has screwed me
a
 few times.
 
 After you get the point, you can use the MgFeatureReader to
getString(),
 or getInteger(), etc to obtain the values that you need to pass to
 your pop-up window.
 
 Out of curiosity, why did you choose to go this route instead of the
 pop-up MapTip with a link to your new window?  The only reason I have
 code like this in my map is so I can zoom to a point returned from
 Google Maps when the user enters an address into a search field.  I
much
 prefer the simplicity of letting MapGuide do the grunt work.  ;)
 -Mark
 
 
 
 
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
 Sent: Thursday, February 19, 2009 11:03 PM
 To: mapguide-users@lists.osgeo.org
 Subject: RE: [mapguide-users] window open
 
 
 hi
 
   thank u very much mark..
  But i've still doubts in this .shall i use
 
 $geometryFactory = new MgGeometryFactory();
 $mgPolygon = $geometryFactory-Create mgPolygon($gp.x,$gp.y);  
 
 to create mg polygons from the N/E coordinates.
 
 Instead of geom u have used in vb coding shall i use this
 $mgPolygon.Then
 for getting  LayerResourceID  Schema shall i use coding or can i
 directly
 give that values..
 
 
 Thanks and regards
 
 dyuti
 
 
 
 Mark Pendergraft wrote:
 
 In VB:
 
 Dim geom As MgGeometry
 Dim query As New MgFeatureQueryOptions()
 query.SetSpatialFilter(Geometry, geom,
 MgFeatureSpatialOperations.Intersects)
 Dim fr as MgFeatureReader = FeatService.SelectFeatures(LayerResId,
 Default:Temp, query)
 
 Note that geom is a mggeometry object used to query the layer.  It
 could
 be a point, polygon, etc.
 LayerResId refers

RE: [mapguide-users] window open

2009-02-20 Thread Mark Pendergraft
What you have looks pretty good, except that you will need to create a
box that covers your point for the mgPolygon.

First you need to create a MgCoordinateCollection to populate a
MgLinearRing, then you use $geometryFactory-CreatePolygon(mgLinearRing,
nothing);

Take a look at this function.  It uses MgGeometryFactory, and a MgPoint
to create a box that surrounds the point supplied.  The function returns
a MgPolygon

Private Function GetBoundingBox(ByVal geomFact As MgGeometryFactory,
ByVal point As MgPoint) As MgPolygon

Dim pgon As MgPolygon
Dim coordColl As New MgCoordinateCollection
coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
- 5, point.Coordinate.GetY + 5))
coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
+ 5, point.Coordinate.GetY + 5))
coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
+ 5, point.Coordinate.GetY - 5))
coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
- 5, point.Coordinate.GetY - 5))
coordColl.Add(geomFact.CreateCoordinateXY(point.Coordinate.GetX
- 5, point.Coordinate.GetY + 5))

Dim linRing As MgLinearRing =
geomFact.CreateLinearRing(coordColl)
pgon = geomFact.CreatePolygon(linRing, Nothing)

Return pgon

End Function

You can create a MgPoint by doing the following:

Dim geomFact As New MgGeometryFactory
Dim coord As MgCoordinate = geomFact.CreateCoordinateXY(X,
Y)

' create the actual mggeometry
Dim point As MgPoint = geomFact.CreatePoint(coord)


The LayerResourceId  schema can be obtained like so:

' get the layer to search
Dim layer as MgLayer =
Map.GetLayers().GetItem(your_layer_name_here)

' Get the layer resource identifier
Dim LayerResId As New
MgResourceIdentifier(layer.GetFeatureSourceId())

 ' get the layer default schema
 Dim layerSchema as string =
layer.GetFeatureClassName


As a side note.  Everytime you assign a value to the MgFeatureReader,
you will need to close it immediately afterwards.  This has screwed me a
few times.

After you get the point, you can use the MgFeatureReader to getString(),
or getInteger(), etc to obtain the values that you need to pass to
your pop-up window.

Out of curiosity, why did you choose to go this route instead of the
pop-up MapTip with a link to your new window?  The only reason I have
code like this in my map is so I can zoom to a point returned from
Google Maps when the user enters an address into a search field.  I much
prefer the simplicity of letting MapGuide do the grunt work.  ;)
-Mark





-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
Sent: Thursday, February 19, 2009 11:03 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] window open


hi

  thank u very much mark..
 But i've still doubts in this .shall i use

$geometryFactory = new MgGeometryFactory();
$mgPolygon = $geometryFactory-Create mgPolygon($gp.x,$gp.y);  

to create mg polygons from the N/E coordinates.

Instead of geom u have used in vb coding shall i use this
$mgPolygon.Then
for getting  LayerResourceID  Schema shall i use coding or can i
directly
give that values..


Thanks and regards

dyuti



Mark Pendergraft wrote:
 
 In VB:
 
 Dim geom As MgGeometry
 Dim query As New MgFeatureQueryOptions()
 query.SetSpatialFilter(Geometry, geom,
 MgFeatureSpatialOperations.Intersects)
 Dim fr as MgFeatureReader = FeatService.SelectFeatures(LayerResId,
 Default:Temp, query)
 
 Note that geom is a mggeometry object used to query the layer.  It
could
 be a point, polygon, etc.
 LayerResId refers to the MgResourceIdentifier for a specified layer
 Default:Temp is the layer's schema name.
 
 In your case, you will probably want to create a MgPolygon from the
 point the user clicked.  Then you will use the layer containing the
 points you want to display info about to get your LayerResId and
default
 schema.
 
 -Mark
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
 Sent: Wednesday, February 18, 2009 11:32 PM
 To: mapguide-users@lists.osgeo.org
 Subject: Re: [mapguide-users] window open
 
 
 hi all.
 any one plss tell me how to generate spatial filter. 
 any suggestions will be appreciated
 
 thanks and Regards
 
 dyuti
 
 DYUTI wrote:
 
 Thank u mark i'll try this
 
 regards
 dyuti
 
 Mark Pendergraft wrote:
 
 Here are 2 ways to accomplish what you are trying to do:
 
 Option 1:
 You have a widget which inherits Fusion.Tool.Canvas.
 Use the mousedown even to get the coordinates clicked
 Then use 
 var p = this.getMap().getEventPosition(e); to get the event
 position
 var gp = this.getMap().pixToGeo

RE: [mapguide-users] window open

2009-02-19 Thread Mark Pendergraft
In VB:

Dim geom As MgGeometry
Dim query As New MgFeatureQueryOptions()
query.SetSpatialFilter(Geometry, geom,
MgFeatureSpatialOperations.Intersects)
Dim fr as MgFeatureReader = FeatService.SelectFeatures(LayerResId,
Default:Temp, query)

Note that geom is a mggeometry object used to query the layer.  It could
be a point, polygon, etc.
LayerResId refers to the MgResourceIdentifier for a specified layer
Default:Temp is the layer's schema name.

In your case, you will probably want to create a MgPolygon from the
point the user clicked.  Then you will use the layer containing the
points you want to display info about to get your LayerResId and default
schema.

-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
Sent: Wednesday, February 18, 2009 11:32 PM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] window open


hi all.
any one plss tell me how to generate spatial filter. 
any suggestions will be appreciated

thanks and Regards

dyuti

DYUTI wrote:
 
 Thank u mark i'll try this
 
 regards
 dyuti
 
 Mark Pendergraft wrote:
 
 Here are 2 ways to accomplish what you are trying to do:
 
 Option 1:
 You have a widget which inherits Fusion.Tool.Canvas.
 Use the mousedown even to get the coordinates clicked
 Then use 
 var p = this.getMap().getEventPosition(e); to get the event
position
 var gp = this.getMap().pixToGeo(p.x, p.y); to get the N/E at that
 position
 
 Then send your northing and easting to a PHP page and use it to
generate
 a spatial filter (you may want to create a mgPolygon from your N/E as
 your spatialfilter in order to make sure you cover the point)
 
 Return the selected point, and send it to another page to create your
pop
 up window populated with the relevant information.
 
 Option 2:
 Use the URL feature in studio to show a link.  Use expressions to
pass
 the points information into the link, and have the link directed to a
 custom page which will populate itself with the relevant data.
 
 
 Seeing as you are new to MapGuide, I would highly recommend option 2,
as
 it requires very little coding and is very easy and user friendly.  I
 have attached a photo of what the URL maptip looks like in my map.
In
 the picture, the user hovers there mouse over a parcel and the maptip
 pops up with a link to the parcel's page on the county's website.
All I
 have to do is pass the parcel number in the link, which is all done
by
 studio.
 
  http://n2.nabble.com/file/n2315851/Untitled.jpg 
 
 -Mark 
 
 
 DYUTI wrote:
 
   hi..all...
 to open a new window while clicking on the points
displayed
 on the map where i've to write the coding...In which file i've to
make
 changes..what change i've to make...plss help me... 
 
 
 
 
 thanksregards
 dyuti
 
 
 
 
 

-- 
View this message in context:
http://n2.nabble.com/window-open-tp2295629p2351717.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] Fusion 2.0 domObj

2009-02-19 Thread Mark Pendergraft
I have a widget which I'm trying to port to the 2.0 beta and in the past
I used this.domObj.appendChild() to add an input box to the widget,
but now that code breaks saying that the domObj is null.  I noticed in
the EditableScale widget that an if (this.domObj) statement is used to
see if the domObj is valid.  My question is:  Do I need to wait for a
certain event to happen before creating this widget?  Right now my code
never adds the input box, but the EditableScale code does.

 

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


RE: [mapguide-users] Fusion 2.0 domObj

2009-02-19 Thread Mark Pendergraft
I had caught on about some of the other changes, but that if
(this.domObj) statement in EditableScale.js threw me for a loop!
Yes, the input is appended to the toolbar now.  Thanks a bunch.

-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Paul
Spencer
Sent: Thursday, February 19, 2009 10:10 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Fusion 2.0 domObj

Ok, I'll try to highlight the major things for upgrading widgets ...

Things that have changed in Widget sub-classes:

* remove inheritance from Fusion.Tool.ButtonBase and add uiClass:  
Jx.Button
* remove inheritance from Fusion.Tool.MenuBase and add uiClass: Jx.Menu
* add setUiObject method for widgets that need to add stuff to a menu  
(see ViewOptions)
* change initialize to initializeWidget
* add isExclusive: true for widgets that are 'modal' on the map
* change execute method to activate

The key change that you need to understand, Mark, is the one about  
setUiObject.  Due to an architectural change in how widgets are  
constructed, widgets typically do not have a domObj any more.  What  
they do have is a uiObj which is some representation of the widget in  
the user interface.  For reasons that escape me right now, the uiObj  
is not available when the widget is created so I added a setUiObject  
method to handle the association of a uiObj with a widget.  The  
particular uiObj that is created for any given widget is controlled by  
its uiClass member (which is null by default).

When a new widget is created, if it has a uiClass set then the  
framework creates a new instance of the uiClass and gives it to the  
widget via the setUiObject.  If no uiClass is specified then element  
from the dom with the id that causes the widget to be created is  
passed (i.e. a reference to a div).

The base Widget class provides a default implementation of setUiObject  
that does the grunt work of making buttons, menus etc work properly,  
especially if the widget is considered modal on the map.  For widgets  
that are not using a uiClass (which would be your case), you will need  
to add a setUiObject method to your widget to handle inserting your ui  
into what was previously the domObj.

I believe the code in initializeWidget that tests if domObj is valid  
is never used now and it is probably there by mistake.

You should be able to copy the setUiObject method from EditableScale  
into your widget and replace the appendChild calls to do the  
appropriate thing.

Hope this helps

Paul

On 19-Feb-09, at 11:55 AM, Mark Pendergraft wrote:

 I have a widget which I'm trying to port to the 2.0 beta and in the  
 past I used this.domObj.appendChild() to add an input box to the  
 widget, but now that code breaks saying that the domObj is null.  I  
 noticed in the EditableScale widget that an if (this.domObj)  
 statement is used to see if the domObj is valid.  My question is:   
 Do I need to wait for a certain event to happen before creating this  
 widget?  Right now my code never adds the input box, but the  
 EditableScale code does.

 ___
 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] Fusion 2.0 Beta Notes

2009-02-17 Thread Mark Pendergraft
Paul,
I have been experimenting with both the MapGuide standard template and
my own.
Apparently I had a coordinate system issue in my map that I was testing
(changed it and forgot to change it back), which explains the negative X
value.  Although my map is still reporting in meters despite being in
feet.
Still at a loss as to the other issues though.
-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Paul
Spencer
Sent: Tuesday, February 17, 2009 4:53 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Fusion 2.0 Beta Notes

Thanks for the feedback Mark, we'll try to take a look at these  
issues.  Which template are you using, or is it one that you have  
created?

Paul

On 16-Feb-09, at 9:17 PM, Mark Pendergraft wrote:

 I'm trying to implement Google Maps into my Fusion application using  
 the 2.0 Beta.  I'm having a bit of trouble.  Right now I'm trying to  
 load the Sheboygan map and the google map in the same MapGroup and  
 my program has continuous errors (which seem to point to the  
 maptip).  I also have to disable the OverviewMap when I load the  
 google map because it crashes when it loads.
 Can anyone provide some instructions or a brief overview on how we  
 should be incorporating MapGuide and Google Maps into the same map?

 Also, I've noticed a few other bugs in 2.0:
 The CursorPosition widget does not show up in default layout unless  
 the widget is added twice to the Statusbar container.  It would  
 appear that the second element in the statusbar container is  
 actually overlapping the first element.  So the element is there,  
 but you can't see it because the second element in the container is  
 on top of it.   This happens with all Splitterbar controls added to  
 the layout.

 Neither Tooltips nor the MapTip appear to work.

 The Coordinates in the CursorPosition widget appear to be  
 incorrect.  The X value is always negative (on the Sheboygan example  
 and on my own map which is in Washington State Plane Coordinate  
 System (HPGN) North Zone US Foot).  A negative X value in a  
 Washington state projection would indicate a position somewhere in  
 the ocean.

 Another issue I've noticed with the CursorPosition widget is that it  
 always seems to report in meters despite my map being in Feet.  The  
 widget reports in my maps units (feet), but appends a 'm' on the end  
 of the X and Y.

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

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


[mapguide-users] Fusion 2.0 Beta Notes

2009-02-16 Thread Mark Pendergraft
I'm trying to implement Google Maps into my Fusion application using the
2.0 Beta.  I'm having a bit of trouble.  Right now I'm trying to load
the Sheboygan map and the google map in the same MapGroup and my program
has continuous errors (which seem to point to the maptip).  I also have
to disable the OverviewMap when I load the google map because it crashes
when it loads.

Can anyone provide some instructions or a brief overview on how we
should be incorporating MapGuide and Google Maps into the same map?

 

Also, I've noticed a few other bugs in 2.0:

The CursorPosition widget does not show up in default layout unless the
widget is added twice to the Statusbar container.  It would appear that
the second element in the statusbar container is actually overlapping
the first element.  So the element is there, but you can't see it
because the second element in the container is on top of it.   This
happens with all Splitterbar controls added to the layout.

 

Neither Tooltips nor the MapTip appear to work.

 

The Coordinates in the CursorPosition widget appear to be incorrect.
The X value is always negative (on the Sheboygan example and on my own
map which is in Washington State Plane Coordinate System (HPGN) North
Zone US Foot).  A negative X value in a Washington state projection
would indicate a position somewhere in the ocean.

 

Another issue I've noticed with the CursorPosition widget is that it
always seems to report in meters despite my map being in Feet.  The
widget reports in my maps units (feet), but appends a 'm' on the end of
the X and Y.

 

Thanks

-Mark P.s

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


Re: [mapguide-users] window open

2009-02-12 Thread Mark Pendergraft

Here are 2 ways to accomplish what you are trying to do:

Option 1:
You have a widget which inherits Fusion.Tool.Canvas.
Use the mousedown even to get the coordinates clicked
Then use 
var p = this.getMap().getEventPosition(e); to get the event position
var gp = this.getMap().pixToGeo(p.x, p.y); to get the N/E at that position

Then send your northing and easting to a PHP page and use it to generate a
spatial filter (you may want to create a mgPolygon from your N/E as your
spatialfilter in order to make sure you cover the point)

Return the selected point, and send it to another page to create your pop up
window populated with the relevant information.

Option 2:
Use the URL feature in studio to show a link.  Use expressions to pass the
points information into the link, and have the link directed to a custom
page which will populate itself with the relevant data.


Seeing as you are new to MapGuide, I would highly recommend option 2, as it
requires very little coding and is very easy and user friendly.  I have
attached a photo of what the URL maptip looks like in my map.  In the
picture, the user hovers there mouse over a parcel and the maptip pops up
with a link to the parcel's page on the county's website.  All I have to do
is pass the parcel number in the link, which is all done by studio.

http://n2.nabble.com/file/n2315851/Untitled.jpg 

-Mark 


DYUTI wrote:
 
   hi..all...
 to open a new window while clicking on the points displayed on
 the map where i've to write the coding...In which file i've to make
 changes..what change i've to make...plss help me... 
 
 
 
 
 thanksregards
 dyuti
 

-- 
View this message in context: 
http://n2.nabble.com/window-open-tp2295629p2315851.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


RE: [mapguide-users] Fusion javascript (phpviewersample)

2009-02-12 Thread Mark Pendergraft
The beta is out already.  It hasn't been officially announced, but you can 
download it from here:
http://download.osgeo.org/fusion/

-Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Franco Caloni
Sent: Thursday, February 12, 2009 10:02 AM
To: 'MapGuide Users Mail List'
Subject: R: [mapguide-users] Fusion javascript (phpviewersample)

Do you know when 2.0 will be ready? 


-Messaggio originale-
Da: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] Per conto di Jason Birch
Inviato: giovedì 12 febbraio 2009 2.23
A: MapGuide Users Mail List
Oggetto: RE: [mapguide-users] Fusion javascript (phpviewersample)

I should mention that Fusion 2.0 has the potential to halve (or better) the
number and size of requests that your server has to handle, AND improve
perceived performance.  It does this by using things like CSS Sprites,
moving to MapGuide's JSON content type responses, reducing the size of some
third-party libraries, modifying the way that selection is handled, and
other neat tricks.  I'm looking forward to Fusion 2.0 a lot.

Jason


___
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] New Tab Like Properties and Layers

2009-02-12 Thread Mark Pendergraft
I'm aware that this may not be an option for you, but adding a new tab
in Fusion is extremely easy.  The fusion layout uses the Jx Library
which makes adding tabs, collapsible div's, etc. very simple to
implement.
-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jamo
Sent: Thursday, February 12, 2009 1:31 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] New Tab Like Properties and Layers


I've been asked to add a new tab to the default viewer (a search tab).

I would like to know if anyone else has been able to complete such a
task, I
was thinking of doing something like the following.

I would like it to function in the same manner as the properties tab, as
in
be able to slide it up and down and open and shut using the little
arrows
button on the right.

I keep getting argument not valid error...

If this is possible is it also possible to add javascript functions to
handle the various drag / minimise /maximise funtions at the same time?

function createNewTab()
{
try
{
var InfoDiv = parent.document.getElementById('InfoDiv');
var divToAdd = document.createElement('div');
divToAdd.setAttribute('id', 'myNewDiv');
divToAdd.innerHTML = 'some Text';

InfoDiv.appendChild(divToAdd);

}
catch(e)
{
alert(e.description);
}
}

Any help wold be great :)

I would like to do this without having to edit the ajaxmappane.tmpl or
any
of the default files, I would rather do it on an onLoad event so as
though
other applications can still use the default layout.

Cheers!

-- 
View this message in context:
http://n2.nabble.com/New-Tab-Like-Properties-and-Layers-tp2318026p231802
6.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] New Tab Like Properties and Layers

2009-02-12 Thread Mark Pendergraft
I agree with you about wasted space.  One of the primary reasons for
moving to Fusion for me was the fact that the layout was so rigid.
Best of luck.
-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jamo
Sent: Thursday, February 12, 2009 1:57 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] New Tab Like Properties and Layers


Thanks for the heads up Mark, at the moment it is not an option, I've
not
looked into the fusion layouts to much, upon first couple of test runs
it
seemed the initial loading of the map was much longer than the default
layout, unfortunately for the application I'm working on time spent in
the
map would have been less than time spent loading the map(for future
applications I will be taking a close look at the fusion layouts)

I have code to replace the properties panel with custom properties panel
depending on what feature you are viewing, which to me is a big step,
however I have found that the task pane is a big screen space hog for
little
to no benefit for this application, therefore I have removed it, which
leaves search me wanting to add this search panel to the left pane (just
seems logical)?

The properties panel code is fairly basic at the moment (and probably
already been done before), but perhaps I can share it in the hope it
will
grow into something much more?

Regards

Adam J


-- 
View this message in context:
http://n2.nabble.com/New-Tab-Like-Properties-and-Layers-tp2318026p231815
6.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] window open

2009-02-11 Thread Mark Pendergraft
Look at the MapTip, Select, and CursorPosition widgets to get an idea of
how to proceed.
-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
Sent: Tuesday, February 10, 2009 8:45 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] window open


hi all.
  would anyone plss help me to write a widget for open a pop up
window...i'm newer in mapguidefusion.i don't know whether i'm in right
direction...so plss help me ...

thanksregards
dyuti

DYUTI wrote:
 
 yesi'm using fusion.would anyone plss explain how to write a
widget?
 
 
 
 thax regards
 
 dyuti
 
 
 Mark Pendergraft wrote:
 
 Are you using Fusion?  I think the best choice would be to write a
 widget.
 
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
 Sent: Sunday, February 08, 2009 11:05 PM
 To: mapguide-users@lists.osgeo.org
 Subject: RE: [mapguide-users] window open
 
 
 please refer this link then u'll get an idea about what i'm trying to
do
 http://www.edugrid.ac.in/webgis/2/keralainfo/
 
 DYUTI wrote:
 
 thank u mark
   my platform is mapguide maestro..my map having 3
layers.The
 third  layer having lot of points that points some places on the
 map,while
 clicking on these points a window should open.that contain info
about
 the
 particular place..i'm newer in this..so plss help me
 
 thanks
  dyuti
 
 Mark Pendergraft wrote:
 
 What exactly are you trying to do?  If you have points in your map,
 you
 can have a URL display in the map tip, when hovering over the
point.
 You can also pass parameters to the URL string using an expression.
 All
 of that can be done by editing the layer in MapGuide Studio.
 If you can provide more information about what you would like your
 map
 to do, I'm sure someone here could point you in the right
direction.
 
 -Mark P.
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
 Sent: Sunday, February 08, 2009 8:20 PM
 To: mapguide-users@lists.osgeo.org
 Subject: [mapguide-users] window open
 
 
   hi..all...
 to open a new window while clicking on the points
 displayed
 on
 the map where i've to write the coding...In which file i've to make
 changes..what change i've to make...plss help me... 
 
 
 
 
 thanksregards
 dyuti
 -- 
 View this message in context:
 http://n2.nabble.com/window-open-tp2295629p2295629.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://n2.nabble.com/window-open-tp2295629p2296057.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://n2.nabble.com/window-open-tp2295629p2306878.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] Fusion javascript (phpviewersample)

2009-02-11 Thread Mark Pendergraft
Yes, I had this problem too.  I take it you are using Internet Explorer?  A 
comma following the last function in a list breaks in IE, but I believe it 
doesn't in FireFox.

http://n2.nabble.com/Fusion-and-Javascript-td1817344.html#a1817224

-Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org 
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Franco Caloni
Sent: Wednesday, February 11, 2009 9:07 AM
To: 'MapGuide Users Mail List'
Subject: R: [mapguide-users] Fusion javascript (phpviewersample)

I'm looking at MapGuideViewerApi.js for use it's Digitize... functions and
just discovered that there are errors in that file.
These 2 errors make MapGuideViewerApi.js not usable (at least for me).
If you have Visual Studio, open MapGuideViewerApi.js with it and see.
The 2 errors are at line 252 and 320.

Remove the , char at the end of line, then .js works fine.

HTH

Franco



Da: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] Per conto di Arnaud De Groof
Inviato: mercoledì 11 febbraio 2009 14.34
A: MapGuide Users Mail List
Oggetto: [mapguide-users] Fusion javascript (phpviewersample)

Hi,
I have migrated different applications ('theme layer' and 'query') onto
fusion. The following lines of the javascript code encounter errors: 
*   parent.parent.Refresh(); 
*   parent.parent.mapFrame.ZoomToView(feature.centerX, feature.centerY,
scale, true); 
*   parent.parent.mapFrame.SetSelectionXML(TrimString(selectionXml)); 
For the theme layer application, I have referenced the
MapGuideViewerApi.js in the script and I have changed the
parent.parent.Refresh(); by Refresh()  without success. 

Errors referenced in firebug:
*   Fusion is not defined 
MapGuideViewerApi.js()MapGuideViewerApi.js (line172)
Fusion.Tool.Canvas.prototype.getMap = function()

*   Fusion is undefined 
Refresh() MapGuideViewerApi.js (line 33)
OnApplyThemeReadyStateChange()
For the query application, I have no solution. 
Could you help me to resolve these problems? 
Thanks,
Arnaud De Groof


___
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 2.0 Beta

2009-02-11 Thread Mark Pendergraft
I see the Fusion 2.0 Beta is out, and I had a question.

The MapGuide folder is gone, which contained MapGuideViewerApi.js and
MapGuide.js.  Are the functions for digitizing on the map contained
somewhere else?  I remember a post in the last month which referred to
the DigitizePolygon function and how it has been updated in 2.0 to clear
the digitized shapes on the map after the function has been called, so I
assume that this functionality is still there, but perhaps it has been
implemented differently.

Thanks

-Mark

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


RE: [mapguide-users] window open

2009-02-09 Thread Mark Pendergraft
Are you using Fusion?  I think the best choice would be to write a
widget.


-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
Sent: Sunday, February 08, 2009 11:05 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] window open


please refer this link then u'll get an idea about what i'm trying to do
http://www.edugrid.ac.in/webgis/2/keralainfo/

DYUTI wrote:
 
 thank u mark
   my platform is mapguide maestro..my map having 3 layers.The
 third  layer having lot of points that points some places on the
map,while
 clicking on these points a window should open.that contain info about
the
 particular place..i'm newer in this..so plss help me
 
 thanks
  dyuti
 
 Mark Pendergraft wrote:
 
 What exactly are you trying to do?  If you have points in your map,
you
 can have a URL display in the map tip, when hovering over the point.
 You can also pass parameters to the URL string using an expression.
All
 of that can be done by editing the layer in MapGuide Studio.
 If you can provide more information about what you would like your
map
 to do, I'm sure someone here could point you in the right direction.
 
 -Mark P.
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
 Sent: Sunday, February 08, 2009 8:20 PM
 To: mapguide-users@lists.osgeo.org
 Subject: [mapguide-users] window open
 
 
   hi..all...
 to open a new window while clicking on the points
displayed
 on
 the map where i've to write the coding...In which file i've to make
 changes..what change i've to make...plss help me... 
 
 
 
 
 thanksregards
 dyuti
 -- 
 View this message in context:
 http://n2.nabble.com/window-open-tp2295629p2295629.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://n2.nabble.com/window-open-tp2295629p2296057.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] window open

2009-02-08 Thread Mark Pendergraft
What exactly are you trying to do?  If you have points in your map, you
can have a URL display in the map tip, when hovering over the point.
You can also pass parameters to the URL string using an expression.  All
of that can be done by editing the layer in MapGuide Studio.
If you can provide more information about what you would like your map
to do, I'm sure someone here could point you in the right direction.

-Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of DYUTI
Sent: Sunday, February 08, 2009 8:20 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] window open


  hi..all...
to open a new window while clicking on the points displayed
on
the map where i've to write the coding...In which file i've to make
changes..what change i've to make...plss help me... 




thanksregards
dyuti
-- 
View this message in context:
http://n2.nabble.com/window-open-tp2295629p2295629.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] Working with state plane data in Mapguide studio

2009-02-06 Thread Mark Pendergraft

Yes, I'm using MapGuide Open Source 2.0.2 and Studio 2009.

 

From: clarkie342 (via Nabble)
[mailto:ml-user+148915-1213579...@n2.nabble.com] 
Sent: Thursday, February 05, 2009 10:51 PM
To: Mark Pendergraft
Subject: RE: [mapguide-users] Working with state plane data in Mapguide
studio

 

That looks just fine.. 
I have service pack installed. I also tried from another machine with
studio, it did not work there either. May be its something with the
Enterprise version assuming you are using Open Source...atleast I know
its not the data. Thanks. 

Mark Pendergraft wrote:

here are the pictures. 

do you have the service pack for MapGuide Studio 2009? 
if you don't, the first thing i would do is download it and see if you
continue to have problems. 

http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112id=1200422
8linkID=9242219

 http://n2.nabble.com/file/n2278544/facility%2B1.jpg
http://n2.nabble.com/file/n2278544/facilities%2B2.jpg 

 



This email is a reply to your post @
http://n2.nabble.com/Working-with-state-plane-data-in-Mapguide-studio-tp
2277697p2279822.html
You can reply by email or by visting the link above.

 


-- 
View this message in context: 
http://n2.nabble.com/Working-with-state-plane-data-in-Mapguide-studio-tp2277697p2284786.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Regarding Flexible Layout

2009-02-05 Thread Mark Pendergraft
What do you mean not supported in an ASP environment???
-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Mike Adair
Sent: Thursday, February 05, 2009 9:11 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Regarding Flexible Layout

The Jx.Dialog suggests to me that you are using the Fusion viewer which 
isn't supported in an ASP environment.

Mike

Mark Pendergraft wrote:

 Can you post the contents of your index.html file please?

 -Mark

 *From:* mapguide-users-boun...@lists.osgeo.org 
 [mailto:mapguide-users-boun...@lists.osgeo.org] *On Behalf Of 
 *ravinder.si...@birlasoft.com
 *Sent:* Wednesday, February 04, 2009 10:48 PM
 *To:* mapguide-users@lists.osgeo.org
 *Subject:* [mapguide-users] Regarding Flexible Layout

 Hi,

 Please assist me. I am very new to GIS development.

 Developing a GIS application in asp.net. When I tried to run the 
 *basic layout* of Sheboygan sample provided its running fine. But the 
 flexible layouts are not running. I have tried to run it from the 
 dotnetsampleviewer, mapguide maestro but I am getting the same error 
 *object doesn't support this property or method*. And when I try to 
 debug it takes me to

 dOverviewMap = new Jx.Dialog({id: 'dialogOverviewMap', imageBaseUrl: 
 'images/',

 title: OpenLayers.String.translate('ovmapTitle'),

 modal: false, resizeable: false,

 right: 50, bottom: 50, width: 200, height: 200,

 contentID: 'OverviewMap', helpID: '' } );

 this point.

 I am using

 1.MgServerSetup-2.0.1.2716

 2.MgWebServerExtensionsSetup-2.0.1.2716

 3.Dotnetviewersample

 4.Sheboygan.mgp

 * *

 *Regards,*

 Ravinder




*
 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
   

-- 
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   mad...@dmsolutions.ca
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca


___
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] Working with state plane data in Mapguide studio

2009-02-05 Thread Mark Pendergraft
Zip the SDF file and send it to the mailing list.
-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of clarkie342
Sent: Thursday, February 05, 2009 2:25 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Working with state plane data in Mapguide
studio


I have some data in State Plane coordinate system (AL83-EF) in a AutoCAD
dwg.
I exported this data to SDF and opened in Mapguide Stuiod, data does not
show up in the layer preview.
Exporting it to shp and opening it in Arcmap works fine. Any ideas?
Thanks.
-- 
View this message in context:
http://n2.nabble.com/Working-with-state-plane-data-in-Mapguide-studio-tp
2277697p2277697.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] Working with state plane data in Mapguide studio

2009-02-05 Thread Mark Pendergraft
Odd, that file shows no features in Civil 3D or in MapGuide Studio 2009.
What do you see when you open it in ArcMap?

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of clarkie342
Sent: Thursday, February 05, 2009 3:13 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Working with state plane data in Mapguide
studio


I am using Autodesk 2009. so its File-Convert DWG to Autodesk SDF
option.
Publish to mapguide option seems to create dwf instead of SDF. I need
sdf. 
The coordinate system seems to be ok since it works well with shp in
Arcmap.
It is assigned and the right coordinate system is detected during the
export. 
Here is a sample sdf. Thanks.



Andy Morsell wrote:
 
 It's probably a coordinate system issue.  Have you assigned the proper
 coordinate system to the DWG project itself as well as specify it when
you
 export?  Which version of Autodesk Map are you using?  Are you using
the
 Map-Tools-Export to Autodesk MapGuide option or are you using the
 Publish
 to MapGuide option?  
 
 Andy Morsell, P.E.
 Spatial Integrators, Inc.
 www.SpatialGIS.com
 
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of
clarkie342
 Sent: Thursday, February 05, 2009 2:25 PM
 To: mapguide-users@lists.osgeo.org
 Subject: [mapguide-users] Working with state plane data in Mapguide
studio
 
 
 I have some data in State Plane coordinate system (AL83-EF) in a
AutoCAD
 dwg.
 I exported this data to SDF and opened in Mapguide Stuiod, data does
not
 show up in the layer preview.
 Exporting it to shp and opening it in Arcmap works fine. Any ideas?
 Thanks.
 -- 
 View this message in context:

http://n2.nabble.com/Working-with-state-plane-data-in-Mapguide-studio-tp
2277
 697p2277697.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
 
 
http://n2.nabble.com/file/n2278016/boundary.zip boundary.zip 
-- 
View this message in context:
http://n2.nabble.com/Working-with-state-plane-data-in-Mapguide-studio-tp
2277697p2278016.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] Working with state plane data in Mapguide studio

2009-02-05 Thread Mark Pendergraft
Okay, the Facility.sdf shows up in Civil 3d and in MapGuide Studio.  I
can select features and I can zoom in as well.
I've had trouble exporting features using Civil 3D in the past, it's
tricker than it looks.
What is distorted about the feature in MapGuide Studio?  What version of
MapGuide Studio do you have?
-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of clarkie342
Sent: Thursday, February 05, 2009 3:44 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Working with state plane data in Mapguide
studio


I see the feature when I export it to shp and open it in arcmap. 
attached in another layer from the DWG which shows up in Civil 3D but is
distorted in Mapguide studio. It also does not let me select features or
zoom properly. 



Mark Pendergraft wrote:
 
 Odd, that file shows no features in Civil 3D or in MapGuide Studio
2009.
 What do you see when you open it in ArcMap?
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of
clarkie342
 Sent: Thursday, February 05, 2009 3:13 PM
 To: mapguide-users@lists.osgeo.org
 Subject: RE: [mapguide-users] Working with state plane data in
Mapguide
 studio
 
 
 I am using Autodesk 2009. so its File-Convert DWG to Autodesk SDF
 option.
 Publish to mapguide option seems to create dwf instead of SDF. I need
 sdf. 
 The coordinate system seems to be ok since it works well with shp in
 Arcmap.
 It is assigned and the right coordinate system is detected during the
 export. 
 Here is a sample sdf. Thanks.
 
 
 
 Andy Morsell wrote:
 
 It's probably a coordinate system issue.  Have you assigned the
proper
 coordinate system to the DWG project itself as well as specify it
when
 you
 export?  Which version of Autodesk Map are you using?  Are you using
 the
 Map-Tools-Export to Autodesk MapGuide option or are you using the
 Publish
 to MapGuide option?  
 
 Andy Morsell, P.E.
 Spatial Integrators, Inc.
 www.SpatialGIS.com
 
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of
 clarkie342
 Sent: Thursday, February 05, 2009 2:25 PM
 To: mapguide-users@lists.osgeo.org
 Subject: [mapguide-users] Working with state plane data in Mapguide
 studio
 
 
 I have some data in State Plane coordinate system (AL83-EF) in a
 AutoCAD
 dwg.
 I exported this data to SDF and opened in Mapguide Stuiod, data does
 not
 show up in the layer preview.
 Exporting it to shp and opening it in Arcmap works fine. Any ideas?
 Thanks.
 -- 
 View this message in context:


http://n2.nabble.com/Working-with-state-plane-data-in-Mapguide-studio-tp
 2277
 697p2277697.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
 
 
 http://n2.nabble.com/file/n2278016/boundary.zip boundary.zip 
 -- 
 View this message in context:

http://n2.nabble.com/Working-with-state-plane-data-in-Mapguide-studio-tp
 2277697p2278016.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
 
 
http://n2.nabble.com/file/n2278132/Facility.zip Facility.zip 
-- 
View this message in context:
http://n2.nabble.com/Working-with-state-plane-data-in-Mapguide-studio-tp
2277697p2278132.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] Working with state plane data in Mapguide studio

2009-02-05 Thread Mark Pendergraft

here are the pictures.

do you have the service pack for MapGuide Studio 2009?
if you don't, the first thing i would do is download it and see if you
continue to have problems.

http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112id=12004228linkID=9242219

http://n2.nabble.com/file/n2278544/facility%2B1.jpg 
http://n2.nabble.com/file/n2278544/facilities%2B2.jpg 
-- 
View this message in context: 
http://n2.nabble.com/Working-with-state-plane-data-in-Mapguide-studio-tp2277697p2278544.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Popup window

2009-02-04 Thread Mark Pendergraft
There is no need to modify the viewer files.  You can put your code into
your own page and then set the task pane target to load said page.  When
you want the window to pop up is what will decide where/how you
implement the code in your task pane page.

-Mark

 

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Nisha P
Sent: Wednesday, February 04, 2009 4:23 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Popup window

 

Hi All,

I wish to display some details through a pop up window in my map. I have
two layers in my map.. one is Nasa layer and other is state layer...

In which file i'll write the code for pop up?? 

anybody know this,pls help me





Regards, 

Nisha P

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


RE: [mapguide-users] OnPointDigitized and GetTransform

2009-02-03 Thread Mark Pendergraft
I have a utility that accomplishes what you are trying to do, and I
convert to lat/long using this code snippet (in vb.net)
Assume you have variables X,Y which are doubles.

Dim geoFact As New MgGeometryFactory
Dim coord As MgCoordinate = geoFact.CreateCoordinateXY(X, Y)

Dim coordFact As New MgCoordinateSystemFactory
Dim coordSys As MgCoordinateSystem  
coordSys = coordFact.Create(Map.GetMapSRS)

Dim LLcoord As MgCoordinate = coordSys.ConvertToLonLat(coord)

  link = http://maps.google.com?q=; + LLcoord.Y.ToString + ,
+ LLcoord.X.ToString

I hope that helps.
Also, you don't really need an API key to do this.  My function just
puts together a link, and then uses javascript to open it in a new
window.

-Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Steve G
Sent: Tuesday, February 03, 2009 11:47 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] OnPointDigitized and GetTransform


I have searched through the Nabble forum to find some sample codes, so I
kind
of understand what you mean.  However, I have also found that
MgCoordinateSystemTransform is now an abstract class.  I have modified
the
code to what I think would work:


$coordSysFactory = new MgCoordinateSystemFactory(); 

// Define a Target Coordinate System
$source = $coordSysFactory-Create($mapGetMapSRS()); 


// Define a Target Coordinate System
$LLWGS84 ='PROJCS[LL-WGS84,
 GEOGCS[GCS_WGS_1984,
DATUM[WGS_1984,
SPHEROID[WGS_1984,6378137,298.257223563]],
AUTHORITY[EPSG,6326]]
PRIMEM[Greenwich,0],
UNIT[Degree,0.017453292519943295]]'; 

  
$source = $coordSysFactory-Create($map-GetMapSRS()); 
$target = $coordSysFactory-Create($LLWGS84); 
 
$transform = new MgCoordinateSystemTransform($source, $target); 


And then the following code with the digitizepoint function.  

 function DigitizePoint() {
  // ShowResults();
  parent.parent.mapFrame.DigitizePoint(OnPointDigitized);
  }
  function OnPointDigitized(point) {
  ShowResults(X:  + point.X + , Y:  + point.Y);

However, I am not sure how to combine the two code snipets into one PHP
file?  You said something about call Transform() passing in your
digitized
points, can you explain a little more or perhaps showing me how this
would
be written in the code?  Just having some difficulties with my limited
understanding and programming background.  Thanks again!!!

Also, does anyone know if the Web Mercator Projection works?:

http://www.sharpgis.net/post/2008/05/15/SphericalWeb-Mercator-EPSG-code-
3785.aspx


-Steve




Jackie Ng wrote:
 
 GetTransform() requires two MgCoordinateSystem objects. These are
created
 from the MgCoordinateSystemFactory, which you have to pass in wkt
strings
 of the coordinate systems.
 
 So you need 2 wkt strings:
 
 1) The map's coordinate system (The GetMapSRS() method of MgMap will
 return this string)
 2) The WGS84 coordinate system (You'll have to find this string
yourself)
 
 Then with the MgCoordinateSystemTransform object obtained from
 GetTransform(), call Transform() passing in your digitized points,
which
 will then return the transformed points (in WGS84)
 
 - Jackie
 
 
 Steve G wrote:
 
 I am trying to create a tool in the task pane where you click a
button
 and then click on the map which will get the x, y coordinates and
open in
 google maps.  I have found the sample onpointdigitized php example
and
 copied the code and it works pretty well to get the x, y coordinates.

 The next step is that my map is in state plane california III (feet)
 projection, so the map units (feet) do not correlate to google maps
 (WGS84, decimal degrees).  I know there is the GetTransform()
function,
 but I haven't been able to figure out how to implement the code (put
it
 all together with the onpointdigitized).  I was wondering if anyone
could
 provide some help.  It's basically joining the two together and then
 sending the code to google maps (I already got an API key).  
 
 Any help would greatly be appreciated (I am more of a GIS user than
 programmer)!
 
 Thanks,
 
 -Steve
 
 
 

-- 
View this message in context:
http://n2.nabble.com/OnPointDigitized-and-GetTransform-tp2261216p2265241
.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] Fusion and Digitizing

2009-01-30 Thread Mark Pendergraft
Even better news!
Any word on when the 2.0 beta will be available?
-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Paul
Spencer
Sent: Friday, January 30, 2009 4:16 AM
To: MapGuide Users Mail List
Cc: Mike Adair
Subject: Re: [mapguide-users] Fusion and Digitizing

Thanks guys ... the digitizing code has changed in the upcoming 2.0  
release to use the OpenLayers vector library rather than our home- 
grown canvas implementation so we'll make sure there is a way to clean  
up after digitizing ...

Mike, can you take a skim through this thread and make sure the new  
Vector implementation has a method for cleaning up, or implicitly  
cleans up if possible.

Cheers

Paul


On 29-Jan-09, at 6:14 PM, Mark Pendergraft wrote:

 thanks!
 I'll take a look at it later tonight.
 -Mark

 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
 Moreno
 Sent: Thursday, January 29, 2009 3:02 PM
 To: mapguide-users@lists.osgeo.org
 Subject: RE: [mapguide-users] Fusion and Digitizing


 Hi Mark, I have gotten to clear the digitized polygons in FUSION  
 viewer
 by
 modifying the MapGuideViewerapi.js

 var polDigitizer;
 function DigitizePolygon(handler) {
if (handler) {
  var Fusion = window.top.Fusion;
  var mapWidget = Fusion.getWidgetById(mapWidgetId);
  var digitizer = new Fusion.Tool.Canvas.Polygon(mapWidget);
  digitizer.mouseDown = MultiPointHandlers.prototype.mouseDown;
  digitizer.mouseMove = MultiPointHandlers.prototype.mouseMove;
  digitizer.dblClick = MultiPointHandlers.prototype.dblClick;
  Object.inheritFrom(digitizer, Fusion.Tool.Canvas.prototype, []);
  digitizer.handler = handler;
  digitizer.activateCanvas();

  polDigitizer = digitizer;

  //add a listener to update the position of the features
  var mapWidget = Fusion.getWidgetById(mapWidgetId);
  mapWidget.registerForEvent(Fusion.Event.MAP_EXTENTS_CHANGED,
 extendEvtResponse );
}
 }

 function extendEvtResponse(){
  var digitizer = polDigitizer;
  digitizer.updatePx();
  digitizer.clearContext();
  digitizer.draw(digitizer.context);
 }

 function clearPol(){
   polDigitizer.clearContext();
   var Fusion = window.top.Fusion;
   var mapWidget = Fusion.getWidgetById(mapWidgetId);
   mapWidget.deregisterForEvent(Fusion.Event.MAP_EXTENTS_CHANGED,
 extendEvtResponse);
   polDigitizer.deactivateCanvas();

 }

 In your main page you must call to clearPol() function in order to  
 clear
 the
 digitized polygon. For the other shapes I guess that the logic is the
 same.
 The above code only clears the last polygon digitized. It's  
 necessary to
 manage an array of digitizers for controlling all digitized  
 polygons. I
 haven't had time for trying it.

 I have tested with mapguide 2.0.1 with FUSION 1.0.6 in IE7 and FF2
 maybe you can improve it.

 Regards,


 GordonL wrote:

 Hi Mark,
 I know what you mean about the sticky digitizing... I was told to  
 look
 at
 the
 resetCanvas function in the Measure.js file to get rid of that
 leftover
 digitize graphics...but I haven't tried it yet...

 gordon


 Mark Pendergraft wrote:

 I was in no way implying the wheel should be reinvented, in fact the
 code I posted was an example of how to use the MapGuideViewerAPI.js
 supplied DigitizePolygon(handler) function that you referred to.

 I did say that I would like to see some method to clear the  
 digitized
 shapes after the function's handler has been called.  In MGOS 1.2
 after
 a polygon was digitized, it was destroyed.  In MGOS 2 with Fusion
 1.1,
 the polygon stays on the map until the user closes their browser.

 -Mark P.

 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of GordonL
 Sent: Thursday, January 29, 2009 1:20 PM
 To: mapguide-users@lists.osgeo.org
 Subject: RE: [mapguide-users] Fusion and Digitizing


 You know, you really do not need to reinvent the wheel, if you have
 already
 built a lot of code with the Basic Web Layouts.  Did you know that
 Fusion
 supports some retro digitizing methods?
 For example, I put the following in an INVOKESCRIPT in the Flexible
 Web
 Layout:

 top.parent.DigitizePoint(top.OnPointDigitized);

 I also have the OnPointDigitized in a JS file attached to the main
 frame/window.  So I reuse my code for both FUSION and Basic Web
 Layouts...

 Just check out the functions in the MapGuideViewerApi.js in the
 /www/fusion/MapGuide/ folder...
 They include:
 Refresh()
 SetSelectionXML(selectionXml)
 ZoomToView(x, y, scale, refresh)
 DigitizePoint(handler)
 DigitizeLine(handler)
 DigitizeLineString(handler)
 DigitizeRectangle(handler)
 DigitizePolygon(handler)

 They work just like the classic MapGuide Viewer API...pretty sweet.

 gordon




 Mark Pendergraft wrote:

 Absolutely.
 My biggest beef with digitizing

RE: [mapguide-users] Fusion and Digitizing

2009-01-29 Thread Mark Pendergraft
I was in no way implying the wheel should be reinvented, in fact the
code I posted was an example of how to use the MapGuideViewerAPI.js
supplied DigitizePolygon(handler) function that you referred to.

I did say that I would like to see some method to clear the digitized
shapes after the function's handler has been called.  In MGOS 1.2 after
a polygon was digitized, it was destroyed.  In MGOS 2 with Fusion 1.1,
the polygon stays on the map until the user closes their browser.

-Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of GordonL
Sent: Thursday, January 29, 2009 1:20 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Fusion and Digitizing


You know, you really do not need to reinvent the wheel, if you have
already
built a lot of code with the Basic Web Layouts.  Did you know that
Fusion
supports some retro digitizing methods?
For example, I put the following in an INVOKESCRIPT in the Flexible Web
Layout:

top.parent.DigitizePoint(top.OnPointDigitized);

I also have the OnPointDigitized in a JS file attached to the main
frame/window.  So I reuse my code for both FUSION and Basic Web
Layouts...

Just check out the functions in the MapGuideViewerApi.js in the
/www/fusion/MapGuide/ folder...
They include:
Refresh()
SetSelectionXML(selectionXml)
ZoomToView(x, y, scale, refresh)
DigitizePoint(handler)
DigitizeLine(handler)
DigitizeLineString(handler)
DigitizeRectangle(handler)
DigitizePolygon(handler)

They work just like the classic MapGuide Viewer API...pretty sweet.

gordon




Mark Pendergraft wrote:
 
 Absolutely.
 My biggest beef with digitizing in Fusion is that when you digitize an
 object (point/polygon/etc.) it stays on the map.  The existing
functions
 don't have a clear method to remove the digitized object, and my
 programming skills aren't good enough that I want to mess with it.
 
 It's very simple,
 Add a reference to MapGuideViewerApi.js and call DigitizePolygon()
 
 The DigitizePolygon function requires that you pass it a handler
 
 Something similar to the following:
 
 DigitizePolygon(CreateJobByPolygon);  
 
 function CreateJobByPolygon(polygon) {
 var geomText = polygon.Count;
 for (var i = 0; i  polygon.Count; i++){
 geomText += , + polygon.Point(i).X + , +
polygon.Point(i).Y;
 }
 Fusion.getWidgetById('Map').setCursor('auto');
 //here you would send your geomText to a web service, or aspx page
 that would turn the coordinates into a linear ring
 //and then a polygon from there.  The geomText variable (in this
 particular situation) evaluates to something similar to 
 //3,5000.00,5000.00,5050.00,5050.00,5100.00,5100.00
 }
 
 
 Of course you can format the way the coordinates are sent to your
 application any way you want.
 
 I would also recommend calling the DigitizePolygon() function from an
 InvokeScript() widget, as I had some problems when I tried to actually
 create a widget and call it from there.  Also, I prefer to change my
 cursor when the widget is activated, you can see I put it back to
'auto'
 in the CreateJobByPolygon() function, but I like to set it to
 'crosshair' before the DigitizePolygon function is called.
 
 -Mark P.
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Stefan
 Dalakov
 Sent: Friday, January 23, 2009 12:35 PM
 To: MapGuide Users Mail List
 Subject: [mapguide-users] Fusion and Digitizing
 
 Hi all,
  From what I read here, should I conclude that digitizing functions in

 Fusion are not yet fully supported ?
 I need to digitize a polygon on the map and save it permanently. I
have 
 this working with AJAX viewer, but would like to port it to Fusion
 Has anyone succeeded to  do this ?
 
 Stefan Dalakov
 
 
 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users
 ___
 mapguide-users mailing list
 mapguide-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapguide-users
 
 

-- 
View this message in context:
http://n2.nabble.com/Fusion-and-Digitizing-tp2205560p2241352.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


RE: [mapguide-users] Fusion and Digitizing

2009-01-29 Thread Mark Pendergraft
thanks!
I'll take a look at it later tonight.
-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
Moreno
Sent: Thursday, January 29, 2009 3:02 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Fusion and Digitizing


Hi Mark, I have gotten to clear the digitized polygons in FUSION viewer
by
modifying the MapGuideViewerapi.js 

var polDigitizer;
function DigitizePolygon(handler) {
if (handler) {
  var Fusion = window.top.Fusion;
  var mapWidget = Fusion.getWidgetById(mapWidgetId);
  var digitizer = new Fusion.Tool.Canvas.Polygon(mapWidget);
  digitizer.mouseDown = MultiPointHandlers.prototype.mouseDown;
  digitizer.mouseMove = MultiPointHandlers.prototype.mouseMove;
  digitizer.dblClick = MultiPointHandlers.prototype.dblClick;
  Object.inheritFrom(digitizer, Fusion.Tool.Canvas.prototype, []);
  digitizer.handler = handler;
  digitizer.activateCanvas();

  polDigitizer = digitizer;
  
  //add a listener to update the position of the features
  var mapWidget = Fusion.getWidgetById(mapWidgetId);
  mapWidget.registerForEvent(Fusion.Event.MAP_EXTENTS_CHANGED,
extendEvtResponse );
}
}

function extendEvtResponse(){
  var digitizer = polDigitizer;
  digitizer.updatePx();
  digitizer.clearContext();
  digitizer.draw(digitizer.context);
}

function clearPol(){
   polDigitizer.clearContext();
   var Fusion = window.top.Fusion;   
   var mapWidget = Fusion.getWidgetById(mapWidgetId);
   mapWidget.deregisterForEvent(Fusion.Event.MAP_EXTENTS_CHANGED,
extendEvtResponse);
   polDigitizer.deactivateCanvas();
   
}

In your main page you must call to clearPol() function in order to clear
the
digitized polygon. For the other shapes I guess that the logic is the
same. 
The above code only clears the last polygon digitized. It's necessary to
manage an array of digitizers for controlling all digitized polygons. I
haven't had time for trying it. 

I have tested with mapguide 2.0.1 with FUSION 1.0.6 in IE7 and FF2
maybe you can improve it.

Regards,


GordonL wrote:
 
 Hi Mark,
 I know what you mean about the sticky digitizing... I was told to look
at
 the 
 resetCanvas function in the Measure.js file to get rid of that
leftover
 digitize graphics...but I haven't tried it yet...
 
 gordon
 
 
 Mark Pendergraft wrote:
 
 I was in no way implying the wheel should be reinvented, in fact the
 code I posted was an example of how to use the MapGuideViewerAPI.js
 supplied DigitizePolygon(handler) function that you referred to.
 
 I did say that I would like to see some method to clear the digitized
 shapes after the function's handler has been called.  In MGOS 1.2
after
 a polygon was digitized, it was destroyed.  In MGOS 2 with Fusion
1.1,
 the polygon stays on the map until the user closes their browser.
 
 -Mark P.
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of GordonL
 Sent: Thursday, January 29, 2009 1:20 PM
 To: mapguide-users@lists.osgeo.org
 Subject: RE: [mapguide-users] Fusion and Digitizing
 
 
 You know, you really do not need to reinvent the wheel, if you have
 already
 built a lot of code with the Basic Web Layouts.  Did you know that
 Fusion
 supports some retro digitizing methods?
 For example, I put the following in an INVOKESCRIPT in the Flexible
Web
 Layout:
 
 top.parent.DigitizePoint(top.OnPointDigitized);
 
 I also have the OnPointDigitized in a JS file attached to the main
 frame/window.  So I reuse my code for both FUSION and Basic Web
 Layouts...
 
 Just check out the functions in the MapGuideViewerApi.js in the
 /www/fusion/MapGuide/ folder...
 They include:
 Refresh()
 SetSelectionXML(selectionXml)
 ZoomToView(x, y, scale, refresh)
 DigitizePoint(handler)
 DigitizeLine(handler)
 DigitizeLineString(handler)
 DigitizeRectangle(handler)
 DigitizePolygon(handler)
 
 They work just like the classic MapGuide Viewer API...pretty sweet.
 
 gordon
 
 
 
 
 Mark Pendergraft wrote:
 
 Absolutely.
 My biggest beef with digitizing in Fusion is that when you digitize
an
 object (point/polygon/etc.) it stays on the map.  The existing
 functions
 don't have a clear method to remove the digitized object, and my
 programming skills aren't good enough that I want to mess with it.
 
 It's very simple,
 Add a reference to MapGuideViewerApi.js and call DigitizePolygon()
 
 The DigitizePolygon function requires that you pass it a handler
 
 Something similar to the following:
 
 DigitizePolygon(CreateJobByPolygon);  
 
 function CreateJobByPolygon(polygon) {
 var geomText = polygon.Count;
 for (var i = 0; i  polygon.Count; i++){
 geomText += , + polygon.Point(i).X + , +
 polygon.Point(i).Y;
 }
 Fusion.getWidgetById('Map').setCursor('auto');
 //  here you would send your geomText to a web service, or aspx page
 that would turn

RE: [mapguide-users] Open map and zoom to feature?

2009-01-28 Thread Mark Pendergraft
function OnPageLoad()
{   
var initTimer = setInterval(waitForMap, 200);

// Wait for the map to be initialized.
// When it is, open the second task pane.
function waitForMap () 
{
try 
{
// The Refresh method will exist when the
// map has been initialized.
if (parent.parent.mapFrame.Refresh()) 
{
clearInterval(initTimer);
// Zoom to a Job if one was passed
ZoomToJobNo()
// Open the second task pane
window.location =
TasksOverview.aspx?%=Parameters %;
}
}
catch(Exception){}
}   
}

function ZoomToJobNo()
{
//your code to zoom goes here
}

This is the code that resides in my initial TaskPane page.  Once the map
comes up, this page attempts to zoom to a feature (job) and then loads a
different page in the TaskPane.

How your site is setup will determine how your code needs to be written.
You need to pass the necessary variables in from your URL to the
taskpane, and then use a script similar to this to wait until the map is
loaded.  Once the map is loaded you can zoom to a feature.

-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of JamesDudden
Sent: Wednesday, January 28, 2009 8:43 AM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Open map and zoom to feature?




Mark Pendergraft wrote:
 
 ...function into the taskpane that would loop continuously until the
 map.Refresh() function returned true.  Then I sent the feature...
 

Mark,

I have now got a bodged version of the open-map-and-zoom function
working
using a hard-written feature value.  What I would like to do is a have
an
html page with list of values that a user can click to open the map to
that
specific feature.

I have tried passing the value using a session variable and writing it
in to
my filter but it doesn't work - I think this is a timing issue and
thought
your map.refresh function might help. Could you post the code and where
you
put the function?

Regards
James
-- 
View this message in context:
http://n2.nabble.com/Open-map-and-zoom-to-feature--tp2223369p2233257.htm
l
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


RE: [mapguide-users] Open map and zoom to feature?

2009-01-27 Thread Mark Pendergraft
I had a feature like this in 1.2, basically I did it by putting a
function into the taskpane that would loop continuously until the
map.Refresh() function returned true.  Then I sent the feature
information to my custom aspx page which returned a selectionXml, then I
used the ExecuteMapAction(10) to zoom to selection.
I passed the feature information (that I wanted to zoom to) in from the
hyperlink that I used to activate the map.  The tricky part was getting
that info into the taskpane, because my map had several framesets in it.

-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of
Software-Matters
Sent: Tuesday, January 27, 2009 2:02 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Open map and zoom to feature?


Hi,

I have searched the forum and found a few threads relating to this issue
but
they all seem unresloved. Has anybody been able to achieve opening a map
and
zooming straight to a specified feature?

I am using MGOS2 with .NET and IIS 5.1 - what I would ideally be able to
do
is have a list of hyperlinks (linked to different maps and sets of
features)
which the user clicks on to open a map and zoom to specific features at
a
set zoom level.

I would appreciate any help or advice on this subject.

Regards
James
-- 
View this message in context:
http://n2.nabble.com/Open-map-and-zoom-to-feature--tp2223369p2223369.htm
l
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


RE: [mapguide-users] Fusion and Digitizing

2009-01-23 Thread Mark Pendergraft
Absolutely.
My biggest beef with digitizing in Fusion is that when you digitize an
object (point/polygon/etc.) it stays on the map.  The existing functions
don't have a clear method to remove the digitized object, and my
programming skills aren't good enough that I want to mess with it.

It's very simple,
Add a reference to MapGuideViewerApi.js and call DigitizePolygon()

The DigitizePolygon function requires that you pass it a handler

Something similar to the following:

DigitizePolygon(CreateJobByPolygon);  

function CreateJobByPolygon(polygon) {
var geomText = polygon.Count;
for (var i = 0; i  polygon.Count; i++){
geomText += , + polygon.Point(i).X + , + polygon.Point(i).Y;
}
Fusion.getWidgetById('Map').setCursor('auto');
//  here you would send your geomText to a web service, or aspx page
that would turn the coordinates into a linear ring
//and then a polygon from there.  The geomText variable (in this
particular situation) evaluates to something similar to 
//3,5000.00,5000.00,5050.00,5050.00,5100.00,5100.00
}


Of course you can format the way the coordinates are sent to your
application any way you want.

I would also recommend calling the DigitizePolygon() function from an
InvokeScript() widget, as I had some problems when I tried to actually
create a widget and call it from there.  Also, I prefer to change my
cursor when the widget is activated, you can see I put it back to 'auto'
in the CreateJobByPolygon() function, but I like to set it to
'crosshair' before the DigitizePolygon function is called.

-Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Stefan
Dalakov
Sent: Friday, January 23, 2009 12:35 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] Fusion and Digitizing

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

Stefan Dalakov


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


RE: [mapguide-users] Map agent problem

2009-01-21 Thread Mark Pendergraft
Close your browser, and restart the MapGuide service.

 

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of kmanoj-pg7
kmanoj-pg7
Sent: Wednesday, January 21, 2009 1:12 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Map agent problem

 

Dear users,

  I am a newbie to this Mapguide open source
world. so this is my problem when i was trying to configure the WMS part
in mapguide through Map agent, i faced one problem after filling up the
set resource form, finally i pressed submit button, then next step
entering my username and password in the login window for
Authentication. 

But unfortunately, unknowingly i typed wrong password in the login
window, it prompted me to the page with a error message 




Invalid argument(s): [1] = AdministratorADMIN  The string was trimmed
and it's size now differs from the original.


Invalid argument(s): [1] = AdministratorADMIN  The string was trimmed
and it's size now differs from the original. Exception occurred in
method MgUtil.CheckBeginEnd at line 544 in file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\common
\foundation\System/Util.cpp



Again i tried  after fiilling up the Resource ID and content in the set
resource form, i pressed the submit button. This time i thought again a
login window will come so that i can enter my correct username and
password that will lead me to the blank page successfully,  but again i
prompted to same above error message rather than prompting to login
window. so i couldn't proceed further.

can anyone  please help me out!


Regards,

kapilmanoj
   

  

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


RE: [mapguide-users] Add new layer to map

2009-01-21 Thread Mark Pendergraft
Are you trying to add permanent layers to the map?

Does this need to happen at runtime?

-Mark

 

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Kenneth
Skovhede, GEOGRAF A/S
Sent: Wednesday, January 21, 2009 2:24 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Add new layer to map

 

I don't understand what you mean.
Changes to the runtime map does not go into MGStudio.
Only changes to the MapDefinition xml can be seen there.



Regards, Kenneth Skovhede, GEOGRAF A/S



sekko970 skrev: 

Dear Kenneth,
I need your help for a second problem:
 
I apparently save successfully the new layer into library repository
(the
legend and the map are correctly updated, and from MGStudio the new
layer is
visible in layers list), but in MGStudio 'Layer by group' view, my layer
doesn't appear, so that when I reload the map, the new layer is lost
(but
it's present in MGStudio).
 
Have you some idea?
Thanks, Fabio
 
 
 
 
sekko970 wrote:
  

You are right!
 
Many thanks.
 
Fabio
 
 
 
 
sekko970 wrote:


Dear all,
I need to add a layer to my map from XML definition.
 
This is my code:
 
Public Sub CreateLater(ByVal sessionID As String,
ByVal mapName As
String, _
   ByVal newLayerName As
String, ByVal
groupName As String)
 
Dim userInfo As New MgUserInformation
userInfo.SetMgSessionId(sessionID)
 
Dim siteConn As New MgSiteConnection
siteConn.Open(userInfo)
 
Dim resourceSrvc As MgResourceService =
siteConn.CreateService(MgServiceType.ResourceService)
Dim map As New MgMap()
map.Open(resourceSrvc, mapName)
 
'Loading XML layer
Dim newLayerXML As New XmlDocument
newLayerXML.Load(Me.MapPath(NewLayer.xml))
 
'Saving new layer in session repository
Dim byteSource As New

MgByteSource(Encoding.UTF8.GetBytes(newLayerXML.OuterXml),
newLayerXML.OuterXml.Length)
byteSource.SetMimeType(MgMimeType.Xml)
Dim resID As New MgResourceIdentifier(Session:
 sessionID 
//  newLayerName  . 
MgResourceType.LayerDefinition)
resourceSrvc.SetResource(resID,
byteSource.GetReader(), Nothing)
Dim newLayer As New MgLayerBase(resID,
resourceSrvc)
 
'Add new layer to group
Dim layerGroup As MgLayerGroup = Nothing
If map.GetLayerGroups().Contains(groupName) Then
layerGroup =
map.GetLayerGroups.GetItem(groupName)
Else
layerGroup = New MgLayerGroup(groupName)
layerGroup.SetVisible(True)
layerGroup.SetDisplayInLegend(True)
layerGroup.SetLegendLabel(groupName)
map.GetLayerGroups.Add(layerGroup)
End If
newLayer.SetGroup(layerGroup)
 
'Insert new layer to map
newLayer.SetName(newLayerName)
newLayer.SetVisible(True)
newLayer.SetLegendLabel(newLayerName)
newLayer.SetDisplayInLegend(True)
map.GetLayers.Insert(0, newLayer)
 
map.Save(resourceSrvc)
 
Saving the map, an MgNotImplementedException occurs.
 
Where is my mistake?
 
Thanks in advance for your help.
Fabio
 
 
  

 


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


RE: [ZS2] Re: [mapguide-users] [ZS2] Draw Point From Invoke Scriptn c# script

2009-01-21 Thread Mark Pendergraft
I have examples of the code I'd be willing to post but it's in VB.Net
and it makes use of web services, which probably isn't the majority of
people are implementing there code.

That being said the code is there, and there are a lot of good VB.Net to
C# converters (and vice versa) on the web.

-Mark Pendergraft

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Kenneth
Skovhede, GEOGRAF A/S
Sent: Wednesday, January 21, 2009 2:28 AM
To: MapGuide Users Mail List
Subject: Re: [ZS2] Re: [mapguide-users] [ZS2] Draw Point From Invoke
Scriptn c# script

Nope.

If you do manage to get it done, others would benefit from an example:
http://trac.osgeo.org/mapguide/wiki/CodeSamples/AspDotNet/TemporaryMarku
psDotNet

Try using the Buffer feature of the MapGuide AJAX viewer to see how it

works.

Alternatively, the Scribble application may have some usefull code:
http://trac.osgeo.org/mapguide/wiki/CodeSamples/ASP.Net/ScribbleApp

Regards, Kenneth Skovhede, GEOGRAF A/S



ajid skrev:
 Ermm Can u give a example??

 -
 ::: PublicVisitor :::
 www.myguidepages.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] Two maps in the same layout

2009-01-21 Thread Mark Pendergraft
Many people have their page in a frameset.  Here is an example which has
two frames, 1 for a title.html page and 1 for the mapguide viewer.  Here
is an example of what your frameset page might look like (in VB.NET)

**

%@ Page Language=VB Debug=true %

%@ Import Namespace=OSGeo.MapGuide %
!-- #Include File=UtilityFunctions.aspx --
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

script runat=server
Private webLayout As String = Library://MGA/Layout/MGA Web
Layout.WebLayout
Private defaultUser As String = Anonymous
Private defaultPassword As String = 
Private SessionId As String = 
Private addRequests As String = 
Private Parameters As String = 
/script

% 

Try
' Initialize a session and register a variable to hold the
' session id, then initialize the Web Extensions, connect
' to the site, and create a session.

InitializeWebTier()

Dim userInfo As New MgUserInformation(defaultUser,
defaultPassword)
Dim site As New MgSite()
site.Open(userInfo)
SessionId = site.CreateSession()

Catch ex As Exception
Response.Write(ex.Message)
End Try

%

frameset rows=50,*
frame id=titleFrame frameborder=0 marginwidth=0
marginheight=0 scrolling=no
src=http://localhost/mapguide/mga/title.html;
frame id=viewerFrame frameborder=0 marginwidth=0
marginheight=0 scrolling=no
 
src=http://localhost/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=%=s
essionId%WEBLAYOUT=%=webLayout%LOCALE=en
/frameset




This page creates a horizontal split page with two pages in it.  If you
adjusted frameset rows=50,* to frameset cols=*,* you would get a
page split in half vertically.  Then change the src= element to the
two pages you want shown.

Hope that clears it up a bit.

-Mark Pendergraft


-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
Moreno
Sent: Wednesday, January 21, 2009 7:47 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Two maps in the same layout


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

script runat=server
String webLayout =
Library://Samples/Sheboygan/Layouts/SheboyganAspTest.WebLayout;

String defaultUser = Anonymous;
String defaultPassword = ;

String sessionId1 = ;
String sessionId2 = ;
/script

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

InitializeWebTier();

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

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

html
head
titleViewer Sample Application/title
/head
frameset rows=30,* frameborder=no framespacing=0
 frame id=titleFrame frameborder=no marginwidth=0
marginheight=0
scrolling=no src=title.html
  frameset cols=50%,50%
frame id=viewer1Frame frameborder=no marginwidth=0
marginheight=0 scrolling=no
src=/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=%=sessionId1%WEBL
AYOUT=%=webLayout%THEMINGTYPE=1
frame id=viewer2Frame frameborder=no marginwidth=0
marginheight=0 scrolling=no
src=/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=%=sessionId2%WEBL
AYOUT=%=webLayout%THEMINGTYPE=2
  /frameset
/frameset
/html

thanks,


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


-
Rodolfo Moreno
CivilEng

-- 
View this message in context:
http://n2.nabble.com/Two-maps-in-the-same-layout-tp2189508p2192823.html
Sent from the MapGuide Users

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

2009-01-21 Thread Mark Pendergraft
Roldolfo,
Sorry I didn't look at your code.  It's pretty much exactly the same as
what I posted.  Why would you need to modify any of the viewer files in
order to have 2 pages in your map?

I was able to create a 2 map page using framesets in the same manner
that you did.

-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Mark
Pendergraft
Sent: Wednesday, January 21, 2009 8:10 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Two maps in the same layout

Many people have their page in a frameset.  Here is an example which has
two frames, 1 for a title.html page and 1 for the mapguide viewer.  Here
is an example of what your frameset page might look like (in VB.NET)

**

%@ Page Language=VB Debug=true %

%@ Import Namespace=OSGeo.MapGuide %
!-- #Include File=UtilityFunctions.aspx --
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

script runat=server
Private webLayout As String = Library://MGA/Layout/MGA Web
Layout.WebLayout
Private defaultUser As String = Anonymous
Private defaultPassword As String = 
Private SessionId As String = 
Private addRequests As String = 
Private Parameters As String = 
/script

% 

Try
' Initialize a session and register a variable to hold the
' session id, then initialize the Web Extensions, connect
' to the site, and create a session.

InitializeWebTier()

Dim userInfo As New MgUserInformation(defaultUser,
defaultPassword)
Dim site As New MgSite()
site.Open(userInfo)
SessionId = site.CreateSession()

Catch ex As Exception
Response.Write(ex.Message)
End Try

%

frameset rows=50,*
frame id=titleFrame frameborder=0 marginwidth=0
marginheight=0 scrolling=no
src=http://localhost/mapguide/mga/title.html;
frame id=viewerFrame frameborder=0 marginwidth=0
marginheight=0 scrolling=no
 
src=http://localhost/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=%=s
essionId%WEBLAYOUT=%=webLayout%LOCALE=en
/frameset




This page creates a horizontal split page with two pages in it.  If you
adjusted frameset rows=50,* to frameset cols=*,* you would get a
page split in half vertically.  Then change the src= element to the
two pages you want shown.

Hope that clears it up a bit.

-Mark Pendergraft


-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Rodolfo
Moreno
Sent: Wednesday, January 21, 2009 7:47 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Two maps in the same layout


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

script runat=server
String webLayout =
Library://Samples/Sheboygan/Layouts/SheboyganAspTest.WebLayout;

String defaultUser = Anonymous;
String defaultPassword = ;

String sessionId1 = ;
String sessionId2 = ;
/script

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

InitializeWebTier();

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

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

html
head
titleViewer Sample Application/title
/head
frameset rows=30,* frameborder=no framespacing=0
 frame id=titleFrame frameborder=no marginwidth=0
marginheight=0
scrolling=no src=title.html
  frameset cols=50%,50%
frame id=viewer1Frame frameborder=no marginwidth=0
marginheight=0 scrolling=no
src=/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=%=sessionId1%WEBL
AYOUT=%=webLayout%THEMINGTYPE=1
frame id=viewer2Frame frameborder=no marginwidth=0
marginheight=0 scrolling=no
src=/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=%=sessionId2%WEBL
AYOUT=%=webLayout%THEMINGTYPE=2
  /frameset
/frameset
/html

thanks,


Jackie Ng wrote:
 
 The easiest way is to have an outer frameset (or 2 outer iframes) that
 points to your individual ajax viewers.
 
 - Jackie
 
 
 Rodolfo Moreno wrote:
 
 I want to put two maps in the same layout and moreover each map must
be
 themed in different way just after of that the application to be
loaded
 (the theming must be done automatically according to a placed
preference
 in the first time that the application to be loaded).
 
 I did a test application usign ajax viewer and I got it, however I
have
 modified many files of the mapguide extensions (MAINFRAME.ASPX,
 FRAMESETTASKBAR.TEMPL

RE: [mapguide-users] Polygons and Intersection Problem

2009-01-15 Thread Mark Pendergraft
Could you upload your SDF file with the 2 polygons?

-Mark P.

 

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Kori
Maleski
Sent: Thursday, January 15, 2009 9:03 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Polygons and Intersection Problem

 

 

Hi All,

 

Intersection problem:

 

I have an application performs a query on a polygon layer with a point -
using intersection with the spatialfilter.

 

The problem is this:

 

The polygon originated from a shapefile - loaded as SDF via studio.

The single polygon feature originally was 2 distinct polygons dissolved
together via ArcMap.

 

The intersection works only on one of the polygons, and fails to return
a feature reader at all when within the other polygon.

 

This fails in both code execution and as a GeFeatureInfo WMS request in
the same manner.

 

Has anyone encountered this?

Has anyone worked around?

 

Is it better to explode the feature?  I require the geometery from each
part to do a highlight.

 

Is there an issue with how a shapefile multipolygon is converted to SDF?

Or is this an isse with the SelectFeatures functionality?

 

 

 

Cheers,

 

 

Kori Maleski

 

 

 

 

$geometryFactory = new MgGeometryFactory();
   
// create a coordinate
$coordinate = $geometryFactory-CreateCoordinateXY($x,$y);
   
// create a point
$point = $geometryFactory-CreatePoint($coordinate);
 
 $queryOptions = new MgFeatureQueryOptions();
 
$queryOptions-SetSpatialFilter('Geometry',$point,MgFeatureSpatialOperat
ions::Intersects);
 
 
 $layerResource = new MgResourceIdentifier($layerdefinition); 
 $layer = new MgLayer($layerResource, $resourceService);
 
 
 $layerClassName = $layer-GetFeatureClassName();
 
 $layerFeatureId = $layer-GetFeatureSourceId(); 
$layerFeatureResource = new MgResourceIdentifier($layerFeatureId); 
$layerId = $layer-GetObjectId(); 
 
 $featureReader =
$featureService-SelectFeatures($layerFeatureResource,$layerClassName,$q
ueryOptions); 

 

 

 

 

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


RE: [mapguide-users] Problems with selection

2009-01-15 Thread Mark Pendergraft
Yeah, I've always had issues with the RegisterClientScriptBlock in my
pages so I've always just added a onLoad() javascript function to the
body of my aspx page and then run my script from there.
-Mark

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of clarkie342
Sent: Thursday, January 15, 2009 10:56 AM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Problems with selection


I was using RegisterClientScriptBlock in code-behind to set the
selectionxml
to the mapframe. This was not working so I changed my logic to do
clientcallback so now I am setting the selectionxml in the aspx page
itself.
this seems to work. 

Not sure why the difference. sorry did not get a chance to test the
below
scenerio.
Thanks for the response. 


Mark Pendergraft wrote:
 
 What about zooming to the feature using the maps Zoom to selection
 method:
 
 ExecuteMapAction(10);
 
 Does the map zoom to the correct feature?  Is it highlighted
afterwards?
 
 -Mark P.
 
 -Original Message-
 From: mapguide-users-boun...@lists.osgeo.org
 [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of
clarkie342
 Sent: Monday, January 12, 2009 11:33 AM
 To: mapguide-users@lists.osgeo.org
 Subject: RE: [mapguide-users] Problems with selection
 
 
 Is there a solution to the initial issue here? I came across the same
 thing
 but I do not have any joins in the feature source.
 Here is the javascript that I have to update the selection. 
 
 var selectionXml =

document.getElementById(ctl00_ContentPlaceHolder1_hfSelectXml).getAttr
 ibute(value);
 var mapFrame =
 document.getElementById(viewerFrame).contentWindow.GetMapFrame();
 
 mapFrame.SetSelectionXML(selectionXml);
 mapFrame.Refresh(); 
 
 the status bar shows 1 feature selected but no feature is highlighted.
I
 also tried manual refresh of the map(from context menu) that did not
 highlight the selected features either. Appreciate any help.
 Thanks.
 
 
 Andy Morsell wrote:
 
 Yes, it does say that a feature is selected.  Technically, it still
is
 since
 the selection object exists on the server and is not disposed of when
 you
 turn the layer off.  This is most likely by design and I find it
would
 probably be more desirable than not to have that selection object
 reappear
 when the layer is turned back on if it was the last thing I had
 selected.
 If you want to clear the selection, even when the layer is turned
off,
 you
 can use the Clear Selection through the interface or
programmatically.
  
 
 Andy 
 
 
   _  
 
 From: Butler, Juan P [mailto:jpbut...@co.pinellas.fl.us] 
 Sent: Thursday, April 20, 2006 11:05 AM
 To: us...@mapguide.osgeo.org
 Subject: RE: [mapguide-users] Problems with selection
 
 
 Thanks Andy.
  
 Check to see on the status bar if it states that an object is
selected
 when
 the layer is turned off.  My highlight goes away, but the map still
 has an
 object selected.
  
 - Juan
 
   _  
 
 From: Andy Morsell [mailto:amors...@spatialgis.com]
 Sent: Thu 4/20/2006 1:16 PM
 To: us...@mapguide.osgeo.org
 Subject: RE: [mapguide-users] Problems with selection
 
 
 I am seeing the same thing in regards to the joined feature (polygons
 joined
 to Access) not highlighting when selected but the attributes do show
 up in
 the Properties pane.  I am also seeing some general weirdness with
 this
 layer.  If I turn it off in the legend, it does not turn off on the
 map (a
 request to the server does not occur) until I select an object.
 Panning
 and
 zooming aren't forcing the refresh.  I suspect these are related
 issues
 and
 the refresh flag is getting stuck when interacting with these types
of
 layers.
  
 I don't see the same thing as you in the second case.  If I select an
 object
 and it highlights and then turn off that layer, the highlight turns
 off as
 well.  When that layer is turned back on, the highlight also
 reappears.
  
 
 Andy Morsell, P.E. 
 Spatial Integrators, Inc. 
 http://www.SpatialGIS.com  
 
  
 
 
   _  
 
 From: Butler, Juan P [mailto:jpbut...@co.pinellas.fl.us] 
 Sent: Thursday, April 20, 2006 9:36 AM
 To: us...@mapguide.osgeo.org
 Subject: RE: [mapguide-users] Problems with selection
 
 
 
 Some more observations...
  
 It seems that when I select my parcel layer that is tied to my Access
 database, the highlight feature doesn't work.  When I switch over to
 use
 just the layer that is based strictly on the sdf file, the
 highlighting
 works.  So I guess it has something to do with layers that are tied
to
 an
 Access database.  Can someone else please try this and let me know if
 they
 are seeing this?
  
 Also, when I select a feature and then turn of the layer of the
 selected
 feature, the feature seems to still be selected.  Odd.   
  
 FYI: I'm using the AJAXViewer
  
 - Juan
 
   _  
 
 From: Butler, Juan P
 Sent: Thu 4/20/2006 12:05 PM
 To: us

RE: [mapguide-users] Polygons and Intersection Problem

2009-01-15 Thread Mark Pendergraft
I queried the feature programmatically (as a SDF) and tried to assign it
to a mgMultiPolygon and it didn't fly.  It did work as a mgPolygon
though.

So, the problem seems to be that the geometry is being stored as a
polygon instead of a multipolygon.  I have features in my map that
aren't connected and I'm able to select them with no problem, but they
are multipolygons.  This must have something to do with the conversion
process in ArcMap or in MapGuide Studio.  I don't have ArcMap so I can't
comment on what is going on in that arena.  Your guess is as good as
mine on whether this is an ArcMap issue or a MapGuide Studio issue.

 

However, if you load the data as a SHP file (uncheck convert to SDF in
MapGuide Studio) and then view the layer in Studio, you can select
either side.  So perhaps the solution is to just use the SHP file in
your map instead of converting it to SDF.

 

Hope that helps

-Mark Pendergraft

 

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Kori
Maleski
Sent: Thursday, January 15, 2009 9:41 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Polygons and Intersection Problem

 

In the studio preview, it fails as well.

 

Using the select tool, clicking on one polygon will highlight/select the
entirety, while clicking on the other will yield no highlight/select.

 

 

Cheers,

 

Kori Maleski

 



 

On Thu, Jan 15, 2009 at 10:16 AM, Kori Maleski kori.male...@gmail.com
wrote:

Mark,

 

I have attached a shapefile with one of the polygons in question.  The
spatialfilter fails on any dissolve multipolygon like this one.

 

Again, I converted it to sdf via a load procedure.

 

 

Cheers,

Kori Maleski

 


 

On Thu, Jan 15, 2009 at 10:08 AM, Mark Pendergraft
ma...@meadgilman.com wrote:

Could you upload your SDF file with the 2 polygons?

-Mark P.

 

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Kori
Maleski
Sent: Thursday, January 15, 2009 9:03 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Polygons and Intersection Problem

 

 

Hi All,

 

Intersection problem:

 

I have an application performs a query on a polygon layer with a
point - using intersection with the spatialfilter.

 

The problem is this:

 

The polygon originated from a shapefile - loaded as SDF via
studio.

The single polygon feature originally was 2 distinct polygons
dissolved together via ArcMap.

 

The intersection works only on one of the polygons, and fails to
return a feature reader at all when within the other polygon.

 

This fails in both code execution and as a GeFeatureInfo WMS
request in the same manner.

 

Has anyone encountered this?

Has anyone worked around?

 

Is it better to explode the feature?  I require the geometery
from each part to do a highlight.

 

Is there an issue with how a shapefile multipolygon is converted
to SDF?

Or is this an isse with the SelectFeatures functionality?

 

 

 

Cheers,

 

 

Kori Maleski

 

 

 

 

$geometryFactory = new MgGeometryFactory();
   
// create a coordinate
$coordinate = $geometryFactory-CreateCoordinateXY($x,$y);
   
// create a point
$point = $geometryFactory-CreatePoint($coordinate);
 
 $queryOptions = new MgFeatureQueryOptions();

$queryOptions-SetSpatialFilter('Geometry',$point,MgFeatureSpatialOperat
ions::Intersects);
 
 
 $layerResource = new MgResourceIdentifier($layerdefinition); 
 $layer = new MgLayer($layerResource, $resourceService);
 
 
 $layerClassName = $layer-GetFeatureClassName();
 
 $layerFeatureId = $layer-GetFeatureSourceId(); 
$layerFeatureResource = new
MgResourceIdentifier($layerFeatureId); 
$layerId = $layer-GetObjectId(); 
 
 $featureReader =
$featureService-SelectFeatures($layerFeatureResource,$layerClassName,$q
ueryOptions); 

 

 

 

 

 

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

 

 

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


RE: [mapguide-users] Problems with selection

2009-01-12 Thread Mark Pendergraft
What about zooming to the feature using the maps Zoom to selection
method:

ExecuteMapAction(10);

Does the map zoom to the correct feature?  Is it highlighted afterwards?

-Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of clarkie342
Sent: Monday, January 12, 2009 11:33 AM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Problems with selection


Is there a solution to the initial issue here? I came across the same
thing
but I do not have any joins in the feature source.
Here is the javascript that I have to update the selection. 

var selectionXml =
document.getElementById(ctl00_ContentPlaceHolder1_hfSelectXml).getAttr
ibute(value);
var mapFrame =
document.getElementById(viewerFrame).contentWindow.GetMapFrame();

mapFrame.SetSelectionXML(selectionXml);
mapFrame.Refresh(); 

the status bar shows 1 feature selected but no feature is highlighted. I
also tried manual refresh of the map(from context menu) that did not
highlight the selected features either. Appreciate any help.
Thanks.


Andy Morsell wrote:
 
 Yes, it does say that a feature is selected.  Technically, it still is
 since
 the selection object exists on the server and is not disposed of when
you
 turn the layer off.  This is most likely by design and I find it would
 probably be more desirable than not to have that selection object
reappear
 when the layer is turned back on if it was the last thing I had
selected.
 If you want to clear the selection, even when the layer is turned off,
you
 can use the Clear Selection through the interface or programmatically.
  
 
 Andy 
 
 
   _  
 
 From: Butler, Juan P [mailto:jpbut...@co.pinellas.fl.us] 
 Sent: Thursday, April 20, 2006 11:05 AM
 To: us...@mapguide.osgeo.org
 Subject: RE: [mapguide-users] Problems with selection
 
 
 Thanks Andy.
  
 Check to see on the status bar if it states that an object is selected
 when
 the layer is turned off.  My highlight goes away, but the map still
has an
 object selected.
  
 - Juan
 
   _  
 
 From: Andy Morsell [mailto:amors...@spatialgis.com]
 Sent: Thu 4/20/2006 1:16 PM
 To: us...@mapguide.osgeo.org
 Subject: RE: [mapguide-users] Problems with selection
 
 
 I am seeing the same thing in regards to the joined feature (polygons
 joined
 to Access) not highlighting when selected but the attributes do show
up in
 the Properties pane.  I am also seeing some general weirdness with
this
 layer.  If I turn it off in the legend, it does not turn off on the
map (a
 request to the server does not occur) until I select an object.
Panning
 and
 zooming aren't forcing the refresh.  I suspect these are related
issues
 and
 the refresh flag is getting stuck when interacting with these types of
 layers.
  
 I don't see the same thing as you in the second case.  If I select an
 object
 and it highlights and then turn off that layer, the highlight turns
off as
 well.  When that layer is turned back on, the highlight also
reappears.
  
 
 Andy Morsell, P.E. 
 Spatial Integrators, Inc. 
 http://www.SpatialGIS.com  
 
  
 
 
   _  
 
 From: Butler, Juan P [mailto:jpbut...@co.pinellas.fl.us] 
 Sent: Thursday, April 20, 2006 9:36 AM
 To: us...@mapguide.osgeo.org
 Subject: RE: [mapguide-users] Problems with selection
 
 
 
 Some more observations...
  
 It seems that when I select my parcel layer that is tied to my Access
 database, the highlight feature doesn't work.  When I switch over to
use
 just the layer that is based strictly on the sdf file, the
highlighting
 works.  So I guess it has something to do with layers that are tied to
an
 Access database.  Can someone else please try this and let me know if
they
 are seeing this?
  
 Also, when I select a feature and then turn of the layer of the
selected
 feature, the feature seems to still be selected.  Odd.   
  
 FYI: I'm using the AJAXViewer
  
 - Juan
 
   _  
 
 From: Butler, Juan P
 Sent: Thu 4/20/2006 12:05 PM
 To: us...@mapguide.osgeo.org
 Subject: [mapguide-users] Problems with selection
 
 
 Has anyone experienced problems with features not highlighting after
 selection?  The data appears in the Properties frame, but the feature
 isn't
 highlighted.  Plus, the bottom of the map states 1 feature selected.
It's
 only on my parcel polygon layer.   My other polygon layers select and
 highlight fine.  Weird.
  
 Another thing I noticed was when I had a feature selected from this
layer,
 if I go to zoom out or pan, the map locks up and does nothing unless I
 unselect the feature.  
  
 - Juan
 
 

-- 
View this message in context:
http://n2.nabble.com/Problems-with-selection-tp1804059p2147489.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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

RE: [mapguide-users] Adding OpenLayers.Layer to Fusion Map

2009-01-08 Thread Mark Pendergraft
Awesome news Paul,
Can't wait to get my hands on it.  In my past maps I had a control which
would link to google maps/earth but I've really felt that integration
into my own map was the way to go from the start.
-Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Paul
Spencer
Sent: Thursday, January 08, 2009 4:17 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Adding OpenLayers.Layer to Fusion Map

In the current version, it is not directly possible to add other layer  
types but it can be done with some hacking.  I'm not even going to  
attempt to describe how to do it because I haven't actually done it ...

In the upcoming 2.0 version of Fusion, it is now possible to add any  
OpenLayers layer type via the ApplicationDefinition file.  We are  
aiming for a beta version compatible with the upcoming MapGuide  
release (2.1 I think) before the end of January that will incorporate  
many performance enhancements funded by Autodesk and a few new  
features such as the ability to add any OpenLayers layer type.  More  
to come on this as we get organized for a release.

Cheers

Paul

On 8-Jan-09, at 6:55 AM, Dragan Podvezanec wrote:


 Unfortunately, I'm struggling with the same problem. I tried to  
 create custom
 widget which would contain Openlayers map, and then tried to replace  
 default
 map with this Map, but I'm unsuccesseful so far.

 I hope there is solutions to add layers from Openlayers, because  
 this would
 provide whole bunch of 3rd party layers. Maybe some kind of Openlayers
 provider for MGOS? =^D

 -- 
 View this message in context:
http://n2.nabble.com/Adding-OpenLayers.Layer-to-Fusion-Map-tp2124563p212
7486.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] Adding OpenLayers.Layer to Fusion Map

2009-01-08 Thread Mark Pendergraft
I wasn't adding the layer switcher to my map because I had hoped to add
the layers in the Legend Widget.  When I add the LayerSwitcher Google
layers show up, but they are zoomed to the extent of the entire map (aka
entire world).
I would pursue setting them at the correct extents, but Paul informs me
that Fusion 2.0 Beta will be arriving shortly with support for any
OpenLayers Layer type.  I have a lot of work to do on my Fusion map in
the meantime so I'll put this off until the Beta comes out.
Thanks for your help.
-Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Zac Spitzer
Sent: Wednesday, January 07, 2009 5:32 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Adding OpenLayers.Layer to Fusion Map

your going to need to dive into the whole projection and OL spherical
mercator stuff

I'm prety sure the google layers will be added as what's called a base
layer in OL which means
they won't be displayed by default

does the layer switcher show up?

z


On Thu, Jan 8, 2009 at 7:27 AM, Mark Pendergraft ma...@meadgilman.com
wrote:
 I would like to add an OpenLayers.Layer (specifically google maps) to
my
 MGOS Fusion Layout.  I've been looking through the posts and there is
a lot
 of info regarding both of these but I'm at a loss as to how to
implement it
 with Fusion.

 I can get the OpenLayers map using the following code

 var mapWidget = Fusion.getWidgetById('Map');

 var olmap = mapWidget.oMapOL;



 and on a separate page that I made I can implement google into
openlayers
 using the following script:



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

 map.addControl(new OpenLayers.Control.LayerSwitcher());

 var gphy = new OpenLayers.Layer.Google(

 Google Physical,

 {type: G_PHYSICAL_MAP}

 );

 var gmap = new OpenLayers.Layer.Google(

 Google Streets, // the default

 {numZoomLevels: 20}

 );

 var ghyb = new OpenLayers.Layer.Google(

 Google Hybrid,

 {type: G_HYBRID_MAP, numZoomLevels: 20}

 );

 var gsat = new OpenLayers.Layer.Google(

 Google Satellite,

 {type: G_SATELLITE_MAP, numZoomLevels: 20}

 );

 map.addLayers([gphy, gmap, ghyb, gsat]);

 map.setCenter(new OpenLayers.LonLat(10.2, 48.9), 5);



 But I'm not sure how to implement both together.  When I add the
google
 layers to the olMap, nothing breaks but my normal Fusion layout shows
up.

 I'm looking for a push in the right direction here, or a link to an
example
 that I can explore.  The end goal is to have my normal Fusion map with
 google as a layer which can be turned on/off in the legend widget.

 I'm assuming that I will have to access openlayers via
 Fusion.getWidgetById('Map').olMap; and add the openlayers.layer to the
 olMap.  But then how do I register those layers with the mapWidget in
order
 for them to show up.  Also, I'm assuming that I will have to set some
type
 of bounds or coordinate conversion for the google layers to know where
they
 are on my map, seeing as my map is on a state plane coordinate system
 instead of lat/long.

 Thanks for the help

 -Mark P.

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





-- 
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Adding OpenLayers.Layer to Fusion Map

2009-01-07 Thread Mark Pendergraft
I would like to add an OpenLayers.Layer (specifically google maps) to my
MGOS Fusion Layout.  I've been looking through the posts and there is a
lot of info regarding both of these but I'm at a loss as to how to
implement it with Fusion.

I can get the OpenLayers map using the following code

var mapWidget = Fusion.getWidgetById('Map');

var olmap = mapWidget.oMapOL;

 

and on a separate page that I made I can implement google into
openlayers using the following script:

 

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

map.addControl(new OpenLayers.Control.LayerSwitcher());

var gphy = new OpenLayers.Layer.Google(

Google Physical,

{type: G_PHYSICAL_MAP}

);

var gmap = new OpenLayers.Layer.Google(

Google Streets, // the default

{numZoomLevels: 20}

);

var ghyb = new OpenLayers.Layer.Google(

Google Hybrid,

{type: G_HYBRID_MAP, numZoomLevels: 20}

);

var gsat = new OpenLayers.Layer.Google(

Google Satellite,

{type: G_SATELLITE_MAP, numZoomLevels: 20}

);

map.addLayers([gphy, gmap, ghyb, gsat]);

map.setCenter(new OpenLayers.LonLat(10.2, 48.9), 5);

 

But I'm not sure how to implement both together.  When I add the google
layers to the olMap, nothing breaks but my normal Fusion layout shows
up.

I'm looking for a push in the right direction here, or a link to an
example that I can explore.  The end goal is to have my normal Fusion
map with google as a layer which can be turned on/off in the legend
widget.

I'm assuming that I will have to access openlayers via
Fusion.getWidgetById('Map').olMap; and add the openlayers.layer to the
olMap.  But then how do I register those layers with the mapWidget in
order for them to show up.  Also, I'm assuming that I will have to set
some type of bounds or coordinate conversion for the google layers to
know where they are on my map, seeing as my map is on a state plane
coordinate system instead of lat/long.

Thanks for the help

-Mark P.

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


RE: [mapguide-users] DigitizePolygon

2009-01-05 Thread Mark Pendergraft
Is there any documentation regarding how a widget should be structured
or what functions need to be overloaded, etc?  The only thing I've found
is the Fusion Learning Materials which just states how to implement the
widget's XML in the AppDef file.  

Mark P.

-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Paul
Spencer
Sent: Monday, January 05, 2009 7:43 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] DigitizePolygon

I think you have bypassed something critical in the process, but I'm  
not sure.  When the digitize functions are used, something needs to  
tell the digitized features that the extent has changed so they can  
redraw themselves.  It should happen automatically by something  
registering for an event on the map, so something about how you've  
implemented it is probably bypassing this part.  Unfortunately I  
haven't used this at all so I can't really help much with debugging.   
Perhaps Chris or Mike could comment?

Paul

On 4-Jan-09, at 6:35 PM, Mark Pendergraft wrote:

 I have some questions about this function provided in the  
 MapGuideViewerApi.js file.  I was wondering if anyone else is using  
 this function and if they have any issues with panning and or  
 zooming while the user is digitizing.  I'm calling the function from  
 a widget and panning/zooming and refreshing the map all cause it to  
 break.  I'm curious if this is an issue with my widget not telling  
 Fusion that it's active, or (the less likely of the two) if these  
 actions were overlooked when the function was designed.
 Thanks for the help
 -Mark Pendergraft
 ___
 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] Geocoding in MapGuide

2008-12-29 Thread Mark Pendergraft
Google has a geocoding web service.  Look in their API section for more
info.

-Mark P.

 

From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Dilson
Zititi Kitoko
Sent: Monday, December 22, 2008 3:38 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Geocoding in MapGuide

 

 

I know mapguide doesn't directly support geocoding.Does anyone know how
can Integrate with some geocoding engine(web service) using the API's?

 

Atenciosamente,

 

Dilson Zititi Kitoko

Analista GIS

 

 

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


[mapguide-users] Selection in Fusion

2008-12-23 Thread Mark Pendergraft
I'm using MGOS 2.02 and IIS 7 on Vista x64.  I'm having problems setting
the selection in fusion.

 

I step through the code and get this error in  fusion.js at
ajaxException:

 

SetSelection Exception: An unclassified exception occurred.

Exception occurred in method MgSelectionBase_FromXml at line 12308 in
file .\MgApi_wrap.cpp

 

Everything seems to be in order, i just can't seem to figure out what is
causing it to break.

My selection xml is as follows:

 

?xml version=1.0 encoding=UTF-8?FeatureSet
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLocation=FeatureSet-1.0.0.xsd Layer
id=75d6a8aa--1000-8002-0021706d98cf  Class id=Default:Jobs
IDAQ==/ID  /Class /Layer/FeatureSet

 

Is anyone else having this problem with setting the selection?

 

PLEASE HELP

Thanks.

-Mark Pendergraft

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


[mapguide-users] Set Selection in Fusion

2008-12-21 Thread Mark Pendergraft
I have created a Search widget for Fusion (MGOS 2.02) and I can't get
the javascript code to set the selection and zoom to it.  I've tried
using the functions provided in MapGuide.js and MapGuideViewerApi.js but
neither work.  I have been focusing on the MapGuideViewerApi.js function
'SetSelectionXML()' which returns no errors but does not set the
selection or zoom.  The map does nothing, and I remain confused.

 

My website is setup with a search box widget, when the user presses
enter it sends the search text to a web service which queries the map
and returns the selection xml.  The selection XML is then passed to the
SetSelectionXML function, and I have also tried the setSelection()
function.  Neither do anything at all, yet return no errors.

 

Any help would be appreciated.  I suspect I might have to save my
selection on the server and then find the coordinates for the geometry
and then pass that back and zoom to it, but that seems to completely
defeat the purpose of the two javascript files mentioned above.

 

Thanks for the help.

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


RE: [mapguide-users] Jx Layout and Fusion

2008-12-04 Thread Mark Pendergraft
I found the problem.

In my index.html I had 2 references.  One to fusion.js and one to jx.js.
When I removed the jx.js reference, everything worked just fine.  Thanks
a bunch for your help regardless.

-Mark Pendergraft

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, December 04, 2008 8:08 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Jx Layout and Fusion

Thanks Paul,
Here is my index.html, applicaitondefintion.xml and css.
The ApplicationDefinition.xml and CSS were copied from the
fusion/templates/aqua/ directory from the MGOS 2.02 installation with
only a few very slight modifications.

I essentially want a layout that is all map, but I'd like the
legend/SelectionPanel/TaskPane to be tabs (very similar to the LimeGold
layout) but in a movable and resizable dialog.

I did look through the examples on jxlib.org, but the jxlib seems to be
a later iteration of the code.  I am able to create a tabbox in a dialog
using the jxlib, just not using the fusion libraries.

Thanks for your help.
-Mark Pendergraft


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Spencer
Sent: Thursday, December 04, 2008 5:33 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Jx Layout and Fusion

Hi Mark,

this is probably something to do with Jx.  Jx.Layout is used to make
things fill their containers, it sounds like you are missing something.
Perhaps if you post your code+html+css we could advise you ...

Cheers

Paul


On 3-Dec-08, at 1:46 PM, Mark Pendergraft wrote:

 I have a question about the Jx libraries in relation to Fusion.  I'm 
 trying to build my own layout for fusion similar to the aqua layout 
 supplied with MGOS.  I would like the Legend, SelectionPanel, and Task

 Pane to show up as tabs in a dialog.  The code works and they are 
 displayed as such, but the tabbox doesn't take up the entire dialog, 
 so there are scroll bars up/down and left/right and there is blank 
 space on the bottom and right of the dialog that the tabbox sits in.  
 There is also blank space on the bottom of the dialog that I have 
 created for the overview map, even though I used the same exact code 
 as the provided template.  Is this a Jx issue, or are the sizes of the

 controls handled in another part of the code?
 I looked in the css for the template, and I didn't see anything.
 Also, If I create separate dialog boxes for all three elements 
 (taskpane, selectionpanel, and legend) than each element fills it's 
 dialog completely like it's supposed to.
 Thanks for the help!
 -Mark Pendergraft
 ___
 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] what's holding people back from upgrading to 2.0?

2008-10-07 Thread Mark Pendergraft
I'm using 1.2 on my release machine.  It's primarily because of a bug in
2.0 which doesn't allow me to access a SDF resource after
GetSelectionXML() or SetSelectionXML() is called.  This is detailed in
the trac ticket http://trac.osgeo.org/mapguide/ticket/524.  Basically,
if a user searches for a job, or parcel, then they won't be able to
interact with it further because the resource will be busy.  It
basically negates the search function of my program, which makes the
program itself pretty useless.

-Mark Pendergraft


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zac Spitzer
Sent: Monday, October 06, 2008 7:02 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] what's holding people back from upgrading to
2.0?

There seems to be quite a few people who are sticking with 1.2 due to
various issues

Can people post in this thread what issues are holding them back so we
can get some visibility?

-- 
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] RE: Tiffs and MGOS 2.01

2008-10-02 Thread Mark Pendergraft
I never upgraded MGE to MGOS.  I was using MapGuide Open Source 2.0.1
prior to upgrading to 2.0.2.

I think you are confused because I said I was using MapGuide *Studio*
2009, which is what I have been using to author the map.  Sorry I
couldn't help.

-Mark Pendergraft

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Maksim
Sestic
Sent: Thursday, October 02, 2008 12:19 AM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] RE: Tiffs and MGOS 2.01

 

Hi Mark,

 

What procedure did you follow to upgrade MapGuide Enterprise 2009 to
2.0.2?

 

Regards,

Maksim Sestic

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, October 02, 2008 07:07
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] RE: Tiffs and MGOS 2.01

I have upgraded to 2.02 and now I can see the tiff in my map.  however,
I can only see the tiff in my map when the coordinate system is the same
as the coordinate system in the tiff (regardless of overrides).  Any
ideas?

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Wednesday, October 01, 2008 4:22 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] RE: Tiffs and MGOS 2.01

 

I did have a coordinate system override specified at first.  It was the
same coordinate system as my map (WAHP-NF), but when I looked at it in
the layer preview, the scale was 1:4.65.  Seeing as the TIFF covers the
entire Puget Sound in Washington State, I knew something was up.  So I
didn't specify an override, and I create a new map with the same
coordinate system as the tiff.  When I look at the tiff in the layer
preview sans override, the scale is 1:1698729.00 (which is more like
it).

However in my map with the same coordinate system, I see nothing.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Wednesday, October 01, 2008 4:12 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] RE: Tiffs and MGOS 2.01

 

Did you specify a coordinate system override on your Data connection so
that when you add the layer to the map it knows what CS it's in?

 

Dave

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Wednesday, October 01, 2008 4:56 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Tiffs and MGOS 2.01

 

I'm having trouble with TIFF's in MGOS 2.01.  I'm using Mapguide Studio
2009 and the GDAL provider.  I can create a data resource from a
directory containing 4 tiffs (downloaded from USGS National Map - NED
Imagery).  And I'm able to create a layer, and view the tiff data in the
layer preview.  Everything is fine until I add it into my map.  It
doesn't show up at all.  I have even made another map with just the tiff
layer, and zoomed way out.  Nothing.  I have tried different coordinate
systems, and I'm currently using the LL83 (which is the same as the tiff
coordinate system) and I've even plugged in the lat/longs from the
tiff's lower/upper corners into the map.  Am I missing something here?

 

Thanks.

-Mark Pendergraft



__ Information from ESET NOD32 Antivirus, version of virus
signature database 3484 (20080930) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

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


RE: [mapguide-users] RE: Tiffs and MGOS 2.01

2008-10-02 Thread Mark Pendergraft
Thanks.  I will be looking forward to this.

I did have a question about styling a tiff: is there a way to control
how the tiff is displayed color-wise in the map?  When I create the data
resource, there is an option to control the colors of on and off
pixels.  However, when I change these settings, nothing happens.  I was
hoping to display my image in a grey/black shading.  When I look at the
tiff in my layer preview and map, it has about 10+ colors.  More colors
is great, but how do I control their appearance?

Thanks for the help.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zac Spitzer
Sent: Wednesday, October 01, 2008 10:10 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] RE: Tiffs and MGOS 2.01

opps, I meant http://trac.osgeo.org/mapguide/wiki/MapGuideRfc51

On Thu, Oct 2, 2008 at 3:09 PM, Zac Spitzer [EMAIL PROTECTED]
wrote:
 coming very soon - http://trac.osgeo.org/mapguide/wiki/MapGuideRfc55

 it was just committed to subversion, you should be able to compile a
version

 so you got rasters with GDAL working stably? cool

 z

 On Thu, Oct 2, 2008 at 3:06 PM, Mark Pendergraft
[EMAIL PROTECTED] wrote:
 I have upgraded to 2.02 and now I can see the tiff in my map.
however, I
 can only see the tiff in my map when the coordinate system is the
same as
 the coordinate system in the tiff (regardless of overrides).  Any
ideas?



 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mark
 Pendergraft
 Sent: Wednesday, October 01, 2008 4:22 PM
 To: MapGuide Users Mail List
 Subject: RE: [mapguide-users] RE: Tiffs and MGOS 2.01



 I did have a coordinate system override specified at first.  It was
the same
 coordinate system as my map (WAHP-NF), but when I looked at it in the
layer
 preview, the scale was 1:4.65.  Seeing as the TIFF covers the entire
Puget
 Sound in Washington State, I knew something was up.  So I didn't
specify an
 override, and I create a new map with the same coordinate system as
the
 tiff.  When I look at the tiff in the layer preview sans override,
the scale
 is 1:1698729.00 (which is more like it).

 However in my map with the same coordinate system, I see nothing.



 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Dave
Wilson
 Sent: Wednesday, October 01, 2008 4:12 PM
 To: MapGuide Users Mail List
 Subject: [mapguide-users] RE: Tiffs and MGOS 2.01



 Did you specify a coordinate system override on your Data connection
so that
 when you add the layer to the map it knows what CS it's in?



 Dave



 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mark
 Pendergraft
 Sent: Wednesday, October 01, 2008 4:56 PM
 To: mapguide-users@lists.osgeo.org
 Subject: [mapguide-users] Tiffs and MGOS 2.01



 I'm having trouble with TIFF's in MGOS 2.01.  I'm using Mapguide
Studio 2009
 and the GDAL provider.  I can create a data resource from a directory
 containing 4 tiffs (downloaded from USGS National Map - NED Imagery).
And
 I'm able to create a layer, and view the tiff data in the layer
preview.
 Everything is fine until I add it into my map.  It doesn't show up at
all.
 I have even made another map with just the tiff layer, and zoomed way
out.
 Nothing.  I have tried different coordinate systems, and I'm
currently using
 the LL83 (which is the same as the tiff coordinate system) and I've
even
 plugged in the lat/longs from the tiff's lower/upper corners into the
map.
 Am I missing something here?



 Thanks.

 -Mark Pendergraft

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





 --
 Zac Spitzer -
 http://zacster.blogspot.com (My Blog)
 +61 405 847 168




-- 
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] RE: Tiffs and MGOS 2.01

2008-10-02 Thread Mark Pendergraft
Thanks, I thought it might have been a function of the image itself.  I
will see what I can do with GDAL tools.
-Mark P.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Morsell
Sent: Thursday, October 02, 2008 10:07 AM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] RE: Tiffs and MGOS 2.01

The on and off settings only apply to bitonal (1 bit) images.  There
are
no settings that pertain to grayscale or color images.  You would have
to
pre-process your images with an image editor or something like GDAL
Tools in
order to alter their appearance. 

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


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, October 02, 2008 7:40 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] RE: Tiffs and MGOS 2.01

Thanks.  I will be looking forward to this.

I did have a question about styling a tiff: is there a way to control
how the tiff is displayed color-wise in the map?  When I create the data
resource, there is an option to control the colors of on and off
pixels.  However, when I change these settings, nothing happens.  I was
hoping to display my image in a grey/black shading.  When I look at the
tiff in my layer preview and map, it has about 10+ colors.  More colors
is great, but how do I control their appearance?

Thanks for the help.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zac Spitzer
Sent: Wednesday, October 01, 2008 10:10 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] RE: Tiffs and MGOS 2.01

opps, I meant http://trac.osgeo.org/mapguide/wiki/MapGuideRfc51

On Thu, Oct 2, 2008 at 3:09 PM, Zac Spitzer [EMAIL PROTECTED]
wrote:
 coming very soon - http://trac.osgeo.org/mapguide/wiki/MapGuideRfc55

 it was just committed to subversion, you should be able to compile a
version

 so you got rasters with GDAL working stably? cool

 z

 On Thu, Oct 2, 2008 at 3:06 PM, Mark Pendergraft
[EMAIL PROTECTED] wrote:
 I have upgraded to 2.02 and now I can see the tiff in my map.
however, I
 can only see the tiff in my map when the coordinate system is the
same as
 the coordinate system in the tiff (regardless of overrides).  Any
ideas?



 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mark
 Pendergraft
 Sent: Wednesday, October 01, 2008 4:22 PM
 To: MapGuide Users Mail List
 Subject: RE: [mapguide-users] RE: Tiffs and MGOS 2.01



 I did have a coordinate system override specified at first.  It was
the same
 coordinate system as my map (WAHP-NF), but when I looked at it in the
layer
 preview, the scale was 1:4.65.  Seeing as the TIFF covers the entire
Puget
 Sound in Washington State, I knew something was up.  So I didn't
specify an
 override, and I create a new map with the same coordinate system as
the
 tiff.  When I look at the tiff in the layer preview sans override,
the scale
 is 1:1698729.00 (which is more like it).

 However in my map with the same coordinate system, I see nothing.



 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Dave
Wilson
 Sent: Wednesday, October 01, 2008 4:12 PM
 To: MapGuide Users Mail List
 Subject: [mapguide-users] RE: Tiffs and MGOS 2.01



 Did you specify a coordinate system override on your Data connection
so that
 when you add the layer to the map it knows what CS it's in?



 Dave



 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mark
 Pendergraft
 Sent: Wednesday, October 01, 2008 4:56 PM
 To: mapguide-users@lists.osgeo.org
 Subject: [mapguide-users] Tiffs and MGOS 2.01



 I'm having trouble with TIFF's in MGOS 2.01.  I'm using Mapguide
Studio 2009
 and the GDAL provider.  I can create a data resource from a directory
 containing 4 tiffs (downloaded from USGS National Map - NED Imagery).
And
 I'm able to create a layer, and view the tiff data in the layer
preview.
 Everything is fine until I add it into my map.  It doesn't show up at
all.
 I have even made another map with just the tiff layer, and zoomed way
out.
 Nothing.  I have tried different coordinate systems, and I'm
currently using
 the LL83 (which is the same as the tiff coordinate system) and I've
even
 plugged in the lat/longs from the tiff's lower/upper corners into the
map.
 Am I missing something here?



 Thanks.

 -Mark Pendergraft

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





 --
 Zac Spitzer -
 http://zacster.blogspot.com (My Blog)
 +61 405 847 168




-- 
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
___
mapguide-users mailing list
mapguide-users

RE: [mapguide-users] Javascript access

2008-10-02 Thread Mark Pendergraft
Could you post the javascript you have so far?

 

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

 

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

 

body

iframe name=viewerFrame

iframe name=assetFrame

/body

 

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

 

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

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

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


RE: [mapguide-users] Javascript access

2008-10-02 Thread Mark Pendergraft
Hmnn.  I can't seem to make the function GetFormFrame() to work
either.

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

 

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

 

I want to do something like this...

 

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

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

 

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

 

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

 

Could you post the javascript you have so far?

 

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

 

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

 

body

iframe name=viewerFrame

iframe name=assetFrame

/body

 

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

 

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

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

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

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


RE: [mapguide-users] RE: Tiffs and MGOS 2.01

2008-10-01 Thread Mark Pendergraft
I did have a coordinate system override specified at first.  It was the
same coordinate system as my map (WAHP-NF), but when I looked at it in
the layer preview, the scale was 1:4.65.  Seeing as the TIFF covers the
entire Puget Sound in Washington State, I knew something was up.  So I
didn't specify an override, and I create a new map with the same
coordinate system as the tiff.  When I look at the tiff in the layer
preview sans override, the scale is 1:1698729.00 (which is more like
it).

However in my map with the same coordinate system, I see nothing.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Wednesday, October 01, 2008 4:12 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] RE: Tiffs and MGOS 2.01

 

Did you specify a coordinate system override on your Data connection so
that when you add the layer to the map it knows what CS it's in?

 

Dave

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Wednesday, October 01, 2008 4:56 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Tiffs and MGOS 2.01

 

I'm having trouble with TIFF's in MGOS 2.01.  I'm using Mapguide Studio
2009 and the GDAL provider.  I can create a data resource from a
directory containing 4 tiffs (downloaded from USGS National Map - NED
Imagery).  And I'm able to create a layer, and view the tiff data in the
layer preview.  Everything is fine until I add it into my map.  It
doesn't show up at all.  I have even made another map with just the tiff
layer, and zoomed way out.  Nothing.  I have tried different coordinate
systems, and I'm currently using the LL83 (which is the same as the tiff
coordinate system) and I've even plugged in the lat/longs from the
tiff's lower/upper corners into the map.  Am I missing something here?

 

Thanks.

-Mark Pendergraft

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


RE: [mapguide-users] RE: Tiffs and MGOS 2.01

2008-10-01 Thread Mark Pendergraft
I have upgraded to 2.02 and now I can see the tiff in my map.  however,
I can only see the tiff in my map when the coordinate system is the same
as the coordinate system in the tiff (regardless of overrides).  Any
ideas?

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Wednesday, October 01, 2008 4:22 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] RE: Tiffs and MGOS 2.01

 

I did have a coordinate system override specified at first.  It was the
same coordinate system as my map (WAHP-NF), but when I looked at it in
the layer preview, the scale was 1:4.65.  Seeing as the TIFF covers the
entire Puget Sound in Washington State, I knew something was up.  So I
didn't specify an override, and I create a new map with the same
coordinate system as the tiff.  When I look at the tiff in the layer
preview sans override, the scale is 1:1698729.00 (which is more like
it).

However in my map with the same coordinate system, I see nothing.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Wednesday, October 01, 2008 4:12 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] RE: Tiffs and MGOS 2.01

 

Did you specify a coordinate system override on your Data connection so
that when you add the layer to the map it knows what CS it's in?

 

Dave

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Wednesday, October 01, 2008 4:56 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Tiffs and MGOS 2.01

 

I'm having trouble with TIFF's in MGOS 2.01.  I'm using Mapguide Studio
2009 and the GDAL provider.  I can create a data resource from a
directory containing 4 tiffs (downloaded from USGS National Map - NED
Imagery).  And I'm able to create a layer, and view the tiff data in the
layer preview.  Everything is fine until I add it into my map.  It
doesn't show up at all.  I have even made another map with just the tiff
layer, and zoomed way out.  Nothing.  I have tried different coordinate
systems, and I'm currently using the LL83 (which is the same as the tiff
coordinate system) and I've even plugged in the lat/longs from the
tiff's lower/upper corners into the map.  Am I missing something here?

 

Thanks.

-Mark Pendergraft

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


RE: [mapguide-users] Google Chrome

2008-09-02 Thread Mark Pendergraft
Yeah, I checked it out and I was impressed by some of the new features.
I browsed to my MGOS 2.0.1 site, and it worked fine, then over to my
MGOS 1.2 site which didn't work.  When I went back to my 2.0.1 site, it
didn't work either.  ?

I noticed that Internet Explorer 8 is out in beta too, I was quite
amazed with it as well.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kori
Maleski
Sent: Tuesday, September 02, 2008 5:21 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Google Chrome

 

My Google/MapGuide application works, but there are issues with custom
tooltip mouseover effects.

 

If only there was FireBug for Chrome...



 

On Tue, Sep 2, 2008 at 5:00 PM, Andy Morsell [EMAIL PROTECTED]
wrote:

Chrome looks pretty cool so far.  But, it's not working with any MGOS
1.2
sites.  It seems to work fine with MGOS 2.0 standard and flexible
layouts,
though.  And, ironically, it does not work with a Google Maps mashup of
mine
that works on IE and Firefox.

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


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of shreepad
Sent: Tuesday, September 02, 2008 2:06 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Google Chrome



just started using Google chrome was waiting for this for couple year
its really good and one good thing MGOS works just fine on the chrome

shreepad


--
View this message in context:
http://www.nabble.com/Google-Chrome-tp19278372p19278372.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] fusion and javascript

2008-08-20 Thread Mark Pendergraft
Thanks for the heads up Paul.  I'm exicted to move my map to Fusion, but with 
the lack of documentation it can be a bit frustrating.
I will try your tip and see how things work out.

-Mark P.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Spencer
Sent: Wednesday, August 20, 2008 9:36 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] fusion and javascript

I'm not using the viewer api thing but I can confirm that having a  
comma after the last thing in an object declaration or array is not  
valid for IE (but firefox silently ignores it).

Not sure about the var Fusion thing, but that seems reasonable since  
the task pane runs inside an iframe which is a separate document and  
doesn't automatically have references to its containing page variable  
namespace.

It has just occurred to me that this might work better if you don't  
include the MapGuideViewerAPI.js in your task page but rather include  
it in your main index page and then reference its functions through  
window.top ???  Then you wouldn't need to include the javascript files  
in your task page - i.e. use window.top.DigitizePoint()

Cheers

Paul

On 20-Aug-08, at 12:27 PM, Mark Pendergraft wrote:

 I have answered some of my own questions here.

 Lines 253 and 321 in MapGuideViewerApi.js were continually breaking  
 my code.  They were curly braces followed by a comma as part of the  
 LineHandlers and RectangleHandlers classes  },.  Both of those  
 lines are the closing braces for the last functions in the class,  
 and once I removed the commas following the two curly braces  
 mentioned, everything compiled.
 Also, I had to add a reference to fusion var Fusion =  
 window.top.Fusion to the file.

 I also have to reference a bunch of stuff to use the functions.  In  
 order to use the DigitizePoint() function I had to reference:
 Fusion.js
 Map.js
 Prototype.js
 CanvasTool.js

 And of course MapGuideViewerApi.js


 Is anyone else having these problems calling MapGuideViewerApi  
 functions in their application, or am I just doing something wrong?

 -Mark P.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 ] On Behalf Of Mark Pendergraft
 Sent: Monday, August 18, 2008 3:59 PM
 To: mapguide-users@lists.osgeo.org
 Subject: [mapguide-users] fusion and javascript

 Hello All,
 I’m having a lot of trouble with Fusion and javascript.  I am  
 somewhat of a newb to fusion, so please bare with me.
 I have a aspx page in the task pane which I have been adding some  
 buttons with some javascript too, in order to test things out.
 At this point, it appears that any call to a function defined in  
 MapGuide.js (../fusion/mapguide/mapguide.js) won’t break my code.   
 For example  
 “parent 
 .document.getElementById('Map').widget.aMaps[0].drawMap();” would  
 refresh the map.
 However, any calls to MapGuideViewerApi.js will not work.
 I have tried including it into my page, and I have also tried  
 calling it in different fashion.
 For example:
 var Fusion = window.top.Fusion;
 var map = Fusion.getWidgetById('Map');
 map.Refresh();

 Why won’t the MapGuideViewerApi.js functions work?  If they can’t  
 be used, how do i zoom and digitize points?
 Also, I mentioned that the mapguide.js functions work, yet  
 setSelection does not.
 I get the following error

 Fusion Error:
 WARNING: Exception occurred in AJAX callback.
 [object Error]
 Location: {1} ({2})
 xx)

 At this point, the functions I need to work in order for my code to  
 function are:
 setSelection
 digitizePoint
 digitizeRectangle

 None of which work  
 Any help or a push in the right direction would be greatly  
 appreciated.

 Setup:
 MGOS 2.0.1
 Fusion 1.0.6
 Autodesk MapGuide Studio 2009
 Using IIS, VB, and VS 2005 Pro
 ___
 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 Javascript

2008-08-20 Thread Mark Pendergraft
Hello All,

I'm having a lot of trouble with Fusion and javascript.  I am somewhat
of a newb to fusion, so please bare with me.

I have a aspx page in the task pane which I have been adding some
buttons with some javascript too, in order to test things out.

At this point, it appears that any call to a function defined in
MapGuide.js (../fusion/mapguide/mapguide.js) won't break my code.  For
example
parent.document.getElementById('Map').widget.aMaps[0].drawMap(); would
refresh the map.

However, any calls to MapGuideViewerApi.js will not work.

I have tried including it into my page, and I have also tried calling it
in different fashion.

For example:

var Fusion = window.top.Fusion;

var map = Fusion.getWidgetById('Map');

map.Refresh();

 

Why won't the MapGuideViewerApi.js functions work?  If they can't be
used, how do i zoom and digitize points?

Also, I mentioned that the mapguide.js functions work, yet setSelection
does not.

I get the following error

 

Fusion Error:

WARNING: Exception occurred in AJAX callback.

[object Error]

Location: {1} ({2})

xx)

 

At this point, the functions I need to work in order for my code to
function are:

setSelection

digitizePoint

digitizeRectangle

 

None of which work  J

Any help or a push in the right direction would be greatly appreciated.

 

Setup:

MGOS 2.0.1

Fusion 1.0.6

Autodesk MapGuide Studio 2009

Using IIS, VB, and VS 2005 Pro

 

 

Ph: (425) 486-1252  Fx: (425) 486-6108  www.meadgilman.com
http://www.meadgilman.com/ 

 

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


[mapguide-users] fusion and javascript

2008-08-18 Thread Mark Pendergraft
Hello All,
I’m having a lot of trouble with Fusion and javascript.  I am somewhat of a 
newb to fusion, so please bare with me.
I have a aspx page in the task pane which I have been adding some buttons with 
some javascript too, in order to test things out.
At this point, it appears that any call to a function defined in MapGuide.js 
(../fusion/mapguide/mapguide.js) won’t break my code.  For example 
“parent.document.getElementById('Map').widget.aMaps[0].drawMap();” would 
refresh the map.
However, any calls to MapGuideViewerApi.js will not work.
I have tried including it into my page, and I have also tried calling it in 
different fashion.
For example:
var Fusion = window.top.Fusion;
var map = Fusion.getWidgetById('Map');
map.Refresh();

Why won’t the MapGuideViewerApi.js functions work?  If they can’t be used, how 
do i zoom and digitize points?
Also, I mentioned that the mapguide.js functions work, yet setSelection does 
not.
I get the following error

Fusion Error:
WARNING: Exception occurred in AJAX callback.
[object Error]
Location: {1} ({2})
xx)

At this point, the functions I need to work in order for my code to function 
are:
setSelection
digitizePoint
digitizeRectangle

None of which work  
Any help or a push in the right direction would be greatly appreciated.

Setup:
MGOS 2.0.1
Fusion 1.0.6
Autodesk MapGuide Studio 2009
Using IIS, VB, and VS 2005 Pro
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Please try your operation later as theresource was busy

2008-06-27 Thread Mark Pendergraft
I have not found a solution to the issue, it's a bug in 2.0 and there is
already a trac ticket for it(http://trac.osgeo.org/mapguide/ticket/524)

The solution I have come up with, is to roll back my map to 1.2.
Sorry for the bad news
-Mark Pendergraft.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dirk-64
Sent: Thursday, June 26, 2008 11:57 PM
To: mapguide-users@lists.osgeo.org
Subject: RE: [mapguide-users] Please try your operation later as
theresource was busy


i'm using MGOS2.0 and got the same error when trying to update the
feature
source i just had read from, by the feature service's UpdateFeature
method.
I closed the feature reader and call the delete method of
MgFeatureReader
before. Neither the Close nor the delete makes any difference, the error
stays the same:

MgFeatureReader locReader = featureService.SelectFeatures(featureId 
locReader.ReadNext()

locReader.Close();
locReader.delete();

featureService.UpdateFeatures(featureId, cmdCollection, false);


did you found any solution to your issue - probably the same like i'm
looking for,

dirk.


A H wrote:
 
 i'm using MGOS1.2 and got the same error while trying to query a
recently
 updated layer
 
 
   MgFeatureQueryOptions locQuery =
new MgFeatureQueryOptions();
   locQuery.SetFilter(ID like
'%');
   
   MgFeatureReader locReader =
locLayer.SelectFeatures(locQuery);
   
   MgSelection selection = new
MgSelection(map);
   selection.AddFeatures(locLayer,
locReader, 0);
   selectionXml =
selection.ToXml();
 
 
 Please try your operation later as the resource was busy:

Session:98c4f84e---8000-00508bbe3169_en_0A0223600AFC0AFB0AFA//Lo
cation.FeatureSource
 Please try your operation later as the resource was busy:

Session:98c4f84e---8000-00508bbe3169_en_0A0223600AFC0AFB0AFA//Lo
cation.FeatureSource 
 Exception occurred in method
 MgServerResourceService.RemoveCachedFdoConnection at line 2234 in file

c:\build_bond_area\mapguide_open_source_v1.2\build_18.1\mgdev\server\src
\services\resource\ServerResourceService.cpp
 
 
 
 Bruce Dechant wrote:
 
 Mark,
 
 The access is similar to a database, except is dependent on what the
 underlying provider supports. In the SDF case I believe this is
multiple
 reads and single write is supported.
 
 Thanks,
 Bruce
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mark
 Pendergraft
 Sent: Friday, May 16, 2008 1:03 PM
 To: mapguide-users@lists.osgeo.org
 Subject: RE: [mapguide-users] Please try your operation later as the
 resource was busy
 
 
 I'm a little confused here.
 You make it sound as if only one person can update the library
resource
 (in
 this case a .sdf file) at a time.  I thought that multiple people
could
 interact with the file making changes at the same time more like a
 database.
 I get this error about every other time i try to add a feature to my
 feature
 source.  There is a lot of code that could be suspect, i will try to
 isolate
 the error this weekend and if it's not my code i will submit a trac
 ticket.
 
 
 Bruce Dechant wrote:

 Mark,

 The error you see below is typically a result of the resource still
 being
 used by someone else. However, if a feature reader is not closed and
you
 try to do something with the same resource (update) it can report
that
 it
 is in use still and therefore busy.

 Since you are closing your feature reader I suspect the problem is
most
 likely a defect if you are the only one that is using it.

 What provider is this happening with? Is this easily reproduced?
 If you could create a track ticket for this and include as much
 information as possible for someone to investigate the issue that
would
 be
 great.

 Thanks,
 Bruce

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mark
 Pendergraft
 Sent: Friday, May 16, 2008 11:44 AM
 To: mapguide-users@lists.osgeo.org
 Subject: Re: [mapguide-users] Please try your operation later as the
 resource was busy


 I am getting this message too.  I am closing my feature reader and
 disposing
 of it.
 The problem happens when the user adds features to one of the
feature
 sources named Jobs.  We use our map primarily to track where we
have
 worked, and users need to be able to add jobs to the map.  Sometimes
it
 works, other times it harrasses me about the resource being busy.  I
 would
 have to use the library resource because the changes need to show up
in
 everyones map.

 Am i missing something here?  is there a way to possibly check if
the
 resource is busy and force it to not be?


 zspitzer wrote:

 Are you closing your featureReader? show us some more code :)

 Also, you

[mapguide-users] Cannot Establish Connection

2008-06-12 Thread Mark Pendergraft
Ever since moving to MGOS 2.0 my map keeps crashing and giving users a
Cannot Establish Connection error.  It appears the service is actually
stopping on the machine hosting the map, and I have to go in and restart
it.  It happens about every other day, and sometimes several times a
day.

 

The server running MGOS is using Windows Server 2000 sp4 and IIS 8.0

 

Any ideas on why this is happening?  It's really starting to get
annoying, and if I can't find a fix then I will have to downgrade to
1.2.

Thanks.

-Mark P.

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


RE: [mapguide-users] Cannot Establish Connection

2008-06-12 Thread Mark Pendergraft
Oops.  Meant IIS 5.0

I am using .NET

For providers I am using only SDF

 

I will monitor the Access logs and if anything suspicious pops out at
me, I will post that as well.

Again, thanks for any help provided.

-Mark P.

 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Thursday, June 12, 2008 9:26 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

 

How did you manage to get IIS 8.0 running on Windows 2000? Are you using
.NET? Microsoft changed the behavior of Applications pools at some point
so that they will dump with an error where they didn't before. This
could be related to your behavior. It might not be.

 

Use the Access logs to determine the last set of operations you were
doing and try to figure out if certain data is causing problems.

 

Which providers are you using?

 

Dave

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, June 12, 2008 10:21 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Cannot Establish Connection

 

Ever since moving to MGOS 2.0 my map keeps crashing and giving users a
Cannot Establish Connection error.  It appears the service is actually
stopping on the machine hosting the map, and I have to go in and restart
it.  It happens about every other day, and sometimes several times a
day.

 

The server running MGOS is using Windows Server 2000 sp4 and IIS 8.0

 

Any ideas on why this is happening?  It's really starting to get
annoying, and if I can't find a fix then I will have to downgrade to
1.2.

Thanks.

-Mark P.

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


RE: [mapguide-users] Cannot Establish Connection

2008-06-12 Thread Mark Pendergraft
I don't get it

All my code is written in .NET, so why would I use PHP?

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rock Beans
Sent: Thursday, June 12, 2008 10:42 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Cannot Establish Connection

 

Might as well use PHP for the viewer since it is required anyway for the
MapAdmin.

On Thu, Jun 12, 2008 at 11:39 AM, Mark Pendergraft
[EMAIL PROTECTED] wrote:

Oops.  Meant IIS 5.0

I am using .NET

For providers I am using only SDF

 

I will monitor the Access logs and if anything suspicious pops out at
me, I will post that as well.

Again, thanks for any help provided.

-Mark P.

 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Thursday, June 12, 2008 9:26 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

 

How did you manage to get IIS 8.0 running on Windows 2000? Are you using
.NET? Microsoft changed the behavior of Applications pools at some point
so that they will dump with an error where they didn't before. This
could be related to your behavior. It might not be.

 

Use the Access logs to determine the last set of operations you were
doing and try to figure out if certain data is causing problems.

 

Which providers are you using?

 

Dave

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, June 12, 2008 10:21 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Cannot Establish Connection

 

Ever since moving to MGOS 2.0 my map keeps crashing and giving users a
Cannot Establish Connection error.  It appears the service is actually
stopping on the machine hosting the map, and I have to go in and restart
it.  It happens about every other day, and sometimes several times a
day.

 

The server running MGOS is using Windows Server 2000 sp4 and IIS 8.0

 

Any ideas on why this is happening?  It's really starting to get
annoying, and if I can't find a fix then I will have to downgrade to
1.2.

Thanks.

-Mark P.


___
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] Cannot Establish Connection

2008-06-12 Thread Mark Pendergraft
I have been pouring through the Application and Error logs, and the one
Error I consistently get is Please try your operation later as the
resource was busy

This is a flaw in MGOS 2.0 which ties up the resource after using the
SetSelectionXML command.  

Do you think that this error might be tied to the service constantly
stopping?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of nclayton
Sent: Thursday, June 12, 2008 11:39 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Cannot Establish Connection


I've been dealing with this since MGOS 1.2 and continue to have the
problem
in 2.0.1

In the Application Error log, i'm getting:

===
Faulting application mgserver.exe, version 2.0.0.2716, faulting module
msvcr80.dll, version 8.0.50727.1433, fault address 0x8aa0.

AND

Faulting application w3wp.exe, version 6.0.3790.3959, faulting module
kernel32.dll, version 5.2.3790.4062, fault address 0xbee7.

===

Then the System Error log has:

===
The MapGuide Server v2.0 service terminated unexpectedly. It has done
this
XX time(s).

AND

A process serving application pool 'MGOS' suffered a fatal communication
error wit the World Wide Web Publishing Service. The process id was
''.
The data field contains the error number.

That error number is: 8007006d

===

A lot of the stability issues were corrected in 2.0.1 but I'm getting
more
crashes now than with 2.0...I've had to change my mgos restart script
from
running every 4 hours to every 1 hour and may have to reduce it
further...





Mark Pendergraft wrote:
 
 Ever since moving to MGOS 2.0 my map keeps crashing and giving users a
 Cannot Establish Connection error.  It appears the service is
actually
 stopping on the machine hosting the map, and I have to go in and
restart
 it.  It happens about every other day, and sometimes several times a
 day.
 
  
 
 The server running MGOS is using Windows Server 2000 sp4 and IIS 8.0
 
  
 
 Any ideas on why this is happening?  It's really starting to get
 annoying, and if I can't find a fix then I will have to downgrade to
 1.2.
 
 Thanks.
 
 -Mark P.
 
 
 ___
 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/Cannot-Establish-Connection-tp17803969p17806925.ht
ml
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] Cannot Establish Connection

2008-06-12 Thread Mark Pendergraft
Hn.  There is quite a bit of error handling in my code, and
everything should be wrapped in a trycatch error block.
Neither of those errors show up in my system or application log.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Thursday, June 12, 2008 1:04 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

To be frank no. It's more likely something such as a filter or styling
or something in the data that causes the provider some serious grief.
The trick is to figure out which layer is the likely culprit.

Another possibility is that some custom API coding is doing something
incorrect or hitting some yet unidentified bug.

Check the following and see if this can help alleviate some of the
grief:

http://support.microsoft.com/kb/911816

Dave

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, June 12, 2008 1:26 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

I have been pouring through the Application and Error logs, and the one
Error I consistently get is Please try your operation later as the
resource was busy

This is a flaw in MGOS 2.0 which ties up the resource after using the
SetSelectionXML command.

Do you think that this error might be tied to the service constantly
stopping?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of nclayton
Sent: Thursday, June 12, 2008 11:39 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Cannot Establish Connection


I've been dealing with this since MGOS 1.2 and continue to have the
problem
in 2.0.1

In the Application Error log, i'm getting:

===
Faulting application mgserver.exe, version 2.0.0.2716, faulting module
msvcr80.dll, version 8.0.50727.1433, fault address 0x8aa0.

AND

Faulting application w3wp.exe, version 6.0.3790.3959, faulting module
kernel32.dll, version 5.2.3790.4062, fault address 0xbee7.

===

Then the System Error log has:

===
The MapGuide Server v2.0 service terminated unexpectedly. It has done
this
XX time(s).

AND

A process serving application pool 'MGOS' suffered a fatal communication
error wit the World Wide Web Publishing Service. The process id was
''.
The data field contains the error number.

That error number is: 8007006d

===

A lot of the stability issues were corrected in 2.0.1 but I'm getting
more
crashes now than with 2.0...I've had to change my mgos restart script
from
running every 4 hours to every 1 hour and may have to reduce it
further...





Mark Pendergraft wrote:

 Ever since moving to MGOS 2.0 my map keeps crashing and giving users a
 Cannot Establish Connection error.  It appears the service is
actually
 stopping on the machine hosting the map, and I have to go in and
restart
 it.  It happens about every other day, and sometimes several times a
 day.



 The server running MGOS is using Windows Server 2000 sp4 and IIS 8.0



 Any ideas on why this is happening?  It's really starting to get
 annoying, and if I can't find a fix then I will have to downgrade to
 1.2.

 Thanks.

 -Mark P.


 ___
 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/Cannot-Establish-Connection-tp17803969p17806925.ht
ml
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


RE: [mapguide-users] Cannot Establish Connection

2008-06-12 Thread Mark Pendergraft
I see your point.  I will follow the whitepaper and see if it helps.
Thanks.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Thursday, June 12, 2008 1:38 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

Yeah, but the post is mainly about disabling the dumping behavior of the
Application Pool. If it can soft fail you might not get some of the
grief you are seeing currently until you discover the root of the issue.

Your code and exception handling may not be the problem. If something
fails within FDO it could cause problems with the provider. Often times
those are exposed as unclassified exceptions. If you ever see those in
your MapGuide error.log then something has gone wrong. Not all
exceptions are logged to the error log.

Of course if the problem is with the .NET API then a fatal error on the
application pool isn't going to get trapped in your error handling
either I would think.

Dave

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, June 12, 2008 2:19 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

Hn.  There is quite a bit of error handling in my code, and
everything should be wrapped in a trycatch error block.
Neither of those errors show up in my system or application log.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Thursday, June 12, 2008 1:04 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

To be frank no. It's more likely something such as a filter or styling
or something in the data that causes the provider some serious grief.
The trick is to figure out which layer is the likely culprit.

Another possibility is that some custom API coding is doing something
incorrect or hitting some yet unidentified bug.

Check the following and see if this can help alleviate some of the
grief:

http://support.microsoft.com/kb/911816

Dave

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, June 12, 2008 1:26 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

I have been pouring through the Application and Error logs, and the one
Error I consistently get is Please try your operation later as the
resource was busy

This is a flaw in MGOS 2.0 which ties up the resource after using the
SetSelectionXML command.

Do you think that this error might be tied to the service constantly
stopping?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of nclayton
Sent: Thursday, June 12, 2008 11:39 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Cannot Establish Connection


I've been dealing with this since MGOS 1.2 and continue to have the
problem
in 2.0.1

In the Application Error log, i'm getting:

===
Faulting application mgserver.exe, version 2.0.0.2716, faulting module
msvcr80.dll, version 8.0.50727.1433, fault address 0x8aa0.

AND

Faulting application w3wp.exe, version 6.0.3790.3959, faulting module
kernel32.dll, version 5.2.3790.4062, fault address 0xbee7.

===

Then the System Error log has:

===
The MapGuide Server v2.0 service terminated unexpectedly. It has done
this
XX time(s).

AND

A process serving application pool 'MGOS' suffered a fatal communication
error wit the World Wide Web Publishing Service. The process id was
''.
The data field contains the error number.

That error number is: 8007006d

===

A lot of the stability issues were corrected in 2.0.1 but I'm getting
more
crashes now than with 2.0...I've had to change my mgos restart script
from
running every 4 hours to every 1 hour and may have to reduce it
further...





Mark Pendergraft wrote:

 Ever since moving to MGOS 2.0 my map keeps crashing and giving users a
 Cannot Establish Connection error.  It appears the service is
actually
 stopping on the machine hosting the map, and I have to go in and
restart
 it.  It happens about every other day, and sometimes several times a
 day.



 The server running MGOS is using Windows Server 2000 sp4 and IIS 8.0



 Any ideas on why this is happening?  It's really starting to get
 annoying, and if I can't find a fix then I will have to downgrade to
 1.2.

 Thanks.

 -Mark P.


 ___
 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

RE: [mapguide-users] Cannot Establish Connection

2008-06-12 Thread Mark Pendergraft
It has already been logged by someone else.
http://trac.osgeo.org/mapguide/ticket/524



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Thursday, June 12, 2008 2:39 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

If you are pretty sure about the behavior of SetSelectionXml you might
want to log a trac ticket on the OSGeo site with some details.

Dave

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, June 12, 2008 2:46 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

I see your point.  I will follow the whitepaper and see if it helps.
Thanks.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Thursday, June 12, 2008 1:38 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

Yeah, but the post is mainly about disabling the dumping behavior of the
Application Pool. If it can soft fail you might not get some of the
grief you are seeing currently until you discover the root of the issue.

Your code and exception handling may not be the problem. If something
fails within FDO it could cause problems with the provider. Often times
those are exposed as unclassified exceptions. If you ever see those in
your MapGuide error.log then something has gone wrong. Not all
exceptions are logged to the error log.

Of course if the problem is with the .NET API then a fatal error on the
application pool isn't going to get trapped in your error handling
either I would think.

Dave

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, June 12, 2008 2:19 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

Hn.  There is quite a bit of error handling in my code, and
everything should be wrapped in a trycatch error block.
Neither of those errors show up in my system or application log.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Wilson
Sent: Thursday, June 12, 2008 1:04 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

To be frank no. It's more likely something such as a filter or styling
or something in the data that causes the provider some serious grief.
The trick is to figure out which layer is the likely culprit.

Another possibility is that some custom API coding is doing something
incorrect or hitting some yet unidentified bug.

Check the following and see if this can help alleviate some of the
grief:

http://support.microsoft.com/kb/911816

Dave

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, June 12, 2008 1:26 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Cannot Establish Connection

I have been pouring through the Application and Error logs, and the one
Error I consistently get is Please try your operation later as the
resource was busy

This is a flaw in MGOS 2.0 which ties up the resource after using the
SetSelectionXML command.

Do you think that this error might be tied to the service constantly
stopping?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of nclayton
Sent: Thursday, June 12, 2008 11:39 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Cannot Establish Connection


I've been dealing with this since MGOS 1.2 and continue to have the
problem
in 2.0.1

In the Application Error log, i'm getting:

===
Faulting application mgserver.exe, version 2.0.0.2716, faulting module
msvcr80.dll, version 8.0.50727.1433, fault address 0x8aa0.

AND

Faulting application w3wp.exe, version 6.0.3790.3959, faulting module
kernel32.dll, version 5.2.3790.4062, fault address 0xbee7.

===

Then the System Error log has:

===
The MapGuide Server v2.0 service terminated unexpectedly. It has done
this
XX time(s).

AND

A process serving application pool 'MGOS' suffered a fatal communication
error wit the World Wide Web Publishing Service. The process id was
''.
The data field contains the error number.

That error number is: 8007006d

===

A lot of the stability issues were corrected in 2.0.1 but I'm getting
more
crashes now than with 2.0...I've had to change my mgos restart script
from
running every 4 hours to every 1 hour and may have to reduce it
further...





Mark Pendergraft wrote:

 Ever since moving to MGOS 2.0 my map keeps crashing and giving users

RE: [mapguide-users] Please try your operation later as the resource was busy

2008-05-16 Thread Mark Pendergraft

I'm a little confused here.
You make it sound as if only one person can update the library resource (in
this case a .sdf file) at a time.  I thought that multiple people could
interact with the file making changes at the same time more like a database.
I get this error about every other time i try to add a feature to my feature
source.  There is a lot of code that could be suspect, i will try to isolate
the error this weekend and if it's not my code i will submit a trac ticket.


Bruce Dechant wrote:
 
 Mark,
 
 The error you see below is typically a result of the resource still being
 used by someone else. However, if a feature reader is not closed and you
 try to do something with the same resource (update) it can report that it
 is in use still and therefore busy.
 
 Since you are closing your feature reader I suspect the problem is most
 likely a defect if you are the only one that is using it.
 
 What provider is this happening with? Is this easily reproduced?
 If you could create a track ticket for this and include as much
 information as possible for someone to investigate the issue that would be
 great.
 
 Thanks,
 Bruce
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Mark
 Pendergraft
 Sent: Friday, May 16, 2008 11:44 AM
 To: mapguide-users@lists.osgeo.org
 Subject: Re: [mapguide-users] Please try your operation later as the
 resource was busy
 
 
 I am getting this message too.  I am closing my feature reader and
 disposing
 of it.
 The problem happens when the user adds features to one of the feature
 sources named Jobs.  We use our map primarily to track where we have
 worked, and users need to be able to add jobs to the map.  Sometimes it
 works, other times it harrasses me about the resource being busy.  I would
 have to use the library resource because the changes need to show up in
 everyones map.
 
 Am i missing something here?  is there a way to possibly check if the
 resource is busy and force it to not be?
 
 
 zspitzer wrote:

 Are you closing your featureReader? show us some more code :)

 Also, you probably want to be using session resources rather than
 library resources


 
 --
 View this message in context:
 http://www.nabble.com/Please-try-your-operation-later-as-the-resource-was-busy-tp16392736p17280519.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/Please-try-your-operation-later-as-the-resource-was-busy-tp16392736p17282025.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

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


RE: [mapguide-users] do i need MapGuide Studio from Autodesk

2007-12-20 Thread Mark Pendergraft
You do NOT need mapguide studio.  You can use the web studio that comes
with the MapGuide open source files
http://localhost/mapguide/webstudio/index.html
But I don't think the web studio will let you create layouts yet.  You
can of course create all of these via programming though.

That being said, MapGuide Studio is a very handy program, and only costs
500 dollars.  You can download a free 60 day trial from Autodesk here
http://usa.autodesk.com/adsk/servlet/index?siteID=123112id=10301813

I would recommend downloading a trial and using that to get your map
started.  After that, you can use the webstudio to do everything else.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Yao Xu
Sent: Thursday, December 20, 2007 2:36 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] do i need MapGuide Studio from Autodesk

Hello~~~ I am new this MapGuide platform. Looks like
MapGuide Studio is a commercial product from Autodesk,
could you let me know a). how much this commercial
product costs?  b). is there any way to go by without
this component? 

Thanks much! 

Yao


 


Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

___
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] physical files

2007-11-19 Thread Mark Pendergraft
I was able to export the package from my production server and import it
into my testing server with no problem.  Now all of my layers and data
are the same.

Thank you very much for all of your help.

-Mark Pendergraft

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Birch
Sent: Saturday, November 17, 2007 11:34 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] physical files

 

Hmm, that's interesting (about the different standalone php.exe).  I
don't believe that it has the MapGuide extensions loaded, as all it's
doing is interacting with DBXML.  You'll want to run this script using
the php.exe that's in the main WebServerExtensions/php directory.

 

You shouldn't need constants.php; the only constant you should need is
the ResourceType, which I've hard-coded.

 

What version of MapGuide are you running?  I coded this against 1.2.0.
There have been some changes between MapGuide 1.0 and 1.2 so if you are
not using 1.2 you may need to use MgSite instead of MgSiteConnection.
You may also run into problems with the XML stuff; I'm not sure if it
was supported in PHP 5.0 (earlier versions of MapGuide came with this
instead of 5.2)

 

Jason

 



From: Zac Spitzer
Subject: Re: [mapguide-users] physical files

nice job... i got stuck trying to run this in C:\Program
Files\MapGuideOpenSource\Server\RepositoryAdmin 

it's got a different standalone php.exe there

i changed
// Define the path to your webconfig file if it's somewhere else 
define(MG_WEB_CONFIG_FILE,'../../WebServerExtensions/www/webconfig.ini
');

and got

C:\Program Files\MapGuideOpenSource\Server\RepositoryAdminPHP
cli_listfiles.php Admin

Fatal error: Call to undefined function MgInitializeWebTier() in
C:\Program
Files\MapGuideOpenSource\Server\RepositoryAdmin\cli_listfiles.ph 
p on line 46

so i added (scuz my php knowledge)
with include '../../WebServerExtensions/www/mapadmin/constants.php';

and got

C:\Program Files\MapGuideOpenSource\Server\RepositoryAdminPHP
cli_listfiles.php Admin 

Fatal error: Cannot redeclare class mgservicetype in C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\mapadmin\constants.php
on l
ine 192

any idea?

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


[mapguide-users] physical files

2007-11-16 Thread Mark Pendergraft
I have 2 mapguide servers running in my office.  One for
testing/developing (my computer) and one that hosts the final
application.  The server hosting the final map has extra layers, and
more features then my testing server.  I would like to copy the entire
repository containing the features over to my testing server in order to
update my testing machine so that it is in-sync with the final
application server.

I know where to find the SDF feature sources, but how do I copy over
layer definitions, map definitions, and the web layouts?  Are these even
physical files?  If so, where can they be found?

 

Thanks!

 

 

Ph: (425) 486-1252  Fx: (425) 486-6108  www.meadgilman.com
http://www.meadgilman.com/ 

 

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


[mapguide-users] Open map and Zoom to data

2007-10-11 Thread Mark Pendergraft
I'm trying to figure out how to open my map and have it automatically
zoom to a feature by including a request querystring in the url.

For example http://localhost/mapguide/mga/mga.aspx?JobNo=04291  would
zoom to the feature on the Jobs layer with a property of JobNo equaling
04291.

 

I have already written a search/zoom to application which uses this
property.  It runs in the scriptFrame and is usually triggered from a
button on a page that resides in the taskPane.

 

My application opens with a page, which creates 2 frames (titleFrame,
viewerFrame).

 

The only way I can figure out how to do this, is to pass the request
string to a Session.Item.  Then, I have some code in the task pane's
default page which can submit a form using javascript to the
scriptframe.

 

However, I was hoping to put all of this functionality into the opening
page, that way I wouldn't have to pass variables using the session item.
Which is more desirable, because if the user presses the home button in
the task area the code would execute again.

 

Does anyone have any ideas or experience with making the map zoom to a
feature upon being opened?  Thanks.

 

 

Ph: (425) 486-1252  Fx: (425) 486-6108  www.meadgilman.com
http://www.meadgilman.com/ 

 

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


RE: [mapguide-users] Support Server

2007-10-08 Thread Mark Pendergraft
I can't add the support server to the site server.  I always tells me
invalid stream header

Which means I can't tell the support server to handle functions like
mapping, rendering, etc.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zac Spitzer
Sent: Monday, October 08, 2007 7:36 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Support Server

 

the support server will report it the site server ip address i think, as
all requests will go thru the site server...

apart from the admin showing the ip address, are there any problems?

i would be interested to know how many people are running mulitple
support servers and the results 

z

On 10/5/07, Mark Pendergraft [EMAIL PROTECTED] wrote:

So, I uninstalled MGOS on both machines.

 

Now I have a clean install of 1.2.0 on Win 2k machine.  It is setup as
the site server with an IP address of 10.07.50.21  (the computers IP
address)

Then I did a clean install on Win XP machine.  It is setup as a support
server.  When it asked me for a site server ip I supplied 10.107.50.21
(the computer's ip is 10.107.50.25)

 

Now in the site admin page, both servers say they have an IP address of 
10.107.50.21

 

When I try to add my machine as a support server with the ip address
being 10.107.50.25 it tells me Invalid Stream Header Exception

 

Any ideas?

 

From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Mark Pendergraft
Sent: Thursday, October 04, 2007 2:12 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Support Server

 

I have just turned the firewall off.  And the support server is still
down.

 

From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Martin Morrison
Sent: Thursday, October 04, 2007 1:28 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Support Server

 

Just a stab in the dark...Windows Firewall turned on

 

Martin

 



From: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] On Behalf Of Mark Pendergraft
Sent: Thursday, October 04, 2007 4:23 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Support Server

 

I have a Windows 2000 Sp4 Server running mapguide open source 1.2 as a
site server.  I want to add additional support servers to this server in
order to speed up my mapping application.

 

I have tried adding my machine (running Windows XP sp2 and MGOS 1.2 as a
site server) to the Win2K server, and the add is successful.  However,
the site admin page tells me that my server is down.  I can't seem to
get it up and running.  Do I need to uninstall MGOS and perhaps
reinstall as a support server?

 

Any help would be appreciated.

 

 

Ph: (425) 486-1252  Fx: (425) 486-6108  www.meadgilman.com
http://www.meadgilman.com/  

 


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




-- 
Zac Spitzer
http://zacster.blogspot.com/
+61 405 847 168 (aussie moible) 

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


RE: [mapguide-users] WMS bounds

2007-10-04 Thread Mark Pendergraft
Thanks for the tip.

 

Another question.  I'm still unable to connect to the WMS service in
AutoDesk Map 3D.  when I goto the link in Internet explorer it returns
the XML file, which has incorrect paths defined in it.

The paths referenced in the file are http://localhost:8008/..

However it should be http://localhost:80/

 

I changed the path in the Site Administrator tool, and it has no effect
whatsoever on the actual file.  So I physically browsed to
\server\wms\OgcWmsService.config.awd and changed the paths in the file
to be localhost:80

 

And yet, it still returns the wrong location.  Where is this setting
handled, and how can I fix it to point to the correct location?

 

Thanks for the help.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Morsell
Sent: Thursday, October 04, 2007 9:38 AM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] WMS bounds

 

Washington NAD83 North feet is EPSG 2285.  You can find all of the codes
in the C:\Program Files\MapGuideOpenSource\Server\nad\epsg file.

 

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



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, October 04, 2007 9:15 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] WMS bounds

I'm having trouble setting up a layer in my map to use WMS, and I
believe the bounds is what is giving me problems.  

My map is in WA83-NF (Washington State Plane Coordinate System NAD 83
North Zone in US Foot)

 

All I can see in the help file is the sample which provides the
following line:

Bounds SRS=EPSG:4326 north=38 west=-123.5 south=36
east=-121.5 abstract=true /

 

I'm assuming that I can input values relative to my map in the north,
west, south, east portions.  However, I don't know what the SRS is for
Washington state plane.  I tried inquiring my map programmatically for
the Maps SRS, and it comes up with a very long string.

 

If someone could point me in the right direction or explain to me how
the SRS portion of the bounds works, I would greatly appreciate it.

 

Thanks.

 

Ph: (425) 486-1252  Fx: (425) 486-6108  www.meadgilman.com
http://www.meadgilman.com/ 

 

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


RE: [mapguide-users] WMS bounds

2007-10-04 Thread Mark Pendergraft
I solved the problem by dumping my temp files, and rebooting my machine.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, October 04, 2007 10:44 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] WMS bounds

 

Thanks for the tip.

 

Another question.  I'm still unable to connect to the WMS service in
AutoDesk Map 3D.  when I goto the link in Internet explorer it returns
the XML file, which has incorrect paths defined in it.

The paths referenced in the file are http://localhost:8008/..

However it should be http://localhost:80/

 

I changed the path in the Site Administrator tool, and it has no effect
whatsoever on the actual file.  So I physically browsed to
\server\wms\OgcWmsService.config.awd and changed the paths in the file
to be localhost:80

 

And yet, it still returns the wrong location.  Where is this setting
handled, and how can I fix it to point to the correct location?

 

Thanks for the help.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Morsell
Sent: Thursday, October 04, 2007 9:38 AM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] WMS bounds

 

Washington NAD83 North feet is EPSG 2285.  You can find all of the codes
in the C:\Program Files\MapGuideOpenSource\Server\nad\epsg file.

 

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



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, October 04, 2007 9:15 AM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] WMS bounds

I'm having trouble setting up a layer in my map to use WMS, and I
believe the bounds is what is giving me problems.  

My map is in WA83-NF (Washington State Plane Coordinate System NAD 83
North Zone in US Foot)

 

All I can see in the help file is the sample which provides the
following line:

Bounds SRS=EPSG:4326 north=38 west=-123.5 south=36
east=-121.5 abstract=true /

 

I'm assuming that I can input values relative to my map in the north,
west, south, east portions.  However, I don't know what the SRS is for
Washington state plane.  I tried inquiring my map programmatically for
the Maps SRS, and it comes up with a very long string.

 

If someone could point me in the right direction or explain to me how
the SRS portion of the bounds works, I would greatly appreciate it.

 

Thanks.

 

Ph: (425) 486-1252  Fx: (425) 486-6108  www.meadgilman.com
http://www.meadgilman.com/ 

 

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


[mapguide-users] Support Server

2007-10-04 Thread Mark Pendergraft
I have a Windows 2000 Sp4 Server running mapguide open source 1.2 as a
site server.  I want to add additional support servers to this server in
order to speed up my mapping application.

 

I have tried adding my machine (running Windows XP sp2 and MGOS 1.2 as a
site server) to the Win2K server, and the add is successful.  However,
the site admin page tells me that my server is down.  I can't seem to
get it up and running.  Do I need to uninstall MGOS and perhaps
reinstall as a support server?

 

Any help would be appreciated.

 

 

Ph: (425) 486-1252  Fx: (425) 486-6108  www.meadgilman.com
http://www.meadgilman.com/ 

 

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


RE: [mapguide-users] Support Server

2007-10-04 Thread Mark Pendergraft
So, I uninstalled MGOS on both machines.

 

Now I have a clean install of 1.2.0 on Win 2k machine.  It is setup as
the site server with an IP address of 10.07.50.21  (the computers IP
address)

Then I did a clean install on Win XP machine.  It is setup as a support
server.  When it asked me for a site server ip I supplied 10.107.50.21
(the computer's ip is 10.107.50.25)

 

Now in the site admin page, both servers say they have an IP address of
10.107.50.21

 

When I try to add my machine as a support server with the ip address
being 10.107.50.25 it tells me Invalid Stream Header Exception

 

Any ideas?

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, October 04, 2007 2:12 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Support Server

 

I have just turned the firewall off.  And the support server is still
down.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Morrison
Sent: Thursday, October 04, 2007 1:28 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Support Server

 

Just a stab in the dark...Windows Firewall turned on

 

Martin

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, October 04, 2007 4:23 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] Support Server

 

I have a Windows 2000 Sp4 Server running mapguide open source 1.2 as a
site server.  I want to add additional support servers to this server in
order to speed up my mapping application.

 

I have tried adding my machine (running Windows XP sp2 and MGOS 1.2 as a
site server) to the Win2K server, and the add is successful.  However,
the site admin page tells me that my server is down.  I can't seem to
get it up and running.  Do I need to uninstall MGOS and perhaps
reinstall as a support server?

 

Any help would be appreciated.

 

 

Ph: (425) 486-1252  Fx: (425) 486-6108  www.meadgilman.com
http://www.meadgilman.com/ 

 

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


[mapguide-users] Raster Imaging

2007-09-28 Thread Mark Pendergraft
Hi everyone,

 

I'm a CAD user and I'm kind of a newb to GIS, so this may be a dumb
question.  I have a map built, with my company's job data on it.
Everything works great, but I would like to add some imagery to make it
more pleasing to the eye and more convenient for drafters in our office
to find a photo of the site.

The problem is, I have no idea where to get this from.  I have been
searching the web for about a day now, and have yet to find anything.  I
did find TerraServer on the USGS website, but I read in a post on this
mailing list, that it doesn't work with MapGuide OS.

 

If anyone could clue me in where to get/connect to color imagery similar
to what I would find in say Google Earth, and perhaps provide me with a
brief synopsis or walkthrough on how to connect to it, I would greatly
appreciate it.

 

Thanks.

 

-Mark Pendergraft

 

Ph: (425) 486-1252  Fx: (425) 486-6108  www.meadgilman.com
http://www.meadgilman.com/ 

 

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


  1   2   >