リビジョン 2651236d
| src/com/torutk/tinymap/TinyMapModel.java | ||
|---|---|---|
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
import java.util.function.Function;
|
||
|
import java.util.logging.Logger;
|
||
|
import java.util.stream.Stream;
|
||
|
import javafx.geometry.Point2D;
|
||
|
import org.nocrala.tools.gis.data.esri.shapefile.ShapeFileReader;
|
||
| ... | ... | |
|
* @author Toru Takahashi
|
||
|
*/
|
||
|
public class TinyMapModel {
|
||
|
private static final Logger logger = Logger.getLogger(TinyMapModel.class.getName());
|
||
|
private File mapFile;
|
||
|
private List<TinyMapPolyline> polylines = new ArrayList<>();
|
||
|
private Function<PointData, Point2D> projection;
|
||
| ... | ... | |
|
} catch (IOException | InvalidShapeFileException ex) {
|
||
|
throw new TinyMapException("シェープファイル読み込み時に例外発生", ex);
|
||
|
}
|
||
|
logger.info(String.format("Read %d polylines from %s%n", polylines.size(), mapFile.getName()));
|
||
|
}
|
||
|
|
||
|
TinyMapPolyline createMapPolylineFrom(PolylineShape shape, int part) {
|
||
ログ出力を追加