MCPcopy Create free account
hub / github.com/OSGeo/gdal / SetProjection

Method SetProjection

swig/java/javadoc.java:1807–1839  ·  view source on GitHub ↗
(String projection)

Source from the content-addressed store, hash-verified

1805 * @return gdalconst.CE_Failure if an error occurs, otherwise gdalconst.CE_None.
1806 */
1807public class Dataset:public int SetProjection(String projection)
1808
1809
1810/**
1811 * Fetch the affine transformation coefficients.
1812 * <p>
1813 * Fetches the coefficients for transforming between pixel/line (P,L) raster
1814 * space, and projection coordinates (Xp,Yp) space.
1815 * <p>
1816 * <pre>
1817 * Xp = geoTransformArray[0] + P*geoTransformArray[1] + L*geoTransformArray[2];
1818 * Yp = geoTransformArray[3] + P*geoTransformArray[4] + L*geoTransformArray[5];
1819 * </pre>
1820 * <p>
1821 * In a north up image, geoTransformArray[1] is the pixel width, and
1822 * geoTransformArray[5] is the pixel height. The upper left corner of the
1823 * upper left pixel is at position (geoTransformArray[0],geoTransformArray[3]).
1824 * <p>
1825 * The default transform is (0,1,0,0,0,1) and should be returned even when
1826 * an error occurs, such as for formats that don't support
1827 * transformation to projection coordinates.
1828 * <p>
1829 * NOTE: GetGeoTransform() isn't expressive enough to handle the variety of
1830 * OGC Grid Coverages pixel/line to projection transformation schemes.
1831 * Eventually this method will be depreciated in favour of a more general
1832 * scheme.
1833 *
1834 * @param geoTransformArray an existing six double array into which the
1835 * transformation will be placed.
1836 *
1837 * @see gdal#ApplyGeoTransform(double[] padfGeoTransform, double dfPixel, double dfLine, double[] pdfGeoX, double[] pdfGeoY)
1838 * @see gdal#InvGeoTransform(double[] gt_in)
1839 */
1840public class Dataset:public void GetGeoTransform(double[] geoTransformArray)
1841
1842

Callers 15

gdal_proximityFunction · 0.45
CalcFunction · 0.45
createPyramidTileFunction · 0.45
createTileFunction · 0.45
rgb2pctFunction · 0.45
_gdal_mergeFunction · 0.45
gdal_fillnodataFunction · 0.45
gdal_sieveFunction · 0.45
pct2rgbFunction · 0.45
gdal_editFunction · 0.45
moveFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected