Tag Info

New answers tagged


I think there are three parts to getting your solution. Creating a GeoJSON FeatureArray Returing the FeatureArray from .NET Consuming that on the client 1) GeoJSON FeatureArray. Easiest way (IMHO) is to write a Postgresql query to do that. There's a guide here on how to do that, but, assuming tract_name is unique your query could be something like ...


You can use JavascriptSerializer to convert your .Net list to JSON or GeoJson. GeoJsonList refers to list in data var serializer = new JavaScriptSerializer(); var serializedResult = serializer.Serialize(GeoJsonList);


I am not familiar with .NET, but if you are able to modify the DOM from the .NET method you could write the data to a hidden div on which a change listener is registered. eg using jQuery: $.("#data").bind('contentchanged', function() { //do something with data )}; When the event fires, the function gets triggered and you can handle the data. Another ...


The answer was to wrap the ascii files in a GDAL Virtual Raster (*.vrt) file and apply a color table to the file. This had the added benefit of easily being able to colour all the files using the same colour range and including them all as one layer in my map.

Top 50 recent answers are included