Steve,
I have been writting a seating plan in mapguide for my workplace, some seats
(point features) contain two or more people... I have tried as you have with
the one to many, which at first gave only one feature... however on closer
inspection it has actually done as it says and created 2 or
Has anyone been able to modify the layer control so say I have a couple of
photos that cover the saem location, I would like to only allow the user to
have one photo on at a time so isntead of a tick box perhaps more of a list
with one selectable only ? however other layers / folders would remain
Gday I've been trying to help Padmini understand some of the digitize
functions I've partly written for the ASP .Net Mapguide thought I might
share our discussion as other might benefit from it or perhaps others could
check the code for errors ... I'm still learning here as well so nothing
here
Just Curious at the moment, I'm looking at ways of giving users the ability
to use mapguide from a CD ?
It would have to run under Windows not a live boot .
I've found This information which sort of helps? has anyone tried this
before?
I've nearly finished a custom search that will search every layer in a parent
folder no matter how far down the tree it goes however It seems to
disregard the layers filter when selecting features... ie when i add
features to the new feature selection it doesn't check to see if that
feature
Kenneth,
Thanks for the response, I am still working on my programming I am unsure on
how to read through what I belive is a mgByteReader that the resource
retrieves?
perhaps I can use the mgLayer.SelectFeatures(mgQueryOptions) however this
returns a null exception... :(
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
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
I've noticed mapguide starting to get un responsive / fall over and upon
checking the server it sits around 900,000 kb of memory usage in task
manager...
I am wondering if this is normal and how to correct the problem ? I'm
guessing the cacheing of various aerial images could be the suspect but
Probably been asked before but I can't find the answer through search.
Is it possible to set the MAP for a weblayout within the URL?
Default map for the weblayout definition is PortBris
However I would like to change this from the URL hopefully it is a
standard operation ...?
:(
Thanks Jackie, I thought that would be the case, just wanted to check and
make sure there wasn't something simple I could use instead.
Cheers
Adam J
--
View this message in context:
http://n2.nabble.com/Simple-Question-Regarding-MAP-with-weblayout-tp2344229p2344646.html
Sent from the
Thanks lolob that is a good guide.
I have checked over the server logs and find this error.
Is the only way around this to restart service every hour or so it seems
to happen quiet regulary and this is without any major traffic, only 1-2
test users at the moment doesn't seem right.
Anyone know how to add rotation to a symbol instance ?
Layer style part.
CompositeTypeStyle
CompositeRule
LegendLabelLight Tower/LegendLabel
CompositeSymbolization
SymbolInstance
Thought that looked to easy :o
When I saw pointusage i was thinking it was going to create a new
element :(
Cheers
--
View this message in context:
http://n2.nabble.com/How-to-add-rotation-to-symbol-instance-tp2375355p2375800.html
Sent from the MapGuide Users mailing list archive at
I've been asked if mapguide can handle 3D geometry ?
I'm not talking about displaying 3D solids or surfaces or anything of the
sort, I would like to know how a point or line feature is stored in an SDF
file ? does it retain the X,Y,Z of the point but only work with the X, Y
? I would like
I cannot seem to get the syntax right for the resizebox control...
I would basically like to scale the symbol and make it fit to the ResizeBox
...
?xml version=1.0 encoding=UTF-8?
SimpleSymbolDefinition
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
in
your LayerDefinition.
Traian
-Original Message-
From: mapguide-users-boun...@lists.osgeo.org
[mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Jamo
Sent: Sunday, March 15, 2009 10:07 PM
To: mapguide-users@lists.osgeo.org
Subject: [mapguide-users] ResizeBox
I
I am trying to display point features that are stored in Lat/Long in a sql
database in my current map being GDA94 / Zone 56, This data is reprojected
in the correct position (a single point is all that is available at the
moment for testing so 1 point displays in the correct position) and
this is a bug and if no Z value is described a default value of 0
should be used
Very frustrating stuff
Jamo wrote:
I am trying to display point features that are stored in Lat/Long in a sql
database in my current map being GDA94 / Zone 56, This data is reprojected
in the correct position
zspitzer wrote:
which database are you using?
I'm using Microsoft SQL (Not Spatial)
--
View this message in context:
http://n2.nabble.com/SQL-datastore-and-Point-Features-tp2494796p2500519.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
Howdy
I'm working on a field editor for Mapguide, I woudl like to give certain
users the ability to edit the data through mapguide.
I have produced this code thus far I will work on making it more dynamic but
at the moment it is locked down to a certain feature type and certain
fields.
I seem
Jamo wrote:
String currentClassName = currentLayer.GetClassName();
MgSelection newSel = new MgSelection(map);
newSel.FromXml(mySelXML);
String myFilter = new MgSelection(map,
mySelXML).GenerateFilter(currentLayer, currentClassName);
Response.Write(myFilter);
Should Read
I've defined a symbol definition and it all works good however there are a
few oddities I would like to change.
The Symbol in the legend seems to try and render the text which in turn
shrinks the legend symbol... I would like to remove the text from the legend
symbol.
when clicking on the
Howdy all,
I've been working on multiple selections for mapguide and I've sort of come up
with something that contains a couple of nifty tricks.
-Change properties pane to your own custom panel.
-Add dragable Ajax panel to mapguide.
-list multiple selected features.
At the moment it's all a
I have had a look at the fusion layouts,
Some of the dragable divs are somewhat wierd looking (have a gap either side of
the overview / don't display) on my work pc however seem to work fine on my
personal pc, but I was running low on time and needed a result?
I am finding working with
I'm trying to get dynamically the identity properties for the selected
features
Can anyone point out whats going wrong ... I'm sure it's something to do with
this feature schema name ... now I'm not sure which one is grabs the layers
actual feature class name if that is what I'm after...
Incase anyone is interested I figured it out... I no longer have to hard code
what the identity property is .
the following will read the feature reader and return the identity property
allowing me now to create more dynamic commands :)
I haven't filled in all the select cases as I'm not sure
string operator instead? just guessing haven't checked.
queryoptions.SetFilter(PARCEL_ID LIKE '785_1000' OR PARCEL_ID LIKE '708_584'))
?
Hi,
Parcel_ids are strings thats y i kept it in single quotes
but i got an error
can any body plz help me
Are the PARCEL_IDs strings
I finally got round to giving FDO toolbox a go.
Looks very impressive with lots of options!
One question I have is it possible to join feature data on geometry alone...?
say I have a point feature that might sit within a polygon is it possible to
use FDO toolbox to join this data together? or
Hi I'm also interested in the code that allows the legend to be moved to
another frame
I'm trying to write to/from controls that sit on a page above mapguide.
ParentMainPage
|AjaxControl
||--Panel
| |---Properties Panel
| |---Search Panel
|
Howdy,
I'm re-installing mapguide and was wondering if mapguide functions with the new
FDO 3.4.0 ?
I remember reading somewhere it only runs with 3.3.1 ... should there be any
problems with installing the newer fdo ?
Is it as simple as removing the current Bin\FDO directory and replacing it's
Cheers Jackie, I'll just run with the 3.3.1 FDOs.
Just checking before I go ahead with the new install.
I don't think so.
1. FDO 3.3.1 was built with Visual C++ 2005
2. FDO 3.4.0 is built with Visual C++ 2008
3. FDO 3.4.0 has newer APIs
Even if you have the required runtime libraries
Jackie,
Windows XP Pro SP2 x86
I have installed it correctly now
Deleted all my c:\docs sets\user\temp\*.*
Downloaded and installed vcredist_x86.exe (2008) and vcredist_x86.exe (2008 sp1)
run install again and it worked.
What may have happened prior to install.
1. in the current users temp
Check that the datasource has a X, Y and Z value even if it only requires an X,
Y just assign one of the X, Y columns to the Z and retry, had this problem a
while ago and this seemed to fix it.
Good luck
--
View this message in context:
I'm trying to populate an Ajax TabContainer with a tab for each search.
I'm getting an error for line 94: The map definition is invalid.
foreach (MgLayer cLayer in cadFeatures.GetLayers())
Is it best to store the information needed for each search in a MgSelection
or would it be better to
Cheers Jackie I've fixed it up changed the MgSelection to MgSelectionBase
where needed.
Also changed the
MgSelection thisSel = new MgSelection() to MgSelectionBase thisSel = new
MgSelectionBase(map); which i think has fixed up the issue
Another issue thats got me stunned is this doesn't
Thanks for the heads up!
That makes things a lot neater :)
Hopefully I can make this available for some commenting when I'm all done :)
Also, you may need to double check that you're correctly using the MgMap API
as a result of http://trac.osgeo.org/mapguide/wiki/MapGuideRfc9
- Jackie
--
I can remember seeing somewhere something taht returns all the mapped feature
properties from the layer, however I can seem to remember what it was
attached to
FeatureReader? LayerDefinitoin? MgSelection?
--
View this message in context:
Jackie I've created a monster..
something is wrong with the FeatureReader that is produced from the layer
i think?
It seems to be retrieveing all features from the featuresource the
layer has a filter assigned that grabs only some features from the
featuresource...
If you or
OK I have been given a whole server for MapGuide a windwos Server 2008 with
IIS 7.
I've installed the latest release from autodesk MapGuide enterprise 2010,
code ahs been produced with MapGuide Opensource 2.02 maybe a problem
there?
My problem at the moment is an application that has been
Cheers Jason,
I've updated the bin directory now :),
always the little things
Cheers !
Any Idea why the propertyCtrl would be reading a .php version ? When initial
loading of the page is done I swap the HTML of the PropertyCtrl Iframe, this
has always been
I'm using opener.parent.mapFrame.SetSelectionXML(XML) to set the selection of
the map from a search window.
It selects one feature as requested, on the right layer however none of
the properties pane is updated correctly?
does the XML have to contain the properties as well??
this is
Sorry to bombard this post...
More information.
Mapguide Maestro can no longer edit the layers in Autodesk Mapguide
Enterprise 2010 ...?
selected the feature prior to searching it...
I captured this from the the getSelectionXML()
http://n2.nabble.com/file/n2808780/getselection.jpg
with
I've searched the posts here and found a couple of posts with the same topic
however none of them have answers?
I've attached the code in question...
http://n2.nabble.com/file/n2825694/Default.aspx Default.aspx
http://n2.nabble.com/file/n2825694/Default.aspx.cs Default.aspx.cs
You'll need
I've been trying this code to add another class definition to a SDF, it only
adds a new classDefinition when the users SDF already exists is this
possible, everything seems to run through fine but no new class..
if (ResourceService.ResourceExists(dataSourceId) == false)
{
What version of Microstation are you using ?
If your using V8 you could try downloading Geographics for V8 which I belive
is free(for Bentley select subscribers) and export data to SHP files ready
for use in mapguide ? I'm not sure on the exact procedure but you may
need to create features
Can't a spatial operator on the MgFilter be used? it would require coding if
it hasn't been done already ... or is it specific to each FDO ?
--
View this message in context:
http://n2.nabble.com/Geometric-join-without-spatial-support-tp3208010p3222821.html
Sent from the MapGuide Users mailing
Is it possible to change the selection opacity?
I don't mind doing this globally at the moment.
I've tried changing this to 01 .01 but it is no good?
perhaps I'm changing it in the wrong area?
ajaxmappane.templ
#shapeFeedback
{
filter:alpha(opacity=50); /* Internet Explorer
Just a follow up, I still haven't found where the selection layer definition
is.
Turns out the css below refers to the actual selection shape.
Surely someone has an answer ? :(
Jamo wrote:
Is it possible to change the selection opacity?
I don't mind doing this globally at the moment
value.
- Jackie
Jamo wrote:
Is it possible to change the selection opacity?
I don't mind doing this globally at the moment.
I've tried changing this to 01 .01 but it is no good?
perhaps I'm changing it in the wrong area?
ajaxmappane.templ
#shapeFeedback
I'm trying to create some images straight from mapguide without
This is the code
MapGuideApi.MgInitializeWebTier(Request.ServerVariables[APPL_PHYSICAL_PATH]
+ ../webconfig.ini);
MgUserInformation userInfo = new MgUserInformation(Administrator,
admin);
MgSite site = new
Solved
it was in the layer builder
MgByteReader layerDefContent =
BuildLayerDefinitionContent(dataSource, dbo:cadSecondary_Full, ,
fd0011, 50, 50, , , 1, fd0011);
was missing dbo:
which returned all elements but did not error ??? wierd wacky but true
--
View this message in
Cheers Ken,
I've cahnged it back to Anonymous
And added
userInfo.SetMgSessionId(sessionId);
After I create the sessionId on the site...
I'm now getting beutiful images from MapGuide without going into mapguide,
Great for visualizing feature locations outside mapguide.
--
View this message in
Cheers Ken,
I've cahnged it back to Anonymous
And added
userInfo.SetMgSessionId(sessionId);
After I create the sessionId on the site...
I'm now getting beutiful images from MapGuide without going into mapguide,
Great for visualizing feature locations outside mapguide.
--
View this message in
I think mapguide api only exposes sdf write capabilities?
Might have to do it through fdos
Rodolfo Moreno wrote:
why don't you insert sql features using SQL spatial scripts?
Regards,
Gunter Becker wrote:
Is there at least anyone who had successfully added features to SQL
Server
I'm looking to resize text to fit inside a shape.
This is the symbol, what am I missing?
The Size of the Ship is a variable.
I would like the text to fit inside the ships outline, can this be done with
resizecontrol?
I had a look at an old post of mine but I could not figure out how the
Sort of found a way the resizeBox can work. (it is relevant to the size of
the actual symbol)
the symbol is made to fit 1x1 so when the user inputs size it scale
accordingly.
Would like the text to scale to fit in the ship in the X direction as
well...
so if it was a longer name it would be
I'm sure I've been here before but here goes it again.
I'm attempting to select a subset of data from a layer .
MgFeatureReader myFeats = srchLayer.SelectFeatures(Opts);
I've connected the map using
MgMap map = new MgMap(siteConnection);
map.Open(mapName);
Now the problem is , I thought
ok a little app i'm working on... it allows users to click near a road
(linear feature) and record a proposed road works site. It will markup the
GIS with propsed positions of signage and outline of site of works.
I'm still playing around witha proof of concept seem to do this a lot.
The
Thanks for your help Jackie,
I've gone through your quick freehand code :) very well done
Perhaps a problem that the FDO provider SDF doesn't support Spatial
operator TOUCHES or WITHIN
after removing Touches I now get an error when adding entries to the matches
list.
If i expand the iterations
spatial operators: WITHIN, TOUCHES, CONTAINS,
CROSSES (and possibly others) all seem to be legitimate operators for this
scenario.
- Jackie
Jamo wrote:
Thanks for your help Jackie,
I've gone through your quick freehand code :) very well done
Perhaps a problem that the FDO provider
Rodolfo,
I understand this equation and belive it is what I need to make this
work(got my head in cad land not math land atm). it has indeed worked on a
single two coord line A-B .
What about a linestring that is
Line(2xy's)-Arc(3xy's)-Line(2xy's)-Line(2xy's)
Small issue with the
I have posted up a bit of code i'm working on to produce some suggested road
safety signage diagrams on the GIS, given a point of work length and type.
Still working on the dialog just figuring out how best to accomplish the
geometry side of things.
Was wondering if anyone has had much luck with
Anyone able to help me with these C# interface things? I've never really had
to use one yet or if I have i've done it by accident?
I think an Interface is like a conversion from one type to another, is this
correct?
This code works: which is great I can get all adjacent vertecies
I've got no idea whats happened
get this error if the server is run interactively?
(2040) An exception occurred in FDO component.
RDBMS: [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not
exist or
access denied.
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen
I've since removed some SQL features
Maybe this will help ? this Layer ahs some 300 features not many...
however it seems to be taking sometime for ir ro even feth the identities?
is this the SQL query time?
SQL Feature
cadFREE
Time
Profiling LayerDefinition:
I've got a production map where this is working.
process page loads.
populate hidden variables with mapname session ID etc.
grab this information in codebehind for C# .Net fiddling..
This page replaces the properties panel
ASPX Page
%@ Page Language=C# ValidateRequest=false
Just wondering if this issue has ever been resolved?
Trying to get text that is centered in both horizontal and vertical
directions for area features?
--
View this message in context:
http://n2.nabble.com/Text-justification-in-MAPGUIDE2009-tp1816985p4651875.html
Sent from the MapGuide
Ok I started creating a class of my own that would produce a layer definition
and save it to the repository...
Got upto the point of creating vector scale ranges and thought . Dang
this has already been done.
Enter -- Maestro Api.
Is this the correct place to be asking about the maestro api?
Cheers Kenneth,
I really like the selection api :) will make life a little easier in places
for me.
Bummer about the creation of datastores but I'm sure I will find a way.
Anyone have any FDO examples?, I have not used the FDO api as of yet to
produce datstores...
First test seems to bomb out
Can Mapguide use KML as a datastore to grab information from?
If so how do i connect to the KML using OGR?
I'm trying to load some point data from a kml file and I'm not sure if it is
just corrupt data or not..
I've been playing around with the FDO api and if it isn't possible I can
always run
Kenneth.
I thought it would be that easy however ... I get the following error when
testing the connection in maestro
2010-03-12T07:00:173188MapGuide Maestro v2.0.0.4586172.16.40.28
Administrator
Error: An exception occurred in FDO component.
Connect failed:
StackTrace:
Thankyou all for your help in resolving my KML issues :)
Just to update I've downloaded the SL.King KML provider and it works with a
simple version change in the provider xml, no recompiling required.
Only one issue at the moment
-unmanaged data doesn't seem to update. so if i point to a kml
I'm not sure on the process or ramifications of modifying the ajaxmappane
are.
But I've been playing around with the disclaimer place holders (a couple of
postes here have shown how they are implemented) and thought it might be a
worthy addition ?
I've added the following functions to the
Is it possible to maintain a multiline text element with vertical and
horizontal justification set to center?
At the moment it seems the textbox is centered on the centroid but then the
text itself is justified left?
--
View this message in context:
I found some of my own code was badly written (I'm not too aware of the ins
and outs of coding yet) check you close all featurereader elements and
dispose of things correctly. My search function and information panel where
slowing my mg service sown after finding where i wasn't closing and
Where is the Vector / raster data coming from.
What is it's native / default format.
What is the purpose of your mapguide application?
many data formats are supported by default you may not need to do any data
conversion with your vector data.
Simply create a featuresource using maestro select
I have tried a view however It was not possible...
I think the reason behind it was that the table had no unique or primary
key.
I'm using SQL Sptial 2008 linking tables from Oracle and other SQL DBs .
Current work around drops the view to another table on user request ...
using the view
You will need to upload a mapguide package in order to actually view a map.
http://mapguide.osgeo.org/sites/mapguide.osgeo.org/files/InstallMapGuideOpenSourceSamples.pdf
If you follow the guide above you should get the sample map :)
--
View this message in context:
check the xml scheme for the AreaSymbolization2D here
http://www.osgeo.org/files/mapguide/docs/2.0/xml_schemas/LayerDefinition120/LayerDefinition.htm#element_AreaSymbolization2D_Link06AE0D20
just change the colours to hex values
ForegroundColorTransparent/ForegroundColor
You need the image name at least to be stored as a property against the
feature...
Then using maestro edit the featuresource and
add a new extension
select the feature you want to extend
give it a name
then add a calculated property
something like concaternate(concaternate('
MgByteReader byteReader = RenderService.RenderMap(map, thisSel, ext, W, H,
bColor, JPG, true);
Produces a transparent selection are you sure you are passing selected
features to the query ?
--
View this message in context:
in your www\viewerfiles\measureui.templ change these lines to what you need.
function SetMeasureResults(partial, total)
{
//modify partial*1000 to convert yout miles to feet
document.getElementById(partial).innerHTML =
FormatLocalizedDecimal(partial*1000, 2);
I'm attempting to automate some PDF report creation from mapguide.
basically I've setup a map in maestro and styled it up how I'd like it to be
printed :) works a charm
The following creates the pdf but I have to call another page each time to
produce the image
I'd like to somehow use
I'm trying to put together a coordinate system using affine correction...
So it would be a FITTED_CS as defined in wkt coordinate by ogc?
something like but it does not validate in maestro :( I also need to define
the point around which the rotation and scale is taking place this is a copy
of
I'm experiencing huge amounts of lag in SQL Spatial layers compared to
SDF layers, I've jsut added some code to populate a spatial index, does
mapguide make use of such beasts ... can I speed the process up anymore
select queries on these tables are completed in under a second, they are
sadly our IT department control the SQL server ...
This is all I know
10.0.2531.0 SP1 Enterprise Edition (64-bit)
using
SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'),
SERVERPROPERTY ('edition')
Is this bad news for me?
--
View this message in context:
Ok im attempting to simply load a weblayout from the library and write it to
the session then redirect the browser to the session weblayout is this
possible
I will attempt to adjust the center scale and position as well but for now i
can't even load it from the session
any help is much
...please remove post
After another look at the formatting of the output I added
doc.PreserveWhitespace = true; after XmlDocument doc = new XmlDocument();
and it seems to have fixed the problem ...
--
View this message in context:
I'm trying to get quickplot (Which is a great addition to the mapguide code)
to actually print at the correct scale on a page I was looking at these
options
option value=297.0,210.0A4 (210 MM x 297 MM)/option
option value=420.0,297.0A3 (297 MM x 420
I have implemented the quickplot .patch parts to mapguide 2010 and able to
produce prints with it...
Its a little fiddly and not recommended for production servers, but if your
keen check these out, try it on a development server first of course.
Ajax Viewer
On another note this rfc looks like a winner.
http://trac.osgeo.org/mapguide/wiki/MapGuideRfc67
Someone able to elaborate on it a little, as far as I can tell printlayouts
will help in the production of actual printable to scale plan sets? is this
correct?
Sorry to hijack your post but I
Yes the OGR provider works with V7 DGNs only (export / convert required DGNs
to V7 Format) and it reads various properties from the DGN Entity DBLink
etc.
I started using the OGR DGN capabilities but found it easier to write my own
export to SQL script, gave me more control over the creation of
I've been working on mapguide enterprise 2010 for sometime and just recently
something has gone wrong with my sql / mapguide integration. this aside
I thought I would take the time to try out the latest MapGuide, but for some
reason I can't get the simpilest sql table to preview
What I've
Thanks for the reply Zac, It's been a while since I've looked at latest
versions of mapguide, I'll grab the latest 2.2 release and try that.
But as for the problem it seems to be something I've managed to incorporate
in my site or perhaps a setting one of the SQL admins has imposed on
the
Just a little more information ... regarding my problem
I've managed to create a user for the SQl server that can only view one
scheme. it can't view any system tables the user has select and view
definition on testspatial scheme only
The table has no geometry
im getting confused I
I'm affraid there is no stack trace logged for this error...
upon further fiddling with the sql server if I make the user, the schema
owner and not just allow them to select and view definition the data preview
seems to function without any errors
... however I'm guessing any other users
Ok I think I've narrowed it down to a linked servers permissions changed
no one will tell me if the permissions have changed on this particular
server but once I set up a new user with Reference Select View definition
and view changes it all seems to work with no errors, the user cannot see
I've customized my properties panel for some time now and I was hoping it
would be quiet easy to bring it forward to the new mapguide version I'm
coming from MGE2010 to the latest beta... for some reason when items are
selected it isn't firing the SetProperties function of the properties panel?
Hey guys this is not the usual omg it doesn't work post :)
I actually found something out by doing the hard yards
I have been using a mssql spatial DB that was created some time ago and it
has never had a spatial extents set...
Now insert problem the default search / query was never working
1 - 100 of 181 matches
Mail list logo