(string[] args)
| 43 | } |
| 44 | |
| 45 | public static void Main(string[] args) |
| 46 | { |
| 47 | Console.WriteLine(""); |
| 48 | if (args.Length < 3 || args.Length > 4) usage(); |
| 49 | |
| 50 | bool ZoomToResults = (args.Length == 4 && args[3] == "-zoom"); |
| 51 | |
| 52 | mapObj map = new mapObj(args[0]); |
| 53 | Console.WriteLine ("# Map layers " + map.numlayers + "; Map name = " + map.name); |
| 54 | |
| 55 | QueryByAttribute(args[1], map, ZoomToResults); |
| 56 | |
| 57 | map.querymap.status = mapscript.MS_ON; |
| 58 | map.querymap.color.setRGB(0,0,255); |
| 59 | map.querymap.style = (int)MS_QUERYMAP_STYLES.MS_HILITE; |
| 60 | |
| 61 | try |
| 62 | { |
| 63 | imageObj image = map.drawQuery(); |
| 64 | image.save(args[2],map); |
| 65 | } |
| 66 | catch (Exception ex) |
| 67 | { |
| 68 | Console.WriteLine( "QueryMap: ", ex.Message ); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | private static bool IsLayerQueryable(layerObj layer) |
| 73 | { |
nothing calls this directly
no test coverage detected