[mapguide-users] Create feature source from FeatureReader

Zac Spitzer zac.spitzer at gmail.com
Tue Apr 29 01:04:36 EDT 2008


back to what i think the subject line implies

Does the API support doing something like a
ByteSink.ToFile('exported_oracle_data.sdf') on a FeatureReader?

z


On Tue, Jan 8, 2008 at 6:26 AM, mates <reklamama at centrum.sk> wrote:
>
>  Finally i found a solution !!
>  I created a new temporary featureSource and a layer definition.And then
>  simply copied the geometry from the selected features to the new layer.
>
>
>           $agfReaderWriter = new MgAgfReaderWriter();
>           $Commands = new MgFeatureCommandCollection();
>
>           while ($featureReader->ReadNext())
>            {
>
>                  $byteReader = $featureReader->GetGeometry('Geometry');
>
>                  $properties = new MgPropertyCollection();
>                  $properties->Add(new MgGeometryProperty('ProjektyGeom', $byteReader));
>                  $parcelMarkerCommands->Add(new MgInsertFeatures('ProjektyResultClass',
>  $properties));
>
>             }
>
>       $featureService->UpdateFeatures($parcelFeatureResId, $Commands,
>  false);
>  --
>  View this message in context: http://www.nabble.com/Create-feature-source-from-FeatureReader-tp14585581s16610p14674936.html
>
>
> Sent from the MapGuide Users mailing list archive at Nabble.com.
>
>  _______________________________________________
>  mapguide-users mailing list
>  mapguide-users at lists.osgeo.org
>  http://lists.osgeo.org/mailman/listinfo/mapguide-users
>



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


More information about the mapguide-users mailing list