473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Oracle Spatial Data Viewer

37
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.jbgui;

import org.duckham.jbcore.SpatialSet;
import org.duckham.jbcore.SimpleDB;

import java.util.*;
import java.awt.geom.*;
import java.beans.*;
public class DisplayManager extends Object implements RepaintListener, DisplayManagementListener, QueryListener, SelectionListener, DataUpdateListener, java.io.Serializable{

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 displayUpdateListeners = new Vector();
..

...

.
.

. public void setDataSet(String name, SpatialSet ss, Appearance ap_default){
data_sets.put(name,ss);
default_display.put(name,ap_default);
}
here is the ERROR >>>>>
public void updateData(DataUpdateEvent evt) {
>> setDataSet(evt.getDataSetName(), evt.getDataSet(),evt.getDefaultAppearance());
if(evt.updateView()){
notifyDisplayUpdate(getDataSet(evt.getDataSetName( )).getBounds());
setDisplayByDataSetName(evt.getDataSetName());
} else
notifyDisplayUpdate(null);
}

thank you in advance
Apr 25 '08 #1
3 1665
r035198x
13,262 8TB
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.jbgui;

import org.duckham.jbcore.SpatialSet;
import org.duckham.jbcore.SimpleDB;

import java.util.*;
import java.awt.geom.*;
import java.beans.*;
public class DisplayManager extends Object implements RepaintListener, DisplayManagementListener, QueryListener, SelectionListener, DataUpdateListener, java.io.Serializable{

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 displayUpdateListeners = new Vector();
..

...

.
.

. public void setDataSet(String name, SpatialSet ss, Appearance ap_default){
data_sets.put(name,ss);
default_display.put(name,ap_default);
}
here is the ERROR >>>>>
public void updateData(DataUpdateEvent evt) {
>> setDataSet(evt.getDataSetName(), evt.getDataSet(),evt.getDefaultAppearance());
if(evt.updateView()){
notifyDisplayUpdate(getDataSet(evt.getDataSetName( )).getBounds());
setDisplayByDataSetName(evt.getDataSetName());
} else
notifyDisplayUpdate(null);
}

thank you in advance
... and what is the error message?
Apr 25 '08 #2
san1014
37
The error is :
The Method setDataSet(String,SpatialSet,Appearence) in the type DisplayManager is not applicable for the arguments(String,SpatialSet,Appearence)
Apr 25 '08 #3
r035198x
13,262 8TB
The error is :
The Method setDataSet(String,SpatialSet,Appearence) in the type DisplayManager is not applicable for the arguments(String,SpatialSet,Appearence)
That can't be the error message. Please check again.
Apr 25 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Kiyoung Yang | last post by:
Hi, I'm using Oracle 9i with the spatial option. It seems that the spatial function, e.g., SDO_NN, does not consider the 3rd element in a point. I tried the following script to create a table,...
0
by: Anbazhagan | last post by:
Hi, I'm using Oracle 9i with Spatial to store geographical data. It has only hundreds of features with very minimal veritices. I use OO4O (Oracle InProc) as component to access the oracle server...
125
by: Rhino | last post by:
One of my friends, Scott, is a consultant who doesn't currently have newsgroup access so I am asking these questions for him. I'll be telling him how to monitor the answers via Google Newsgroup...
2
by: Belinda | last post by:
Hi. I am just getting started with DB2's spatial extender and could really use some help. Pointers to good docs or examples are welcome. I am using DB2 version 8 on Sun. I have a database of...
1
by: vasilip | last post by:
I'm testing out db2 for a project I'm starting that requires proper xml support and I can't seem to get both xml and spatial data to work well in the same table. Once having created a table...
2
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers:...
1
by: san1014 | last post by:
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...
1
by: yneeraja | last post by:
hi all, Iam new to oracle spatial please suggest me an open source for displaying the .shp files ie spatial data using purely java swing and oracle. please help me out . thanks in advance.
5
by: Martin Solveig | last post by:
Hello, SLES9 SP1 is on PIII with two 800MHz procesors and 2GB RAM, on four SATA 156GBhard disks are created two RAID1 arays, on one RAID is OS with 1GB swap and Oracle 10.1.0.4 enterprise edition,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.