On Thu, Aug 11, 2011 at 7:53 AM, Nalini <[email protected]> wrote: > > Greetings from Chennai ! > > We have been using GeoServer for a few years now.. In the latest > GeoServer 2.1.0 and 2.1.1 we have had some issues in rendering the > multipolygon layer of PostGIS data (tried in different versions 8.1, > 8.3, 8.4 and 9.0) > > http://10.163.0.15:8081/geoserver/test/wms?service=WMS&version=1.1.0&request=GetMap&layers=test:sp_police_district&styles=&bbox=407752.827,1415740.884,425632.133,1456995.222&width=221&height=512&srs=EPSG:4326&format=application/openlayers > > retrieves a distorted image..and also throws error like rendering process > failed and increase heap size. The attached document shows the same > layer being shown from version 2.1.1 (same as 2.1.0) and also the > correct rendering through 2.0.0 version
The result looks odd because your data is improperly configured, GS before version 2.1 did not notice, but 2.1 does. The issue is that you declared EPSG:4326 as the reference system with a dataset that is clearly not in that SRS, since you have coordinates in the ranges of millions. The current implementation is looking at the request and replicating the polygons many times over the requested area to perform map wrapping: http://geo-solutions.blogspot.com/2010/02/geoserver-continuous-map-wrapping.html The proper EPSG code for your data is likely one of the indian spatial reference systems, but I have no idea of which one: http://prj2epsg.org/search?terms=India In case fixing the SRS is not an option for you, there's the second possibility of disabling map wrapping, you have to add this parameter to your java virtual machine startup options: -DENABLE_MAP_WRAPPING=false Btw, please avoid posting the same mail three times in a row next time. Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
