Examples of transform()


Examples of org.geotools.geometry.jts.ReferencedEnvelope.transform()

          Envelope envelope = new Envelope(ogEnvelope.getLowerCorner().getCoordinate()[0], ogEnvelope
              .getUpperCorner().getCoordinate()[0], ogEnvelope.getLowerCorner().getCoordinate()[1],
              ogEnvelope.getUpperCorner().getCoordinate()[1]);
          log.info("CRS " + targetCrs.getId() + " envelope " + envelope);
          ReferencedEnvelope refEnvelope = new ReferencedEnvelope(envelope, targetCrs);
          transformableArea = refEnvelope.transform(sourceCrs, true);
          log.info("transformable area for " + key + " is " + transformableArea);
        }
      } catch (MismatchedDimensionException mde) {
        log.warn("Cannot build transformableArea for CRS transformation between " + sourceCrs.getId() + " and "
            + targetCrs.getId() + ", " + mde.getMessage());

Examples of org.geotools.gml.producer.FeatureTransformer.transform()

            DefaultFeatureCollection collection = new DefaultFeatureCollection();
            collection.add(feature);
            FeatureTransformer transformer = new FeatureTransformer();
            transformer.setIndentation(4);
            try {
                TextTransfer.getInstance().javaToNative(transformer.transform(collection),
                        transferData);
            } catch (TransformerException e) {
                throw (RuntimeException) new RuntimeException().initCause(e);
            }
        }

Examples of org.geotools.gml.producer.FeatureTypeTransformer.transform()

        try {
            StringWriter writer = new StringWriter();
            FeatureTypeTransformer t = new FeatureTypeTransformer();
            t.setIndentation(4);
            t.setOmitXMLDeclaration(true);
            t.transform(schema, writer);

            return writer.getBuffer().toString();
        } catch (TransformerException te) {
            LOGGER.log( Level.WARNING, "Error generating schema from feature type", te );
            throw (IOException) new IOException("problem transforming type").initCause(te);

Examples of org.geotools.gml.producer.GeometryTransformer.transform()

      GeometryTransformer transformer = new GeometryTransformer();

      transformer.setIndentation(2);

      try {
                TextTransfer.getInstance().javaToNative(transformer.transform(geometry), transferData);
            } catch (TransformerException e) {
                throw (RuntimeException) new RuntimeException().initCause(e);
            }
    }

Examples of org.geotools.referencing.operation.transform.GeocentricTranslation.transform()

                    R * Math.cos(gamma));

            double[] pom = new double[3];

            //  generates destination points
            gt.transform(ptSrc.getCoordinate(), 0, pom, 0, 1);
            ptDst = new GeneralDirectPosition(pom);
            vectors.add(new MappedPosition(ptSrc,ptDst));
        }

        BursaWolfTransformBuilder BWPT = new BursaWolfTransformBuilder(vectors);

Examples of org.geotools.referencing.piecewise.PiecewiseTransform1DElement.transform()

                // in case everything went fine let's apply the
                // transform.
                //
                // //
                if (transform != null)
                  iterator.setSample(transform.transform(value));
                else {
                  // //
                  //
                  // if we did not find one let's try to use
                  // one of the nodata ones to fill the gaps,

Examples of org.geotools.styling.SLDTransformer.transform()

        sld.addStyledLayer(layer);
        layer.addUserStyle(style);

        SLDTransformer aTransformer = new SLDTransformer();
        aTransformer.setIndentation(4);
        String xml = aTransformer.transform(sld);
        return xml;
    }

    public Style getStyle() {
        return style;

Examples of org.geotools.xml.transform.TransformerBase.transform()

    public void write(Object value, OutputStream output, Operation operation) throws IOException {
        TransformerBase tx = (TransformerBase)value;

        try {
            tx.transform(operation.getParameters()[0], output);
        } catch (TransformerException e) {
            throw (IOException)new IOException().initCause(e);
        }

        return;

Examples of org.gephi.partition.api.PartitionController.transform()

        add(centerScrollPane, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void applyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_applyButtonActionPerformed
        PartitionController partitionController = Lookup.getDefault().lookup(PartitionController.class);
        partitionController.transform(model.getSelectedPartition(), model.getSelectedTransformer());
    }//GEN-LAST:event_applyButtonActionPerformed

    private void initEvents() {
        partitionComboBox.addItemListener(new ItemListener() {

Examples of org.gephi.ranking.api.RankingController.transform()

                            public float interpolate(float x) {
                                return interpolator.interpolate(x);
                            }
                        });
                    }
                    rankingController.transform(transformer);
                }
            }
        });

        splineButton.addActionListener(new ActionListener() {
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.