Changeset 326 in tmcsimulator for trunk/webapps/data_layers/cmsToGeoJson.awk


Ignore:
Timestamp:
03/17/2019 09:57:48 AM (7 years ago)
Author:
jdalbey
Message:

cptms v0.6.3 decomposed into modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/data_layers/cmsToGeoJson.awk

    r318 r326  
    66 
    77# Remove quotes around those streets names that have them 
    8 //{gsub("\"","",$5);printf "  {\n  \"type\": \"Feature\",\n  \"id\": \"%s\",\n  \"geometry\":\n      {\n      \"type\": \"Point\",\n      \"coordinates\": [%s,%s]\n      },\n  \"properties\":\n      {\n      \"location\":\"%s %s %5.2f\",\n      \"street\":\"%s\"\n      }\n  },\n", $1,$7,$8,$10,$12,$15, $5} 
     8//{gsub("\"","",$5);printf "  {\n  \"type\": \"Feature\",\n  \"id\": \"%s\",\n  \"geometry\":\n      {\n      \"type\": \"Point\",\n      \"coordinates\": [%s,%s]\n      },\n  \"properties\":\n      {\n      \"location\":\"%c %s %5.2f\",\n      \"street\":\"%s\"\n      }\n  },\n", $1,$7,$8,$10,$12,$15, $5} 
    99 
    1010# 
Note: See TracChangeset for help on using the changeset viewer.