Package org.opengis.feature.simple

Examples of org.opengis.feature.simple.SimpleFeature.validate()


       
        assertNotNull(feature);
       
        try{
            feature = SimpleFeatureBuilder.build( featureType, new Object[]{"Longer Than 5"}, "ID" );
            feature.validate();
            fail("this should fail because the value is longer than 5 characters");
        }catch (Exception e) {
            // good
      }
    }
View Full Code Here


      assertNotNull(feature);
     
      try {
          SimpleFeature sf = SimpleFeatureBuilder.build( featureType, new Object[]{"NotValue"}, "ID" );
          sf.validate();
         fail( "PropertyIsEqualTo filter should have failed");
      }
      catch( Exception e ) {
          //good
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.