ArcGIS REST Services Directory
Home
>
services
>
LivestockByCountry (FeatureServer)
>
All Layers and Tables
|
API Reference
JSON
All Layers and Tables (LivestockByCountry)
Layers:
Layer:
Country
(0)
Name:
Country
Display Field:
Country
Type:
Feature Layer
Geometry Type:
esriGeometryPolygon
Description:
Copyright Text:
Min. Scale:
0
Max. Scale:
0
Default Visibility:
true
Max Record Count:
1000
Supported query Formats:
JSON, geoJSON, PBF
Use Standardized Queries:
True
Extent:
XMin: -20037507.0672
YMin: -30240971.4609
XMax: 20037507.0672
YMax: 18418386.3088
Spatial Reference: 102100 (3857)
Drawing Info:
{"renderer":{"visualVariables":[{"type":"transparencyInfo","valueExpression":"$feature[\"Buffalo\"];\n$feature[\"Cattle\"];\n$feature[\"Duck\"];\n$feature[\"Goat\"];\n$feature[\"Horse\"];\n$feature[\"Pig\"];\n$feature[\"Sheep\"];\nvar fieldNames = [ \"Buffalo\", \"Cattle\", \"Duck\", \"Goat\", \"Horse\", \"Pig\", \"Sheep\" ];\nvar numFields = 7;\nvar maxValueField = null;\nvar maxValue = -Infinity;\nvar value, i, totalValue = null;\nfor(i = 0; i < numFields; i++) {\nvalue = $feature[fieldNames[i]];\nif(value > 0) {\nif(value > maxValue) {\nmaxValue = value;\nmaxValueField = fieldNames[i];\n}\nelse if (value == maxValue) {\nmaxValueField = null;\n}\n}\nif(value != null && value >= 0) {\nif (totalValue == null) { totalValue = 0; }\ntotalValue = totalValue + value;\n}\n}\nvar strength = null;\nif (maxValueField != null && totalValue > 0) {\nstrength = (maxValue / totalValue) * 100;\n}\nreturn strength;","stops":[{"value":15,"transparency":85},{"value":70,"transparency":0}],"legendOptions":{"title":"Strength of predominance","showLegend":false}},{"type":"sizeInfo","target":"outline","expression":"view.scale","valueExpression":"$view.scale","stops":[{"size":1.5,"value":21216991},{"size":0.75,"value":66303097},{"size":0.375,"value":265212386},{"size":0,"value":530424773}]}],"authoringInfo":{"type":"predominance","fields":["Buffalo","Cattle","Duck","Goat","Horse","Pig","Sheep"],"visualVariables":[{"type":"transparencyInfo","minSliderValue":0,"maxSliderValue":100}]},"type":"uniqueValue","valueExpression":"$feature[\"Buffalo\"];\n$feature[\"Cattle\"];\n$feature[\"Duck\"];\n$feature[\"Goat\"];\n$feature[\"Horse\"];\n$feature[\"Pig\"];\n$feature[\"Sheep\"];\nvar fieldNames = [ \"Buffalo\", \"Cattle\", \"Duck\", \"Goat\", \"Horse\", \"Pig\", \"Sheep\" ];\nvar numFields = 7;\nvar maxValueField = null;\nvar maxValue = -Infinity;\nvar value, i, totalValue = null;\nfor(i = 0; i < numFields; i++) {\nvalue = $feature[fieldNames[i]];\nif(value > 0) {\nif(value > maxValue) {\nmaxValue = value;\nmaxValueField = fieldNames[i];\n}\nelse if (value == maxValue) {\nmaxValueField = null;\n}\n}\n}\nreturn maxValueField;","valueExpressionTitle":"Predominant category","uniqueValueInfos":[{"value":"Sheep","symbol":{"color":[204,182,66,255],"outline":{"color":[153,153,153,64],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"},"label":"Sheep"},{"value":"Cattle","symbol":{"color":[105,152,180,255],"outline":{"color":[153,153,153,64],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"},"label":"Cattle"},{"value":"Goat","symbol":{"color":[166,116,116,255],"outline":{"color":[153,153,153,64],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"},"label":"Goat"},{"value":"Duck","symbol":{"color":[107,179,143,255],"outline":{"color":[153,153,153,64],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"},"label":"Duck"},{"value":"Pig","symbol":{"color":[154,107,179,255],"outline":{"color":[153,153,153,64],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"},"label":"Pig"},{"value":"Buffalo","symbol":{"color":[191,135,57,255],"outline":{"color":[153,153,153,64],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"},"label":"Buffalo"},{"value":"Horse","symbol":{"color":[150,174,220,255],"outline":{"color":[153,153,153,64],"width":0.75,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"},"label":"Horse"}]},"transparency":0}
HasZ:
false
HasM:
false
Has Attachments:
false
Has Geometry Properties:
true
HTML Popup Type:
esriServerHTMLPopupTypeAsHTMLText
Object ID Field:
OBJECTID
Unique ID Field:
Name : OBJECTID
IsSystemMaintained : True
Global ID Field:
Type ID Field:
Fields:
OBJECTID
(type: esriFieldTypeOID, alias: FID, SQL Type: sqlTypeOther, length: 0, nullable: false, editable: false)
Country
(type: esriFieldTypeString, alias: Country, SQL Type: sqlTypeOther, length: 50, nullable: true, editable: true)
ISO
(type: esriFieldTypeString, alias: ISO, SQL Type: sqlTypeOther, length: 2, nullable: true, editable: true)
COUNTRYAFF
(type: esriFieldTypeString, alias: Country Affiliation, SQL Type: sqlTypeOther, length: 50, nullable: true, editable: true)
AFF_ISO
(type: esriFieldTypeString, alias: Country Affiliation ISO, SQL Type: sqlTypeOther, length: 2, nullable: true, editable: true)
Sheep
(type: esriFieldTypeInteger, alias: Sheep, SQL Type: sqlTypeOther, nullable: true, editable: true)
Pig
(type: esriFieldTypeInteger, alias: Pig, SQL Type: sqlTypeOther, nullable: true, editable: true)
Horse
(type: esriFieldTypeInteger, alias: Horse, SQL Type: sqlTypeOther, nullable: true, editable: true)
Goat
(type: esriFieldTypeInteger, alias: Goat, SQL Type: sqlTypeOther, nullable: true, editable: true)
Duck
(type: esriFieldTypeInteger, alias: Duck, SQL Type: sqlTypeOther, nullable: true, editable: true)
Cattle
(type: esriFieldTypeInteger, alias: Cattle, SQL Type: sqlTypeOther, nullable: true, editable: true)
Buffalo
(type: esriFieldTypeInteger, alias: Buffalo, SQL Type: sqlTypeOther, nullable: true, editable: true)
Chicken
(type: esriFieldTypeDouble, alias: Chicken, SQL Type: sqlTypeOther, nullable: true, editable: true)
Shape__Area
(type: esriFieldTypeDouble, alias: zSharpe Area, SQL Type: sqlTypeDouble, nullable: true, editable: false)
Shape__Length
(type: esriFieldTypeDouble, alias: zShape Length, SQL Type: sqlTypeDouble, nullable: true, editable: false)
Templates:
Name: New Feature
Description:
Drawing Tool: esriFeatureEditToolNone
Prototype:
Attributes:
Is Data Versioned:
false
Has Contingent Values:
false
Supports Rollback On Failure Parameter:
true
Last Edit Date:
5/5/2022 2:42:17 PM
Schema Last Edit Date:
5/5/2022 2:42:17 PM
Data Last Edit Date:
5/5/2022 2:42:17 PM