Archive

Archive for the ‘GeoJSON’ Category

Making GeoJSON outputs from PostGIS

February 23rd, 2008 rupert No comments

I have an internet/web application sitting on top of OpenLayers, ExtJS, ColdFusion and PostGreSQL/PostGIS. I can query the geometry from PostGIS thru ColdFusion without any problems. If you are in ColdFusion 7, then you need a postgresql driver installed, but I do suggest you use ColdFusion 8 as the driver is built-in.

To display the geometry, I typically use AsGML output from PostGIS and supply that path to OpenLayers. Although it works as expected, I need to invest in two (2) http calls to the server:

  • 1st Request: Call search.cfm and get the attributes (name, address, tel_no, etc…). Afterwards, display the results on an Ext.Window.
  • 2nd Request: Display the geometries on OpenLayers using GML.

Read more…

Categories: GeoJSON, javascript, postgis Tags: ,

ExtJS QuickTip: Display other levels of a JSON object in a Grid

February 18th, 2008 rupert No comments

You can display an item anywhere in a JSON heirarchy/level in a Grid by using dot notation. I am beginning to like JSON as it is simply practical and amazing. To fully understand, please see geometry.type as an example. Read more…

Categories: ExtJS, GeoJSON, javascript Tags: