Examples of transform()


Examples of org.exoplatform.services.xml.transform.trax.TRAXTransformer.transform()

         {
            String msg = "XSLT scheme name is null.";
            throw new NullPointerException(msg);
         }
         transformer.initResult(new StreamResult(outStream));
         transformer.transform(source);
      }
      catch (TransformerConfigurationException tce)
      {
         throw new IOException("Can't write to output stream " + tce);
      }

Examples of org.fluxtream.core.images.ImageOrientation.transform()

                if (image != null) {
                    // drop the alpha channel, if one exists
                    if (image.getColorModel().hasAlpha()) {
                        image = dropAlphaChannel(image);
                    }
                    return JpegImage.create(orientation.transform(Scalr.resize(image, Scalr.Method.AUTOMATIC, Scalr.Mode.AUTOMATIC, lengthOfLongestSideInPixels)));
                }
            }
            catch (Exception e) {
                final String message = "Exception while trying to create a thumbnail";
                LOG.error(message, e);

Examples of org.geomajas.puregwt.client.map.ViewPort.transform()

  public void onMouseWheel(MouseWheelEvent event) {
    ViewPort viewPort = mapPresenter.getViewPort();
    if (event.isNorth()) {
      if (scrollZoomType == ScrollZoomType.ZOOM_POSITION) {
        int index = viewPort.getZoomStrategy().getZoomStepIndex(viewPort.getScale());
        viewPort.applyScale(viewPort.getZoomStrategy().getZoomStepScale(index - 1), viewPort.transform(
            new Coordinate(event.getX(), event.getY()), RenderSpace.SCREEN, RenderSpace.WORLD));
      } else {
        int index = viewPort.getZoomStrategy().getZoomStepIndex(viewPort.getScale());
        viewPort.applyScale(viewPort.getZoomStrategy().getZoomStepScale(index - 1));
      }

Examples of org.geomajas.puregwt.client.map.gfx.WorldContainer.transform()

    eventBus.fireEvent(new MapResizedEvent(width, height));
  }

  public WorldContainer addWorldContainer() {
    WorldContainer worldContainer = display.getNewWorldContainer();
    worldContainer.transform(viewPort);
    return worldContainer;
  }

  public ScreenContainer addScreenContainer() {
    return display.getNewScreenContainer();

Examples of org.geoscript.js.geom.Geometry.transform()

            Geometry geometry = (Geometry) value;
            Projection geomProj = geometry.getProjection();
            if (featureProj != null) {
                if (geomProj != null) {
                    if (!featureProj.equals(geometry.getProjection())) {
                        value = geometry.transform(featureProj);
                    }
                }
            } else if (geomProj != null) {
                throw ScriptRuntime.constructError("Error", "Cannot add a geometry with a projection to a feature without a projection");
            }

Examples of org.geoserver.csw.response.CSWRecordTransformer.transform()

        // transform it into a GetRecordsResponse
        CSWRecordTransformer tx = new CSWRecordTransformer(request, false);
        tx.setIndentation(2);
        StringWriter sw = new StringWriter();
        tx.transform(response, sw);
        // System.out.println(sw);
       
        Document dom = XMLUnit.buildControlDocument(sw.toString());

        // checking root elements

Examples of org.geoserver.wfs.CapabilitiesTransformer.transform()

    }

    public void test() throws Exception {
        CapabilitiesTransformer tx = new CapabilitiesTransformer.WFS1_1(getWFS(), getCatalog());
        ByteArrayOutputStream output = new ByteArrayOutputStream();
        tx.transform(request(), output);

        InputStreamReader reader = new InputStreamReader(new ByteArrayInputStream(output
                .toByteArray()));

        File f = new File("../web/src/main/webapp/schemas/wfs/1.1.0/wfs.xsd" );

Examples of org.geotools.filter.FilterTransformer.transform()

                try {
                    if (filter == Filter.EXCLUDE) {
                        memento.putTextData("all");
                    } else {
                        memento.putTextData(encode(transformer.transform(filter)));
                    }
                } catch (TransformerException e) {
                    throw new RuntimeException(
                            "Unable to convert filter to string I couldn't save the view query");
                }

Examples of org.geotools.geometry.TransformedDirectPosition.transform()

                       
                        final CoordinateReferenceSystem targetCRS = coverageGeometry.getCoordinateReferenceSystem();
                        final TransformedDirectPosition arbitraryToInternal = new
                          TransformedDirectPosition(requestedCRS, targetCRS, new Hints(Hints.LENIENT_DATUM_SHIFT,Boolean.TRUE));
                        try {
                            arbitraryToInternal.transform(position);
                        } catch (TransformException exception) {
                            throw new CannotEvaluateException("Unable to answer the geatfeatureinfo",exception);
                        }
                        position=arbitraryToInternal;
                    }

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

                            MathTransform tx = CRS.findMathTransform(source, target, true);
                            GeometryCoordinateSequenceTransformer gtx =
                                new GeometryCoordinateSequenceTransformer();
                            gtx.setMathTransform(tx);
                           
                            values[j] = gtx.transform(geometry);   
                        }
                        catch( Exception e ) {
                            String msg = "Failed to reproject geometry:" + e.getLocalizedMessage();
                            throw new WFSTransactionException( msg, e );
                        }
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.