Examples of ILimbGenerator


Examples of net.lucidviews.geoalgo.limb.ILimbGenerator

   * @return the appropriate limb generator
   * @throws LimbServiceException if the requested algorithm is not supported
   */
  protected ILimbGenerator getLimbGeneratior( GetLimbsRequest request ) throws LimbServiceException
  {
    ILimbGenerator limbGenerator = this.limbGenerators.get( request.getAlgorithm() );
    if (limbGenerator == null)
      throw new LimbServiceException( "The algorithm '" + request.getAlgorithm() + "' is unknown. There is no limb generator defined for this algorithm." );
   
    return limbGenerator;
  }
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.ILimbGenerator

    {
      throw new LimbServiceException( "No layer was defined in the request." );
    }
   
    Geometry view = getViewGeometry( request );
    ILimbGenerator limbGenerator = getLimbGeneratior( request );
    Options options = getOptions( request );
   
    try
    {
      String layerName = request.getLayers().get( 0 );
      FeatureTypeInfo layer = getFeatureLayer( layerName );
      FeatureCollection<? extends FeatureType,? extends Feature> features = layer.getFeatureSource( null, null ).getFeatures();
     
      return limbGenerator.computeLimbs( view, features, options );
    }
    catch (Exception e)
    {
      throw new LimbServiceException( "Unable to process request: " + request, e );
    }
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.