Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export SIA405: User variables for orientation an scale #114

Closed
2 of 4 tasks
urskaufmann opened this issue Feb 22, 2023 · 4 comments
Closed
2 of 4 tasks

Export SIA405: User variables for orientation an scale #114

urskaufmann opened this issue Feb 22, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@urskaufmann
Copy link

urskaufmann commented Feb 22, 2023

General information

  • Applicant:
  • Developer:
  • User group referent: Urs Kaufmann
  • Developments referent:

Users and administrators needs

Graphical identity / Logo

Illustrations if applicable.

Description of users and administrators feature requirements

The orientation of text is now horizontal = 0 degree, clockwise
The standard in the sia models is horizontal = 90 degree, clockwise. So north is 0 degree, east = horizontal = 90, south is 180 degree.
Values are only between 0 and 180.

Proposal: new option for textorientation when exporting (SIA405, VSA-DSS) in QGEP: Choose the value for horizontal text (default 90, range 0-180). The calculation of the orientation can then be done in the Austauschschema (ili2db-schema)

General requirements

Specific requirements

Necessary features:

Illustrations of the features and the requirements

Schemes, screen captures, or any other illustrations.

Graphical User Interface (GUI)

Technical analysis and specifications

Feasibility study

Feasibility, options, alternatives and technical specificities

Risks and constraints

Mutualisation

Mutualisation and possible impacts with other projects (QGIS, QWAT, QGEP)

Specification and offers ( Developer )

Not shared on Github.

Specifications

Tenders

Not shared on Github.

Timeline / deadlines

Add a detailed timeline

  • 22.2.2023 : First draft

  • 11.4.2031 : Presentation POC to technical group

  • 31.4.203 : Integration in Release 2023.0

  • Warranty period : to be adressed

Related softwares versions

  • QGIS version: 3.28.4 ff
  • Database model version: 1.6.0 ff
  • INTERLIS Model version: 2015

Realisation dates

  • Tender reception date :
  • Tender validation date :

Documentation

Documentation links

  • User manual :
  • Administrator manual :

Development and integration

Link and comments from the developer about the product

  • Deliverable :
  • Recommendations and comments :
  • Future prospects :

Conclusion

Conclusions from applicant, users or admins group

  • Conclusion:
  • Future prospects:
@urskaufmann
Copy link
Author

urskaufmann commented Mar 14, 2023

Works with one additional row in qgep\export.py: val = val + 90.0

def modulo_angle(val):
    """
    Returns an angle between 0 and 359.9 (for Orientierung in Base_d-20181005.ili)
    """
    if val is None:
        return None
    val = val + 90.0
    val = val % 360.0
    if val > 359.9:
        val = 0
    return val

@sjib
Copy link
Contributor

sjib commented Mar 14, 2023

def modulo_angle(val):

@urskaufmann
Copy link
Author

Input from techgroup (14.3.2023): not val = val + 90, but val + val + variable. The variable is defined by the user in the export-dialog (my proposal: default is 90)
another variable is the scale for export Werkplan (is now 1:500, normally 250 or 200 will create better results). Is then to change in processing_algs\extractlabels_interlis.py
AVAILABLE_SCALES = [
# ili key, display name, scale value
("Leitungskataster", tr("Leitungskataster"), 1000), # TODO: check scale ?
("Werkplan", tr("Werkplan"), 500), # TODO: check scale ?
("Uebersichtsplan.UeP10", tr("Uebersichtsplan 1:10000"), 10000),
("Uebersichtsplan.UeP5", tr("Uebersichtsplan 1:5000"), 5000),
("Uebersichtsplan.UeP2", tr("Uebersichtsplan 1:2000"), 2000),

@urskaufmann urskaufmann changed the title Export SIA405 with text, orientation Export SIA405: User variables for orientation an scale Mar 14, 2023
@sjib sjib transferred this issue from QGEP/QGEP Mar 25, 2023
@sjib sjib added the enhancement New feature or request label Mar 25, 2023
@sjib
Copy link
Contributor

sjib commented Apr 11, 2023

another variable is the scale for export Werkplan (is now 1:500, normally 250 or 200 will create better results). Is then to change in processing_algs\extractlabels_interlis.py
AVAILABLE_SCALES = [
'# ili key, display name, scale value
("Leitungskataster", tr("Leitungskataster"), 1000), # TODO: check scale ?
("Werkplan", tr("Werkplan"), 500), # TODO: check scale ?
("Uebersichtsplan.UeP10", tr("Uebersichtsplan 1:10000"), 10000),
("Uebersichtsplan.UeP5", tr("Uebersichtsplan 1:5000"), 5000),
("Uebersichtsplan.UeP2", tr("Uebersichtsplan 1:2000"), 2000),

Changed to 250 instead of 1:500 in #108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants