Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-26 Thread Zac Spitzer
sdf is r/w via mapguide? just a guess, is your feature source defined as read only? this might help? http://trac.osgeo.org/mapguide/ticket/649 On Tue, Oct 27, 2009 at 1:11 PM, Jamo wrote: > > I think mapguide api only exposes sdf write capabilities? > Might have to do it through fdos > > Ro

Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-26 Thread Jamo
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

[mapguide-users] MgSelection does not work

2009-10-26 Thread Langen, Gido
Can anybody tell me why the following PHP code des not work - using MapGuide 2010? Everything works like a charm, except the MgSelection in the end is not created. Thanks for any help, Gido $sessionId = $args['SESSION']; $mapName = $args['MAPNAME']; $userInfo = new MgUserInformation($sessionId)

Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-26 Thread Rodolfo Moreno
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 > 2008 Spatial with the MapGuide API. What could cause problems when adding > features to the database? > > I think there w

FW: [mapguide-users] Re-projection information

2009-10-26 Thread Langen, Gido
FYI: Here is the solution to my question in case anybody else needs it. $featureReader = $layer->SelectFeatures($parcelQuery); while($featureReader->ReadNext()) { $PIN = $featureReader->GetDouble("PIN"); $agfObj = $featureReader->GetGeometry("Geometry"); $agfRW = new MgAgfReaderWr

Re: [mapguide-users] Add features to SQL Server Spatial

2009-10-26 Thread Gunter Becker
Is there at least anyone who had successfully added features to SQL Server 2008 Spatial with the MapGuide API. What could cause problems when adding features to the database? I think there was another thread ( http://n2.nabble.com/MSSqlServer-Spatial-problem-tt3148712.html#a3154109 MSSqlServer Sp

Re: [mapguide-users] Measuring areas

2009-10-26 Thread Paul Spencer
Hi Rémy, Your contribution was added to fusion 1.0 (?) (thanks!) but I had some problems with the area thing (not specifically with your code IIRC). When we started 2.0, the widget was changed substantially to use the OpenLayers controls for measuring and a lot of the code was removed, b

[mapguide-users] Scale to 1:1 on Fusion with Search widget or zoom to selection.

2009-10-26 Thread Jose Cerrejon
When I use the Search widget on Fusion, and click on the result, show me the object with a zoom to select. She problem is that selection is showed to scale 1:1. Same with I click on the icon [zoom to selection]. Any idea? - - - - IIS+PHP+Firefox 3.5.3. or Explorer 8+MapGuideOpenSource-2.1.0.

Re: [mapguide-users] How to get propertytypes of items in featureclass

2009-10-26 Thread Gunter Becker
Sorry, return value must be of type int int dataType = ((MgDataPropertyDefinition)propDef).DataType; Gunter Becker wrote: > > OK, > > after hours of searching and posting my problem I got at last the idea to > look in the Web API and found the answer to my question. Wow! > > The value 100

Re: [mapguide-users] How to get propertytypes of items in featureclass

2009-10-26 Thread Gunter Becker
OK, after hours of searching and posting my problem I got at last the idea to look in the Web API and found the answer to my question. Wow! The value 100 meens that the propertytype is of type "MgDataPropertyDefinition" (102 - "MgGeometricPropertyDefinition"). So I just have to cast it in the ri

[mapguide-users] How to get propertytypes of items in featureclass

2009-10-26 Thread Gunter Becker
Hi, I would like to get all the propertytypes of the propertyitems in a feature class. What is the best way to do this. I already tried this: MgClassDefinition classDef = _featureService.GetClassDefinition(featureSource, schema, featureClass); MgPropertyDefinitionCollection propertiesDef = cla

Re: [mapguide-users] trouble connecting mapguide maestro postgis

2009-10-26 Thread Dejan Gregor
Hello Pedro, are you sure you have all metadata updated in PostGIS and if the geometry is written well (geom vs. wkt)? Also, you should use all lowercaps anywhere in your postgis database. Cheers, Dejan 2009/10/23 Pedro Venâncio > I got some progress on this issue. I copied these dll files: co

Re: [mapguide-users] Measuring areas

2009-10-26 Thread web
Hello Zac, here is the ticket: http://trac.osgeo.org/mapguide/ticket/1126 I'll post to mg internals too. regards, Rémy ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users