Monday 28 October 2013

Ungültiger View aus TB_Dictionary entfernt / Views per Script registrieren

Wenn man die in der 1-Klick-Wartung gefundenen Probleme beheben lässt und die Option "Fachschalen-Wörterbuch" aktiviert hat sollte man sich darauf einstellen, dass ein ungültiger View aus TB_DICTIONARY entfernt wird. In der Map Hilfe heisst es:

Wörterbuch - Korrigiert oder entfernt ungültige Einträge in TB_DICTIONARY. 

Das war mir nicht bewusst. In diesem Zusammenhang noch der Hinweis - anstelle die Views
(etwas umständlich) über den Map-Administrator manuell einzubinden kann man das auch per Script. Hier ein Beispiel für die Ausführung im SQL Developer:

--in der Fachschale ausführen, hier: wt_fm
declare  n_ret number;
begin
  n_ret:=MAPSYS.FeatureClass.CreateFeatureClass('FM_V_DSP_SW_TRASSEKNOTEN','FM_V_DSP_SW_TRASSEKNOTEN','Darstellung','P', '', 2, 0.00050, '352257', 'anyinteract', 1000000, 1000000, 10000, -10, -10, -10, 1, 1); 
  n_ret:=MAPSYS.FeatureClass.CreateFeatureClass('FM_V_DSP_SW_TRASSEKANTE','FM_V_DSP_SW_TRASSEKANTE','Darstellung','L', '', 2, 0.00050, '352257', 'anyinteract', 1000000, 1000000, 10000, -10, -10, -10, 1, 1);
end;

--separat ausführen:
commit;


Die einzelnen Parameter für CreateFeatureClass sind beschrieben in "Autodesk Topobase ServerSide API Help", Stand 2011. Eine neuere Dokumentation habe ich nicht gefunden. Hier der Auszug aus der CHM Datei (Topobase_ServerSide_API.chm).

FeatureClassFactory.createFeatureClass Methodcreate a feature class with all necessary attributes.

Java
public static AbstractFeatureClass createFeatureClass(
    String featureClassName,
    String caption,
    String topicName,
    String featureClassType,
    int parent_f_class_id,
    int dimensions,
    double tolerance,
    String srid,
    String spatialMask,
    double max_x,
    double max_y,
    double max_z,
    double min_x,
    double min_y,
    double min_z,
    int readOnly,
    int objectExists
) throws SQLException, TopobaseException;
 

Parameters
Parameters  Description  


featureClassName  - name of the new feature class  


caption  - caption of the new feature class  


topicName  - in which topic does the feature class is in 

 
featureClassType  - type of the new feature class [varchar2(1)] -> P - Point, L - Line, O - Polygon, A - Label, C - Collection, T - Attribute, R - Raster, E - Centroid, S - CompoundSurface, I - CompoundLineString, D - AutoCad Collection ,W - WMSMap, M - Dimension   


parent_f_class_id  - parent feature class of the new feature class   


dimensions  - spatial dimension of the new feature class 

 
tolerance  - spatial tolerance of the new feature class  


srid  - spatial reference ID of the new feature class   


spatialMask  - spatial query mask of the new feature class 

 
max_x  - max x value of the new feature class   


max_y  - max y value of the new feature class  


max_z  - max z value of the new feature class  


min_x  - min x value of the new feature class  


min_y  - min y value of the new feature class  


min_z  - min z value of the new feature class  


readOnly  - Feature class is read only   


objectExists  - Table/View already exists (register feature class only)
 

Returns
instance of an abstract feature class object

Remarks

See Also
FeatureClassFactory Class
FeatureClassFactory Members
topobase.feature Package


geändert am 13.11. - die GRANTS sollten nicht erforderlich sein, da die Ausführungsberechtigung bereits der Rolle 'public' zugewiesen wurde. Daher GRANT/REVOKE Verweis im Beispielscript entfernt.

1 comment:

  1. Raumpatrouille: Ungültiger View Aus Tb_Dictionary Entfernt / Views Per Script Registrieren >>>>> Download Now

    >>>>> Download Full

    Raumpatrouille: Ungültiger View Aus Tb_Dictionary Entfernt / Views Per Script Registrieren >>>>> Download LINK

    >>>>> Download Now

    Raumpatrouille: Ungültiger View Aus Tb_Dictionary Entfernt / Views Per Script Registrieren >>>>> Download Full

    >>>>> Download LINK Kc

    ReplyDelete