Get Fields

http://gisapps.co.union.nc.us/ws/rest/v2/geo_getfields.ashx

Description

List the fields in a geotable.

Service Arguments

PARAMETER DESCRIPTION
geotable The name of the geotable to perform the query on.
format Format for the output (xml or json)

Service Output

PARAMETER DESCRIPTION
field_name The name of the field.
field_type The field type.

Sample Output

Sample XML Output

	<rows count="4">
	  <row>
	    <column name="field_name">gid</column>
	    <column name="field_type">int4</column>
	  </row>
	  <row>
	    <column name="field_name">objectid</column>
	    <column name="field_type">int4</column>
	  </row>
	  <row>
	    <column name="field_name">precno</column>
	    <column name="field_type">int4</column>
	  </row>
	  <row>
	    <column name="field_name">the_geom</column>
	    <column name="field_type">geometry</column>
	  </row>
	</rows>
	

Sample JSON Output

	{rows:[
	  {field_name:"gid",field_type:"int4"},
	  {field_name:"objectid",field_type:"int4"},
	  {field_name:"precno",field_type:"int4"},
	  {field_name:"the_geom",field_type:"geometry"}
	]}