DATASOURCE county LOCATIONSERVICE geometry='AREA', type='AADM2', country='US', serviceName='default'
SELECT [LocationDbId], [county_Geometry], [county_Name] FROM county;
[county]:
SQL LOAD * FROM county;
tag field [pts_county_RelationId] with '$primarykey';
tag field [LocationDbId] with '$primarykey';
tag field [county_Geometry] with '$geopolygon';
tag field [LocationDbId] with '$geoname';
tag field [county_Geometry] with '$relates_LocationDbId';
tag field [LocationDbId] with '$relates_county_Geometry';
[ptsInlineTable] = '';
/* End GeoAnalytics operation Within ----------------------------------- */
In this code, if i want to add my own kml file or shapefile(zip) from local folder, how do i edit this?For example the kml file after loading looks like:
MyKML: LOAD Agniyar.Name, Agniyar.Area FROM [lib://Local_E_Drive /Water_resources/Riverbasin.kml] (kml, Table is [Riverbasin/Riverbasin]);
I also would like to know if instead of inline table load, if we add an excel or csv files how the above code will get changed?