我想知道你是否可以帮我解决我的问题。我在Postgis数据库中存储了一些栅格。每个栅格都在自己的表格中,除了“摆脱”之外。并且' rast'列,我manualy添加了其他列来存储栅格属性,如元数据' ...
我已经使用ImageMosaic JDBC在地理服务器中成功导入了栅格,并且在图层预览(OpenLayers)中我可以看到栅格并使用getFeatureInfo函数,但问题是函数getFeatureInfo返回具有正确像素值的表,' rid&#39 ; field为空(只有表头apears),没有显示其他属性(表中甚至没有属性头)。我使用默认的geoserver方法进行图层预览功能。
mapping.postgis.xml.inc文件
<connect>
<!-- value DBCP or JNDI -->
<dstype value="DBCP"/>
<!-- <jndiReferenceName value=""/> -->
<username value="postgres" />
<password value="postgres" />
<jdbcUrl value="jdbc:postgresql://localhost:5432/web_kartografija" />
<driverClassName value="org.postgresql.Driver"/>
<maxActive value="10"/>
<maxIdle value="0"/>
</connect>
connect.postgis.xml.inc
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE ImageMosaicJDBCConfig [
<!ENTITY mapping PUBLIC "mapping" "mapping.postgis.xml.inc">
<!ENTITY connect PUBLIC "connect" "connect.postgis.xml.inc">]>
<config version="1.0">
<coverageName name="jan"/> <!-- Name of the table in database -->
<coordsys name="EPSG:4326"/>
<!-- interpolation 1 = nearest neighbour, 2 = bilinear, 3 = bicubic -->
<scaleop interpolation="1"/>
<verify cardinality="false"/>
&mapping;
&connect;
</config>
layer.postgis.xml
<textAttributeName name="metadata" />
我尝试将{{1}}作为列名来包含aditional数据,但仍无效果。 anobudy可以帮我解决这个问题吗?提前谢谢!