[Geotools-devel] creating featuresource from oracle spatial

2009-03-25 Thread alwynn
Hi everyone I just started to use geotools. What I've done so far is to connect to a Oracle spatial database. The connection is successfull. When I'm trying to get a FeatureSource object with the following code: FeatureSource featureSource = dataStore.getFeatureSource( "MyTypeName"); It returns

[Geotools-devel] pixel to coordinate conversion

2009-03-10 Thread alwynn
Hi I'm building and displaying a map in a JMapPane from data retreived from oracle spatial(country boundaries). The map contains a feature collection (layer) of coordinates [points]. The feature collection was created not from spatial data but a plain jdbc query to oracle to retrieve the long/lat

Re: [Geotools-devel] how can i place a mark in an map

2009-03-10 Thread alwynn
To create a mark using a FeatureCollection: //get the crsA from the schema crsA = featureSource.getSchema().getCoordinateReferenceSystem(); //add a 'mark' to the feature collection FeatureCollection fc = FeatureCollections.newCollection(); fc.add(createDot(131.0, 30

Re: [Geotools-devel] creating featuresource from oracle spatial

2009-03-06 Thread alwynn
hat > controls what tables you see. In anycase once you connect ot the datastore > you can ask it for the list of valid table names can you not? Those should > all work as I understand it. > Jody > > On Thu, Mar 5, 2009 at 6:40 PM, alwynn wrote: > >> >> OK,

Re: [Geotools-devel] creating featuresource from oracle spatial

2009-03-04 Thread alwynn
This is my pom.xml http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 org.geotools.demo.gui geotools-gui jar 1.0-SNAPSHOT geotools-gui ht

Re: [Geotools-devel] creating featuresource from oracle spatial

2009-03-04 Thread alwynn
OK, so I'm still investigating this problem. Because I'm new to GIS, Geotools as well as Oracle spatial bear with me. When I refer to the type name string as a parameter in getFeatureSource I'm using the table name. This results in 'Exception in thread "main" java.lang.NoSuchMethodError' org.g