| | |
| | | </dataDefinedProperties> |
| | | <customproperties/> |
| | | </LayoutObject> |
| | | <Extent xmax="146.81582480887351494" xmin="59.05829972526095162" ymin="9.57730491702214692" ymax="64.11233836183852475"/> |
| | | <Extent xmin="103.394023" ymin="30.690466" ymax="37.871048" xmax="112.534648"/> |
| | | <crs> |
| | | <spatialrefsys> |
| | | <wkt>GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["unknown"],AREA["World"],BBOX[-90,-180,90,180]],ID["EPSG",4326]]</wkt> |
| | |
| | | |
| | | # map = layout.itemById(r'å°å¾') |
| | | map = layout.referenceMap() |
| | | map.zoomToExtent(map.extent()) |
| | | # map.zoomToExtent(map.extent()) |
| | | print('1:' + str(math.ceil(map.scale()))) |
| | | |
| | | size = map.sizeWithUnits() |
| | | print('size: ' + str(size.width()) + " * " + str(size.height()) + " mm") |
| | | |
| | | # 设置å¾å± |
| | | # "é室", "ç«åº", "管éä¸å¿çº¿", "ç¢é注记", "ç¢éå¾", "é«å¾·å½±å注记", "é«å¾·å½±å", "影忳¨è®°", "å½±åå¾" |
| | |
| | | # set_layers_valid(project, showLayers) |
| | | set_item_visibility(root, showLayers) |
| | | |
| | | collection = layout.pageCollection() |
| | | page = collection.page(0) |
| | | page.refreshItemSize() |
| | | # collection = layout.pageCollection() |
| | | # page = collection.page(0) |
| | | # page.refreshItemSize() |
| | | |
| | | # å·æ° |
| | | map.refresh() |
| | |
| | | >>> import qgis.core |
| | | |
| | | python E:/terrait/TianJin/ExportMap/ExportMap/Sources/render.py -qgz Test.qgz -qpt Template.qpt |
| | | |
| | | <Extent xmin="59.058299" ymin="9.565969" ymax="64.123674" xmax="146.815824"/> |
| | | <Extent xmin="103.394023" ymin="30.690466" ymax="37.871048" xmax="112.534648"/> |
| | | ================================================================================ åºç®ä» |
| | | æ ¼å¼åï¼ctrl + alt + l |
| | | PyQGISåºçäºä¸ªå
ï¼ |