geojson

Suggestions on how to create a custom GeoJson serializer using JSON.NET?

I will be attempting to create a C# library to serialize objects to GeoJSON using Json.NET ( for serialization ) and GeoAPI.NET ( for geometry definitions ). I have thought about two different approaches for the serialization implementation and I am not clear which one would be the best approach. They are: Approach 1 - Custom Attrib...

Edit JSON-Parser to parse geoJSON?

Hey, I want to use geoJSON-formatted Data in my iPhone app. THere is a JSON parser but no geoJason parser. Anyone can please help me? How do I have to edit the JSON parser to get geoJSON parsing successful? Is there any geoJson parser for Objective-C out there? Thanks a lot. ...

json_encode behaving different on arrayObject vs array()

Hi, I had a function in php: //simple method with array() $sensors = array(); $query = "select id, x(transform(wkb_geometry,". $epsg . ")) as lon, y(transform(wkb_geometry,". $epsg . ")) as lat from mytable;"; $result = pg_query($query) or die('Query failed: ' . pg_last_error()); while ($row = pg_fetch_assoc($result)) { //va...

Polymaps.org & KML / Plotting lines in GeoJSON

Has anyone had a play with the Polymaps.org KML parser? To me it seems the example doesn't even work. I have an existing KML file which is being generated from a very simple database - I have a placemark name, and a lat/long in decimal notation for said placemark. I have hundreds of these, that form a route - What I want to do is very ...