[Mapguide_users] Sample Code for Oracle data

Andy Morsell amorsell at spatialgis.com
Tue Jan 9 11:03:46 EST 2007


Do you have a field in your Oracle Spatial table of concern called
"Autogenerated_SDF_ID"?  If not, try substituting in your own ID field name.



Andy 

-----Original Message-----
From: mapguide_users-bounces at lists.osgeo.org
[mailto:mapguide_users-bounces at lists.osgeo.org] On Behalf Of Colette
Sent: Monday, January 08, 2007 10:34 PM
To: Mapguide_users at lists.osgeo.org
Subject: [Mapguide_users] Sample Code for Oracle data


 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.

_______________________________________________
Mapguide_users mailing list
Mapguide_users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide_users





More information about the Mapguide-users mailing list