use of com.revolsys.spring.resource.Resource in project com.revolsys.open by revolsys.
the class TriangulatedIrregularNetwork method newTriangulatedIrregularNetwork.
static TriangulatedIrregularNetwork newTriangulatedIrregularNetwork(final Object source, final MapEx properties) {
final TriangulatedIrregularNetworkReadFactory factory = IoFactory.factory(TriangulatedIrregularNetworkReadFactory.class, source);
if (factory == null) {
return null;
} else {
final Resource resource = factory.getZipResource(source);
final TriangulatedIrregularNetwork tin = factory.newTriangulatedIrregularNetwork(resource, properties);
return tin;
}
}
use of com.revolsys.spring.resource.Resource in project com.revolsys.open by revolsys.
the class GriddedElevationModel method newGriddedElevationModel.
static GriddedElevationModel newGriddedElevationModel(final Object source, final Map<String, ? extends Object> properties) {
final GriddedElevationModelReadFactory factory = IoFactory.factory(GriddedElevationModelReadFactory.class, source);
if (factory == null) {
return null;
} else {
final Resource resource = Resource.getResource(source);
final GriddedElevationModel dem = factory.newGriddedElevationModel(resource, properties);
return dem;
}
}
use of com.revolsys.spring.resource.Resource in project com.revolsys.open by revolsys.
the class GriddedElevationModelWriter method newGriddedElevationModelWriter.
static GriddedElevationModelWriter newGriddedElevationModelWriter(final Object target, final Map<String, ? extends Object> properties) {
final GriddedElevationModelWriterFactory factory = IoFactory.factory(GriddedElevationModelWriterFactory.class, target);
if (factory == null) {
return null;
} else {
final Resource resource = Resource.getResource(target);
final GriddedElevationModelWriter writer = factory.newGriddedElevationModelWriter(resource);
writer.setProperties(properties);
return writer;
}
}
use of com.revolsys.spring.resource.Resource in project com.revolsys.open by revolsys.
the class GradientLibrary method getDefaultLibrary.
public static GradientLibrary getDefaultLibrary() {
if (defaultLibrary == null) {
final Resource resource = Resource.getResource("classpath:com/revolsys/elevation/gridded/rasterizer/gradient/");
defaultLibrary = new GradientLibrary(resource);
}
return defaultLibrary;
}
use of com.revolsys.spring.resource.Resource in project com.revolsys.open by revolsys.
the class AbstractConnectionRegistry method saveAs.
public void saveAs(final Resource parentDirectory, final String directoryName) {
final Resource connectionsDirectory = parentDirectory.newChildResource(directoryName);
saveAs(connectionsDirectory);
}
Aggregations