Opened 2 years ago
Closed 2 years ago
#2609 closed defect (fixed)
WCPS - clip returns wrong grid bounds for imageCrsdomain()
Reported by: | Bang Pham Huu | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | major | Milestone: | 10.1 |
Component: | petascope | Version: | 10.0 |
Keywords: | Cc: | ||
Complexity: | Medium |
Description
This query returns wrong imageCrsdomain() for the first operand in petacope, hence, the rasql query returns error.
for $c in (test_LTM_8480), $d in (test_EU_LT_CLASS_CROP) let $spatialSubset := [Y(2240980.0:2265360.0), X(3937480.0:3957740.0)], $subset := [Y(2240980.0:2265360.0), X(3937480.0:3957740.0)], $clippedImp := clip( $c[$subset], MULTIPOLYGON(((2241075.67314 3946089.97860433,2240987.69846548 3945053.75103465,2241531.70193001 3943963.16099859,2241812.36255034 3943903.91975598,2241781.99339373 3944726.53928147,2241075.67314 3946089.97860433)),((2251630.58955611 3937999.90023827,2251208.76701653 3937803.20257637,2251805.17812514 3937492.87883246,2252898.51587203 3939065.36392404,2252761.41065643 3939693.29332936,2251630.58955611 3937999.90023827)),((2253291.74960112 3939950.80905631,2253132.84356309 3938611.09553411,2253353.89874431 3938058.38479669,2253887.28285209 3938894.30621172,2253862.25887917 3940725.07765371,2253291.74960112 3939950.80905631)),((2264396.0893553 3951396.54970996,2261342.26941072 3952617.63110528,2259741.37944005 3951486.87124213,2259092.82800405 3951314.10941989,2258688.72777598 3951678.54259129,2256266.99268625 3953181.0584457,2256188.64816594 3955203.05222217,2256868.8692976 3956351.61229409,2256701.69666985 3957091.58016641,2256223.11655777 3956931.00675194,2255892.38232196 3957452.00012855,2254272.37220471 3957744.44487527,2253099.4731892 3956531.41241566,2253225.72810722 3956090.84612911,2252438.42033433 3955375.11937836,2251645.05927806 3955444.75001951,2250870.43994134 3956082.5809323,2250406.9556709 3955943.0399491,2248260.1214669 3956359.82078762,2247970.06592708 3956313.79309765,2247475.25895991 3956849.78386632,2247222.46009395 3956695.59265231,2247281.91458882 3955502.61972626,2246922.39697465 3955229.891347,2246388.89250489 3955198.67678309,2245076.69974201 3956038.59901905,2243964.81041346 3955609.99101002,2243169.11443812 3955303.15574272,2243362.73707247 3954919.02853913,2244025.94585108 3953275.01199967,2244024.31933246 3952585.02158999,2244989.13698962 3950873.55509643,2245123.18080981 3949969.54625686,2243978.35831728 3950858.07703596,2243879.4392807 3950684.80943799,2243832.47552333 3950602.54241694,2243934.02076274 3950414.99405035,2245064.73118603 3948327.7606061,2245351.61109935 3946683.35833212,2245087.33434264 3944728.47000295,2244913.95827739 3943443.37114725,2245770.24695704 3941374.44233311,2247738.64651361 3942498.42222898,2247804.76010081 3942941.48310748,2247808.08484934 3942963.75790472,2249143.02979997 3944465.69679787,2250166.47307064 3944759.0211517,2251557.33984698 3944361.78692104,2251577.63187023 3944340.76814833,2253349.75719744 3942506.00946959,2254697.1763953 3943307.92236125,2254644.65362787 3943432.56145195,2254371.02934237 3944082.01588831,2254532.79998402 3944830.32932198,2254727.51009959 3943734.55428649,2254971.42255387 3943605.9262726,2255088.50690247 3943938.98145413,2256529.43333247 3944179.80318583,2256465.35616148 3943934.78812086,2258877.55855925 3943347.80750605,2259092.97884779 3943242.10959662,2259982.98101655 3942681.04375267,2261065.35570267 3941534.93183281,2261411.11929448 3941168.94204537,2261549.15995456 3941392.14553299,2262263.17756412 3939944.00239683,2262138.3173069 3938779.48577081,2261912.51054359 3938314.17737937,2261538.02998131 3937781.96155112,2261793.87232567 3937873.15933038,2262965.21542319 3937537.47078214,2263443.90600468 3937706.79764541,2263808.53815415 3938176.44979066,2264522.71515485 3937677.0389735,2265359.1138506 3939254.12229366,2264456.29279336 3940251.96682571,2262944.23746595 3941093.93066165,2263252.22020819 3941954.70360405,2263863.60101575 3942504.30499704,2263488.54645736 3943871.46575563,2264384.34817653 3943493.42923503,2265083.92515746 3945010.60842042,2264936.15656665 3945500.29786785,2264444.73327045 3945775.81723974,2263395.6288434 3945691.57290437,2263088.52607582 3945277.67137118,2262826.31200342 3945782.6232274,2263329.851313 3948413.38577673,2264115.57833679 3949515.25341098,2264464.97377693 3950414.13699211,2264874.69594195 3950709.85698346,2264396.0893553 3951396.54970996))) ), $clippedLt := scale( clip( $d[$spatialSubset], MULTIPOLYGON(((2241075.67314 3946089.97860433,2240987.69846548 3945053.75103465,2241531.70193001 3943963.16099859,2241812.36255034 3943903.91975598,2241781.99339373 3944726.53928147,2241075.67314 3946089.97860433)),((2251630.58955611 3937999.90023827,2251208.76701653 3937803.20257637,2251805.17812514 3937492.87883246,2252898.51587203 3939065.36392404,2252761.41065643 3939693.29332936,2251630.58955611 3937999.90023827)),((2253291.74960112 3939950.80905631,2253132.84356309 3938611.09553411,2253353.89874431 3938058.38479669,2253887.28285209 3938894.30621172,2253862.25887917 3940725.07765371,2253291.74960112 3939950.80905631)),((2264396.0893553 3951396.54970996,2261342.26941072 3952617.63110528,2259741.37944005 3951486.87124213,2259092.82800405 3951314.10941989,2258688.72777598 3951678.54259129,2256266.99268625 3953181.0584457,2256188.64816594 3955203.05222217,2256868.8692976 3956351.61229409,2256701.69666985 3957091.58016641,2256223.11655777 3956931.00675194,2255892.38232196 3957452.00012855,2254272.37220471 3957744.44487527,2253099.4731892 3956531.41241566,2253225.72810722 3956090.84612911,2252438.42033433 3955375.11937836,2251645.05927806 3955444.75001951,2250870.43994134 3956082.5809323,2250406.9556709 3955943.0399491,2248260.1214669 3956359.82078762,2247970.06592708 3956313.79309765,2247475.25895991 3956849.78386632,2247222.46009395 3956695.59265231,2247281.91458882 3955502.61972626,2246922.39697465 3955229.891347,2246388.89250489 3955198.67678309,2245076.69974201 3956038.59901905,2243964.81041346 3955609.99101002,2243169.11443812 3955303.15574272,2243362.73707247 3954919.02853913,2244025.94585108 3953275.01199967,2244024.31933246 3952585.02158999,2244989.13698962 3950873.55509643,2245123.18080981 3949969.54625686,2243978.35831728 3950858.07703596,2243879.4392807 3950684.80943799,2243832.47552333 3950602.54241694,2243934.02076274 3950414.99405035,2245064.73118603 3948327.7606061,2245351.61109935 3946683.35833212,2245087.33434264 3944728.47000295,2244913.95827739 3943443.37114725,2245770.24695704 3941374.44233311,2247738.64651361 3942498.42222898,2247804.76010081 3942941.48310748,2247808.08484934 3942963.75790472,2249143.02979997 3944465.69679787,2250166.47307064 3944759.0211517,2251557.33984698 3944361.78692104,2251577.63187023 3944340.76814833,2253349.75719744 3942506.00946959,2254697.1763953 3943307.92236125,2254644.65362787 3943432.56145195,2254371.02934237 3944082.01588831,2254532.79998402 3944830.32932198,2254727.51009959 3943734.55428649,2254971.42255387 3943605.9262726,2255088.50690247 3943938.98145413,2256529.43333247 3944179.80318583,2256465.35616148 3943934.78812086,2258877.55855925 3943347.80750605,2259092.97884779 3943242.10959662,2259982.98101655 3942681.04375267,2261065.35570267 3941534.93183281,2261411.11929448 3941168.94204537,2261549.15995456 3941392.14553299,2262263.17756412 3939944.00239683,2262138.3173069 3938779.48577081,2261912.51054359 3938314.17737937,2261538.02998131 3937781.96155112,2261793.87232567 3937873.15933038,2262965.21542319 3937537.47078214,2263443.90600468 3937706.79764541,2263808.53815415 3938176.44979066,2264522.71515485 3937677.0389735,2265359.1138506 3939254.12229366,2264456.29279336 3940251.96682571,2262944.23746595 3941093.93066165,2263252.22020819 3941954.70360405,2263863.60101575 3942504.30499704,2263488.54645736 3943871.46575563,2264384.34817653 3943493.42923503,2265083.92515746 3945010.60842042,2264936.15656665 3945500.29786785,2264444.73327045 3945775.81723974,2263395.6288434 3945691.57290437,2263088.52607582 3945277.67137118,2262826.31200342 3945782.6232274,2263329.851313 3948413.38577673,2264115.57833679 3949515.25341098,2264464.97377693 3950414.13699211,2264874.69594195 3950709.85698346,2264396.0893553 3951396.54970996)))), {imageCrsDomain($clippedImp)}) return encode( coverage myZonalCount over $ltVal x(1:10) values count(($clippedImp = 1) * ($clippedLt = $ltVal) = 1), "json" )
Note:
See TracTickets
for help on using tickets.