Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] [jira] (UDIG-1999) Unable to read/write csv files in GeoScript console - missing opencsv dependency

Issue Type: Bug Bug
Affects Versions: UDIG 1.4.0
Assignee: Jody Garnett
Components: framework
Created: 04/Jun/13 4:43 AM
Description:
import geoscript.geom.*
import geoscript.proj.*
import geoscript.render.*
import geoscript.layer.*
import geoscript.layer.io.*
import geoscript.feature.*
import geoscript.style.*
import geoscript.style.io.*
import geoscript.viewer.*
import geoscript.filter.*
import geoscript.workspace.*
import org.jgrasstools.modules.*

def path = "/path/to/csv/file/"
def file = new File(path + "myFile.csv");
assert file.exists();

def reader = new geoscript.layer.io.CsvReader("x","y");

assert reader != null


def Layer csvlayer = reader.read(file);

fails with the following output :


ERROR : au.com.bytecode.opencsv.CSVReader

Promblem-solution : copy opencsv-2.0.jar (see geoscript dependencies in root pom) to net.refractions.uid.libs/lib folder and add an entry to Bundle-ClassPath in MANIFEST.MF. In addition to the classpath its required to add the package au.com.bytecode.opencsv.CSVReader to Export-Package.

Environment: any
Project: uDIG
Priority: Major Major
Reporter: Frank Gasdorf
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Back to the top