Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to compile wps-sextante module with sextante libs 1.0
- Loading branch information
Showing
19 changed files
with
1,590 additions
and
1,292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 0 additions & 82 deletions
82
...ty/wps-sextante/src/main/java/org/geoserver/wps/sextante/DatastoreVectorLayerFactory.java
This file was deleted.
Oops, something went wrong.
52 changes: 52 additions & 0 deletions
52
src/community/wps-sextante/src/main/java/org/geoserver/wps/sextante/GTDBFIterator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,52 @@ | |||
/* (c) 2015 Open Source Geospatial Foundation - all rights reserved | |||
* This code is licensed under the GPL 2.0 license, available at the root | |||
* application directory. | |||
*/ | |||
package org.geoserver.wps.sextante; | |||
|
|||
import java.io.IOException; | |||
|
|||
import org.geotools.data.shapefile.dbf.DbaseFileReader; | |||
|
|||
import es.unex.sextante.core.Sextante; | |||
import es.unex.sextante.dataObjects.IRecord; | |||
import es.unex.sextante.dataObjects.IRecordsetIterator; | |||
import es.unex.sextante.dataObjects.RecordImpl; | |||
import es.unex.sextante.exceptions.IteratorException; | |||
|
|||
/** | |||
* | |||
* @author Cesar Martinez Izquierdo | |||
* | |||
*/ | |||
public class GTDBFIterator implements IRecordsetIterator{ | |||
private DbaseFileReader reader = null; | |||
|
|||
public GTDBFIterator(DbaseFileReader reader) { | |||
this.reader = reader; | |||
} | |||
|
|||
public void close() { | |||
try { | |||
this.reader.close(); | |||
} catch (IOException e) { | |||
Sextante.addErrorToLog(e); | |||
} | |||
} | |||
|
|||
public boolean hasNext() { | |||
return reader.hasNext(); | |||
} | |||
|
|||
public IRecord next() throws IteratorException { | |||
if (reader.hasNext()) { | |||
try { | |||
return new RecordImpl(reader.readEntry()); | |||
} catch (IOException e) { | |||
Sextante.addErrorToLog(e); | |||
} | |||
} | |||
throw new IteratorException(); | |||
} | |||
|
|||
} |
Oops, something went wrong.