/** * Returns a citation of the given name. If the given name matches a {@linkplain * Citation#getTitle title} or an {@linkplain Citation#getAlternateTitles alternate titles} of * one of the pre-defined constants ({@link #EPSG}, {@link #GEOTIFF}, <cite>etc.</cite>), then * this constant is returned. Otherwise, a new citation is created with the specified name as * the title. * * @param title The citation title (or alternate title). * @return A citation using the specified name */ public static Citation fromName(final String title) { for (int i = 0; i < AUTHORITIES.length; i++) { final Citation citation = AUTHORITIES[i]; if (titleMatches(citation, title)) { return citation; } } return new CitationImpl(title); }
public Citation getAuthority() { CitationImpl c = new CitationImpl(EXCEPTION_MESSAGE); c.freeze(); return c; }
final Date date = result.getDate(2); final String engine = metadata.getDatabaseProductName(); final CitationImpl c = new CitationImpl(Citations.EPSG); c.getAlternateTitles() .add(
final Date date = result.getDate(2); final String engine = metadata.getDatabaseProductName(); final CitationImpl c = new CitationImpl(Citations.EPSG); c.getAlternateTitles() .add(
default: final CitationImpl c = new CitationImpl(authorities[0]); final Collection<Identifier> identifiers = c.getIdentifiers(); for (int i = 1; i < authorities.length; i++) {
resource.setFunction(OnLineFunction.INFORMATION); resource.setDescription(description); final CitationImpl citation = new CitationImpl(authority); final Collection<ResponsibleParty> parties = citation.getCitedResponsibleParties(); final ResponsibleParty oldParty;
DefaultEllipsoidalCS.getName(gcs, new CitationImpl("EPSG")), (GeodeticDatum) gcs.getDatum(), DefaultEllipsoidalCS.GEODETIC_2D.usingUnit(angularUnit));
return new DefaultProjectedCRS( java.util.Collections.singletonMap( "name", DefaultEllipsoidalCS.getName(pcrs, new CitationImpl("EPSG"))), conversionFromBase, pcrs.getBaseCRS(),
/** * Returns a citation of the given name. If the given name matches a {@linkplain * Citation#getTitle title} or an {@linkplain Citation#getAlternateTitles alternate titles} * of one of the pre-defined constants ({@link #EPSG}, {@link #GEOTIFF}, <cite>etc.</cite>), * then this constant is returned. Otherwise, a new citation is created with the specified * name as the title. * * @param title The citation title (or alternate title). * @return A citation using the specified name */ public static Citation fromName(final String title) { for (int i=0; i<AUTHORITIES.length; i++) { final Citation citation = AUTHORITIES[i]; if (titleMatches(citation, title)) { return citation; } } return new CitationImpl(title); }
assertNull(properties.put("AutHOrITY", new CitationImpl("An other authority"))); identifier = new NamedIdentifier(properties); assertEquals(
/** * Returns a citation of the given name. If the given name matches a {@linkplain * Citation#getTitle title} or an {@linkplain Citation#getAlternateTitles alternate titles} * of one of the pre-defined constants ({@link #EPSG}, {@link #GEOTIFF}, <cite>etc.</cite>), * then this constant is returned. Otherwise, a new citation is created with the specified * name as the title. * * @param title The citation title (or alternate title). * @return A citation using the specified name */ public static Citation fromName(final String title) { for (int i=0; i<AUTHORITIES.length; i++) { final Citation citation = AUTHORITIES[i]; if (titleMatches(citation, title)) { return citation; } } return new CitationImpl(title); }
@Test public void testEvaluatePojo() { Citation pojo = new CitationImpl(); f.setParameters(list(ff.property("edition"))); Assert.assertEquals(Boolean.TRUE, f.evaluate(pojo)); f.setParameters(list(ff.property("alternateTitles"))); Assert.assertEquals(Boolean.TRUE, f.evaluate(pojo)); // wrong case (note the first letter) f.setParameters(list(ff.property("AlternateTitles"))); Assert.assertEquals(Boolean.FALSE, f.evaluate(pojo)); f.setParameters(list(ff.property("nonExistentProperty"))); Assert.assertEquals(Boolean.FALSE, f.evaluate(pojo)); }
java.util.Collections.singletonMap("name", DefaultEllipsoidalCS.getName(pcrs, new CitationImpl("EPSG"))), pcrs.getConversionFromBase() .getMethod(), (GeographicCRS) pcrs.getBaseCRS(), pcrs .getConversionFromBase().getMathTransform(),
.getName(gcs, new CitationImpl("EPSG")), (GeodeticDatum) gcs.getDatum(), DefaultEllipsoidalCS.GEODETIC_2D