how to publish a views layers as map service arcgis server 10.3
In case you are referring to a query layer (What is a query layer?—Help | ArcGIS Desktop ) that shouldn't be a problem. Just remember to register the data source in the data store of Server:.About registering your data with ArcGIS Server—Documentation | ArcGIS Enterprise
ok i create a this
create table tree (
code_barre varchar(50),
essence varchar(50),
coordo_x float,
coordo_y float,
geometry sde.st_geometry);
with SQL develloper, went i insert data in my table my table look like view in arcmap
insert into tree (code_barre,essence,coordo_x,coordo_y,geometry) values (‘H501XZ0’, 'tge2','123', '123',SDE.ST_GEOMETRY(12,5,null,null,4012));
insert into tree (code_barre,essence,coordo_x,coordo_y,geometry) values (‘H501XZ9’, 'tge2', '150', '123', SDE.ST_GEOMETRY(11,8,null,null,4012));
insert into tree (code_barre,essence,coordo_x,coordo_y,geometry) values (‘H501XZ01’, 'tge2', '123','150', SDE.ST_GEOMETRY(11.05,7.085,null,null,4012));
went i finish i go to Arcmap but i dont see any think but the attribute table data
You may need to register the table with the geodatabase:
Workflow: Create tables with SQL and register them with the geodatabase—Help | ArcGIS Desktop
Hi Kendie,
You may need to add a spatial index. Ex:
<SPAN class="keyword token">create</SPAN> <SPAN class="keyword token">table</SPAN> tree <SPAN class="punctuation token">(</SPAN>code_barre <SPAN class="keyword token">varchar</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="number token">50</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> essence <SPAN class="keyword token">varchar</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="number token">50</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> coordo_x <SPAN class="keyword token">float</SPAN><SPAN class="punctuation token">,</SPAN> coordo_y <SPAN class="keyword token">float</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">geometry</SPAN> sde<SPAN class="punctuation token">.</SPAN>st_geometry<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">insert</SPAN> <SPAN class="keyword token">into</SPAN> tree <SPAN class="punctuation token">(</SPAN>code_barre<SPAN class="punctuation token">,</SPAN>essence<SPAN class="punctuation token">,</SPAN>coordo_x<SPAN class="punctuation token">,</SPAN>coordo_y<SPAN class="punctuation token">,</SPAN><SPAN class="keyword token">geometry</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">values</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="string token">'H501XZ0'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'tge2'</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">'123'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'123'</SPAN><SPAN class="punctuation token">,</SPAN>SDE<SPAN class="punctuation token">.</SPAN>ST_GEOMETRY<SPAN class="punctuation token">(</SPAN><SPAN class="number token">12</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="number token">5</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="token boolean">null</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="token boolean">null</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="number token">4012</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">insert</SPAN> <SPAN class="keyword token">into</SPAN> tree <SPAN class="punctuation token">(</SPAN>code_barre<SPAN class="punctuation token">,</SPAN>essence<SPAN class="punctuation token">,</SPAN>coordo_x<SPAN class="punctuation token">,</SPAN>coordo_y<SPAN class="punctuation token">,</SPAN><SPAN class="keyword token">geometry</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">values</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="string token">'H501XZ9'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'tge2'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'150'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'123'</SPAN><SPAN class="punctuation token">,</SPAN> SDE<SPAN class="punctuation token">.</SPAN>ST_GEOMETRY<SPAN class="punctuation token">(</SPAN><SPAN class="number token">11</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="number token">8</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="token boolean">null</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="token boolean">null</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="number token">4012</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">insert</SPAN> <SPAN class="keyword token">into</SPAN> tree <SPAN class="punctuation token">(</SPAN>code_barre<SPAN class="punctuation token">,</SPAN>essence<SPAN class="punctuation token">,</SPAN>coordo_x<SPAN class="punctuation token">,</SPAN>coordo_y<SPAN class="punctuation token">,</SPAN><SPAN class="keyword token">geometry</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">values</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="string token">'H501XZ01'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'tge2'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'123'</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">'150'</SPAN><SPAN class="punctuation token">,</SPAN> SDE<SPAN class="punctuation token">.</SPAN>ST_GEOMETRY<SPAN class="punctuation token">(</SPAN><SPAN class="number token">11.05</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="number token">7.085</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="token boolean">null</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="token boolean">null</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="number token">4012</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">CREATE</SPAN> <SPAN class="keyword token">INDEX</SPAN> tree_indx <SPAN class="keyword token">on</SPAN> tree<SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">geometry</SPAN><SPAN class="punctuation token">)</SPAN> INDEXTYPE <SPAN class="operator token">is</SPAN> SDE<SPAN class="punctuation token">.</SPAN>ST_SPATIAL_INDEX PARAMETERS <SPAN class="punctuation token">(</SPAN><SPAN class="string token">'st_grids=100,300,900 st_srid=4012'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.