Revision 1853
org.gvsig.raster.postgis/trunk/org.gvsig.raster.postgis/org.gvsig.raster.postgis.app/org.gvsig.raster.postgis.app.postgisrasterclient/src/main/resources/text_en.properties | ||
---|---|---|
1 |
error_getting_tables=Error connecting to database or getting the tables |
|
2 |
error_creating_layer=Error creating PostGIS layer |
|
3 |
loading_postgis_raster_layer=The layer is loading.\n. This operation could last a little.\n Please, wait. |
|
4 |
warning=Warning |
|
0 | 5 |
org.gvsig.raster.postgis/trunk/org.gvsig.raster.postgis/org.gvsig.raster.postgis.app/org.gvsig.raster.postgis.app.postgisrasterclient/src/main/java/org/gvsig/raster/postgis/app/postgisrasterclient/gui/AddPostGISRasterLayerWizard.java | ||
---|---|---|
246 | 246 |
|
247 | 247 |
//Criterios para a?adir la tabla a la lista |
248 | 248 |
try { |
249 |
if(!param.getTable().startsWith("o_") && isRasterTable(param)) {
|
|
249 |
if(isTableNamePreffixValid(param) && isRasterTable(param)) {
|
|
250 | 250 |
apiUI.addElementToTable(new TableListItem(dbExplorer, param)); |
251 | 251 |
} |
252 | 252 |
} catch (PostGISRasterCoreException e) { |
... | ... | |
265 | 265 |
} |
266 | 266 |
} |
267 | 267 |
|
268 |
private boolean isTableNamePreffixValid(DBStoreParameters param) { |
|
269 |
return !param.getTable().startsWith("o_"); |
|
270 |
} |
|
271 |
|
|
268 | 272 |
/** |
269 | 273 |
* Checks is the table has the structure to contain a raster |
270 | 274 |
* @param param |
271 | 275 |
* @return |
272 | 276 |
* @throws PostGISRasterCoreException |
273 | 277 |
*/ |
274 |
@SuppressWarnings({ "deprecation" }) |
|
275 | 278 |
private boolean isRasterTable(DBStoreParameters param) throws PostGISRasterCoreException { |
276 | 279 |
DataManager dm = DALLocator.getDataManager(); |
277 | 280 |
FeatureStore store; |
278 | 281 |
try { |
279 |
store = (FeatureStore)dm.createStore(param);
|
|
282 |
store = (FeatureStore)dm.openStore(param.getDataStoreName(), param);
|
|
280 | 283 |
|
281 | 284 |
FeatureType featureType = store.getDefaultFeatureType(); |
282 | 285 |
if(featureType.size() == 2) { |
org.gvsig.raster.postgis/trunk/org.gvsig.raster.postgis/org.gvsig.raster.postgis.swing/org.gvsig.raster.postgis.swing.impl/src/main/resources/org/gvsig/raster/postgis/swing/impl/i18n/text.properties | ||
---|---|---|
1 | 1 |
select_db=Selecci?n de conexi?n |
2 | 2 |
tables_chooser=Elecci?n de tablas |
3 |
subdataset_chooser=Elecci?n de subdataset
|
|
3 |
subdataset_chooser=Subdataset (No seleccionar ninguno para cargarlos todos)
|
|
4 | 4 |
tile_cache=Uso de cach\u00e9 de teselas local |
5 | 5 |
tile_cache_tooltip=Marque esta casilla para usar la cach\u00e9 de teselas de almacenamiento local. |
org.gvsig.raster.postgis/trunk/org.gvsig.raster.postgis/org.gvsig.raster.postgis.swing/org.gvsig.raster.postgis.swing.impl/src/main/resources/org/gvsig/raster/postgis/swing/impl/i18n/text_en.properties | ||
---|---|---|
1 |
select_db=Conection selector |
|
2 |
tables_chooser=Table selector |
|
3 |
subdataset_chooser=Subdataset (Don't select anything to load all datasets) |
|
4 |
tile_cache=Tile cache |
|
5 |
tile_cache_tooltip=Check this box to use the tile cache. |
|
0 | 6 |
Also available in: Unified diff