Revision 1103 org.gvsig.gpe/library/trunk/org.gvsig.gpe/org.gvsig.gpe.prov/org.gvsig.gpe.prov.gml/src/main/java/org/gvsig/gpe/prov/gml/GmlLibrary.java
GmlLibrary.java | ||
---|---|---|
37 | 37 |
import org.gvsig.gpe.lib.spi.GPEProviderManager; |
38 | 38 |
import org.gvsig.tools.library.AbstractLibrary; |
39 | 39 |
import org.gvsig.tools.library.LibraryException; |
40 |
import org.gvsig.tools.locator.Locator; |
|
40 | 41 |
import org.gvsig.tools.locator.ReferenceNotRegisteredException; |
41 | 42 |
import org.gvsig.xmlpull.lib.api.XmlPullLibrary; |
42 | 43 |
import org.gvsig.xmlschema.lib.api.XMLSchemaLocator; |
... | ... | |
51 | 52 |
private static final Logger logger = LoggerFactory.getLogger(GmlLibrary.class); |
52 | 53 |
private static final String GMLFORMAT = "gml"; |
53 | 54 |
|
55 |
@Override |
|
54 | 56 |
public void doRegistration() { |
55 | 57 |
registerAsServiceOf(GPELibrary.class); |
56 | 58 |
require(CompatLibrary.class); |
57 | 59 |
require(XmlPullLibrary.class); |
58 | 60 |
} |
59 | 61 |
|
62 |
@Override |
|
60 | 63 |
protected void doInitialize() throws LibraryException { |
61 | 64 |
// Nothing to do |
62 | 65 |
} |
63 | 66 |
|
67 |
@Override |
|
64 | 68 |
protected void doPostInitialize() throws LibraryException { |
65 | 69 |
// Validate there is any implementation registered. |
66 | 70 |
GPEManager gpeManager = GPELocator.getGPEManager(); |
... | ... | |
80 | 84 |
gpeManager.setProperty(GmlProperties.TUPLES_SEPARATOR, " "); |
81 | 85 |
gpeManager.setProperty(GmlProperties.DEFAULT_FEATURECOLLECTION, "FeatureCollection"); |
82 | 86 |
gpeManager.setProperty(GmlProperties.DEFAULT_FEATURE, "Feature"); |
83 |
gpeManager.setProperty(GmlProperties.SRS_BASED_ON_XML, new Boolean(true));
|
|
87 |
gpeManager.setProperty(GmlProperties.SRS_BASED_ON_XML, true);
|
|
84 | 88 |
|
85 | 89 |
try { |
86 | 90 |
gpeProviderManager.addGpeParser("GMLSFP0", "Parser for GML", org.gvsig.gpe.prov.gml.parser.GPEGmlSFP0Parser.class); |
Also available in: Unified diff