Hi guys,
I am developing a software to convert layer styles from another map tool to ThinkGeo styles. To be able to compare the conversion results I'm also using the GeoSerializer to transfer the shapefiles style information from one software to another. I've noticed some strange behaviors with the serializer, I know it's still in development, but I thought you'd like to know about it (or maybe I'm just not using it correctly)
1- If I assign a ManagedProj4Projection to my ShapfileFeatureLayer the info of the projection appears in the xml but when I deserialize the layer I have to reassign a ManagedProj4Projection object. If I don't reassign the projection the layer does not show up in the map. Not a big problem for now since the projections are hardcoded in both software, but in the future that would be very useful to pass the user's projection with the serialization.
2- Concerning the projection info in the xml, I noticed that there's a long list of coordinate systems appended after the externalProjectionParameters tag. Normal?
3- For line features, if I assign a GeoHatchBrush to the LineStyle.OuterPen.Brush property the info does not show up in the serialization result. (Same for the InnerPen). If I use a GeoSolidBrush, it works. Any idea why?
I've attached a example of xml data I get from the GeoSerializer.
I use version 5.5.108.0
Thanks,
Marc
tg.xml (43.1 KB)