كيف يتم "الإخراج إلى ملف نقطي" في تطبيق مستقل بناءً على تركيبة؟

We are searching data for your request:
Forums and discussions:
Manuals and reference books:
Data from registers:
Upon completion, a link will appear to access the found materials.
في تطبيق مستقل أريد إنشاء مؤلف طباعة بالخريطة ووسيلة إيضاح وشريط مقياس. أحاول برموز مختلفة ولكن دون جدوى. لقد بحثت في عدة فترات سابقة لكني لم أجد إجابة.
basename_R = fileInfo_R.baseName () R_color_raster = QgsRasterLayer (R_color، basename_R) layeret = [] QgsMapLayerRegistry.instance (). addMapLayer (R_color_raster) myComposition.setPlotStyle (QgsComposition.Print) #legend legend = QgsComposerLegend (myComposition) legend.model (). setLayerSet (myMap.layers ()) legend.model (). setLayerSet myComposition.addComposerLegend (legend) legend.setItem12 ، .setFrameEnabled (True) legend.setScale (.7) output_jpeg = "… /Factor.jpg"> إنشاء خرائط تسلسلية من قالب باستخدام PyQGIS؟في الإصدار 2.4 وما فوق ، يتم استبدال Maprenderer بإعدادات الخرائط. أحاول ذلك وما زلت أحاول ولكن دون جدوى في تكوين خريطتي. هل يحاول أي شخص الحصول على هذا بشكل صحيح؟
تحديث
حسنًا ، أجد الحل لـ "إضافة خريطة". ها هو الكود:
fileInfo_R = QFileInfo (R_color) basename_R = fileInfo_R.baseName () path = fileInfo_R.filePath () R_color_raster = QgsRasterLayer (path، basename_R) layeret = [] QgsMapLayerRegistry.instance (). )) myMap = QgsMapSettings () mapRectangle = myMap.fullExtent () myMap.setExtent (mapRectangle) myMap.setOutputSize (QSize (1300،900)) myComposition = QgsComposition (myMap) myComposition.setPlotStyle (Qgs) ، 0 w، h = myComposition.paperWidth ()، myComposition.paperHeight () composerMap = QgsComposerMap (myComposition، x، y، w، h) composerMap.gridEnabled () myComposition.addComposerMap (composerMap) composerMap. )) #legend legend = QgsComposerLegend (myComposition) legend.model (). setLayerSet (myMap.layers ()) legend.model (). setLayerSet myComposition.addComposerLegend (legend) legend.setItemPosition (25،122) legend.setFrameEnabled (True) legend.setFrameEnabled (True) .setScale (.7) item = QgsComposerScaleBar (myComposition) myComposition.ad dComposerScaleBar (item) item.setStyle ('Numeric') item.setItemPosition (0،122) item.update () output_jpeg = "… /Factor.jpg"> qgis python print-composer
شاهد الفيديو: قصة نجاح + أسرار تميزك عند إنشاء حسابك. مستقل منصة العمل الحر للمستقلين العرب
عظيم ، هذه رسالة مضحكة
فكر رائع
شكرا للمساعدة في هذا السؤال كيف يمكنني أن أشكرك؟
لم أكن أتوقع هذا
إجابة جميلة