<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p> </p>
<div class="moz-text-html" lang="x-unicode">
<p>I have a geojson file whose contents don't have a "layer" name:</p>
<p><font face="monospace">{"type":"FeatureCollection","features":.....</font></p>
<p>When I try to wrap it....</p>
<p><font face="monospace">CREATE FOREIGN TABLE area (<br>
name varchar(100),<br>
imported boolean,<br>
id integer,<br>
geom geometry<br>
) SERVER "geojsonfile"<br>
OPTIONS (layer '');</font><br>
</p>
I get.... <br>
</div>
<div class="moz-text-html" lang="x-unicode"><font face="monospace"><br>
</font></div>
<div class="moz-text-html" lang="x-unicode"><font face="monospace">ERROR:
unable to connect to layer to ""<br>
HINT: Does the layer exist?<br>
SQL state: HV00R</font><br>
<p>I don't want to edit the file to add a name as this is provided
by an external source:<br>
</p>
<p><font face="monospace">{"type":"FeatureCollection",<b>"name":
"area",</b>"features":....</font></p>
<p>What is the correct way to specify the foreign table OPTIONS to
allow access to a GeoJson without a name?</p>
<p>regards</p>
<p>Simon<br>
</p>
<p><span style="color: rgb(212, 212, 212); font-family: "Source Code Pro", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12.95px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(33, 33, 33); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"></span></p>
</div>
</body>
</html>