Hello guys. We are evaluating your product. Map is a very nice, but it is completely unfriendly to swallow all errors in ShapeReader. You should throw up errors when shape file not found or unreadable.
We created 2 maps in MapWindow. One of them successfully shows but for second (see attach) webmap silently draw empty screen.
there is no visible differences between each of them.
Help!
The shape file you attached is being read perfectly fine, the problem is one of projection. The default projection that the map control uses is spherical mercator, but I think the attached map already has a map projection applied, and the values being fed into the control's spherical mercator projection are outside of the bounds it will tolerate and get clamped. So if I change the projection type like this:
<igMap:XamWebMap MapProjectionType="Equirectangular">
<igMap:XamWebMap.Layers>
<igMap:MapLayer>
<igMap:MapLayer.Reader>
<igMap:ShapeFileReader Uri="ShapeFiles/Samara_region_adm_map"/>
</igMap:MapLayer.Reader>
</igMap:MapLayer>
</igMap:XamWebMap.Layers>
</igMap:XamWebMap>
The shapes appear correctly. I would investigate why one of the maps that you have has a projection pre-applied and the other does not. You can have the reader UnProject from a coordinate system and then the map control reproject into another if you can identify which coordinate system the shape file is using (check out the CoordinateSystem property on the reader). This help?
-Graham
here's an example of identifying which coordinate system a shape file is using such that the points can be unprojected and then reprojected into the charts coordinate system:
<igMap:XamWebMap>
<igMap:ShapeFileReader Uri="ShapeFiles/Samara_region_adm_map"
>
<igMap:ShapeFileReader.CoordinateSystem>
<igMap:CoordinateSystem>
<igMap:CoordinateSystem.Projection>
<igMap:SphericalMercator />
</igMap:CoordinateSystem.Projection>
</igMap:CoordinateSystem>
</igMap:ShapeFileReader.CoordinateSystem>
</igMap:ShapeFileReader>
Hello guys.
We are using your product. Map looks good, but it is not throughing any errors about shapefiles. how to find exceptions about the shapefile, some files are showed and some shows empty webpage. Attached is the one for reference.
let me know what is the problem with the shapefile..
kandukurusatish: the ShapeFile in the attachment "GANDHI NAGAR" appears to be corrupt. XamMap got about halfway through it and then everything appeared blank. this could be the result of an error uploading or downloading the file.
i tried opening this in ArcGIS Explorer (http://www.esri.com/software/arcgis/explorer/download.html), but it failed as well.
there is also a .prj file that is 0 bytes, so we won't be able to tell the type of projection used in this map.
Hi Guys,
there is a mismatch in the attachement in the last message. the actual attachment is the one now attached.
Please tell me what is the error in this shape file and how to rectify the error, and how to know the projection type for the shape files.
Thankyou,
Sathish babu k
Quadwave.