@ Api public void setUrl ( String url ) throws LayerException { try { this . url = url ; Map < String , Object > params = new HashMap < String , Object > ( ) ; params . put ( "url" , url ) ; DataStore store = DataStoreFactory . create ( params ) ; setDataStore ( store ) ; } catch ( IOException ioe ) { throw new LayerException ( ioe , ExceptionCode . INVALID_SHAPE_FILE_URL , url ) ; } }
Set the url for the shape file .