Tabnine Logo
CRS.reset
Code IndexAdd Tabnine to your IDE (free)

How to use
reset
method
in
org.geotools.referencing.CRS

Best Java code snippets using org.geotools.referencing.CRS.reset (Showing top 20 results out of 315)

origin: geoserver/geoserver

  public void reset() {
    // drop all the catalog store/feature types/raster caches
    catalog.getResourcePool().dispose();

    // reset the referencing subsystem
    CRS.reset("all");

    // look for pluggable handlers
    for (GeoServerLifecycleHandler handler :
        GeoServerExtensions.extensions(GeoServerLifecycleHandler.class)) {
      try {
        handler.onReset();
      } catch (Throwable t) {
        LOGGER.log(
            Level.SEVERE,
            "A GeoServer lifecycle handler threw an exception during reset",
            t);
      }
    }
  }
}
origin: geoserver/geoserver

@Override
protected void setUpTestData(SystemTestData testData) throws Exception {
  new File(testData.getDataDirectoryRoot(), "user_projections").mkdir();
  testData.copyTo(
      OverrideCRSTest.class.getResourceAsStream("test_override_epsg.properties"),
      "user_projections/epsg_overrides.properties");
  CRS.reset("all");
  testData.setUpSecurity();
}
origin: geoserver/geoserver

CRS.reset("all");
LOGGER.info("Shut down GT referencing threads ");
origin: geoserver/geoserver

@Override
protected void onSetUp(SystemTestData testData) throws Exception {
  OLD_TMP_VALUE = System.getProperty(JAVA_IO_TMPDIR);
  System.setProperty(JAVA_IO_TMPDIR, new File("./target").getCanonicalPath());
  super.onSetUp(testData);
  GeoServerResourceLoader loader1 = getResourceLoader();
  GeoServerResourceLoader loader2 = GeoServerExtensions.bean(GeoServerResourceLoader.class);
  // setup the grid file, the definitions and the tx overrides
  new File(testData.getDataDirectoryRoot(), "user_projections").mkdir();
  testData.copyTo(
      OvverideTransformationsTest.class.getResourceAsStream("test_epsg.properties"),
      "user_projections/epsg.properties");
  testData.copyTo(
      OvverideTransformationsTest.class.getResourceAsStream(
          "test_epsg_operations.properties"),
      "user_projections/epsg_operations.properties");
  testData.copyTo(
      OvverideTransformationsTest.class.getResourceAsStream("stgeorge.las"),
      "user_projections/stgeorge.las");
  testData.copyTo(
      OvverideTransformationsTest.class.getResourceAsStream("stgeorge.los"),
      "user_projections/stgeorge.los");
  CRS.reset("all");
}
origin: geoserver/geoserver

System.setProperty("org.geotools.referencing.forceXY", "true");
Hints.putSystemDefault(Hints.FORCE_AXIS_ORDER_HONORING, "http");
CRS.reset("all");
origin: geotools/geotools

@BeforeClass
public static void setupClass() {
  System.clearProperty("org.geotools.referencing.forceXY");
  CRS.reset("all");
}
origin: geotools/geotools

@BeforeClass
public static void setup() {
  // System.setProperty("org.geotools.test.interactive", "true");
  System.setProperty(GeoTools.FORCE_LONGITUDE_FIRST_AXIS_ORDER, "false");
  CRS.reset("all");
}
origin: geotools/geotools

@AfterClass
public static void clearClass() {
  System.clearProperty("org.geotools.referencing.forceXY");
  CRS.reset("all");
}
origin: geotools/geotools

@BeforeClass
public static void setupClass() {
  System.clearProperty("org.geotools.referencing.forceXY");
  CRS.reset("all");
}
origin: geotools/geotools

@BeforeClass
public static void cleanupCRS() {
  System.setProperty(GeoTools.FORCE_LONGITUDE_FIRST_AXIS_ORDER, "true");
  CRS.reset("all");
}
origin: geotools/geotools

@AfterClass
public static void close() {
  System.clearProperty(GeoTools.FORCE_LONGITUDE_FIRST_AXIS_ORDER);
  CRS.reset("all");
}
origin: geotools/geotools

protected void tearDownInternal() throws Exception {
  System.clearProperty("org.geotools.referencing.forceXY");
  Hints.removeSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER);
  CRS.reset("all");
}
origin: geotools/geotools

@BeforeClass
public static void setupClass() {
  System.clearProperty("org.geotools.referencing.forceXY");
  CRS.reset("all");
}
origin: geotools/geotools

@BeforeClass
public static void init() {
  // make sure CRS ordering is correct
  CRS.reset("all");
  System.setProperty(GeoTools.FORCE_LONGITUDE_FIRST_AXIS_ORDER, "true");
}
origin: geotools/geotools

@BeforeClass
public static void setupClass() {
  System.setProperty("org.geotools.referencing.forceXY", "true");
  CRS.reset("all");
}
origin: geotools/geotools

@BeforeClass
public static void prepareCRS() {
  CRS.reset("all");
}
origin: geotools/geotools

@BeforeClass
public static void setupCRS() throws FactoryException {
  CRS.reset("all");
  Hints.putSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE);
  // the following is only to make the test work in Eclipse, where the test
  // classpath is tainted by the test classpath of dependent modules (whilst in Maven it's
  // not)
  Set<CRSAuthorityFactory> factories =
      ReferencingFactoryFinder.getCRSAuthorityFactories(null);
  for (CRSAuthorityFactory factory : factories) {
    if (factory.getClass().getSimpleName().equals("EPSGCRSAuthorityFactory")) {
      ReferencingFactoryFinder.removeAuthorityFactory(factory);
    }
  }
  assertEquals(
      AxisOrder.NORTH_EAST, CRS.getAxisOrder(CRS.decode("urn:ogc:def:crs:EPSG::4326")));
}
origin: geotools/geotools

public void testSRSAxisOrder() throws Exception {
  try {
    CoordinateReferenceSystem crs = CRS.decode("EPSG:4326");
    assertEquals("EPSG:4326", CRS.toSRS(crs));
    Hints.putSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE);
    CRS.reset("ALL");
    assertEquals("urn:ogc:def:crs:EPSG::4326", CRS.toSRS(crs));
  } finally {
    Hints.removeSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER);
  }
}
origin: geotools/geotools

/** Adds the extra factory to the set of authority factories. */
@Before
public void setUp() {
  assertNull(extra);
  CRS.reset("all");
  extra = new FactoryEPSGExtra();
  ReferencingFactoryFinder.addAuthorityFactory(extra);
  ReferencingFactoryFinder.scanForPlugins();
}
origin: geotools/geotools

CRS.reset("all");
System.setProperty("org.geotools.referencing.forceXY", "true");
CRS.reset("all");
Hints.putSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE);
assertEquals(AxisOrder.EAST_NORTH, CRS.getAxisOrder(CRS.decode("EPSG:4326", false)));
CRS.reset("all");
assertEquals(AxisOrder.NORTH_EAST, CRS.getAxisOrder(CRS.decode("EPSG:4326", false)));
assertEquals(AxisOrder.EAST_NORTH, CRS.getAxisOrder(CRS.decode("EPSG:4326", true)));
CRS.reset("all");
System.setProperty("org.geotools.referencing.forceXY", "true");
assertEquals(AxisOrder.EAST_NORTH, CRS.getAxisOrder(CRS.decode("EPSG:4326", false)));
org.geotools.referencingCRSreset

Javadoc

Resets some aspects of the referencing system. The aspects to be reset are specified by a space or comma delimited string, which may include any of the following elements:

  • "plugins" for ReferencingFactoryFinder#scanForPlugins.
  • "warnings" for MapProjection#resetWarnings.

Popular methods of CRS

  • decode
  • findMathTransform
  • equalsIgnoreMetadata
  • parseWKT
  • lookupEpsgCode
  • transform
  • getAxisOrder
  • lookupIdentifier
  • toSRS
  • getHorizontalCRS
  • getEnvelope
  • getCoordinateOperationFactory
  • getEnvelope,
  • getCoordinateOperationFactory,
  • getAuthorityFactory,
  • getMapProjection,
  • getSupportedCodes,
  • getGeographicBoundingBox,
  • getEllipsoid,
  • getProjectedCRS,
  • getTemporalCRS

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now