Examples of create()


Examples of com.vividsolutions.jts.generator.MultiGenerator.create()

    MultiGenerator pg = new MultiGenerator(pgc);
    pg.setBoundingBox(new Envelope(0,10,0,10));
    pg.setNumberGeometries(3);
    pg.setGeometryFactory(geometryFactory);
   
    MultiPolygon pt = (MultiPolygon) pg.create();

    GMLWriter out = new GMLWriter();
    out.setPrefix(null);
    out.write(pt,getWriter());
   

Examples of com.vividsolutions.jts.generator.PointGenerator.create()

  public void testSinglePointRoundTrip() throws SQLException{
    PointGenerator pg = new PointGenerator();
    pg.setGeometryFactory(geometryFactory);
    pg.setBoundingBox(new Envelope(0,10,0,10));
   
    Point pt = (Point) pg.create();
   
    OraWriter ow = new OraWriter(getConnection());
    STRUCT st = ow.write(pt);
   
    OraReader or = new OraReader();

Examples of com.vividsolutions.jts.generator.PolygonGenerator.create()

    PolygonGenerator pg = new PolygonGenerator();
    pg.setGeometryFactory(geometryFactory);
    pg.setBoundingBox(new Envelope(0,10,0,10));
    pg.setNumberPoints(10);
   
    Polygon pt = (Polygon) pg.create();
   
    GMLWriter out = new GMLWriter();
    out.setPrefix("");
    out.write(pt,getWriter());
   

Examples of com.vividsolutions.jts.geom.CoordinateSequenceFactory.create()

        referenceCoordinates[8][0] = coordinates;

        GeometryFactory geometryFactory = GeometryUtils.getGeometryFactory();
        CoordinateSequenceFactory coordinateSequenceFactory =
                geometryFactory.getCoordinateSequenceFactory();
        CoordinateSequence sequence = coordinateSequenceFactory.create(coordinates);
        LineString geometry = new LineString(sequence, geometryFactory);

        P2<LineString> result;
        LineString[][] results = new LineString[9][2];

Examples of com.vividsolutions.jts.geom.impl.PackedCoordinateSequenceFactory.create()

public class TestElevationUtils extends TestCase {

  public void testLengthMultiplier() {

    PackedCoordinateSequenceFactory factory = PackedCoordinateSequenceFactory.DOUBLE_FACTORY;
    CoordinateSequence seq = factory.create(new Coordinate[] {
        new Coordinate(0, 1), new Coordinate(10, 1) });
    SlopeCosts costs = ElevationUtils.getSlopeCosts(seq, false);
    assertEquals(1.0, costs.lengthMultiplier);
   
    seq = factory.create(new Coordinate[] {

Examples of com.vividsolutions.jts.geom.prep.PreparedGeometryFactory.create()

  static class PreparedGeometryOp
  {
    public static boolean intersects(Geometry g1, Geometry g2)
    {
      PreparedGeometryFactory pgFact = new PreparedGeometryFactory();
      PreparedGeometry prepGeom = pgFact.create(g1);
      return prepGeom.intersects(g2);
    }
    public static boolean contains(Geometry g1, Geometry g2)
    {
      PreparedGeometryFactory pgFact = new PreparedGeometryFactory();

Examples of com.vmware.vim.binding.vim.alarm.AlarmManager.create()

      try {
         if (existing != null) {
            existing.reconfigure(spec);
            logger.info("Alarm " + alarmName + " exists");
         } else {
            ManagedObjectReference alarmMoref = alarmManager.create(rootFolder._getRef(), spec);
            logger.info("Create " + alarmMoref.getValue() + " " + alarmName);
         }
      } catch (InvalidName e) {
         logger.error("Invalid alarm name", e);
      } catch (DuplicateName e) {

Examples of com.volantis.mcs.eclipse.common.odom.xpath.ODOMXPath.create()

            final ODOMXPath createPath =
                        new ODOMXPath(sourceToTargetPath, newAttribute);

            // This just creates an EMPTY attribute.......
            final ODOMAttribute createdAttribute =
                        (ODOMAttribute) createPath.
                        create(sourceElement, odomFactory);

            // ....but in doing so it might have created us a new target:
            // first check whether it was originally null
            if (targetElement == null) {

Examples of com.volantis.mcs.wbsax.AttributeStartFactory.create()

        // Send a href event to optimiser
        AttributeStartFactory attributeStartFactory = new AttributeStartFactory();
        TokenTable tokenTable = new WMLVersion1_1TokenTable();
        tokenTable.registerAttrStarts(attributeStartFactory);
        AttributeStartCode hrefStartCode
             = attributeStartFactory.create("href", null);
        optimiser.addAttribute(hrefStartCode);
       
        // send url to optimiser
        optimiser.addAttributeValue(new WBSAXString(codec,
            "http://www.my.com/page.jsp;jsessionid=123?parm=value#ref"));

Examples of com.volantis.mcs.wbsax.StringFactory.create()

        SessionIdentifierURL splitURL
             = searcher.getJSessionId(dopaque.getString());
           
        StringFactory strings = inputReferences.getStringFactory();
        // Add the part of the url before the jsessionid as an inline string
        WBSAXString prefix = strings.create(splitURL.getPrefix());
        visitString(prefix);
           
        // If present, add jsessionid to the string table  
        if (splitURL.hasJsessionid()) {
            StringReference jsessionid
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.