[Mapguide_users] Sample Code for Oracle data

Colette rfcolette at yahoo.co.uk
Tue Jan 9 01:34:14 EST 2007


 Hello All,
 I downlaoded the dotnetviewersample and am trying to replicate the same
functionality - Find parcels , Find address , but my data is based on Oracle
spatial and the sample on sdf 

  so the first difference i found in "LAYER" steup in Studio - was
"Geometry" instead of "Data" 
  check the attached screen shot.  I have a layer created from Oracle
spatial data

  I think this would mean a some changes 

         int key = featureReader.GetInt32("Autogenerated_SDF_ID");
        MgByteReader byteReader = featureReader.GetGeometry("Data");

        MgGeometry geometry = geometryReaderWriter.Read(byteReader);
        MgPoint point = geometry.GetCentroid();
        double x = point.GetCoordinate().GetX();
        double y = point.GetCoordinate().GetY();


  Is there any other sample/Code which is based on oracle data not sdf or
shp.  Or will the sample code work for Oracle with some changes to code. If
Yes , Where should i do the changes


COLETTE R. F







 


 
http://www.nabble.com/file/5544/1.GIF  http://www.nabble.com/file/5544/1.GIF 
-- 
View this message in context: http://www.nabble.com/Sample-Code-for-Oracle-data-tf2944182.html#a8232743
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the Mapguide_users mailing list