Oracle Spatial Data Viewer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • san1014
    New Member
    • Jul 2007
    • 37

    Oracle Spatial Data Viewer

    hi all,

    Iam new to Oracle Spatial

    iam using JBO:Oracle spatial data viewer to display the shape files of the polygons.

    iam able to get the manually but iam unable to display the polygon
    there is a java file displayManager viz iam getting an error please check the code and answer me back

    here iam sending my code
    package org.duckham.jbg ui;

    import org.duckham.jbc ore.SpatialSet;
    import org.duckham.jbc ore.SimpleDB;

    import java.util.*;
    import java.awt.geom.* ;
    import java.beans.*;
    public class DisplayManager extends Object implements RepaintListener , DisplayManageme ntListener, QueryListener, SelectionListen er, DataUpdateListe ner, java.io.Seriali zable{

    protected Hashtable display = new Hashtable();
    protected Hashtable default_display = new Hashtable();
    protected Hashtable data_sets = new Hashtable();
    public static final String SELECTED = "SELECTED";

    protected Vector displayUpdateLi steners = new Vector();
    ..

    ...

    .
    .

    . public void setDataSet(Stri ng name, SpatialSet ss, Appearance ap_default){
    data_sets.put(n ame,ss);
    default_display .put(name,ap_de fault);
    }
    here is the ERROR >>>>>
    public void updateData(Data UpdateEvent evt) {
    >> setDataSet(evt. getDataSetName( ), evt.getDataSet( ),evt.getDefaul tAppearance());
    if(evt.updateVi ew()){
    notifyDisplayUp date(getDataSet (evt.getDataSet Name()).getBoun ds());
    setDisplayByDat aSetName(evt.ge tDataSetName()) ;
    } else
    notifyDisplayUp date(null);
    }

    thank you in advance
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by san1014
    hi all,

    Iam new to Oracle Spatial

    iam using JBO:Oracle spatial data viewer to display the shape files of the polygons.

    iam able to get the manually but iam unable to display the polygon
    there is a java file displayManager viz iam getting an error please check the code and answer me back

    here iam sending my code
    package org.duckham.jbg ui;

    import org.duckham.jbc ore.SpatialSet;
    import org.duckham.jbc ore.SimpleDB;

    import java.util.*;
    import java.awt.geom.* ;
    import java.beans.*;
    public class DisplayManager extends Object implements RepaintListener , DisplayManageme ntListener, QueryListener, SelectionListen er, DataUpdateListe ner, java.io.Seriali zable{

    protected Hashtable display = new Hashtable();
    protected Hashtable default_display = new Hashtable();
    protected Hashtable data_sets = new Hashtable();
    public static final String SELECTED = "SELECTED";

    protected Vector displayUpdateLi steners = new Vector();
    ..

    ...

    .
    .

    . public void setDataSet(Stri ng name, SpatialSet ss, Appearance ap_default){
    data_sets.put(n ame,ss);
    default_display .put(name,ap_de fault);
    }
    here is the ERROR >>>>>
    public void updateData(Data UpdateEvent evt) {
    >> setDataSet(evt. getDataSetName( ), evt.getDataSet( ),evt.getDefaul tAppearance());
    if(evt.updateVi ew()){
    notifyDisplayUp date(getDataSet (evt.getDataSet Name()).getBoun ds());
    setDisplayByDat aSetName(evt.ge tDataSetName()) ;
    } else
    notifyDisplayUp date(null);
    }

    thank you in advance
    ... and what is the error message?

    Comment

    • san1014
      New Member
      • Jul 2007
      • 37

      #3
      The error is :
      The Method setDataSet(Stri ng,SpatialSet,A ppearence) in the type DisplayManager is not applicable for the arguments(Strin g,SpatialSet,Ap pearence)

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by san1014
        The error is :
        The Method setDataSet(Stri ng,SpatialSet,A ppearence) in the type DisplayManager is not applicable for the arguments(Strin g,SpatialSet,Ap pearence)
        That can't be the error message. Please check again.

        Comment

        Working...