public Projection create(Properties props) throws ProjectionException {
  try {
    Point2D center=(Point2D)props.get(ProjectionFactory.CENTER);
    float scale=PropUtils.floatFromProperties(props,ProjectionFactory.SCALE,10000000);
    int height=PropUtils.intFromProperties(props,ProjectionFactory.HEIGHT,100);
    int width=PropUtils.intFromProperties(props,ProjectionFactory.WIDTH,100);
    Cartesian proj=new Cartesian(center,scale,width,height);
    proj.setLimits(topLimit,bottomLimit,leftLimit,rightLimit,limitAnchorPoint);
    return proj;
  }
 catch (  Exception e) {
    if (Debug.debugging("proj")) {
      Debug.output("CartesianLoader: problem creating Cartesian projection " + e.getMessage());
    }
  }
  throw new ProjectionException("CartesianLoader: problem creating Cartesian projection");
}

public Projection create ( Properties props ) throws ProjectionException { try { Point2D center = ( Point2D ) props . get ( ProjectionFactory . CENTER ) ; float scale = PropUtils . floatFromProperties ( props , ProjectionFactory . SCALE , 10000000 ) ; int height = PropUtils . intFromProperties ( props , ProjectionFactory . HEIGHT , 100 ) ; int width = PropUtils . intFromProperties ( props , ProjectionFactory . WIDTH , 100 ) ; Cartesian proj = new Cartesian ( center , scale , width , height ) ; proj . setLimits ( topLimit , bottomLimit , leftLimit , rightLimit , limitAnchorPoint ) ; return proj ; } catch ( Exception e ) { if ( Debug . debugging ( "proj" ) ) { Debug . output ( "CartesianLoader: problem creating Cartesian projection " + e . getMessage ( ) ) ; } } throw new ProjectionException ( "CartesianLoader: problem creating Cartesian projection" ) ; }
create the projection with the given parameters .
