我正在使用NTML身份验证服务。 下面是我的配置 但是我收到了400错误请求
<?php
//load GeoJSON
$geojson = file_get_contents("o/1.geojson");
//Translate that into JSON-compliant array of features
$features = json_decode($geojson, TRUE)->features;
//Connect to your database
$connection = pg_connect(....);
//Iterate over features within FeatureCollection
foreach($features as $feature) {
//Extract necessary attributes
$layer = $feature->properties["Layer"];
$subClasses = $feature->properties["SubClasses"];
....
//Extract geometry attribute as a string
$geomJson = json_encode($feature->geometry);
//Make up SQL-query
$sql = "insert into mytable (layer, subclasses, ...., geom) values ('".$layer."','".$subClasses."',..., st_geomfromgeojson('".$geomJson."')";
//Execute the query
pg_query($connection, $sql);
}
?>
我可以使用apache http客户端使用相同的服务。 spring是否支持NTML身份验证。?