This file contains hidden or 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
(ns geotools.shape-viewer | |
(:import [org.geotools.data CachingFeatureSource FeatureSource FileDataStore FileDataStoreFinder]) | |
(:import [org.geotools.map DefaultMapContext MapContext]) | |
(:import [org.geotools.swing JMapFrame]) | |
(:import [org.geotools.swing.data JFileDataStoreChooser])) | |
(defn show-shapefile | |
"Prompts the user for a shapefile and displays its content" | |
[] | |
(if-let [shapefile (JFileDataStoreChooser/showOpenFile "shp" nil)] |