473,699 Members | 2,364 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Oracle Spatial Data Viewer

37 New Member
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
Apr 25 '08 #1
3 1683
r035198x
13,262 MVP
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?
Apr 25 '08 #2
san1014
37 New Member
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)
Apr 25 '08 #3
r035198x
13,262 MVP
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.
Apr 25 '08 #4

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

Similar topics

0
5171
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, insert 2 points, create an index, and to query the table using SDO_NN. -------------------< script for Oracle >---------------------- create table test (shape MDSYS.SDO_GEOMETRY);
0
6717
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 from Visual Basic. It seems that it takes more time to retrieve the information stored. Some time back I, used same kind of data in Oracle 8 (without spatial). It worked fine with OLE DB provider.
125
15450
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 searches. Scott has heard a lot of hype about DB2 and Oracle and is trying to understand the pros and cons of each product. I'm quite familiar with DB2 but have never used Oracle so I can't make any meaningful comparisons for him. He does not have...
2
3144
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 genomic data and believe the spatial extender will help in querying. I have to do intersections, subtractions, proximity, etc of ranges in the chromosomes. The database and even some tables include data on all chromosomes of several species. I am...
1
3505
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 containing both xml and spatial data fields I can't seem to find a way to alter the table I have created a table containing an id, xmldata field and a ST_Point If I try to drop the xml field with ALTER TABLE TEST DROP COLUMN
2
14240
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: Additional Array INSERT and SELECT Syntax Support by Pro*C/C++ and Pro*COBOL Precompilers: Dynamic SQL Statement Caching in Pro*C/C++ and Pro*COBOL Precompilers: Fix Execution Plan in Pro*C/C++ and Pro*COBOL Precompilers: Flexible B Area Length...
1
1014
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 there is a java file displayManager viz iam getting an error please check the code and answer me back here iam sending my code
1
1885
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
4154
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, on second RAID are two raw partitions each 70GB .... I start DBCA custom database and configure one ASM disk group by using two raw partitions (/dev/sdb1, /dev/sdb2),then I add 4 new tablespaces with datafiles of 2GB each autoextend on 10MB,...
0
8687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8617
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9035
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8914
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8884
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.