Re: [mapguide-users] Invalid stream header exception

2012-12-18 Thread A H
anyone can help me on this? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Invalid-stream-header-exception-tp5003400p5023705.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list ma

Re: [mapguide-users] Draw polygon in Mapguide using Asp.net

2012-09-28 Thread A H
since i can't find way to edit the vertex using built-in function, i decided to allow user to draw multiple polygons. the selected polygons can later be used to be combined, or clear polygons that it overlaps with. here's the sample code: <% bool ma

Re: [mapguide-users] Invalid stream header exception

2012-09-23 Thread A H
ok sorry, that was used for another function before i think it can be ignored since i directly get the featureClass from parameter -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Invalid-stream-header-exception-tp5003400p5003904.html Sent from the MapGuide Users mailing lis

Re: [mapguide-users] Invalid stream header exception

2012-09-20 Thread A H
this one is using SDF provider the map can be loaded, just this function to count how many features in it are not working -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Invalid-stream-header-exception-tp5003400p5003409.html Sent from the MapGuide Users mailing list archive

[mapguide-users] Invalid stream header exception

2012-09-20 Thread A H
i recently upgraded from MGOS2.1 to MGOS2.2 this code used to work: MgResourceService resourceService = siteConnection.CreateService(MgServiceType.ResourceService) as MgResourceService; MgFeatureService featureService = siteConnection.CreateService(MgServiceType.FeatureService) as

[mapguide-users] oracle king problem after upgrade

2012-08-15 Thread A H
hello everyone. i'm testing to upgrade from MGOS2.1 to MGOS2.2 everything else was working fine after the upgrade, except for now i cannot create/edit Oracle King connection (using Mapguide Studio 2008). i'm using Oracle 9i, so i have do exactly what i did when upgrading from MGOS1.2 (copy the or

[mapguide-users] Re: querying number of objects in a feature

2011-08-23 Thread A H
i tried using SelectAggregate HttpContext.Current.Response.Write(featureReader.GetInt32("Count")); and HttpContext.Current.Response.Write(featureReader.GetInt32(featureReader.GetPropertyName(0))); but i got Exception Details: OSGeo.MapGuide.MgInvalidPropertyTypeException: The Property Type is inv

[mapguide-users] querying number of objects in a feature

2011-07-31 Thread A H
i think this is a simple function, but i couldn't find it in the manual/examples. how do you retrieve number of objects in the feature? i'm building a page that displays total number of objects in each feature classes. what i have now: List result = new List(); Utilities.Initialize

[mapguide-users] RE: Tiled map doesn't render as GIF

2010-04-19 Thread A H
hmm but i do see some older threads discussing about enabling GIF for tiled. guess i have to leave IE6 users problem opening my map that contain some boundary overlay for now. do most map providers creates a transparent overlay that compatible for IE6 users by using GIF? is this possible for MGOS

[mapguide-users] Tiled map doesn't render as GIF

2010-04-19 Thread A H
i'm using MGOS2.1 and i have a tiled map. i tried to set the following in serverconfig.ini and restarted the service: RenderOnly = 0 TileCachePath = D:\MapGuide\Server\Repositories\TileCache\ TileColumnsPerFolder = 30 TileRowsPerFolder = 30 DefaultTileSizeX = 300 DefaultTileSizeY = 300 ImageForma

[mapguide-users] Re: OpenLayers and MapGuide: retrieving feature information

2010-03-17 Thread A H
i tried checking out the classic viewer, but it passes xml to the get feature classes. there are several samples using WMS but not with mapguide server. -- View this message in context: http://n2.nabble.com/OpenLayers-and-MapGuide-retrieving-feature-information-tp1818725p4749589.html Sent from t

[mapguide-users] Re: OpenLayers and MapGuide: retrieving feature information

2010-03-17 Thread A H
yes i understand what you mean. i'm wiling to create a page to respond to the given coordinates. if there's any sample how to do this against mapguide then it would be good. i haven't look into Fusion yet, but this system i'm developing has already had some of its own function so i prefer if i ca

[mapguide-users] Re: OpenLayers and MapGuide: retrieving feature information

2010-03-17 Thread A H
can anyone give me a sample on how to do this please? -- View this message in context: http://n2.nabble.com/OpenLayers-and-MapGuide-retrieving-feature-information-tp1818725p4749250.html Sent from the MapGuide Users mailing list archive at Nabble.com. _

[mapguide-users] Re: Using mapguide tiled maps with openlayers

2010-03-09 Thread A H
i forgot to try using Sheboygan tiled map. seems like everything is ok using Sheboygan tiled maps. i think maybe i didn't set the scale ranges right. sorry for the troubles. -- View this message in context: http://n2.nabble.com/Using-mapguide-tiled-maps-with-openlayers-tp1814912p4700836.html Sen

[mapguide-users] Re: Using mapguide tiled maps with openlayers

2010-03-08 Thread A H
sorry for replying in this old topic. i have a problem with mapguide tiled map inconsistency with open layers, but i'm not sure if its related, nor i find other similar topics. it seems like it doesn't zoom to the correct location. like it zooms to upper left a bit when using mouse scroll or the

Re: [mapguide-users] symbols in tiled maps

2009-10-27 Thread A H
been tracking the ticket too. zspitzer wrote: > > did you have a look at > > http://trac.osgeo.org/mapguide/wiki/CodeSamples/JavaScript/OpenlayersExample > > i'm pretty sure that problem was resolved in 2.1 > > ? > > On Wed, Oct 28, 2009 at 1:39 PM, A H wrote

Re: [mapguide-users] symbols in tiled maps

2009-10-27 Thread A H
> if it's been resolved in subsequent versions, it's very unlikely to be > backported > > ith regards to OL, you would just have two layers to the map? > > On Wed, Oct 28, 2009 at 1:05 PM, A H wrote: > >> >> i'm using MGOS 1.2 and MapGuide Studio 2008. i

[mapguide-users] symbols in tiled maps

2009-10-27 Thread A H
i'm using MGOS 1.2 and MapGuide Studio 2008. i wanted to define a tiled map using Studio. i have several layers, some of them are area layers, and some are point layers. the problem is the symbols in this point layers doesn't appear on the map when i set it as Base layers to make a tiled map. onl

RE: [mapguide-users] Draw Circle

2009-04-05 Thread A H
found my mistake. i used same coordinates for both arcs :( thank you Andy. its working now. -- View this message in context: http://n2.nabble.com/Draw-Circle-tp1809757p2590888.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___

RE: [mapguide-users] Draw Circle

2009-04-04 Thread A H
e-users-boun...@lists.osgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of A H Sent: Saturday, April 04, 2009 12:44 PM To: mapguide-users@lists.osgeo.org Subject: RE: [mapguide-users] Draw Circle i'm using MGOS 1.2, i think i can't find this GetTransform() function. can you please pr

RE: [mapguide-users] Draw Circle

2009-04-04 Thread A H
. I think your circle is being created and drawn, but not in the correct coordinate system. 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 A H Se

Re: [mapguide-users] Draw Circle

2009-04-03 Thread A H
this is what i got. no error, but the circle didn't appear. MgCurveSegmentCollection curveSegmentCollection = new MgCurveSegmentCollection(); MgCurveRingCollection curveRingCollection = new MgCurveRingCollection(); // create first cur

Re: [mapguide-users] Draw Circle

2009-04-01 Thread A H
i need help with this too. Hi Kencana, I remember u telling me that you have figured out how to draw a circle. Could you please give me some tips on this? For example, in the OnCircleDigitized(Circle) method, what all attributes do we need to get from the circle and using what methods? I could

Re: [mapguide-users] [ZS0] Combining features

2009-02-06 Thread A H
i come into another problem. now instead of just polygons, i want to combine other geometry types. i tried to use this: MgGeometryCollection geometries = new MgGeometryCollection(); MgAgfReaderWriter geometryReaderWriter = new MgA

Re: [mapguide-users] [ZS0] Combining features

2009-02-01 Thread A H
eep..forgot to cast it. ok thats all for now. thanks for the help. A H wrote: > > ok thanks, this is what i have: > > MgPolygonCollection polygons = new MgPolygonCollection(); > MgAgfReaderWriter geometryReaderWriter = new >

Re: [mapguide-users] [ZS0] Combining features

2009-02-01 Thread A H
files/mapguide/docs/webapi/d4/d46/class_mg_geometry_factory_bcbcf723fb0d1e58dbd7e030ed34022f.html#bcbcf723fb0d1e58dbd7e030ed34022f > > If you have other objects besides polygons, you need a > GeometryCollection object, but that is poorly supported IMO. > > Regards, Kenneth Skovhede, GEOGRAF A/S > > >

[mapguide-users] Combining features

2009-01-31 Thread A H
this should be easy, but i'm still having trouble figuring out. i have a system that allow user to draw multiple polygons, and save the polygon into a spatial database. i have this code MgFeatureQueryOptions queryStr = new MgFeatureQueryOptions(); queryStr.SetFil

[mapguide-users] MapGuide 2.1

2008-12-12 Thread A H
greetings, i've been refraining myself to upgrade my MGOS 1.2 to 2.0 for a few months due to one of the error that affect system that i'm using now. ticket for that error was already closed. i visit the roadmap page everyday to see progress status. but i just want to ask the developers if they hav

Re: [mapguide-users] Edit polygon

2008-10-27 Thread A H
yeah, as stated, we already have drawing functionality, as well as saving and loading the areas. the problem now is editing the polygons. Dragan Podvezanec wrote: > > Hi. > > Imho, > > It's not too hard to add Drawing functionality, since API supports it. > Adding point,line and polygon to m

Re: [mapguide-users] Edit polygon

2008-10-23 Thread A H
the object data as WKT, and OpenLayers > can read WKT objects. > > After editing, you have to write back the data, again this can be > transmitted and read in WKT. > > As you can see, this is likely not something you can just throw in, and > it works, even if you use OpenLaye

[mapguide-users] Edit polygon

2008-10-22 Thread A H
this has been asked several times before, but i haven't found a viable solution. is there any codes or plug-in out there that can at least allow user to add new vertex to a polygon and move around a drawn polygon in Mapguide web layout? (like in the OpenLayers sample) or can i use the OpenLayers

[mapguide-users] MgInitializeWebTier causes Mapguide Server to crash

2008-08-03 Thread A H
i'm using .NET env for MGOS 1.2. my application requires user to log in and after some time, the session will run out and user will need to login again. on this page with a Map, after first login or normal page refresh, the page is ok, however, after the session runs out (user session not mapgui

Re: [mapguide-users] Calling viewer api functions from the main page

2008-06-10 Thread A H
> //Some browsers return the <iframe> tag, others return the contents, > this evens it out > if (iframe.contentWindow) > iframe = iframe.contentWindow; > > //Use the utility function to get the map frame > iframe.GetMapFrame().Refresh(); //Try F11 here >

Re: [mapguide-users] Calling viewer api functions from the main page

2008-06-09 Thread A H
Guide" page 19: > http://mapguide.osgeo.org/2.0/documentation.html > > You can see how the viewer frames are laid out, and see what > "parent.parent" points to. > Page 18 describes what the frames are for and page 20-25 describe > concrete cases. > > Regar

RE: [mapguide-users] Calling viewer api functions from the main page

2008-06-09 Thread A H
sadly this doesn't work in Firefox. have anyone done this in Firefox? uXuf wrote: > > Okay thanks. parent.viewerFrame.mapFrame works like a charm! > > uXuf > > > Ivan Milicevic-3 wrote: >> >> try parent.viewerFrame.mapFrame.Refresh(); od >> window.frames.mapFrame.Refresh(); >> >>

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

2008-05-20 Thread A H
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 '%'");

[mapguide-users] View entire layer

2007-09-14 Thread A H
hello, in Mapinfo, there's a 'View entire layer' function which will zoom and center on a selected layer. i have a function that plots multiple points on a layer and placed on a map, and i want the viewer to zoom and center to the area which contains all the points created after each query. a ha

Re: [mapguide-users] Symbols rotation and colors

2007-07-27 Thread A H
e the feature source and layer defined, select > "Theme >>" under the style for the scale range and input your filter > expression. If you want to use only code, that is beyond me. Hope it > helps. > > Rich > > A H wrote: >> hello, i'm new h

[mapguide-users] Symbols rotation and colors

2007-07-27 Thread A H
hello, i'm new here. i'm using MGOS 1.1 on ASP.net. i'm trying to build an AVL system that shows vehicle positions and its tracks (line). currently i managed to display one unit with it tracks, using the Sheboygan address and parcel samples. the problem is to display more than one unit of vehicl