Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.6.4
-
Fix Version/s: 1.6.5, 1.7.0-beta2
-
Component/s: WMS
-
Labels:None
-
Environment:RHEL3, Tomcat 5.5.25. Java 1.5.0.12
-
Number of attachments :3
Description
GeoServer 1.6.4 does not render my point layer correctly. There seems to be some type of coordinate shift occurring. My feature type info.xml is identical during my tests with 1.6.3 and 1.6.4
The details:
datastore = postgis
SRS = 4326
native bbox ~= -179.9, -72.4, 180, 88
I am using the map preview demo page to test. The SVG link renders in FireFox as expected, but the OpenLayers and PDF links do not show a correct rendering.
I've attached two example PDFs – one showing how the data set looks like when it is served from 1.6.3, the other when it is served up from 1.6.4.
Attachments
-
- from1.6.3.pdf
- 21/May/08 4:37 PM
- 40 kB
- Ryan Hofschneider
-
- from1.6.4.pdf
- 21/May/08 4:37 PM
- 42 kB
- Ryan Hofschneider
-
$i18n.getText("admin.common.words.hide")
- gt2-render-2.4-SNAPSHOT.jar
- 22/May/08 4:37 AM
- 145 kB
- Andrea Aime
-
- META-INF/MANIFEST.MF 0.7 kB
- IconFrame.class 1 kB
- org/geotools/.../DefaultMapContext$1.class 2 kB
- org/geotools/map/DefaultMapContext.class 19 kB
- org/geotools/map/DefaultMapLayer$1.class 0.9 kB
- org/geotools/map/DefaultMapLayer.class 10 kB
- org/geotools/.../event/MapBoundsEvent.class 2 kB
- org/geotools/.../MapBoundsListener.class 0.2 kB
- org/geotools/.../event/MapLayerEvent.class 0.8 kB
- org/geotools/.../MapLayerListener.class 0.3 kB
- org/geotools/.../MapLayerListEvent.class 1 kB
- org/geotools/.../MapLayerListListener.class 0.3 kB
- org/.../GraphicEnhancedMapContext.class 2 kB
- org/geotools/map/MapContext.class 3 kB
- org/geotools/map/MapLayer.class 0.8 kB
- org/geotools/renderer/GTRenderer.class 1 kB
- org/geotools/.../lite/BatikXMLReader.class 3 kB
- org/geotools/.../CustomGlyphRenderer.class 8 kB
- org/geotools/.../lite/FIDFilterFinder.class 0.6 kB
- org/geotools/.../GlyphPropertiesList.class 4 kB
- org/geotools/.../lite/GlyphProperty.class 1.0 kB
- org/geotools/.../lite/GlyphRenderer.class 0.4 kB
- org/geotools/.../GridCoverageRenderer.class 16 kB
- org/.../RasterSymbolizerSupport.class 8 kB
- org/geotools/.../lite/ImageLoader.class 5 kB
- org/.../IndexedFeatureResults$1.class 1 kB
- org/geotools/.../IndexedFeatureResults.class 4 kB
- org/geotools/.../InternalTranscoder.class 2 kB
- org/geotools/.../lite/Java2DMark.class 3 kB
- org/geotools/.../lite/LabelCache.class 0.6 kB
$i18n.getText("admin.common.words.show")- gt2-render-2.4-SNAPSHOT.jar
- 22/May/08 4:37 AM
- 145 kB
- Andrea Aime
Issue Links
Activity
Confirmed, this is a side effect of another bug fix. This is pretty serious, I fear we'll have to redo the gs1.6.4 and gt 2.4.3 releases because of this one...
Ryan, I've attached a modified renderer that should fix the problem. To try it out, you should stop geoserver, go to the geoserver/web-inf/lib directory, remove the gt-renderer-2.4.3.jar file and replace it with the one attached. Then start geoserver and see if it fixes the problem for you.
I've confirmed in my environment that gt2-render-2.4-SNAPSHOT.jar fixes the problem.
I had the same problem, and I applied the fix that seems to work, but sometimes I get a blank image back.
This URL returns a blank image: http://my_geoserver/geoserver/wms?service=wms&TRANSPARENT=true&LAYERS=ds:mylayer&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fgif&STYLES=&HEIGHT=1000&VERSION=1.1.1&SRS=EPSG:25832&WIDTH=1000&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage&BBOX=600000,6000000,1000000,6400000
Panning 1 km north & east returns a image as expexted: http://my_geoserver/geoserver/wms?service=wms&TRANSPARENT=true&LAYERS=ds:mylayer&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fgif&STYLES=&HEIGHT=1000&VERSION=1.1.1&SRS=EPSG:25832&WIDTH=1000&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage&BBOX=601000,6001000,1001000,6401000
The geoserver log-file (with debug) does not show any different processing for the 2 requests.
My environment: RHEL 5, postgresql-8.3.1, tomcat-6.0.16, geoserver-1.6.4a patched with gt2-render-2.4-SNAPSHOT.jar
Lars, I need data to reproduce your case. If you want to discuss this, you can also join us on IRC, #geoserver at irc.freenode.net
Andrea here comes the data (I cannot attach the file):
CREATE TABLE ds.byggesag (
id integer NOT NULL,
geometri public.geometry,
titel character varying,
beskrivelse character varying,
url character varying,
CONSTRAINT enforce_dims_geometri CHECK ((public.ndims(geometri) = 2)),
CONSTRAINT enforce_geotype_geometri CHECK (((public.geometrytype(geometri) = 'POINT'::text) OR (geometri IS NULL))),
CONSTRAINT enforce_srid_geometri CHECK ((public.srid(geometri) = 25832))
);
INSERT INTO byggesag VALUES (1, '0101000020E86400000000000090751C410000008039775741', '2008 test', 'bla bla...', 'http://www.xyz.dk/Archive-Login/0157-0000743.pdf');
INSERT INTO byggesag VALUES (3, '0101000020E864000000000000DC11264100000080FA965741', 'Raadhus', 'Bernstofftvej 161', 'http://www.xyz.dk/Archive-Login/0157-0000743.pdf');
INSERT INTO byggesag VALUES (5, '0101000020E86400000000000090751C410000008039775741', '2008 test2', 'bla2 bla2...', 'http://www.xyz.dk/Archive-Login/0157-0000743.pdf');
INSERT INTO byggesag VALUES (6, '0101000020E86400000000000090751C410000008039775741', '2008 test3', 'bla3 bla3...', 'http://www.xyz.dk/Archive-Login/0157-0000743.pdf');
INSERT INTO byggesag VALUES (7, '0101000020E86400000000000090751C410000008039775741', '2008 test4', 'bla4 bla4...', 'http://www.xyz.dk/Archive-Login/0157-0000743.pdf');
INSERT INTO byggesag VALUES (8, '0101000020E86400000000000090751C410000008039775741', '2008 test5', 'bla5 bla5...', 'http://www.xyz.dk/Archive-Login/0157-0000743.pdf');
INSERT INTO byggesag VALUES (9, '0101000020E86400000000000090751C410000008039775741', '2008 test6', 'bla6 bla6...', 'http://www.xyz.dk/Archive-Login/0157-0000743.pdf');
INSERT INTO byggesag VALUES (4, '0101000020E864000000000000DC11264100000080FA965741', 'xadd', 'Bernstofftvej 161 kld.', 'http://xyz.xyz.dk');
CREATE INDEX byggesag_gist_idx ON byggesag USING gist (geometri);
INSERT INTO geometry_columns VALUES ('', 'ds', 'byggesag', 'geometri', 2, 25832, 'POINT');
Tried it out, could not spot any issue, only one visible point gets renderer in both cases, and it's the correct result. The points above have 6 out of 8 geometries at the same location, and the remaining two have the same location as well.
select id,astext(geometri) from byggesag;
id | astext
---+----------------------
1 | POINT(466276 6151398)
3 | POINT(723182 6183914)
5 | POINT(466276 6151398)
6 | POINT(466276 6151398)
7 | POINT(466276 6151398)
8 | POINT(466276 6151398)
9 | POINT(466276 6151398)
4 | POINT(723182 6183914)
(8 rows)
Your bbox filter BBOX=600000,6000000,1000000,6400000 captures only rows 3 and 4, and only one points appears on the screen in both images, I'm not getting back any blank image...
Tried with both GeoServer 1.7.x series and 1.6.x series. It may be somethign that has been fixed already, don't know. Maybe try out a nightly from: http://gridlock.openplans.org/geoserver/1.6.x/
Gah, managed to reproduce something similar to it. Happens with postgis datasource (could not reproduce with shapefiles) and only with point symbolizers.