enjoy futuristic design, UI, get inspired by the movie Oblivion for your next project…
Category Archives: Uncategorized
JSON in/out in C# not anymore rigid
Very nice and concise summary of the using dynamics, ExpandoObject and JSON.net for easy serialization/deserialization of JSON in C# – finally using JavaScript-like (dynamic) access to JSON members. http://thewayofcode.wordpress.com/2012/09/18/c-dynamic-object-and-json-serialization-with-json-net/
Tiled WMS overlay in Windows Phone 8
Update May 2014: version for Windows Phone 8.1 is here: http://blog.sumbera.com/2014/05/23/wms-overlay-on-windows-8-1-and-windows-phone-8-1/
Looking on Windows Phone 8 Map SDK, I have tried to migrate a simple WMS overlay from Windows Phone 7 (Bing map) – blogged here : http://blog.sumbera.com/2010/11/07/tiled-wms-overlay-in-windows-phone-7/
Changes :
– for migration you have to add before migration System.Core into the project (had to edit manualy proj file and add it there)
-Change from *.Controls.Map to *Map.Controls
– XAML definition
<maps:Map x:Name="sampleMap" LandmarksEnabled="False" Loaded="sampleMap_Loaded" CartographicMode="Hybrid" Center="49.320574,16.68942" ZoomLevel="14" />
Loading TileSource:
private void sampleMap_Loaded(object sender, RoutedEventArgs e)
{
MapsSettings.ApplicationContext.ApplicationId = "<applicationid>";
MapsSettings.ApplicationContext.AuthenticationToken = "<authenticationtoken>";
TileSource wmsTileSource = new WMSTile();
sampleMap.TileSources.Add(wmsTileSource);
}
..then in your TileSource you can use as usual your method GetUri.
Sample code based on Microsoft Sample can be downloaded here: www.sumbera.com/lab/WP8/WMSonWP8.zip
Back to the feature phone

reverted to feature phone after 5 years of iPhone addiction. Here is my new phone. Great features:
– no more reading and responding to emails in my private time
– no more reading flipboard (tech crunch, CNET..)
– looking forward for the next day email surprises
– smaller and lighter than iPhone 5 or 6 🙂
-no more twitter (btw. I have removed all my tweets and followers, sorry my flowers…, left only linkedIn and wordpress)
– killing feature : battery life up to several days
– very fast, focus on 3 single tasks done: phone , sms , alarm
– absolute differentiation from all touch-based phones
– 5 Mpix camera as on my last iPhone (4) with autofocus
-supports USB mass storage and microSD card
– price : 90 USD
🙂
nice article back to feature phones
iKatastr.cz 500T visits

WMS overlay in iOS MapKit
update May 2014: iOS7 version and notes available here: http://blog.sumbera.com/2014/05/17/wms-on-mapkit-with-ios7/

I have crafted really simple and quick code at ESA App dev camp for viewing WMS sources. And as few people questioned me on how to do this, I am posting the full code of the MapView component that takes sample WMS service (Ozone) and overlays this above MapKit.
In github here : https://github.com/Sumbera/WMSoverMapKit
you will find MapViewController that accepts WMS sources stored as array with BBOX %f, %f, %f, %f
-(void) addWMSOverlays: (NSArray*) overlays
this can be called from your rootController:
MapViewController * mapViewController = [[MapViewController alloc] init];
WMSOverlay * wmsOverlay =[[WMSOverlay alloc]
initWithName:@"Ozone" Url:@"http://wdc.dlr.de/ogc/produkt_t?LAYERS=GOME2_O3&
TRANSPARENT=TRUE&
FORMAT=image/png&
STYLES=&
SLD=http%3A%2F%2Fwdc.dlr.de%2Fsld%2FGOME2_O3_sld.xml&
TIME=2012-02-12T00:00:00Z&
SERVICE=WMS&
VERSION=1.1.1&
REQUEST=GetMap&
SRS=EPSG:4326&
WIDTH=256&
HEIGHT=256"
Opacity:0.5];
[mapViewController addWMSOverlays:[NSArray arrayWithObjects:wmsOverlay, nil]];
please note:
#1. that sample code uses experimentaly MKNetworkKit, which has some occasional troubles. You can replace the download method in WMSOverlayView class downloadTile
#2 it uses simple hash for storing tiles on cache.
enjoy
ESA App challenge winner
I have participated in the first ESA (European Space Agency) app dev challenge where 5 teams competed on best concept/prototype that will bring GMES data sources to the public on mobile devices. Our team (Czech Republic, Germany, Macedonia) won and each member got iPad 3 . We won not because we were best in terms of the best prototype, concept or presentation, but because we fit best to the criteria imposed by this challenge and each piece of delivery (5 page long document describing concept, presentation, prototype demo) was pretty good and simple enough to be feasible for final realization. Moreover a unique value of mobile devices plus unique value of GMES satellites have been addressed. Full article can be read here : http://www.esa.int/esaEO/SEMIQOBXH3H_index_0.html
Update 08/08/2012 : there is also press release from my company Intergraph : http://www.intergraph.com/assets/pressreleases/2012/08-01-2012.aspx
- Frascati, first day
- View from hotel Tuscolana
- Another view from hotel
- View in night
- Monday, starting presentations at ESA
- beautiful walk to the church
- Morning bus is waiting to get us to ESA camp
- Tuesady – discussing ideas
- Helge is white boarding
- ..Helge is explaining his thoughts
- ..continuing in explanation by Helge
- ..others comments
- Ogi and Hannah on initial mission statement text
- Presentation on Wednesday on ESA
- Thursday work on code and document/ppts
- ..another view from Hotel
- Dinner at hotel
- ..evening look from hotel entrance
- Thursday evening – discussion in front of the hotel
- few minutes before announcing ShareAware team win
- All done, team is waiting for shuttle or bus
- Friday evening visit of Frascati
- Another frascati picture
MapKit optimization

- MKMapRect and CGRect are the same !
- MapKit sends duplicate requests for CanDraw. Duplication found is 10 of 20 tiles (full iPad screen) are sent twice. Very interesting is that drawRect in base map does that too (duplicated request is sent from the second running thread )
- MapKit is using CATiledLayer underneath
- Don’t do copy-paste 2 loops (see MapTile WWDC 2010 sample project from Apple) if your tiles fits exactly to the matrix of the Google tiles
// for (NSInteger x = minX; x < = maxX; x++) {{
//for (NSInteger y = minY; y < = maxY; y++) }}
Skylight UI for SONAR X1 – inspiration for geospatial desktops
This might be of your interest to see how music production software solved the UI for many controls and options the user might want to control at the same (real!) time. SONAR X1 actually haven’t brought any new functionality in this new version, just completely redesigned UI and build on top of this marketing campaign. Another fact I like is that they haven’t use all these fancy styles on windows that makes things look ‘nice’ like powerpoint but are not well readable or effective for eyes. To me it is kind of mixture of VisualStudio 2010 UI plus Office Ribbon bar plus good color scheme and additional tweaks to make it really usable.
watch the video here: http://www.youtube.com/watch?v=97LnrViar38
Windows Phone 7 and WMS test
Update #1 13/03/2013, here is new blog about Tiled WMS overlay for Windows Phone 8 :http://blog.sumbera.com/2013/03/10/tiled-wms-overlay-in-windows-phone-8/

I have quickly tested my new Windows Phone 7 (Samsung Omnia) device with the Czech cadastral map WMS overlay over the BingMaps and DeepEarth (also see this blog here: http://blog.sumbera.com/2010/11/10/wms-overlay-on-bing-maps-vs-deepearth-on-wp7/) . if you are familiar with www.ikatastr.cz and iPhone version of it (iKatastr) than this example is using same data sources.
In short : it was a great experience – WP7 was smoothly registered, automaticaly connected to internet even without a SIM card using USB cable and Visual Studio 2010 integration just works perfect (so far:) In comparison to many difficulties and ‘certification hell’ on iPhone this is a great relief. Now giving the fact that Nokia is going to support and develop Windows Phone 7, great user experience with WP7 and (for me and menay others) great development experience, this might change the mobile landscape significantly over the 1 or 2 years.
Update #2 Reviewing this after 2 years (March / 2013), – something went wrong with this estimation, but do you remember Gartner predictions from that time ? for example here : http://www.globalnerdy.com/2012/05/07/the-windows-phone-predictions-that-idc-gartner-and-pyramid-research-probably-hope-youve-forgotten/

I will guess here that WP7 platform will exceed number of iPhone applications in less than 2 years.
but we are not yet in 2015, so we will see.
Update #3 02/2016 : this estimation was completely wrong , Windows Phone platform is nowhere, looks like great lesson learned – even you own great language and framework (C# and .NET) there is nothing that guarantees you being successful on emerging/disruptive platform/form factor. Objective-C (then Swift) or Java on Android got this mobile cake.






















