public SimpleFeatureCollection getVector ( String source ) throws Exception { if ( source == null || source . trim ( ) . length ( ) == 0 ) return null ; OmsVectorReader reader = new OmsVectorReader ( ) ; reader . pm = pm ; reader . file = source ; reader . process ( ) ; SimpleFeatureCollection fc = reader . outVector ; return fc ; }
Fast default reading of vector from definition .