There's something very strange going on.

I tried to view the data from table 'vias' and it worked. The difference from the other tables was the name of the geometry column (the_geom). I changed the name of the geometry column in table 'taxi' to 'the_geom', and now i'm getting this error message.

2/05/2006 10:19:57 AM org.geotools.data.jdbc.JDBC1DataStore buildSchema
ADVERTENCIA: Error building attribute type. The column will be ignored
org.geotools.data.DataSourceException:  no geometry found in the GEOMETRY_COLUMNS table  for taxi of the postgis install.  A row for the_geom is required   for geotools to work correctly
        at org.geotools.data.postgis.PostgisDataStore.getGeometryAttribute(PostgisDataStore.java:947)
        at org.geotools.data.postgis.PostgisDataStore.buildAttributeType(PostgisDataStore.java:888)
        at org.geotools.data.jdbc.JDBC1DataStore.buildSchema(JDBC1DataStore.java:1123)
        at org.geotools.data.postgis.PostgisDataStore.buildSchema(PostgisDataStore.java:603)
        at org.geotools.data.jdbc.FeatureTypeHandler.getFeatureTypeInfo (FeatureTypeHandler.java:201)
        at org.geotools.data.jdbc.FeatureTypeHandler.getSchema(FeatureTypeHandler.java:169)
        at org.geotools.data.jdbc.JDBC1DataStore.getSchema(JDBC1DataStore.java:360)
        at org.geotools.data.postgis.PostgisDataStore.getFeatureSource(PostgisDataStore.java:1437)
        at MapaTaxis.main(MapaTaxis.java:70)
2/05/2006 10:20:00 AM org.geotools.map.DefaultMapContext getLayerBounds
GRAVE: Data source and map context coordinate system differ, yet it was not possible to get a projected bounds estimate...
java.lang.NullPointerException
        at org.geotools.map.DefaultMapContext.getLayerBounds(DefaultMapContext.java:493)
        at org.geotools.map.DefaultMapContext.getAreaOfInterest(DefaultMapContext.java:584)
        at org.geotools.renderer.j2d.StyledMapRenderer.setMapContext(StyledMapRenderer.java:123)
        at org.geotools.gui.swing.StyledMapPane.setMapContext(StyledMapPane.java:115)
        at MapaTaxis.main(MapaTaxis.java :110)
SPHEROID["WGS84", 6378137.0, 298.257223563]
Exception in thread "main" java.lang.NullPointerException
        at org.geotools.renderer.j2d.RenderedLayerFactory.findGeometry(RenderedLayerFactory.java :685)
        at org.geotools.renderer.j2d.RenderedLayerFactory.processSymbolizers(RenderedLayerFactory.java:477)
        at org.geotools.renderer.j2d.RenderedLayerFactory.create(RenderedLayerFactory.java:257)
        at org.geotools.renderer.j2d.StyledMapRenderer.addLayer(StyledMapRenderer.java:186)
        at org.geotools.renderer.j2d.StyledMapRenderer.setMapContext(StyledMapRenderer.java:133)
        at org.geotools.gui.swing.StyledMapPane.setMapContext (StyledMapPane.java:115)
        at MapaTaxis.main(MapaTaxis.java:110)
Java Result: 1

I'm sure I have data in the geometry column in the table 'taxi', so I don't have a clue of what might be happening.
The only thing that differs form the table 'vias' is that the geometries in 'taxi' are points and in 'vias' multilinestrings.
Do you know of other reason why I could be getting this error?

Thanks,

Mauricio

Reply via email to