Hi Mark Thank you, I tried with MG_CONTROL (very good script!!) and my polygon table
Insert into MG_CONTROL ( FDO_ORA_OWNER, FDO_ORA_NAME, FDO_ORA_GEOMCOLUMN, FDO_CLASS_NAME, FDO_SRID, FDO_IDENTITY) Values ('ATS_BASE', 'BA_MUNICIPALITY_POLYGON', 'GEOM', 'MY_POLYGON', 82087, 'FID'); than I Used the Mapagent Web Tier Test page with WFS GETCAPABILITIES to see the result http://xxx:8018/mapguide/mapagent/index.html When I use Gaia to test the service, the reference name is ns160697717:MY_POLYGON Result In my opinion MG_CONTROL can handle the name of the feature class, but not the ID before the name that depends from the data source created in MGOS (Im trying to force/change the ID) Do you have experienced something else, please? Best regards Gvtomm Da: mapguide-users <mapguide-users-boun...@lists.osgeo.org> Per conto di mark volz Inviato: mercoledì 17 novembre 2021 22:11 A: MapGuide Users Mail List <mapguide-users@lists.osgeo.org> Oggetto: Re: [mapguide-users] MapGuide WFS uniqueID Yes, you can. When you create a connection, you can set kingFDOClass. This field needs to point to a table with metadata information about the tables you want to use within MapGuide. Typically I call this table mg_control, but you can name it anything you want so long as it has all the required columns. In addition to controlling the FDO class name (the exposed object names you see), the control table allows you to use point data where you dont have a geometry field but have x and y columns. The table needs to be in the same schema that you set in the OracleSchema field. Attached is a SQL statement to create the table and a trigger and sequence to set the unique id field and comments on the key attributes. Here is a sample insert statement: Insert into MG_CONTROL ( FDO_ORA_OWNER, FDO_ORA_NAME, FDO_ORA_GEOMCOLUMN, FDO_CLASS_NAME, FDO_SRID, FDO_IDENTITY) Values ('someSchema', 'someTable', 'theGeometryColumn', 'exposed feature name', 3112, 'primaryKeyOnTable'); From: mapguide-users <mapguide-users-boun...@lists.osgeo.org <mailto:mapguide-users-boun...@lists.osgeo.org> > On Behalf Of gvtomm Sent: Thursday, 18 November 2021 7:37 AM To: mapguide-users@lists.osgeo.org <mailto:mapguide-users@lists.osgeo.org> Subject: [mapguide-users] MapGuide WFS uniqueID Hi, Im using MGOS 3.1 When I publish a King.Oracle data source in WFS, the name of WFS service is composed by an Identifier (yellow) and the name of the Oracle table/view For example <wfs:Name>ns125641909:ABC_BASE~TB_PERIMETER~GEOM</wfs:Name> Is it possibile to change/force the identifier, after moving MGOS in a new server? Because my application works with static link for WFS service that I cant change Best regards gvtomm
_______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users