shapefiles painting problem

Mar 29, 2012 at 5:34 AM

Hi,

We are developing GIS application using SharpMap dll. We are loading shapefiles dynamically on map. When we add the country layer to cancvas its showing all countries well. But when we apply some operations like zoomIn,zoomout etc its not showing all coutries. (painting problem). Please give any idea to resolve this issue. Thanks in advance. 

Coordinator
Apr 2, 2012 at 10:24 AM

Could you provide some example (image) that illustrates your problem?

May 16, 2012 at 1:06 PM
Edited May 16, 2012 at 1:10 PM

This is our application public url: "http://182.72.148.155:81/NOV"

Please click this url. You can see the country shape file on canvas. In this stage you can see the total country shape on the canvas.

Next please click on the zoomout button from the toolbar and then click on the map.

In this stage we miss the some area of the country shape file on the canvas. Expecially we missing everytime country Australia on the map.

This happning in some zoom levels. Please give some idea to fix this problem.

Thanks in advance.

Regards,

subbu 

Coordinator
May 16, 2012 at 3:20 PM
MSsubrahmanyam wrote:

This is our application public url: "http://182.72.148.155:81/NOV"

It does not work from here. If I leave out :81 port specification i get a configuration error.

Have you tried displaying the country shapefile with the WinFormSamples project, and if so, is the effect the same?

FObermaier

Developer
May 16, 2012 at 3:23 PM

works for me only with IE and often the screen goes completely blank.

are you sure that isn't a client (i.e. js) error?

anyway, I can reproduce the error, so it's hard to see whan't happens. 

sorry.

May 17, 2012 at 3:19 PM

Hi

Thanks for the giving reply.

We identified the problem.

We tested the application without corrdinateTransformation of the country shapefile into mercator project (Without using bing layer). Its working fine.

Previously we first loaded bing map and then rendered country shape file on the bing layer,

But bing layer is in mercator projection. So we are converting shape file

"CoordinateTransformation" into mercator with well know text format. We are assuming during conversion there was any problem in the sharpmap.

We need bing layer on the canvas. Please give any idea to fix this problem. Thanks in advance.

Regards,

subbu

 

Developer
May 17, 2012 at 4:53 PM
Edited May 17, 2012 at 4:54 PM

probably proj.net fails to call InverseCoordinateTransformation on your layer.

try to use the CoordinateTransformation as provided from ProjHelper (inside SharpMap.Demo.Wms project)
http://sharpmap.codeplex.com/SourceControl/changeset/view/97853#1962321

you can take the ShapefileHelper.Openlayers method as a sample of how to configure your data
http://sharpmap.codeplex.com/SourceControl/changeset/view/97853#1962324

hope this helps

May 18, 2012 at 10:58 AM

Thanks its working fine.

But still often the screen going completely blank. Please give any idea to fix this issue.

Thanks and regards,

subbu

May 21, 2012 at 2:58 PM

Our application working fine with all features except above serious problem.

After some operations on map for example zoomin,zoomout ect map not loading on the canvas. It showing small cross icon on canvas.

We debugged the application map coming in the server side but not displying on client side without javascript errors only showing red colored small icon on canvas.

We are unbale to identify this issue. Please give any idea to fix this issuse. This is only serious problem we are facing now. Our application will complete once we resolved this issue. Please help us. Thanks in advance.

Regards,

subbu

 

Developer
May 21, 2012 at 3:21 PM
MSsubrahmanyam wrote:

After some operations on map for example zoomin,zoomout ect map not loading on the canvas. It showing small cross icon on canvas.

We debugged the application map coming in the server side but not displying on client side without javascript errors only showing red colored small icon on canvas.

can you provide additional info? also an image of the error can help.